diacrit: Mark deprecated.
[gnulib.git] / ChangeLog
blob3f40cc43ef4c7a3d688da4082ca8bdade90f39ba
1 2019-01-20  Bruno Haible  <bruno@clisp.org>
3         rintl: Override broken implementation on NetBSD.
4         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
5         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
6         REPLACE_RINTL.
7         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
8         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
9         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
10         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12 2019-01-20  Bruno Haible  <bruno@clisp.org>
14         log10l: Work around inaccurate implementation on NetBSD.
15         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16         * lib/log10l.c: Comment out too simplistic override.
17         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
19 2019-01-20  Bruno Haible  <bruno@clisp.org>
21         logl: Work around inaccurate implementation on NetBSD.
22         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
23         * lib/logl.c: Comment out unused code.
24         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
26 2019-01-20  Bruno Haible  <bruno@clisp.org>
28         expm1l: Work around inaccurate implementation on NetBSD.
29         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
30         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
31         REPLACE_EXPM1L.
32         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
33         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
34         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
35         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
37 2019-01-20  Bruno Haible  <bruno@clisp.org>
39         expl: Work around inaccurate implementation on NetBSD.
40         * lib/math.in.h (expl): Test also REPLACE_EXPL.
41         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
42         REPLACE_EXPL.
43         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
44         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
45         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
46         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
48 2019-01-20  Bruno Haible  <bruno@clisp.org>
50         exp2l: Work around inaccurate implementation on NetBSD.
51         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
52         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
54 2019-01-20  Bruno Haible  <bruno@clisp.org>
56         floor, floorl: Avoid autoconf warnings.
57         * modules/floor (configure.ac): Use AC_REQUIRE.
58         * modules/floorl (configure.ac): Likewise.
60 2019-01-20  Bruno Haible  <bruno@clisp.org>
62         Defeat current GCC optimizations in math autoconf tests.
63         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
64         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
65         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
66         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
67         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
68         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
69         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
70         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
71         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
72         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
73         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
74         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
75         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
76         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
77         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
78         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
79         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
80         * m4/log.m4 (gl_FUNC_LOG): Likewise.
81         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
82         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
83         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
84         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
85         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
86         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
87         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
88         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
89         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
90         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
91         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
92         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
93         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
94         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
95         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
96         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
97         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
98         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
99         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
102 2019-01-19  Pádraig Brady  <P@draigBrady.com>
104         gettext: support disabling use of VLAs
105         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
107 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
109         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
110         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
112 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
114         fcntl: Fix syntax error (regression from 2018-10-05).
115         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
117 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
119         relocatable: improve documentation.
120         * doc/relocatable-maint.texi (Supporting Relocation): For
121         substitutions performed by config.status, we need more variables
122         (for instance datarootdir defaults to '${prefix}/share' so we need
123         prefix).
125 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
127         backup: update dependencies
128         * modules/backup-rename (Depends-on): It now depends on opendirat
129         instead of opendir.  It also uses stdint, and xalloc-oversized.
130         But no longer dirfd.
131         * modules/backupfile (Depends-on): Add xalloc-oversized.
133 2019-01-13  Bruno Haible  <bruno@clisp.org>
135         getcwd: Fix test failure when building on a Linux 9p file system.
136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
137         EINVAL from mkdir like ENAMETOOLONG.
138         * tests/test-getcwd.c (test_long_name): Likewise.
140 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
142         Fix typos found by codespell.
143         * lib/*.[hc]: Fix typos in comments.
144         * pygnulib/*.py: Fix typos in error messages and comments.
146 2019-01-12  Bruno Haible  <bruno@clisp.org>
148         doc: Fix documentation about container data types.
149         Reported by Werner Lemberg <wl@gnu.org>.
150         * doc/containers.texi (Container data types): Fix typo.
152 2019-01-10  Bruno Haible  <bruno@clisp.org>
154         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
155         Reported by Reuben Thomas <rrt@sc3d.org>.
156         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
158 2019-01-06  Bruno Haible  <bruno@clisp.org>
160         maintainer-makefile: Make the configure.ac section optional.
161         * top/maint.mk (GREP, SED): Define if not defined.
163 2019-01-06  Bruno Haible  <bruno@clisp.org>
165         localename: Assume setlocale function.
166         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
167         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
169 2019-01-06  Bruno Haible  <bruno@clisp.org>
171         doc: Add documentation about container data types.
172         * doc/containers.texi: New file.
173         * doc/gnulib.texi (Particular Modules): Include it.
175 2019-01-06  Bruno Haible  <bruno@clisp.org>
177         doc: Update documentation about 'progname' module.
178         * doc/progname.texi: Rename from doc/error.texi. Change node name and
179         title. Rewrite.
180         * doc/gnulib.texi (Particular Modules): Update.
182 2019-01-06  Bruno Haible  <bruno@clisp.org>
184         doc: Document the xstdopen and *-safer modules.
185         * doc/xstdopen.texi: New file.
186         * doc/gnulib.texi (Particular Modules): Include it.
188 2019-01-06  Bruno Haible  <bruno@clisp.org>
190         xstdopen: Add tests.
191         * tests/test-xstdopen.c: New file.
192         * tests/test-xstdopen.sh: New file.
193         * modules/xstdopen-tests: New file.
195         xstdopen: New module.
196         * lib/xstdopen.h: New file.
197         * lib/xstdopen.c: New file.
198         * modules/xstdopen: New file.
200 2019-01-06  Bruno Haible  <bruno@clisp.org>
202         stdopen: Fix compilation error with IRIX cc.
203         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
205 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
207         xfreopen need not include stdio--.h
208         * lib/xfreopen.c: Do not include stdio--.h.
210         xfreopen need not depend on freopen-safer
211         * modules/xfreopen (Depends-on):
212         Depend on freopen, not freopen-safer.
214         stdopen: modernize and simplify
215         * lib/stdopen.c: Update copyright date
216         Do not include sys/types.h; no longer needed these days.
217         (stdopen): Use C99-style decl in loop.  Return int errno
218         value, rather than just a bool.  Do not worry about fd mismatches,
219         since the caller cares only if 0, 1, 2 are occupied.
220         * lib/stdopen.h: No need to include <stdbool.h>.
221         * m4/stdopen.m4: Remove.
222         * modules/stdopen: New file.
224         stdopen: copy from last use in coreutils
225         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
226         New files, taken from their last commit in coreutils
227         2007-07-23T12:35:58Z!jim@meyering.net
228         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
230 2019-01-05  Bruno Haible  <bruno@clisp.org>
232         argp: Don't pass an invalid argument to dgettext().
233         Reported by He X <xw897002528@gmail.com>.
234         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
235         dgettext().
237 2019-01-05  Bruno Haible  <bruno@clisp.org>
239         argp: Don't pass an invalid argument to dgettext().
240         Reported by He X <xw897002528@gmail.com>.
241         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
242         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
243         dgettext().
245 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
247         stdioext: port to newer 32-bit Android
248         Problem reported by Tom Yan in:
249         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
250         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
251         (fp_) [__ANDROID__]: Use it.
253 2019-01-04  Bruno Haible  <bruno@clisp.org>
255         lock: Fix link error with --enable-threads=pth.
256         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
257         Mark as weak.
259 2019-01-04  Bruno Haible  <bruno@clisp.org>
261         Fix link errors in unit tests.
262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
263         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
264         * modules/array-map-tests (Makefile.am): Link test-array_map against
265         libintl.
266         * modules/array-set-tests (Makefile.am): Link test-array_set against
267         libintl.
268         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
269         libintl.
270         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
271         libintl.
272         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
273         against libintl.
274         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
275         against libintl.
277 2019-01-04  Bruno Haible  <bruno@clisp.org>
279         Fix incorrect 'Link' sections.
280         * modules/regex (Link): Mention the link requirement of module 'lock'.
281         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
283 2019-01-04  Bruno Haible  <bruno@clisp.org>
285         Fix some 'Link' sections.
286         * modules/c-stack (Link): Add link directive from the 'gettext-h'
287         dependency.
288         * modules/getaddrinfo (Link): Likewise.
290 2019-01-04  Bruno Haible  <bruno@clisp.org>
292         Remove redundant 'Link' sections.
293         * modules/canon-host (Link): Remove section.
294         * modules/timevar (Link): Likewise.
296 2019-01-04  Bruno Haible  <bruno@clisp.org>
298         Remove incorrect 'Link' sections.
299         * modules/acl (Link): Remove section. Use combined 'Link' sections from
300         the dependencies instead.
301         * modules/crypto/md5 (Link): Likewise.
302         * modules/crypto/sha1 (Link): Likewise.
303         * modules/crypto/sha256 (Link): Likewise.
304         * modules/crypto/sha512 (Link): Likewise.
305         * modules/faccessat (Link): Likewise.
306         * modules/fdutimensat (Link): Likewise.
307         * modules/iconv_open-utf (Link): Likewise.
308         * modules/propername (Link): Likewise.
309         * modules/qacl (Link): Likewise.
310         * modules/unicodeio (Link): Likewise.
311         * modules/utimecmp (Link): Likewise.
312         * modules/utimensat (Link): Likewise.
313         * modules/xstriconv (Link): Likewise.
314         * modules/xstriconveh (Link): Likewise.
316 2019-01-04  Bruno Haible  <bruno@clisp.org>
318         gnulib-tool: New option --extract-recursive-link-directive.
319         * gnulib-tool (func_usage): Document the new options
320         --extract-recursive-dependencies, --extract-recursive-link-directive.
321         (func_verify_module): Document output variables.
322         (func_get_dependencies_recursively): New function.
323         (func_get_link_directive_recursively): New function.
324         Use them to implement the new options
325         --extract-recursive-dependencies, --extract-recursive-link-directive.
326         * doc/gnulib-tool.texi (Link-time requirements): New section.
328 2019-01-04  Bruno Haible  <bruno@clisp.org>
330         Clarify meaning of 'Link' section in module description.
331         * doc/gnulib.texi (Module description): Clarify the meaning of the
332         'Link' section versus the one of the dependencies.
333         * NEWS: Mention the change.
335 2019-01-04  Bruno Haible  <bruno@clisp.org>
337         pselect: Fix module description.
338         * modules/pselect (Link): Put one link option per line.
340 2019-01-04  Bruno Haible  <bruno@clisp.org>
342         cosl: Fix module description.
343         * modules/cosl (Link): Fix typo.
344         * modules/mathl (configure.ac): Likewise.
346 2019-01-04  Bruno Haible  <bruno@clisp.org>
348         c-xvasprintf: Fix module dependencies.
349         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
351 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
353         bootstrap: die when some submodules are not initialized
354         * build-aux/bootstrap: Make sure all submodules are initialized.
356 2019-01-04  Bruno Haible  <bruno@clisp.org>
358         bitsetv: Fix module dependencies.
359         * lib/bitsetv.c: Include xalloc.h.
360         * modules/bitsetv (Depends-on): Add 'xalloc'.
362 2019-01-04  Bruno Haible  <bruno@clisp.org>
364         xmemdup0: Remove redundant code.
365         * lib/xmemdup0.h (xalloc_die): Remove declaration.
367 2019-01-04  Bruno Haible  <bruno@clisp.org>
369         backupfile: Fix module dependencies.
370         * modules/backupfile (Depends-on): Add 'xalloc'.
372 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
374         bitset, crypto/gc: fix conflicts with Solaris 11
375         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
376         avoid clash with Solaris 11 <sys/bitset.h>.
377         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
378         with Solaris 11 <xorg/gc.h>.
380 2019-01-04  Bruno Haible  <bruno@clisp.org>
382         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
383         Reported by Andy Fiddaman <andy@omniosce.org>.
384         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
386 2019-01-03  Eric Blake  <eblake@redhat.com>
388         maintainer-makefile: fix typo in previous patch
389         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
390         of Roman's work.
392 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
394         maintainer-makefile: prefer $(GREP) over grep
395         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
396         defined.
397         * top/maint.mk: Use it everywhere.
399         maintainer-makefile: split long argument lines
400         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
401         it would be too long for exec limits on BSD.
403 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
405         mkfifo: bring back HAVE_MKFIFO macro
406         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
407         Problem reported by Andrew Janke in:
408         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
410 2018-12-21  Bruno Haible  <bruno@clisp.org>
412         Assume Autoconf >= 2.63.
413         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
414         versions < 2.60.
416 2018-12-21  Bruno Haible  <bruno@clisp.org>
418         memcmp: Mention the clang bug.
419         * tests/test-memcmp.c: Add comment about a known test failure.
420         * doc/posix-functions/memcmp.texi: Mention the clang bug.
422 2018-12-20  Jim Meyering  <meyering@fb.com>
424         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
425         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
426           echo '123-x'|LC_ALL=C grep -E '.\bx'
427         The goal is to revert the first, but reverting it requires to restore
428         the function deleted in the second. I ran this to restore the deleted
429         function:
430           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
431             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
432             | patch -R -p1
433         * lib/dfa.c (charclass_context): Restore deleted function.
434         Reverting the primary commit removes this change:
435         dfa: Simplify a building state
436         * lib/dfa.c (build_state): Simplify a building state.
438 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
440         version-etc: allow zero authors
441         * lib/version-etc.c (version_etc_arn): If no authors are given,
442         omit authorship info instead of dumping core.
444 2018-12-19  Bruno Haible  <bruno@clisp.org>
446         lchown tests: Be more permissive regarding errno values.
447         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
448         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
449         alternative to ENOSYS.
450         * modules/lchown-tests (Depends-on): Add 'errno'.
451         * modules/fchownat-tests (Depends-on): Likewise.
453 2018-12-18  Bruno Haible  <bruno@clisp.org>
455         duplocale: Avoid test failure on AIX 7.
456         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
457         (configure.ac): Invoke gt_FUNC_USELOCALE.
458         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
459         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
460         works.
462 2018-12-18  Bruno Haible  <bruno@clisp.org>
464         localename: Fix test failure on AIX 7.
465         Reported by Assaf Gordon in
466         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
467         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
468         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
469         instead of ac_cv_func_uselocale.
470         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
471         HAVE_USELOCALE.
472         * lib/localename-table.h: Likewise.
473         * lib/localename-table.c: Likewise.
474         * tests/test-localename.c: Likewise.
475         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
477 2018-12-18  Bruno Haible  <bruno@clisp.org>
479         localename: Update comments regarding Cygwin.
480         * lib/localename.c: Update comment.
481         * doc/posix-functions/uselocale.texi: Update platforms list.
482         * doc/posix-functions/newlocale.texi: Likewise.
483         * doc/posix-functions/duplocale.texi: Likewise.
484         * doc/posix-functions/freelocale.texi: Likewise.
486 2018-12-16  Bruno Haible  <bruno@clisp.org>
488         c-stack: Fix for Linux/sparc.
489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
490         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
492 2018-12-16  Bruno Haible  <bruno@clisp.org>
494         localename: Avoid test failure on some glibc systems.
495         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
496         Unset environment variables that might disturb the first setlocale call,
497         and verify that this setlocale call succeeds.
499 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
501         random: Fix build error on native Windows (regression from 2018-06-21).
502         * lib/random.c (__srandom, __initstate, __setstate, __random,
503         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
504         to the symbols without '__' prefix.
506 2018-12-16  Bruno Haible  <bruno@clisp.org>
508         obstack, libc-config: Support HP-UX cc in C99 mode.
509         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
510         compiler, even when in C99 mode.
511         * lib/cdefs.h (__flexarr): Likewise.
512         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
514 2018-12-16  Bruno Haible  <bruno@clisp.org>
516         localename: Fix test failure on OpenBSD >= 6.2.
517         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
518         locale system. Define HAVE_FAKE_LOCALES in this case.
519         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
520         HAVE_USELOCALE.
521         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
522         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
523         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
524         platforms list.
525         * doc/posix-functions/newlocale.texi: Likewise.
526         * doc/posix-functions/duplocale.texi: Update platforms list.
527         * doc/posix-functions/freelocale.texi: Likewise.
529 2018-12-16  Bruno Haible  <bruno@clisp.org>
531         duplocale tests: Re-enable the test on platforms without <monetary.h>.
532         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
533         of the test, on platforms without <monetary.h>.
535 2018-12-16  Bruno Haible  <bruno@clisp.org>
537         localename: Update comments.
538         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
540 2018-12-15  Jim Meyering  <meyering@fb.com>
542         regex: fix indentation
543         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
545 2018-12-15  Bruno Haible  <bruno@clisp.org>
547         openat-safer tests: Avoid test failure on NetBSD 8.
548         * tests/test-openat-safer.c (main): Execute a Linux specific test only
549         on Linux.
551 2018-12-15  Jim Meyering  <meyering@fb.com>
553         regex: work around a bug in glibc-2.27 and prior
554         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
555         assertion for /0|()0|\1|0/.
556         * tests/test-regex.c (main): Add the same test here.
558 2018-12-15  Bruno Haible  <bruno@clisp.org>
560         localename: Fix use of uninitialized shell variable.
561         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
562         gt_cv_locale_solaris114 always before use. Remove assignment without
563         effect.
565 2018-12-15  Bruno Haible  <bruno@clisp.org>
567         dfa tests: Avoid test failure on Alpine Linux.
568         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
569         command found on Alpine Linux.
571 2018-12-15  Jim Meyering  <meyering@fb.com>
573         dfa: avoid new warnings from gcc
574         These would prevent building with -Werror and a Dec snapshot of gcc.
575         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
576         Rename each inner instance to "p".
577         (charclass_context): Remove unused static function.
579 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
581         mkdir-p: improve diagnostic for FUSE mounts
582         Problem reported by Niklas Hambüchen in:
583         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
584         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
585         errno to mkdir errno if the stat errno is likely more interesting.
587 2018-12-14  Bruno Haible  <bruno@clisp.org>
589         hash-map: Add tests.
590         * tests/test-hash_map.c: New file.
591         * modules/hash-map-tests: New file.
593         linkedhash-map: Add tests.
594         * tests/test-linkedhash_map.c: New file.
595         * modules/linkedhash-map-tests: New file.
597         array-map: Add tests.
598         * tests/test-array_map.c: New file.
599         * modules/array-map-tests: New file.
601         xmap: New module.
602         * lib/gl_xmap.h: New file.
603         * lib/gl_xmap.c: New file.
604         * modules/xmap: New file.
606         hash-map: New module.
607         * lib/gl_hash_map.h: New file.
608         * lib/gl_hash_map.c: New file.
609         * modules/hash-map: New file.
611         linkedhash-map: New module.
612         * lib/gl_linkedhash_map.h: New file.
613         * lib/gl_linkedhash_map.c: New file.
614         * lib/gl_anyhash1.h: Update comments.
615         * lib/gl_anyhash2.h: Likewise.
616         * modules/linkedhash-map: New file.
618         array-map: New module.
619         * lib/gl_array_map.h: New file.
620         * lib/gl_array_map.c: New file.
621         * modules/array-map: New file.
623         map: New module.
624         * lib/gl_map.h: New file.
625         * lib/gl_map.c: New file.
626         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
627         conflict with gl_map.h.
628         * modules/map: New file.
630 2018-12-13  Bruno Haible  <bruno@clisp.org>
632         select tests: Avoid test failure on Cygwin.
633         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
635 2018-12-13  Bruno Haible  <bruno@clisp.org>
637         localtime-buffer: Avoid endless recursion in localtime and gmtime.
638         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
640 2018-12-13  Bruno Haible  <bruno@clisp.org>
642         localeconv tests: Avoid test failure on Cygwin.
643         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
644         'mon_grouping' tests.
646 2018-12-11  Bruno Haible  <bruno@clisp.org>
648         omap: Don't dispose the old value when the function returns it.
649         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
650         here.
651         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
652         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
653         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
654         here.
656         array-omap, avltree-omap, rbtree-omap: Tweak style.
657         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
658         false.
659         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
661         rbtree-omap: Add tests.
662         * tests/test-rbtree_omap.c: New file.
663         * modules/rbtree-omap-tests: New file.
665         avltree-omap: Add tests.
666         * tests/test-avltree_omap.c: New file.
667         * modules/avltree-omap-tests: New file.
669         array-omap: Add tests.
670         * tests/test-array_omap.c: New file.
671         * modules/array-omap-tests: New file.
673         xomap: New module.
674         * lib/gl_xomap.h: New file.
675         * lib/gl_xomap.c: New file.
676         * modules/xomap: New file.
678         rbtree-omap: New module.
679         * lib/gl_rbtree_omap.h: New file.
680         * lib/gl_rbtree_omap.c: New file.
681         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
682         Parameterize.
683         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
684         * modules/rbtree-omap: New file.
685         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
686         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
688         avltree-omap: New module.
689         * lib/gl_avltree_omap.h: New file.
690         * lib/gl_avltree_omap.c: New file.
691         * lib/gl_avltree_ordered.h: Code moved to here from
692         lib/gl_avltree_oset.c. Parameterize.
693         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
694         * lib/gl_anytree_omap.h: New file.
695         * modules/avltree-omap: New file.
696         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
697         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
699         array-omap: New module.
700         * lib/gl_array_omap.h: New file.
701         * lib/gl_array_omap.c: New file.
702         * modules/array-omap: New file.
704         omap: New module.
705         * lib/gl_omap.h: New file.
706         * lib/gl_omap.c: New file.
707         * modules/omap: New file.
709 2018-12-11  Bruno Haible  <bruno@clisp.org>
711         hash-set, linkedhash-set: Reduce code duplication.
712         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
713         lib/gl_anyhash_set1.h.
714         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
715         lib/gl_anyhash_set2.h. Parameterize.
716         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
717         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
718         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
719         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
720         * lib/gl_rbtreehash_list.c: Likewise.
721         * lib/gl_linkedhash_list.c: Likewise.
722         (hash_resize_after_add): Remove function.
723         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
724         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
725         * gl_hash_set.c: Likewise.
726         * modules/avltreehash-list (Files, Makefile.am): Update file list.
727         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
728         * modules/linkedhash-list (Files, Makefile.am): Likewise.
729         * modules/linkedhash-set (Files, Makefile.am): Likewise.
730         * modules/hash-set (Files, Makefile.am): Likewise.
732 2018-12-11  Bruno Haible  <bruno@clisp.org>
734         array-set: Optimize.
735         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
736         outside the loop, not inside the loop.
738 2018-12-11  Bruno Haible  <bruno@clisp.org>
740         times: Fix tests.
741         * tests/test-times.c (doublecmp): Implement a total order.
743 2018-12-11  Bruno Haible  <bruno@clisp.org>
745         array-set, linkedhash-set, hash-set: Fix tests.
746         * tests/test-array_set.c (cmp_objects_in_array): New function.
747         (check_equals): Use it.
748         * tests/test-hash_set.c: Likewise.
749         * tests/test-linkedhash_set.c: Likewise.
751 2018-12-08  Bruno Haible  <bruno@clisp.org>
753         Fix comments.
754         * lib/gl_list.h (gl_list_free): Clarify what it does.
755         * lib/gl_oset.h (gl_oset_free): Likewise.
756         * lib/gl_set.h (gl_set_free): Likewise.
757         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
758         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
759         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
760         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
762 2018-12-03  Bruno Haible  <bruno@clisp.org>
764         hash-set: Add tests.
765         * tests/test-hash_set.c: New file.
766         * modules/hash-set-tests: New file.
768         linkedhash-set: Add tests.
769         * tests/test-linkedhash_set.c: New file.
770         * modules/linkedhash-set-tests: New file.
772         array-set: Add tests.
773         * tests/test-array_set.c: New file.
774         * modules/array-set-tests: New file.
776         xset: New module.
777         * lib/gl_xset.h: New file.
778         * lib/gl_xset.c: New file.
779         * modules/xset: New file.
781         hash-set: New module.
782         * lib/gl_hash_set.h: New file.
783         * lib/gl_hash_set.c: New file.
784         * modules/hash-set: New file.
786         linkedhash-set: New module.
787         * lib/gl_linkedhash_set.h: New file.
788         * lib/gl_linkedhash_set.c: New file.
789         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
790         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
791         * lib/gl_anyhash_primes.h: New file, extracted from
792         lib/gl_anyhash_list2.h.
793         * lib/gl_anyhash_list2.h: Include it.
794         (primes, next_prime): Remove definitions.
795         * modules/linkedhash-set: New file.
796         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
797         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
798         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
799         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
800         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
801         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
803         array-set: New module.
804         * lib/gl_array_set.h: New file.
805         * lib/gl_array_set.c: New file.
806         * modules/array-set: New file.
808         set: New module.
809         * lib/gl_set.h: New file.
810         * lib/gl_set.c: New file.
811         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
812         gl_set.h.
813         * modules/set: New file.
815 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
817         bison: don't force the Yacc mode
818         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
819         errors when Bison features are used in the grammar file.  Some of
820         these features (such as %expect) were flagged non-yacc recently.  Most
821         of the time, -y is actually used to please Automake's ylwrap which
822         expects the output to be y.tab.c.
823         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
825 2018-12-01  Bruno Haible  <bruno@clisp.org>
827         gnupload: Document short options.
828         * build-aux/gnupload (usage): Document the short options.
830 2018-11-28  Ben Elliston  <bje@gnu.org>
832         gnupload: Support option -h as alias of --help.
833         * build-aux/gnupload: Support -h.
835 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
837         memrchr: port better to clang
838         * lib/memrchr.c (__memrchr): Cast to void * instead of to
839         longword *, to pacify clang -Wcast-align (Bug#33544).
841 2018-11-29  Eric Blake  <eblake@redhat.com>
843         docs: mention printf %m considerations
844         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
845         is not portable, and is easy enough to work around.
846         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
847         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
848         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
849         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
850         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
851         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
852         * doc/posix-functions/printf.texi (printf): Likewise.
853         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
854         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
855         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
856         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
857         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
858         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
859         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
860         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
861         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
862         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
863         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
864         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
866 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
868         bitset: rename ebitset/expandable.* as tbitset/table.*
869         See
870         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
871         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
872         * lib/bitset/table.h, lib/bitset/table.c: these.
873         Rename all the ebitset* symbols as tbitset*.
874         Adjust dependencies.
876 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
878         bitset: check the operations
879         * tests/test-bitset.c (bitset_random): New.
880         Use it.
881         * lib/bitset/expandable.c (ebitset_not): Fix typo.
883 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
885         bitset: properly use false/true instead of 0/1 for Booleans
886         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
887         0/1, as Booleans.
889 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
891         bitset: rename BITSET_VARRAY as BITSET_VECTOR
892         For consistency with the name of the file.
893         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
894         * lib/bitset/stats.c, lib/bitset/vector.c
895         (BITSET_VARRAY): Rename as...
896         (BITSET_VECTOR): this.
898 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
900         strerror_r-posix: memmove, not memcpy
901         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
902         since the source and destination might overlap in the call
903         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
904         Simplify.
906 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
908         bitsetv: new module
909         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
911 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
913         bitset: add tests and doc
914         First stabs at providing a documentation and test for the bitset
915         module.
916         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
918 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
920         bitset: new module
921         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
922         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
923         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
924         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
925         * lib/bitset/vector.h, modules/bitset:
926         New.
928 2018-11-23  Bruno Haible  <bruno@clisp.org>
930         localename: Fix gettext test failures on mingw.
931         * lib/localename.c (gl_locale_name_posix): Convert the result of
932         gl_locale_name_environ to XPG syntax.
934 2018-11-23  Karl Berry  <karl@freefriends.org>
936         * config/srclistvars.txt,
937         * config/srclist.txt: remove all gettext references;
938         the gettext maintainers will sync as needed.
940 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
942         mktime: add libc-config dependency
943         I missed this when we synced from glibc.
944         * modules/mktime (Depends-on): Add libc-config.
946 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
948         longlong: fix comment typo
949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
951 2018-11-11  Bruno Haible  <bruno@clisp.org>
953         havelib: Remove the need to include asm-underscore.m4.
954         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
955         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
956         gl_HOST_CPU_C_ABI.
957         * modules/havelib (Files): Add host-cpu-c-abi.m4.
958         (Depends-on): Remove host-cpu-c-abi.
960 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
962         parse-datetime: simplify test for mktime failure
963         * lib/parse-datetime.y (mktime_ok): Simplify.
964         Remove args TZ and T; no longer needed.  Callers changed.
966         posixtm: simplify test for mktime failure
967         * lib/posixtm.c (posixtime): Simplify.
969         nstrftime: simplify test for mktime failure
970         * lib/nstrftime.c (__strftime_internal): Simplify.
972 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
974         gnulib-common.m4: port _Noreturn to C++
975         Problem reported by Akim Demaille in:
976         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
977         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
978         Merge adjustments from _Noreturn.h and from glibc into the non-C++
979         version.
980         * lib/_Noreturn.h: Match gnulib-common.
982 2018-10-30  Bruno Haible  <bruno@clisp.org>
984         gnu-make: Fix for NetBSD 8 'make'.
985         Reported by Reuben Thomas in
986         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
987         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
988         output, ignoring exit codes.
990 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
992         maintainer-makefile: fix syntax-check rule for "same.h"
993         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
994         for 'same_nameat', too.
996 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
998         havelib: fix nested ‘configure’ chatter
999         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
1000         AC_CACHE_CHECK calls, which resulted in confusing output like
1001         “checking for the common suffixes of directories in the library
1002         search path... checking for 64-bit host... no lib,lib”.
1004         backupfile: tweak for better code
1005         * lib/backupfile.c: Sort include directives, and remove
1006         unnecessary <limits.h> include.
1007         (FALLTHROUGH): New macro, copied from other modules.
1008         (backupfile_internal): Use it to avoid code duplication.
1009         This lets GCC 8.2.1 generate better code by inlining the
1010         call to check_extension.
1012 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1014         backupfile: new dir_fd args
1015         New module opendirat with code taken from fts.
1016         Use this module to let backupfile use a directory file descriptor.
1017         * NEWS: Document the incompatible change.
1018         * lib/backup-find.c (find_backup_file_name):
1019         * lib/backup-rename.c (backup_file_rename):
1020         New arg DIR_FD.
1021         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
1022         (SIZE_MAX): Remove.
1023         Include opendirat.h rather than dirent--.h.
1024         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
1025         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
1026         (backupfile_internal): New arg DIR_FD.  All callers changed.
1027         * lib/fts.c: Include opendirat.h.
1028         (opendirat): Move to opendirat.c.
1029         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
1030         * modules/backupfile (Depends-on): Remove dirfd, opendir.
1031         Add opendirat.
1032         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
1033         Add opendirat.
1035 2018-10-23  Bruno Haible  <bruno@clisp.org>
1037         localename: Simplify support for per-thread locales on Solaris 11.4.
1038         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
1039         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
1040         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
1041         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
1042         specific code.
1043         * lib/localename-table.h: Update comments.
1044         * lib/localename-table.c: Update comments.
1045         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
1046         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
1047         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
1048         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
1049         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
1050         HAVE_NAMELESS_LOCALES here.
1051         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
1052         m4/intlsolaris.m4.
1053         * modules/gettext (Files): Likewise.
1055 2018-10-22  Bruno Haible  <bruno@clisp.org>
1057         std-gnu11: Support Autoconf versions < 2.64.
1058         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
1059         when _AC_DO_LIMIT does not exist.
1061 2018-10-22  Bruno Haible  <bruno@clisp.org>
1063         Assume Autoconf >= 2.63.
1064         * DEPENDENCIES: Mention the requirement.
1066         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
1067         (func_get_filelist): Don't list m4/onceonly.m4 any more.
1068         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
1069         * m4/onceonly.m4: Remove file.
1071         * m4/openmp.m4: Remove file.
1072         * modules/openmp (Files): Remove m4/openmp.m4.
1074         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
1075         htmldir, dvidir, pdfdir, psdir, localedir.
1076         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
1078         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
1079         Autoconf < 2.60.
1080         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
1081         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
1083         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
1084         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
1085         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
1087         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
1088         exists.
1089         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
1091         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
1092         Autoconf < 2.61.
1094         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
1095         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
1096         Autoconf >= 2.52.
1098         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
1099         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
1100         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
1102 2018-10-22  Bruno Haible  <bruno@clisp.org>
1104         Assume Automake >= 1.11.
1105         * m4/configmake.m4: Update comments.
1106         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1107         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1108         of 'eval'.
1109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1110         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1111         requires Automake >= 1.11.
1113 2018-10-22  Bruno Haible  <bruno@clisp.org>
1115         localename: Fix typo in comment.
1116         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1118 2018-10-22  Bruno Haible  <bruno@clisp.org>
1120         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1121         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1123 2018-10-21  Bruno Haible  <bruno@clisp.org>
1125         locale: Ease integration with GNU libintl.
1126         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1127         GNULIB_defined_freelocale): New macros.
1129 2018-10-21  Bruno Haible  <bruno@clisp.org>
1131         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1132         * lib/localename-table.h: New file, extracted from lib/localename.c.
1133         * lib/localename-table.c: Likewise.
1134         * lib/localename.c: Include localename-table.h.
1135         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1136         locale_hash_function instead of pointer_hash.
1137         * modules/localename (Files): Add lib/localename-table.h,
1138         lib/localename-table.c.
1139         (lib_SOURCES): Add localename-table.c.
1140         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1141         for Solaris 11.4 locale system only on Solaris. Test for it
1142         independently whether getlocalename_l exists.
1143         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1144         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1145         HAVE_NAMELESS_LOCALES.
1146         * modules/gettext (Files): Add m4/intlsolaris.m4.
1148 2018-10-21  Bruno Haible  <bruno@clisp.org>
1150         Small update from gettext.
1151         * m4/intl.m4: Update from gettext:
1152         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1153         mode on AIX.
1154         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1155         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1157 2018-10-16  Bruno Haible  <bruno@clisp.org>
1159         mountlist: Remove support for Cray with UNICOS 9.
1160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1161         MOUNTED_LISTMNTENT.
1162         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1164 2018-10-16  Bruno Haible  <bruno@clisp.org>
1166         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1168         STAT_STATFS2_FS_DATA.
1169         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1171         MOUNTED_GETMNT.
1172         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1173         * lib/getloadavg.c (decstation): Remove definition and case.
1174         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1175         * lib/getgroups.c: Likewise.
1176         * doc/posix-functions/getgroups.texi: Likewise.
1177         * lib/time.in.h: Update comments.
1179 2018-10-16  Bruno Haible  <bruno@clisp.org>
1181         getloadavg: Remove support for ConvexOS.
1182         * lib/getloadavg.c: Remove convex case.
1184 2018-10-16  Bruno Haible  <bruno@clisp.org>
1186         getloadavg: Remove support for Sony NEWS.
1187         * lib/getloadavg.c: Remove sony_news case.
1189 2018-10-16  Bruno Haible  <bruno@clisp.org>
1191         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1192         * lib/fsusage.c: Remove _SEQUENT_ case.
1193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1194         * lib/mountlist.c: Don't test for MNTTABNAME.
1195         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1196         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1197         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1198         * lib/stat-size.h: Don't mention the Sequent bug.
1199         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1201 2018-10-16  Bruno Haible  <bruno@clisp.org>
1203         fsusage: Remove support for AIX 3.
1204         * lib/fsusage.c: Remove code for AIX 3.
1205         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1207 2018-10-16  Bruno Haible  <bruno@clisp.org>
1209         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1210         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1211         * lib/fsusage.c: Remove code for AIX PS/2.
1212         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1213         * lib/getloadavg.c: Likewise.
1215 2018-10-16  Bruno Haible  <bruno@clisp.org>
1217         getloadavg: Remove support for HP-UX on m68k.
1218         * lib/getloadavg.c: Remove hp9000s300 case.
1220 2018-10-16  Bruno Haible  <bruno@clisp.org>
1222         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1223         * lib/fsusage.c: Remove DOLPHIN case.
1224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1225         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1227 2018-10-16  Bruno Haible  <bruno@clisp.org>
1229         getloadavg: Remove support for Alliant FX/2800.
1230         * lib/getloadavg.c: Remove alliant case.
1232 2018-10-16  Bruno Haible  <bruno@clisp.org>
1234         getloadavg: Remove support for tek4300.
1235         * lib/getloadavg.c: Remove tek4300 case.
1237 2018-10-16  Bruno Haible  <bruno@clisp.org>
1239         getloadavg: Remove support for Ardent.
1240         * lib/getloadavg.c: Remove ardent case.
1242 2018-10-16  Bruno Haible  <bruno@clisp.org>
1244         mountlist: Remove support for SVR2.
1245         Reported by Andrew Borodin <aborodin@vmail.ru> in
1246         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1247         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1249         MOUNTED_FREAD.
1251 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1253         libc-config: merge from glibc
1254         * lib/cdefs.h (__glibc_has_attribute): New macro.
1256         regex: depend on libc-config
1257         * modules/regex (Depends-on): Add libc-config.
1258         This is needed after the recent autoupdate from glibc.
1260 2018-10-14  Bruno Haible  <bruno@clisp.org>
1262         localename: Add support for per-thread locales on Solaris 11.4.
1263         * lib/locale.in.h (newlocale, freelocale): New declarations.
1264         (duplocale): Declare also when the 'localename' module requests it.
1265         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1266         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1267         (struniq): Update.
1268         (struct locale_categories_names, struct locale_hash_node): New types.
1269         (LOCALE_HASH_TABLE_SIZE): New constant.
1270         (locale_hash_table, locale_lock): New variables.
1271         (pointer_hash, get_locale_t_name): New functions.
1272         (newlocale, duplocale, freelocale): New overridden functions.
1273         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1274         * m4/intlsolaris.m4: New file.
1275         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1276         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1277         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1278         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1279         declared.
1280         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1281         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1282         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1283         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1284         * modules/localename (Files): Add intlsolaris.m4.
1285         (Depends-on): Add 'locale'.
1286         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1287         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1288         the signatures.
1290 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1292         timevar: use gethrxtime to get wall clock time
1293         clock_gettime is not portable.  gethrxtime takes the best available
1294         option to get the wall clock time, including clock_gettime (monotonic
1295         clock), and gettime (non monotonic).
1296         Also, using xtime_t instead of float preserves the precision.
1297         Suggested by Bruno Haible.
1298         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1299         * modules/timevar (Depends-on): We need gethrxtime.
1300         We no longer use times().
1301         (Link): Update.
1302         * lib/timevar.h (timevar_time_def): Use xtime_t.
1303         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1304         (timevar_print): Instead of checking whether the timings themselves
1305         are large enough for the timevar to be printed, check the percentages.
1307 2018-10-14  Bruno Haible  <bruno@clisp.org>
1309         wcsnrtombs: Work around Solaris 11.4 bug.
1310         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1311         macro.
1312         (gl_FUNC_WCSNRTOMBS): Invoke it.
1313         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1315 2018-10-14  Bruno Haible  <bruno@clisp.org>
1317         mbsnrtowcs: Work around Solaris 11.4 bug.
1318         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1319         macro.
1320         (gl_FUNC_MBSNRTOWCS): Invoke it.
1321         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1323 2018-10-14  Bruno Haible  <bruno@clisp.org>
1325         doc: Update for Solaris 11.4.
1326         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1327         mention Solaris 11.4.
1328         * m4/printf.m4: Update comments about Solaris.
1329         * m4/log.m4: Likewise.
1330         * m4/log10.m4: Likewise.
1331         * m4/logb.m4: Likewise.
1332         * m4/logbf.m4: Likewise.
1333         * m4/logbl.m4: Likewise.
1334         * m4/rename.m4: Likewise.
1335         * m4/wcrtomb.m4: Likewise.
1336         * m4/hostent.m4: Likewise.
1337         * m4/servent.m4: Likewise.
1339 2018-10-14  Bruno Haible  <bruno@clisp.org>
1341         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1342         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1343         pointer.
1344         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1345         pointer.
1346         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1347         pointer.
1348         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1349         pointer.
1350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1351         pointer.
1353 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1355         bootstrap: fix wget command for po files.
1356         * build-aux/bootstrap (po_download_command_format): Fix comment,
1357         and adjust callers.
1359 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1361         timevar: improve the output format
1362         Suggested by Bruno Haible.
1363         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1364         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1365         wall, since its resolution is much higher.
1367 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1369         timevar: expect that getrusage is available.
1370         Don't keep both times and getrusage as backend: both are guaranteed by
1371         gnulib, a single one suffices.  Using getrusage is open to possibly
1372         tracking other types of resources in the future.
1373         * modules/timevar (Depends-on): Add getrusage.
1374         (configure.ac): Remove gl_TIMEVAR.
1375         (Files): Remove m4/timevar.m4.
1376         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1377         * lib/timevar.h (timevar_enabled): Clarify documentation.
1378         * lib/timevar.c: Remove all the code about times.
1379         Remove all the CPP guards about getrusage: expect it to be present
1380         (courtesy of gnulib).
1382 2018-10-12  Bruno Haible  <bruno@clisp.org>
1384         mountlist: Improve support for Solaris in 64-bit mode.
1385         Reported by David Wood <David.Wood@deshaw.com> in
1386         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1388         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1389         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1391 2018-10-12  Bruno Haible  <bruno@clisp.org>
1393         mountlist: Add support for Minix.
1394         Reported by Assaf Gordon in
1395         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1396         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1397         AC_CHECK_FUNCS to check for 'getmntinfo'.
1398         * lib/mountlist.c: Update comments.
1400 2018-10-12  Bruno Haible  <bruno@clisp.org>
1402         Make better use of Autoconf.
1403         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1404         * m4/manywarnings.m4: Likewise.
1405         * m4/manywarnings-c++.m4: Likewise.
1406         * m4/socklen.m4: Likewise.
1407         * m4/sockpfaf.m4: Likewise.
1408         * m4/stdarg.m4: Likewise.
1409         * m4/visibility.m4: Likewise.
1410         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1411         indentation.
1412         * m4/ls-mntd-fs.m4: Likewise.
1414 2018-10-11  Bruno Haible  <bruno@clisp.org>
1416         mountlist: Modernize platform lists.
1417         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1418         platforms, deemphasizing the obsolete ones.
1419         * lib/mountlist.c: Likewise.
1421 2018-10-11  Bruno Haible  <bruno@clisp.org>
1423         getprogname: Add support for 32-bit programs on HP-UX.
1424         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1425         try the similar functions 32-bit programs on 64-bit HP-UX.
1427 2018-10-11  Bruno Haible  <bruno@clisp.org>
1429         getprogname: Work around program name truncation when possible.
1430         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1431         possibly use pst_cmd instead.
1433 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1435         fts: cleanup after FTS_NOATIME removal
1436         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1437         (FTS_STOP): Shrink to minimal values.  We don’t need to
1438         worry about binary compatibility in Gnulib, and the old way
1439         of doing things had a hole in the user options that caused
1440         FTS_OPTIONMASK to not work as desired.
1442 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1444         fts: remove FTS_NOATIME
1445         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1446         We cannot guarantee that O_NOATIME works: e.g. openat fails
1447         with EPERM if the effective user ID of the caller does not match
1448         the owner of the file and the caller is not privileged.
1449         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1450         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1451         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1452         (FTS_OPTIONMASK): Adjust.
1453         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1454         (fd_ring_check): Likewise.
1456 2018-10-08  Bruno Haible  <bruno@clisp.org>
1458         csharpcomp*, csharpexec*: Remove support for pnet.
1459         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1460         HAVE_CSCC.
1461         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1462         Don't test HAVE_CSCC.
1463         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1464         (compile_csharp_class): Don't invoke it.
1465         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1466         HAVE_ILRUN.
1467         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1468         Don't test HAVE_ILRUN.
1469         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1470         (execute_csharp_program): Don't invoke it.
1471         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1472         any more.
1474 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1476         renameatu: prefer renameat2 to syscall
1477         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1478         Use renameat2 instead of syscall (Bug#32796).
1479         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1481 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1483         bootstrap, gnulib-tool: use https instead of insecure rsync
1484         * build-aux/bootstrap (download_po_files, po_download_command_format):
1485         Don't try using rsync; always use wget over https to fetch PO files.
1486         * gnulib-tool (func_import): Likewise.
1487         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1489 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1491         bootstrap, gnulib-tool: correct the translations wget command
1492         * build-aux/bootstrap (po_download_command_format2): Restrict
1493         recursion to a single level.
1494         * gnulib-tool (func_import): Likewise.
1495         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1497 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1499         doc: the gnulib snapshots are not maintained
1500         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1502 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1504         timevar: add to lib_SOURCES
1505         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1507 2018-10-07  Bruno Haible  <bruno@clisp.org>
1509         dirent: Update documentation.
1510         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1512 2018-10-05  Bruno Haible  <bruno@clisp.org>
1514         strpbrk: Make it possible to namespace the defined symbol.
1515         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1517 2018-10-05  Bruno Haible  <bruno@clisp.org>
1519         strcspn: Make it possible to namespace the defined symbol.
1520         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1522 2018-10-05  Bruno Haible  <bruno@clisp.org>
1524         raise: Make it possible to namespace the defined symbol.
1525         * lib/raise.c (raise): Undefine only after the replacement function has
1526         been defined.
1527         (raise): Renamed from rpl_raise.
1528         (raise_nothrow): Move to the end of the compilation unit.
1530 2018-10-05  Bruno Haible  <bruno@clisp.org>
1532         memcmp: Make it possible to namespace the defined symbol.
1533         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1535 2018-10-05  Bruno Haible  <bruno@clisp.org>
1537         explicit_bzero: Make it possible to namespace the defined symbol.
1538         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1539         glibc.
1541 2018-10-05  Bruno Haible  <bruno@clisp.org>
1543         mkdir-p: Depend on 'mkdir'.
1544         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1546 2018-10-05  Bruno Haible  <bruno@clisp.org>
1548         tempname: Depend on 'mkdir'.
1549         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1550         at <https://savannah.gnu.org/bugs/?33379>.
1551         * modules/tempname (Depends-on): Add 'mkdir'.
1553 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1555         timevar: rely on gnulib modules for time portability.
1556         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1557         * m4/timevar.m4: Don't check for clock_t and struct tms,
1558         guaranteed by gnulib.
1559         * lib/timevar.h: Use extern "C" protection.
1560         Include <stdio.h> for FILE.
1561         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1562         they are guaranteed by gnulib.
1563         Remove uses of clock as (now useless) fallback.
1565 2018-10-04  Bruno Haible  <bruno@clisp.org>
1567         sh-filename: New module.
1568         * m4/sh-filename.m4: New file.
1569         * modules/sh-filename: New file.
1570         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1571         "/bin/sh".
1572         * tests/test-posix_spawn1.c (main): Likewise.
1573         * tests/test-posix_spawn2.c (main): Likewise.
1574         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1575         is_envjavac_gcj43): Likewise.
1576         * lib/javaexec.c (execute_java_class): Likewise.
1577         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1578         * modules/posix_spawnp-tests (Depends-on): Likewise.
1579         * modules/javacomp (Depends-on): Likewise.
1580         * modules/javaexec (Depends-on): Likewise.
1582 2018-10-04  Bruno Haible  <bruno@clisp.org>
1584         spawn-pipe tests: Avoid test failure on native Windows.
1585         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1586         that fd 2 is closed.
1588 2018-10-04  Bruno Haible  <bruno@clisp.org>
1590         fcntl: Make it possible to namespace the defined symbol.
1591         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1592         been defined.
1593         (fcntl): Renamed from rpl_fcntl.
1594         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1595         from fcntl.
1596         (klibc_fcntl): Move to the end of the compilation unit.
1598 2018-10-02  Bruno Haible  <bruno@clisp.org>
1600         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1601         * tests/test-vasnprintf.c (test_function): Change the test added on
1602         2018-09-23 to check only the 18 most significant digits.
1604         vasnprintf tests: Avoid test failure on Cygwin.
1605         * tests/test-vasnprintf.c (test_function): Change the test added on
1606         2018-09-23 to check only the 42 most significant digits.
1608 2018-10-01  Bruno Haible  <bruno@clisp.org>
1610         mkostemp, mkostemps: Update documentation.
1611         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1612         * doc/glibc-functions/mkostemps.texi: Likewise.
1614 2018-10-01  Tom Tromey  <tom@tromey.com>
1616         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1617         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1618         on OS X.
1620 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1622         hmac-*: refactor to remove repetitive code
1623         * lib/hmac.c: A new parameterized single implementation.
1624         * lib/hmac-md5.c: Define parameters and include implementation.
1625         * lib/hmac-sha1.c: Likewise.
1626         * lib/hmac-sha256.c: Likewise.
1627         * lib/hmac-sha512.c: Likewise.
1628         * modules/crypto/hmac-md5: Reference the new implementation file.
1629         * modules/crypto/hmac-sha1: Likewise.
1630         * modules/crypto/hmac-sha256: Likewise.
1631         * modules/crypto/hmac-sha512: Likewise.
1632         * tests/test-hmac-md5.c: Refactor common code to a single function.
1633         * tests/test-hmac-sha1.c: Likewise.
1634         * tests/test-hmac-sha256.c: Likewise.
1635         * tests/test-hmac-sha512.c: Likewise.
1637 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1639         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1640         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1641         key length to that output by sha512, not the blocksize.
1642         Otherwise uninitialized data from the stack
1643         is used when computing the hash.
1644         * tests/test-hmac-sha512.c: Add a shortened key test case.
1645         Reported at https://github.com/coreutils/gnulib/pull/5
1647 2018-09-30  Bruno Haible  <bruno@clisp.org>
1649         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1650         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1651         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1652         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1653         'unsigned int' before comparison with an unsigned value.
1655 2018-09-30  Bruno Haible  <bruno@clisp.org>
1657         grantpt: Remove unnecessary dependency.
1658         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1660 2018-09-30  Bruno Haible  <bruno@clisp.org>
1662         timevar: Small tweaks.
1663         * lib/timevar.h: Fix comments. Add parameter names to function
1664         declarations.
1665         * lib/timevar.c: Include timevar.h immediately after config.h.
1666         * lib/timevar.def: Fix comments.
1667         * modules/timevar (Maintainer): List Akim Demaille.
1669 2018-09-30  Bruno Haible  <bruno@clisp.org>
1671         timevar: Include documentation in gnulib manual.
1672         * doc/timevar.texi: Change node and section name to 'Profiling of
1673         program phases'.
1674         In the code snippets, tweak the #includes and use GNU coding style.
1675         * doc/gnulib.texi: Include timevar.texi.
1677 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1679         timevar: import from Bison.
1680         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1681         New files.
1682         * lib/timevar.def: New file.
1683         * doc/timevar.texi: New file.
1685 2018-09-26  Bruno Haible  <bruno@clisp.org>
1687         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1688         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1689         * lib/javacomp.c (default_target_version): Likewise.
1691 2018-09-26  Bruno Haible  <bruno@clisp.org>
1693         javacomp-script, javacomp: Add support for Java 11.
1694         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1695         target-version 11.
1696         * lib/javaversion.h: Update comments.
1697         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1698         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1699         TARGET_VERSION_BOUND, target_version_index,
1700         corresponding_classfile_version): Accept source_version 11 and
1701         target_version 11.
1702         * lib/javacomp.h: Update comments accordingly.
1704 2018-09-23  Bruno Haible  <bruno@clisp.org>
1706         vasnprintf: Fix heap memory overrun bug.
1707         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1708         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1709         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1710         memory.
1711         * tests/test-vasnprintf.c (test_function): Add another test.
1713 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1715         maint: mktime.c now shared with glibc
1716         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1717         are now the same in Gnulib and glibc.
1719         mktime: fix _LIBC typo
1720         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1722 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1724         dfa: optimization for state merge
1725         * lib/dfa.c (merge2): New function.
1726         (merge_nfa_state): Use it.
1728 2018-09-18  Jim Meyering  <meyering@fb.com>
1730         dfa: trivial comment fix: s/is/if/
1731         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1733 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1735         dfa: use more-informative function name
1736         * lib/dfa.c (maybe_disable_superset_dfa):
1737         Rename from dfautf8noss.  Use change.
1739         dfa: tweak allocation performance
1740         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1741         Prefer ptrdiff_t for indexes some more.
1742         Use char for flags, as it’s wide enough.
1743         Allocate queue and flags together, with one malloc call.
1744         No need to use xnmalloc since the multiplication and
1745         addition cannot overflow (it’s already been checked by
1746         earlier allocation).  Prefer memset to open-coding.
1748         dfa: prune states as we go
1749         * lib/dfa.c (prune): Remove.
1750         dfa: reorder enum for efficiency
1751         (merge_nfa_state): Prune as we go instead of at the end.
1752         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1754         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1755         of the enumeration to make it easier for GCC to generate
1756         efficient code by using fewer comparisons to check for
1757         ranges of values.
1758         (atom): Take advantage of the reordering.
1760 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1762         dfa: optimize alternation in NFA
1763         Even when similar states exist in alternation, the DFA treats them
1764         as separate items, which may complicate the transition in NFA and
1765         cause slowdown.  This change assembles the states into one.  For
1766         example, ab|ac is changed into a(b|c).  This change speeds-up
1767         matching for many branched patterns.  For example, grep speeds up
1768         more than 30× in:
1770           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1771           time -p env LC_ALL=C grep -vf in in
1773         * lib/dfa.c (prune): New function.
1774         (merge_nfa_state): New function.  It merges similar NFA states.
1775         (dfaoptimize): New function.  It seeks merged and removed nodes.
1776         (dfaanalyze): Call new function.
1777         (dfautf8noss): Change name from dfaoptimize because of addition of new
1778         function.
1779         (dfacomp): Update caller.
1781         dfa: simplify initial state
1782         Simplifying the initial state enables easier optimization of the NFA.
1783         * lib/dfa.c (enum token): Add new element BEG.
1784         (prtok): Adjust due to adding element BEG.
1785         (dfaparse): Put BEG at a head of tokens.
1786         (state_index): Adjust due to adding element BEG.
1787         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1788         build initial state.
1789         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1791 2018-09-18  Bruno Haible  <bruno@clisp.org>
1793         file-has-acl: Fix test failure on Cygwin 2.9.
1794         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1795         * lib/acl-internal.h: Likewise.
1796         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1797         * lib/acl-internal.c: Update comments regarding Cygwin.
1798         * lib/acl_entries.c: Likewise.
1799         * lib/file-has-acl.c: Likewise.
1800         (file_has_acl): For Cygwin, use a different way to determine whether
1801         the "default" ACL of a directory is nontrivial.
1802         * lib/get-permissions.c: Update comments regarding Cygwin.
1803         * lib/set-permissions.c: Likewise.
1805 2018-09-18  Bruno Haible  <bruno@clisp.org>
1807         stat-time tests: Fix test failure on Cygwin.
1808         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1810 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1812         doc: OS X 10.11 lacked ns time functions
1813         According to <https://github.com/zeromq/libzmq/issues/2175>,
1814         nanosecond-resolution timestamp functions were introduced
1815         in macOS 10.12, so document the last version (OS X 10.11)
1816         where they were absent.
1818         gettime: nanotime never existed
1819         Problem reported by Bruno Haible in:
1820         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1821         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1822         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1824 2018-09-18  Bruno Haible  <bruno@clisp.org>
1826         doc: Update statement about target platforms.
1827         Reported by Simon Sobisch.
1828         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1829         restrictions on MSVC versions.
1831 2018-09-18  Bruno Haible  <bruno@clisp.org>
1833         posix_spawn tests: Fix link error on 64-bit Cygwin.
1834         * tests/test-posix_spawn1.c (environ): Remove declaration.
1835         * tests/test-posix_spawn2.c (environ): Likewise.
1836         * tests/test-posix_spawn3.c (environ): Likewise.
1837         * tests/test-posix_spawn4.c (environ): Likewise.
1838         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1839         * modules/posix_spawnp-tests (Depends-on): Likewise.
1841 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1843         timespec: new function current_timespec
1844         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1845         and don’t worry about it failing on a CLOCK_REALTIME arg.
1846         POSIX requires it to succeed and I don’t know of any
1847         counterexamples where the fallbacks would work.
1848         (current_timespec): New function, taken from Emacs.  It is more
1849         convenient than gettime, and can help register allocation.
1850         * lib/timespec.h: Include arg-nonnull.h.
1851         (current_timespec): New declaration.
1852         (gettime, settime): Declare args to be nonnull.
1853         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1855 2018-09-16  Bruno Haible  <bruno@clisp.org>
1857         setlocale: Improve locale handling on macOS 10.12 or newer.
1858         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1859         gl_locale_name_canonicalize.
1860         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1861         and LC_MESSAGES.
1862         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1864 2018-09-16  Bruno Haible  <bruno@clisp.org>
1866         Update list of locale names with scripts on macOS.
1867         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1868         match Mac OS X 10.13 and recent glibc.
1870 2018-09-16  Bruno Haible  <bruno@clisp.org>
1872         gettext: Use newer macOS APIs when possible.
1873         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1874         CFLocaleCopyPreferredLanguages.
1876 2018-09-16  Bruno Haible  <bruno@clisp.org>
1878         localename: Revisit macOS specific code.
1879         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1880         Fix comments about Mac OS X versions.
1882 2018-09-15  Bruno Haible  <bruno@clisp.org>
1884         setlocale: Improve support for locales not supported by libc.
1885         Reported by Dapeng Gao <peter@dpgao.cc> at
1886         <https://savannah.gnu.org/bugs/?54479>.
1887         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1888         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1889         to be set is not supported by libc: Emit warnings instead of failing.
1891 2018-09-15  Bruno Haible  <bruno@clisp.org>
1893         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1894         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1895         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1896         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1898         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1899         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1900         * doc/glibc-functions/strcasestr.texi: Likewise.
1902 2018-09-14  Bruno Haible  <bruno@clisp.org>
1904         doc: Fix bottom of top-level page.
1905         Reported by Akim Demaille <akim.demaille@gmail.com> in
1906         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1907         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1908         mode.
1909         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1910         accordingly.
1912 2018-09-12  Bruno Haible  <bruno@clisp.org>
1914         Add test case from a recent glibc bug.
1915         * tests/test-strstr.c (main): Add test of long needle.
1916         * tests/test-strcasestr.c (main): Likewise.
1917         * tests/test-c-strstr.c (main): Likewise.
1918         * tests/test-c-strcasestr.c (main): Likewise.
1919         * tests/test-memmem.c (main): Likewise.
1921 2018-09-12  Bruno Haible  <bruno@clisp.org>
1923         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1924         * tests/test-c-strstr.c (main): Add the same tests here as well.
1926 2018-09-12  Bruno Haible  <bruno@clisp.org>
1928         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1929         * tests/test-memmem.c (main): Free haystack.
1930         * tests/test-strcasestr.c (main): Likewise.
1931         * tests/test-c-strcasestr.c (main): Likewise.
1933 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1935         xstrtol: fix missing-TYPE_SIGNED typo
1936         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1938 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1940         timespec: fix resolution confusion
1941         In normal usage, clock resolution is given in seconds, but the
1942         code was mistakenly using inverse seconds and calling it
1943         “resolution”.  Fix this, partly by renaming two identifiers.
1944         The old names will be kept for a bit, to ease transition.
1945         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1946         New constants, replacing TIMESPEC_RESOLUTION and
1947         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1948         All uses changed.
1950 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1952         mktime: simplify in prep for glibc merge
1953         * lib/mktime.c, lib/timegm.c [_LIBC]:
1954         Include mktime-internal.h (a small file just for glibc)
1955         instead of using a typedef.
1957 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1959         intprops: minor clarification of code
1960         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1961         Use _GL_INT_CONVERT rather than reinventing it.
1963 2018-09-07  Bruno Haible  <bruno@clisp.org>
1965         Fix a comment.
1966         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1968 2018-09-07  Bruno Haible  <bruno@clisp.org>
1970         posix_spawn_file_actions_addchdir: Add tests.
1971         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1972         * tests/test-posix_spawn4.c: New file.
1973         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1975 2018-09-07  Bruno Haible  <bruno@clisp.org>
1977         posix_spawn_file_actions_addchdir: New module.
1978         Suggested by Eric Blake in
1979         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1980         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1981         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1982         union member 'chdir_action'.
1983         * lib/spawn_faction_addchdir.c: New file.
1984         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1985         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1986         HAVE_WORKING_POSIX_SPAWN.
1987         * lib/spawn_faction_adddup2.c: Likewise.
1988         * lib/spawn_faction_addopen.c: Likewise.
1989         * m4/posix_spawn_faction_addchdir.m4: New file.
1990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1991         'posix_spawn_file_actions_addchdir' is present and whether
1992         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1993         instead of HAVE_WORKING_POSIX_SPAWN.
1994         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1995         posix_spawn_file_actions_addchdir is declared.
1996         (gl_SPAWN_H_DEFAULTS): Initialize
1997         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1998         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2000         * modules/spawn (Makefile.am): Substitute
2001         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2002         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2004         * modules/posix_spawn_file_actions_addchdir: New file.
2005         * modules/posix_spawn_file_actions_addclose (Depends-on,
2006         configure.ac): Test also REPLACE_POSIX_SPAWN.
2007         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
2008         configure.ac): Likewise.
2009         * modules/posix_spawn_file_actions_addopen (Depends-on,
2010         configure.ac): Likewise.
2011         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
2012         signature.
2013         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2014         * doc/posix-functions/posix_spawnp.texi: Likewise.
2016 2018-09-06  Bruno Haible  <bruno@clisp.org>
2018         stddef: Override max_align_t on NetBSD 8.0/x86.
2019         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
2020         the value of __alignof__ (max_align_t).
2021         * doc/posix-headers/stddef.texi: Mention the issue.
2023 2018-09-06  Bruno Haible  <bruno@clisp.org>
2025         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
2026         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
2027         system fcntl.
2028         * doc/posix-functions/fcntl.texi: Document the issue.
2030 2018-09-06  Bruno Haible  <bruno@clisp.org>
2032         count-trailing-zeros tests: Rely on limits-h module.
2033         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
2034         definition.
2035         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
2037 2018-09-06  Bruno Haible  <bruno@clisp.org>
2039         count-leading-zeros tests: Rely on limits-h module.
2040         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
2041         definition.
2042         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
2044 2018-09-06  Bruno Haible  <bruno@clisp.org>
2046         count-one-bits tests: Rely on limits-h module.
2047         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
2048         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
2050 2018-09-06  Bruno Haible  <bruno@clisp.org>
2052         xstrtoll: Rely on limits-h module.
2053         * lib/xstrtol.c: Don't include intprops.h.
2054         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2055         * modules/xstrtol (Depends-on): Remove 'intprops'.
2056         * modules/xstrtoll (Depends-on): Add 'limits-h'.
2058 2018-09-06  Bruno Haible  <bruno@clisp.org>
2060         strtoll, strtoull: Rely on limits-h module.
2061         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
2062         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2063         * modules/strtoll (Depends-on): Add limits-h.
2064         * modules/strtoull (Depends-on): Likewise.
2066 2018-09-06  Bruno Haible  <bruno@clisp.org>
2068         intprops tests: Fix compilation error with pre-C99 compiler.
2069         * tests/test-intprops.c (verify_stmt): New macro.
2070         (VERIFY, main): Use it.
2072 2018-09-06  Bruno Haible  <bruno@clisp.org>
2074         limits-h: Provide numerical limits macros.
2075         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
2076         IRIX and for GCC.
2077         (WORD_BIT, LONG_BIT): Define.
2078         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
2079         <limits.h> does not define LLONG_MAX or WORD_BIT.
2080         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
2081         TYPE_MAXIMUM): New macros, from intprops.h.
2082         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
2083         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
2084         provides.
2086 2018-09-05  Bruno Haible  <bruno@clisp.org>
2088         fcntl: Don't access nonexistent optional argument.
2089         Reported by Frank Busse <f.busse@imperial.ac.uk> in
2090         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
2091         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
2092         don't consume an argument. For actions that take an 'int' argument,
2093         consume an 'int' argument.
2095 2018-09-05  Eric Blake  <eblake@redhat.com>
2097         doc: mention environ pitfall
2098         * doc/posix-functions/environ.texi (environ): Assigning NULL to
2099         environ is a glibc extension.
2101 2018-09-03  Bruno Haible  <bruno@clisp.org>
2103         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
2104         Reported by Antoine Luong <antoine.luong@c-s.fr> in
2105         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2106         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2107         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2108         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2110 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2112         mktime: fix unlikely race+overflow bug
2113         Problem reported by Alexandre Oliva in:
2114         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2115         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2116         to avoid an unlikely race if the compiler delays a load and
2117         if this cascades into a signed integer overflow.
2119 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2121         mktime, timegm: simplify glibc time64_t
2122         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2123         Now long int, not time_t, since long int is the longstanding type
2124         for this in glibc and there is no need to change it even if time_t
2125         becomes 64 bits - even int would do, though this would be a change
2126         to the glibc generated code.  When this change is merged into
2127         glibc, it should simplify the time_t vs time64_t situation.
2129         mktime, timegm: simplify merge to glibc
2130         Move code around to make a merge to glibc easier to audit.
2131         This should not change behavior.
2132         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2133         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2134         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2135         simplify later conditionals; default the others to zero.  In uses
2136         of these conditionals, explicitly spell out how _LIBC affects
2137         things, so it’s easier to review from a glibc viewpoint.
2138         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2139         compartmentalize tzset issues.  Move system-dependent tzsettish
2140         code here from mktime.
2141         (mktime): Move tzsettish code to my_tzset, and move
2142         localtime_offset to within mktime so that it doesn’t
2143         need a separate ifdef.
2145 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2147         intprops: avoid evaluation of some expressions
2148         This makes EXPR_SIGNED (e) easier to use, as it no longer
2149         evaluates the expression E.  Formerly, E was required to be free
2150         of side effects.
2151         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2152         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2153         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2155 2018-08-23  Bruno Haible  <bruno@clisp.org>
2157         getcwd: Add cross-compilation guesses.
2158         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2159         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2160         Based on a patch by Paul Eggert.
2161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2162         guesses for all GNU systems.
2164 2018-08-19  Bruno Haible  <bruno@clisp.org>
2166         glob-h: Formalize side effects from other modules.
2167         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2168         * m4/glob.m4 (gl_GLOB): Invoke it.
2170         fnmatch-h: Formalize side effects from other modules.
2171         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2172         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2174         limits-h: Formalize side effects from other modules.
2175         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2176         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2178 2018-08-19  Bruno Haible  <bruno@clisp.org>
2180         getpass: Move declaration to <unistd.h>.
2181         * lib/unistd.in.h (getpass): New declaration.
2182         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2183         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2184         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2185         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2186         On glibc systems, don't set REPLACE_GETPASS to 1.
2187         * modules/getpass (Depends-on): Add 'unistd'.
2188         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2189         (Include): Specify <unistd.h> instead of "getpass.h".
2190         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2191         (configure.ac): Sync with the configure.ac section of modules/getpass.
2192         (Include): Specify <unistd.h> instead of "getpass.h".
2193         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2194         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2195         REPLACE_GETPASS.
2196         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2197         REPLACE_GETPASS.
2198         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2199         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2200         and musl.
2201         * NEWS: Mention the change.
2203 2018-08-19  Bruno Haible  <bruno@clisp.org>
2205         glob: Fix over-optimization due to attribute __nonnull__.
2206         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2208 2018-08-19  Bruno Haible  <bruno@clisp.org>
2210         glob: Fix another compilation error when glob.h is not replaced.
2211         Reported by Reuben Thomas <rrt@sc3d.org> in
2212         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2213         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2214         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2216 2018-08-18  Bruno Haible  <bruno@clisp.org>
2218         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2219         Reported by Reuben Thomas <rrt@sc3d.org> in
2220         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2221         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2222         in config.h.
2224 2018-08-18  Bruno Haible  <bruno@clisp.org>
2226         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2227         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2228         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2229         Solution proposed by Eli Zaretskii.
2230         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2231         * lib/gettimeofday.c (GetProcAddress): Likewise.
2232         * lib/link.c (GetProcAddress): Likewise.
2233         * lib/physmem.c (GetProcAddress): Likewise.
2234         * lib/poll.c (GetProcAddress): Likewise.
2235         * lib/select.c (GetProcAddress): Likewise.
2236         * lib/stat-w32.c (GetProcAddress): Likewise.
2238 2018-08-18  Bruno Haible  <bruno@clisp.org>
2240         glob: Fix another compilation error when glob.h is not replaced.
2241         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2242         * lib/globfree.c: Include <libc-config.h>.
2244 2018-08-18  Bruno Haible  <bruno@clisp.org>
2246         glob: Fix compilation error when glob.h is not replaced.
2247         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2248         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2249         * lib/glob_pattern_p.c: Include <libc-config.h>.
2250         * modules/glob (Depends-on): Add libc-config.
2252 2018-08-18  Bruno Haible  <bruno@clisp.org>
2254         scratch_buffer: Add tests.
2255         * tests/test-scratch-buffer.c: New file.
2256         * modules/scratch_buffer-tests: New file.
2258 2018-08-18  Bruno Haible  <bruno@clisp.org>
2260         scratch_buffer: Fix include file.
2261         Reported by Reuben Thomas <rrt@sc3d.org> in
2262         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2263         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2264         double-inclusion guard.
2266 2018-08-18  Bruno Haible  <bruno@clisp.org>
2268         glob-h: Revert Paul Eggert's revert.
2269         * m4/glob_h.m4: Revert to previous state.
2270         * modules/glob-h: Likewise.
2272 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2274         glob-h: always build glob.h
2275         This works around a problem reported by Reuben Thomas in:
2276         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2277         This workaround always builds glob.h, even on platforms that
2278         do not need it; perhaps this could be improved someday.
2279         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2280         is always created now.
2281         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2283 2018-08-13  Bruno Haible  <bruno@clisp.org>
2285         monetary: Simplify m4 code.
2286         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2287         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2289 2018-08-13  Bruno Haible  <bruno@clisp.org>
2291         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2292         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2293         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2294         and by Paul J. Lucas <paul@lucasmail.org> in
2295         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2296         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2298 2018-08-11  Bruno Haible  <bruno@clisp.org>
2300         setlocale: Trivial simplification.
2301         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2303 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2305         verify: port 'assume' to traditional tools
2306         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2307         and other tools that use /*NOTREACHED*/ comments.
2309 2018-08-10  Bruno Haible  <bruno@clisp.org>
2311         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2312         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2313         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2314         'fnmatch-gnu' is in use.
2316 2018-08-07  Bruno Haible  <bruno@clisp.org>
2318         glob-h: Add tests.
2319         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2320         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2321         tests/test-glob-h.c.
2322         * modules/glob-h-tests: New file.
2323         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2324         conditions.
2325         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2326         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2328 2018-08-07  Bruno Haible  <bruno@clisp.org>
2330         glob-h: New module.
2331         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2332         replacements.
2333         * lib/glob.c: Include <config.h>.
2334         * m4/glob_h.m4: New file.
2335         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2336         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2337         REPLACE_GLOB_PATTERN_P as appropriate.
2338         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2339         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2340         * modules/glob-h: New file.
2341         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2342         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2343         lstat, sys_stat. Change conditions.
2344         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2345         REPLACE_GLOB_PATTERN_P. Set module indicator.
2346         (Makefile.am): Remove code that is moved to glob-h.
2347         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2348         * modules/posixcheck (Depends-on): Add glob-h.
2350 2018-08-06  Bruno Haible  <bruno@clisp.org>
2352         Force generation of substitute .h file when C++ support is enabled.
2353         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2354         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2355         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2356         FNMATCH_H to non-empty.
2357         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2358         ICONV_H to non-empty.
2359         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2360         MONETARY_H to non-empty.
2361         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2362         non-empty.
2364 2018-08-06  Bruno Haible  <bruno@clisp.org>
2366         fnmatch-h: Fix test compilation error on mingw (regression from today).
2367         * lib/fnmatch.in.h: Fix conditions.
2369 2018-08-06  Bruno Haible  <bruno@clisp.org>
2371         sys_resource: Relicense under LGPLv2+.
2372         John Malmberg's approval is in
2373         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2374         * modules/sys_resource (License): Change to LGPLv2+.
2376 2018-08-06  Bruno Haible  <bruno@clisp.org>
2378         fnmatch-h: Add tests.
2379         * tests/test-fnmatch-h.c: New file.
2380         * modules/fnmatch-h-tests: New file.
2381         * tests/test-fnmatch-h-c++.cc: New file.
2382         * modules/fnmatch-h-c++-tests: New file.
2384 2018-08-06  Bruno Haible  <bruno@clisp.org>
2386         fnmatch-h: New module.
2387         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2388         replacements.
2389         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2390         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2391         'posixcheck' warning.
2392         * m4/fnmatch_h.m4: New file.
2393         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2394         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2395         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2396         as appropriate.
2397         * modules/fnmatch-h: New file.
2398         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2399         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2400         conditions.
2401         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2402         indicator.
2403         (Makefile.am): Remove code that is moved to fnmatch-h.
2404         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2405         REPLACE_FNMATCH.
2406         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2407         * modules/posixcheck (Depends-on): Add fnmatch-h.
2409 2018-08-06  Bruno Haible  <bruno@clisp.org>
2411         Enable more C++ tests.
2412         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2413         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2414         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2415         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2416         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2418 2018-08-06  Bruno Haible  <bruno@clisp.org>
2420         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2421         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2422         getopt.h.
2423         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2425 2018-08-05  Bruno Haible  <bruno@clisp.org>
2427         utime-h: Generate header file when module 'posixcheck' is in use.
2428         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2429         UTIME_H to non-empty.
2431 2018-08-05  Bruno Haible  <bruno@clisp.org>
2433         monetary: Generate header file when module 'posixcheck' is in use.
2434         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2435         use, set MONETARY_H to non-empty.
2437 2018-08-05  Bruno Haible  <bruno@clisp.org>
2439         iconv-h: Generate header file when module 'posixcheck' is in use.
2440         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2441         set ICONV_H to non-empty.
2443 2018-08-05  Bruno Haible  <bruno@clisp.org>
2445         Optimize the "checking whether ... is declared without a macro" checks.
2446         Suggested by Paul Eggert in
2447         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2448         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2449         Gnulib module 'posixcheck' is not in use.
2451 2018-08-05  Bruno Haible  <bruno@clisp.org>
2453         iconv-h: Enable 'posixcheck' warnings.
2454         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2455         iconv_open.
2456         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2458 2018-08-05  Bruno Haible  <bruno@clisp.org>
2460         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2461         * m4/extern-inline.m4: Add more comments.
2462         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2463         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2464         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2466 2018-08-04  Bruno Haible  <bruno@clisp.org>
2468         New module 'posixcheck'.
2469         * modules/posixcheck: New file.
2470         * m4/posixcheck.m4: New file.
2471         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2472         (Which modules?): Reference it.
2474 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2476         dfa: fix memory leak
2477         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2479 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2481         ieee754-h: new module
2482         It looks like Emacs can use this for some NaN processing.
2483         Emacs uses it only on double NaNs so it should be safe.
2484         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2485         * config/srclist.txt: Mention ieee754.h in a comment.
2486         * doc/glibc-headers/ieee754.texi (ieee754.h):
2487         Gnulib now has a substitute that should work
2488         except for long double and for non-IEEE platforms.
2489         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2490         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2492 2018-07-27  Bruno Haible  <bruno@clisp.org>
2494         iswcntrl: Mention minor problem on macOS.
2495         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2497 2018-07-26  Colin Watson  <cjwatson@debian.org>
2499         bootstrap, gnulib-tool: fix translations rsync
2500         Previously, we created files such as $pobase/Makefile.in.in and then the
2501         subsequent rsync would immediately delete them.
2502         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2503         non-.po files in target directory when rsyncing translations.
2504         * gnulib-tool (func_import): Likewise.
2505         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2507 2018-07-25  Jim Meyering  <meyering@fb.com>
2509         bootstrap: reinstate definition fo gnulib_mk.
2510         That variable is used at least by cppi.
2511         * build-aux/bootstrap (gnulib_mk): Restore definition.
2512         This reverts the deletion from v0.1-1844-gc66dba9ba.
2514 2018-07-23  Bruno Haible  <bruno@clisp.org>
2516         doc: For module names, use texinfo markup @code{} or @samp{}.
2517         * doc/alloca.texi: Mark gnulib module names with @code.
2518         * doc/alloca-opt.texi: Likewise.
2519         * doc/quote.texi: Likewise.
2520         * doc/posix-functions/freopen.texi: Likewise.
2521         * doc/posix-functions/open.texi: Likewise.
2522         * doc/posix-functions/readlink.texi: Likewise.
2523         * doc/posix-functions/readlinkat.texi: Likewise.
2524         * doc/posix-functions/stdout.texi: Likewise.
2525         * doc/posix-functions/stderr.texi: Likewise.
2526         * doc/posix-functions/unlink.texi: Likewise.
2527         * doc/posix-functions/unlinkat.texi: Likewise.
2528         * doc/posix-functions/utime.texi: Likewise.
2529         * doc/posix-functions/utimensat.texi: Likewise.
2530         * doc/posix-functions/utimes.texi: Likewise.
2531         * doc/posix-headers/stdint.texi: Likewise.
2532         * doc/glibc-functions/futimesat.texi: Likewise.
2533         * doc/glibc-functions/lutimes.texi: Likewise.
2534         * doc/glibc-functions/memmem.texi: Likewise.
2536 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2538         doc: Avoid some overfull lines in the TeX output.
2539         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2540         @example.
2541         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2542         newline before the long URL.
2543         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2544         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2545         Add line breaks in code snippets.
2547 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2549         hard-locale: simplify by removing hard-locale.m4
2550         * m4/hard-locale.m4: Remove.
2551         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2552         (configure.ac): Do not call gl_HARD_LOCALE.
2554         gnulib-tool: limit line length for git send-email
2555         * gnulib-tool (func_import): Break actioncmd log line
2556         into multiple lines.
2558 2018-07-16  Bruno Haible  <bruno@clisp.org>
2560         ffs: Ensure declaration on mingw.
2561         Reported by Daniel P. Berrangé <berrange@redhat.com>
2562         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2563         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2564         also declared.
2566 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2568         regex-tests: add dependency
2569         * modules/regex-tests (Depends-on): Add gettext-h.
2570         This is needed given the recent changes to regex,
2571         which no longer depends on gettext-h.
2573 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2575         regex: now in sync with glibc
2576         * config/srclist.txt: Gnulib and glibc regex code
2577         are synchronized again.
2579 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2581         renameatu: rename from renameat2
2582         It's looking like Glibc will add a renameat2 function
2583         that is incompatible with Gnulib renameat2; see:
2584         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2585         To help avoid future confusion, rename renameat2 to something else.
2586         Use the name 'renameatu', as the Gnulib function is close to the
2587         Glibc function.  Perhaps someday there will also be a renameat2
2588         Gnulib module, which mimicks the future glibc renameat2, but that
2589         can wait as nobody seems to need such a module now.
2590         * NEWS: Mention this.
2591         * lib/renameatu.c: Rename from lib/renameat2.c.
2592         * lib/renameatu.h: Rename from lib/renameat2.h.
2593         * modules/renameatu: Rename from modules/renameat2.
2594         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2595         All uses of "renameat2" in identifiers or file name
2596         changed to "renameatu", except for two instances in
2597         lib/renameatu.c that deal with the Linux kernel's
2598         renameat2 syscall.
2600 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2602         gnulib-tool: minor tweaks for --gnu-make
2603         * gnulib-tool: Do not allow --gnu-make in test modes,
2604         since they all require automake.
2605         (func_emit_lib_Makefile_am): Don’t emit automake comment
2606         if --gnu-make.
2608         regex: work around conditional-dependencies glitch
2609         * modules/regex (Depends-on): Add langinfo.
2610         Without this change, I had problems building an experimental
2611         version of GNU Emacs.  The symptom of the bug was a message
2612         ‘./configure: line 12726: test: =: unary operator expected’.
2613         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2614         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2615         was unset.  Although gl_FUNC_NL_LANGINFO has
2616         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2617         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2618         --conditional-dependencies sometimes arranges for the
2619         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2620         code.  Since the regex code includes <langinfo.h> it should be
2621         depending on the langinfo module anyway, and this happens to work
2622         around the bug, so install that as a workaround for now.  To
2623         reproduce the original problem, run the following shell script on
2624         the version of Gnulib just before this patch was installed.
2625                 rm -fr foo
2626                 mkdir foo
2627                 cat >foo/configure.ac <<'EOF'
2628                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2629                 gl_EARLY
2630                 gl_INIT
2631                 AC_OUTPUT
2632                 EOF
2633                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2634                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2635                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2636                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2637                 cd foo
2638                 aclocal -I m4
2639                 autoconf
2640                 ./configure --with-included-regex
2642 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2644         wchar: fix bug when checking for ‘inline’
2645         I discovered this when looking into using the regex module
2646         with Emacs.
2647         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2648         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2649         conftest1.c and conftest2.c but these files were not created.
2650         As far as I can see, this check never worked and nobody reported
2651         it until now, which is a bit worrisome.
2653 2018-06-30  Jim Meyering  <meyering@fb.com>
2655         bootstrap: s/--option val/--option=val/
2656         * build-aux/bootstrap (gnulib_tool_options): Change the
2657         spelling of "--option val" pairs to "--option=val", for
2658         aesthetics, and also so that this file no longer triggers
2659         a common help2man syntax-check warning when copied into
2660         projects like grep, gzip, etc.
2662 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2664         manywarnings: omit -Wswitch-default
2665         This should make things more consistent, as we already ignore
2666         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2667         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2668         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2669         Add -Wswitch-default.
2670         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2671         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2672         Remove -Wswitch-default.
2674         regex: revert most trimming
2675         Problems reported by Bruno Haible in:
2676         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2677         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2678         and wctype back in.  lock because regex users shouldn’t
2679         need to know that regex needs locking, and the rest because
2680         gnulib-tool should ordinarily ignore them anyway.
2682 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2684         regex: trim module dependencies
2685         * modules/regex (Depends-on): Remove gettext-h and lock,
2686         since the regex code should work OK without these modules,
2687         and Emacs uses it that way.  Also remove memcmp, memmove,
2688         and wctype, as these modules are obsolete and should not be
2689         needed any more.
2691 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2693         regex: glibc does not use intprops.h
2694         Maybe we can talk glibc into using intprops.h someday, but
2695         now doesn’t seem to be a good time.
2696         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2697         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2698         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2700 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2702         regex: port to recently proposed glibc regex merge
2703         This patch is inspired by Adhemerval Zanella's recent proposal
2704         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2705         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2706         the glibc side, without keeping Gnulib portable.
2707         * lib/regex.h: Fix a problem with glibc installed-header checking,
2708         as follows:
2709         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2710         (_Restrict_arr_): Prefer __restrict_arr if defined,
2711         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2712         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2713         (build_wcs_upper_buffer, build_upper_buffer)
2714         (re_string_translate_buffer, re_string_context_at):
2715         Move decls here from lib/regex_internal.h, for glibc internal tests.
2716         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2717         glibc BZ #18496.
2718         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2719         -Wunused-value.
2720         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2721         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2722         (bitset_mask): Now static inline, and without any __attribute__
2723         ((unused)) decoration, for glibc internal tests.
2725 2018-06-25  Bruno Haible  <bruno@clisp.org>
2727         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2728         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2729         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2730         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2731         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2732         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2733         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2734         / -lthread / -lpth does not get optimized away by a preceding
2735         --as-needed option.
2737 2018-06-25  Bruno Haible  <bruno@clisp.org>
2739         Continue to use spaces for indentation, not tabs.
2740         * MODULES.html.sh: Untabify.
2741         * doc/regex.texi: Likewise.
2742         * lib/acl-internal.c: Likewise.
2743         * lib/dfa.c: Likewise.
2744         * lib/exclude.c: Likewise.
2745         * lib/exclude.h: Likewise.
2746         * lib/get-permissions.c: Likewise.
2747         * lib/gettimeofday.c: Likewise.
2748         * lib/parse-datetime.y: Likewise.
2749         * lib/pselect.c: Likewise.
2750         * lib/set-permissions.c: Likewise.
2751         * lib/time.in.h: Likewise.
2752         * m4/canonicalize.m4: Likewise.
2753         * m4/gc.m4: Likewise.
2754         * m4/gnulib-common.m4: Likewise.
2755         * m4/pthread_sigmask.m4: Likewise.
2756         * m4/vararrays.m4: Likewise.
2757         * tests/test-digest.h: Likewise.
2758         * tests/test-fcntl-h.c: Likewise.
2759         * tests/test-timespec.c: Likewise.
2760         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2762 2018-06-25  Bruno Haible  <bruno@clisp.org>
2764         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2765         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2766         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2767         -Wjump-misses-init.
2769 2018-06-25  Jim Meyering  <meyering@fb.com>
2771         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2772         * lib/acl-internal.h (free_permission_context): Remove that
2773         attribute directive.  Otherwise, it would provoke this from GCC 9:
2774         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2775           returning 'void' [-Werror=attributes]
2777 2018-06-24  Jim Meyering  <meyering@fb.com>
2779         parse-datetime: accommodate gcc-4.8.5
2780         Bruno Haible reported the build failure in
2781         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2782         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2783         on declaration of new local.
2785 2018-06-24  Bruno Haible  <bruno@clisp.org>
2787         af_alg: Fail in continuable manner on Linux/powerpc64le.
2788         Reported by Assaf Gordon <assafgordon@gmail.com>
2789         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2790         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2791         byte send() as the first round.
2793 2018-06-24  Bruno Haible  <bruno@clisp.org>
2795         af_alg: Fix state of stream after sendfile() succeeds.
2796         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2797         the stream is correctly positioned afterwards.
2798         * modules/crypto/af_alg (Depends-on): Add fflush.
2799         * tests/test-digest.h (test_digest_on_files): Verify that after the
2800         operation the stream is positioned at end of file.
2802 2018-06-24  Jim Meyering  <meyering@fb.com>
2804         canon-host: take GCC9's advice rather than ignoring warning
2805         Pádraig Brady suggested not to ignore this GCC9 advice.
2806         * lib/canon-host.c: Undo preceding change.
2807         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2809         parse-datetime.y: avoid spurious GCC 9 warning
2810         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2811         a function local prior to the first "goto fail".  The prior use would
2812         evoke this:
2813         parse-datetime.y: In function 'parse_datetime2':
2814         parse-datetime.y:1791:19: error: jump skips variable initialization \
2815           [-Werror=jump-misses-init]
2816         parse-datetime.y:2385:2: note: label 'fail' defined here
2817         parse-datetime.y:188:43: note: '({anonymous})' declared here
2818         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2820         canon-host.c: avoid spurious GCC 9 warning
2821         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2823         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2824         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2825         * m4/manywarnings.m4: Remove them.
2826         Otherwise, building coreutils, I would see this:
2827         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2828         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2829         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2830           which is also used by default
2831         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2833 2018-06-24  Bruno Haible  <bruno@clisp.org>
2835         af_alg tests: Add another test.
2836         * tests/test-digest.h (test_digest_on_files): Also check a large file
2837         with a skipped header.
2838         * tests/test-md5.c: Include macros.h.
2839         * tests/test-sha1.c: Likewise.
2840         * tests/test-sha256.c: Likewise.
2841         * tests/test-sha512.c: Likewise.
2842         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2843         * modules/crypto/sha1-tests (Files): Likewise.
2844         * modules/crypto/sha256-tests (Files): Likewise.
2845         * modules/crypto/sha512-tests (Files): Likewise.
2847 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2849         maint: clarify comments about sticky EOF
2850         * lib/af_alg.c: Be more direct that we can't
2851         assume stickiness of EOF for portability reasons.
2852         * lib/md5.c: Clarify that this isn't just a glibc issue.
2853         * lib/sha1.c: Likewise.
2854         * lib/sha256.c: Likewise.
2855         * lib/sha512.c: Likewise.
2857 2018-06-24  Bruno Haible  <bruno@clisp.org>
2859         af_alg: Comment and style improvements.
2860         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2861         (afalg_buffer, afalg_stream): Improve comments.
2863 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2865         af_alg: disable kernel hash functions by default
2866         All the kernel routines were seen to be significantly slower
2867         with these relatively recent components on an i3-2310M system:
2868           kernel-4.10.6-200.fc25.x86_64
2869           openssl-1.0.2m-1.fc25.x86_64
2870         sha1 was nearly twice as slow in the kernel for example.
2871         Further considerations why this should not be the default, at:
2872         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2874         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2875         * m4/gl-openssl.m4: Tweak accordingly.
2877 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2879         af_alg: avoid hangs when reading from streams
2880         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2881         and thus avoid doing a fread() when feof() is set.
2882         * lib/md5.c: Ensure feof() is called before fread().
2883         * lib/sha1.c: Likewise.
2884         * lib/sha256.c: Likewise.
2885         * lib/sha512.c: Likewise.
2887 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2889         af_alg: fix error handling when hash not returned
2890         * lib/af_alg.c (afalg_stream): Handle the case where we've
2891         successfully written data to the kernel in the read/write loop,
2892         but the kernel doesn't respond with the hash.
2894 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2896         libc-config: merge from glibc
2897         * lib/cdefs.h (__inline, __restrict):
2898         Copy from current glibc.  This fixes glibc bug 17721,
2899         which Gnulib had already fixed in a different way.
2900         (__nonnull): Lessen the distance from glibc by using the
2901         glibc definition inside an ‘#ifndef __nonnull’.
2902         (__attribute_nonstring__): New macro, copied from
2903         current glibc.
2904         * lib/libc-config.h (__attribute_nonstring__): New undef.
2905         (__restrict): Remove; workaround no longer needed.
2906         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2907         support more compilers than the glibc __inline can.
2909 2018-06-24  Bruno Haible  <bruno@clisp.org>
2911         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2912         * lib/mbrtowc.c (enc_t): New enum type.
2913         (locale_enc, locale_enc_cached): New functions.
2914         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2915         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2916         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2917         instead.
2918         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2919         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2920         * modules/wcwidth (configure.ac): Invoke it.
2922 2018-06-24  Bruno Haible  <bruno@clisp.org>
2924         wchar-single: Fix test failure in wcwidth tests.
2925         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2926         skip the tests in the C locale.
2928 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2930         crypto: mention --without-linux-crypto in --with-openssl --help
2931         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2932         routines take precedence in --with-openssl help output.
2934 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2936         wchar-single: a new module to enable optimizations in wchar replacements
2937         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2938         GNULIB_WCHAR_SINGLE is enabled.
2939         * lib/wcwidth.c (wcwidth): Likewise.
2941 2018-06-23  Bruno Haible  <bruno@clisp.org>
2943         libc-config: Fix conflict with FreeBSD include files.
2944         * lib/cdefs.h (__nonnull): Remove definition.
2945         * lib/libc-config.h (__nonnull): Remove undefinition.
2947 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2949         random_r: do not crash if state is unaligned
2950         Problem reported by Bruce Korb in:
2951         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2952         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2953         with 'cc -O2 -xmemalign=8s'.
2954         * lib/random_r.c: Include string.h, for memcpy.
2955         (get_int32, set_int32): New functions.
2956         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2957         Use them to avoid assumption that state pointer is aligned.
2958         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2959         * tests/test-random_r.c (test_failed): New function.
2960         (main): Use it, to test for alignment bugs.
2962         random_r: omit unnecessary include
2963         * lib/random_r.c: Do not include limits.h.
2965         random, random_r: merge from glibc
2966         * lib/random.c, lib/random_r.c:
2967         Include libc-config.h if !_LIBC, not config.h unilaterally.
2968         * lib/random.c:
2969         Do not include stdint.h or time.h; not needed.
2970         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2971         (unsafe_state): Rename from generator.  All uses changed.
2972         Use C99-style initializers.
2973         (__random, __srandom, __initstate, __setstate): Rename from
2974         non-underscored version, but define it to non-underscored version
2975         on Gnulib.  Add a lock.
2976         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2977         Likewise.
2978         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2979         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2980         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2981         (__random_r): Use uint32 to fix glibc bug 17343.
2982         * modules/random, modules/random_r (Depends-on): Add libc-config.
2983         Depend on stdint only if $HAVE_RANDOM = 0.
2985 2018-06-19  Jim Meyering  <meyering@fb.com>
2987         README-release: also run any check-very-expensive tests
2988         * top/README-release: Adjust instructions so they run the
2989         check-very-expensive tests when there is such a target.
2991 2018-06-18  Bruno Haible  <bruno@clisp.org>
2993         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2994         * m4/pthread_rwlock_rdlock.m4: Add comment.
2995         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2996         are reader-preferring in glibc.
2997         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2998         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
3000 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3002         crypto: use byteswap
3003         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3004         * lib/sm3.c: Include <byteswap.h>.
3005         (SWAP): Use its macros rather than reinventing the wheel.
3006         * modules/crypto/md4, modules/crypto/md5-buffer:
3007         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
3008         * modules/crypto/sha512-buffer, modules/crypto/sm3:
3009         (Depends-on): Add byteswap.
3011 2018-06-17  Pádraig Brady  <P@draigBrady.com>
3013         gendocs.sh: fix support for legacy --texi2html
3014         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
3015         to the default makeinfo invocation.
3016         Reported by Bruce Korb
3018 2018-06-17  Bruno Haible  <bruno@clisp.org>
3020         gettext po infrastructure: Update from current gettext git.
3021         Reported by Akim Demaille <akim@lrde.epita.fr>.
3022         * build-aux/po/Makefile.in.in: Update from current gettext git.
3023         * build-aux/po/remove-potcdate.sin: Likewise.
3024         * config/srclist.txt: Temporarily disable sync for these files.
3026 2018-06-17  Bruno Haible  <bruno@clisp.org>
3028         getloadavg: Return 0 on Windows without Cygwin.
3029         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
3031 2018-06-17  Paul Smith  <psmith@gnu.org>
3033         getloadavg: Allow building on Windows without Cygwin
3034         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
3035         * m4/getloadavg.m4: Check for unistd.h.
3037 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3039         Port crypto/af_alg to GCC 4.8.4
3040         Problem reported by Peter Simons in:
3041         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
3042         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
3044 2018-05-27  Colin Watson  <cjwatson@debian.org>
3046         bootstrap: document source fetching in --help
3047         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
3049 2018-04-09  Colin Watson  <cjwatson@debian.org>
3051         bootstrap: allow non-submodule control of gnulib
3052         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
3053         bootstrap.conf when fetching gnulib using "git clone" or via
3054         GNULIB_SRCDIR.
3056 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3058         crypto: omit stream ops Emacs doesn’t need
3059         * lib/md5.c (md5_stream):
3060         * lib/sha1.c (sha1_stream):
3061         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
3062         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3063         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
3064         defined.  Emacs needs this, as it does not use the stream
3065         operations and doesn’t need all the af_alg stuff we’ve recently
3066         added.  Perhaps a similar change is needed to the other crypto
3067         modules, but this patch changes only those needed for Emacs.
3068         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
3069         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
3070         New modules, used by Emacs.
3071         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3072         * modules/crypto/sha512: Rewrite to depend on the new modules.
3074 2018-05-20  Pádraig Brady  <P@draigBrady.com>
3076         fts: avoid a memory leak edge case
3077         * lib/fts.c (fts_open): Set an appropriate fts_level
3078         so that an immediate fts_close() will free the allocation.
3079         * tests/test-fts.c (fts_dealloc): Add a test case which
3080         will trigger under valgrind or address sanitizer.
3081         Fixes https://bugs.gnu.org/31439
3083 2018-05-20  Bruno Haible  <bruno@clisp.org>
3085         wcwidth tests: Fix link error.
3086         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
3087         $(LIBUNISTRING).
3089 2018-05-20  Bruno Haible  <bruno@clisp.org>
3091         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
3092         * modules/regex (Files): Add m4/glibc21.m4.
3094 2018-05-20  Bruno Haible  <bruno@clisp.org>
3096         localcharset: Optimize.
3097         * lib/localcharset.c (alias_table): Comment out no-op mappings for
3098         platforms where these don't matter. This reduces the table size,
3099         which in turn reduces the lookup time.
3101 2018-05-19  Bruno Haible  <bruno@clisp.org>
3103         localcharset: Map the locale encodings found in newer OSes.
3104         * lib/localcharset.c (alias_table): Add mapping for locale encodings
3105         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3106         IRIX 6.5, Minix 3.3.
3107         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3109 2018-05-19  Bruno Haible  <bruno@clisp.org>
3111         localcharset: Move mapping tables into the code. Use a binary search.
3112         * lib/localcharset.h: Document the GNU canonical names for character
3113         encodings here.
3114         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3115         relocatable.h, configmake.h.
3116         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3117         macros.
3118         (charset_aliases): Remove variable.
3119         (get_charset_aliases): Remove function.
3120         (struct table_entry): New type.
3121         (alias_table, locale_table): New constants.
3122         (locale_charset): Use the alias_table or locale_table to get the
3123         canonicalized encoding name.
3124         * lib/config.charset: Remove file.
3125         * lib/ref-add.sin: Remove file.
3126         * lib/ref-del.sin: Remove file.
3127         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3128         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3129         * modules/localcharset (Notice): Remove.
3130         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3131         glibc21.m4.
3132         (Depends-on): Remove configmake.
3133         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3134         (Makefile.am): Simplify.
3135         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3137 2018-05-19  Bruno Haible  <bruno@clisp.org>
3139         localcharset: Add a manual test.
3140         * tests/test-localcharset.c: New file.
3141         * modules/localcharset-tests: New file.
3143 2018-05-19  Bruno Haible  <bruno@clisp.org>
3145         localcharset: Remove support for obsolete platforms.
3146         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3147         Mac OS X 10.2. Comment out dubious entry for Solaris.
3149 2018-05-19  Jim Meyering  <meyering@fb.com>
3151         gnupload: adjust comment
3152         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3153         more likely we'll remove the just-added code in a year or two.
3155 2018-05-19  Bruno Haible  <bruno@clisp.org>
3157         gnupload: Fix "gpg-agent is not available in this session" error.
3158         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3160 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3162         crypto/af_alg: fix --help
3163         * m4/af_alg.m4: Avoid spurious newline in --help output.
3165 2018-05-13  Bruno Haible  <bruno@clisp.org>
3167         nl_langinfo: Fix compilation error on Android.
3168         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3169         INT_CURR_SYMBOL, etc. only if these items are defined.
3171 2018-05-13  Bruno Haible  <bruno@clisp.org>
3173         truncate: Fix compilation error on Android.
3174         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3175         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3176         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3177         HAVE_TRUNCATE.
3178         * modules/truncate: Likewise.
3179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3180         not HAVE_TRUNCATE.
3181         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3182         HAVE_TRUNCATE.
3183         * doc/posix-functions/truncate.texi: Mention the issue.
3185 2018-05-13  Bruno Haible  <bruno@clisp.org>
3187         pthread: Fix compilation error on Android.
3188         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3189         recursive inclusion of this file.
3191 2018-05-13  Bruno Haible  <bruno@clisp.org>
3193         posix_spawn: Fix compilation error on Android.
3194         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3195         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3196         (posix_spawn_file_actions_t): Consider also the case
3197         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3199 2018-05-13  Bruno Haible  <bruno@clisp.org>
3201         tsearch: Move from K&R C to ANSI C.
3202         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3204 2018-05-13  Bruno Haible  <bruno@clisp.org>
3206         tsearch: Fix compilation error on Android.
3207         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3208         is 0.
3209         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3210         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3211         GNULIB_defined_tsearch is true.
3212         (twalk): Define only if GNULIB_defined_twalk is true.
3213         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3214         is 0.
3215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3216         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3217         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3219 2018-05-13  Bruno Haible  <bruno@clisp.org>
3221         imaxdiv: Fix compilation error on Android.
3222         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3223         is not defined.
3224         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3225         HAVE_DECL_IMAXDIV, is 0.
3226         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3227         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3229 2018-05-13  Bruno Haible  <bruno@clisp.org>
3231         Support selective inclusion mechanism of recent mingw.org header files.
3232         Reported by Eli Zaretskii <eliz@gnu.org>.
3233         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3234         __need_ssize_t, or __need_time_t is defined, just include the system's
3235         <sys/types.h>.
3236         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3237         include the system's <locale.h>.
3239 2018-05-13  Bruno Haible  <bruno@clisp.org>
3241         Avoid compilation error due to 'mmap' on Android.
3242         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3243         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3244         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3245         Undefine on Android.
3247 2018-05-13  Bruno Haible  <bruno@clisp.org>
3249         Add cross-compilation guesses for Linux systems without glibc.
3250         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3252         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3253         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3254         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3255         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3256         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3257         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3258         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3259         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3260         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3261         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3262         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3263         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3264         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3265         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3266         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3267         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3269 2018-05-13  Bruno Haible  <bruno@clisp.org>
3271         getpagesize: Fix compilation error on Android.
3272         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3273         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3274         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3275         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3276         HAVE_GETPAGESIZE accordingly.
3277         * modules/getcwd (Files): Add m4/getpagesize.m4.
3279 2018-05-13  Bruno Haible  <bruno@clisp.org>
3281         tcgetsid: Fix compilation error on Android.
3282         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3283         AC_CHECK_FUNC.
3285 2018-05-13  Bruno Haible  <bruno@clisp.org>
3287         getpass: Fix configure test for Android.
3288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3289         AC_CHECK_FUNC.
3291 2018-05-13  Bruno Haible  <bruno@clisp.org>
3293         ffs: Fix compilation error on Android.
3294         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3296 2018-05-13  Bruno Haible  <bruno@clisp.org>
3298         mkfifo: Fix compilation error on Android.
3299         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3300         AC_CHECK_FUNC.
3302 2018-05-13  Bruno Haible  <bruno@clisp.org>
3304         c-strtod: Fix configure test for Android.
3305         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3306         AC_CHECK_FUNC.
3308 2018-05-13  Bruno Haible  <bruno@clisp.org>
3310         random: Fix compilation error on Android.
3311         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3312         AC_CHECK_FUNC.
3314 2018-05-13  Bruno Haible  <bruno@clisp.org>
3316         grantpt: Fix compilation error on Android.
3317         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3318         AC_CHECK_FUNC.
3320 2018-05-13  Bruno Haible  <bruno@clisp.org>
3322         stdioext: Fix compilation errors with newer Android headers.
3323         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3324         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3325         fallbacks for Android.
3326         * lib/fpending.c: Update comments.
3327         * lib/fpurge.c: Likewise.
3328         * lib/freadable.h: Likewise.
3329         * lib/freadable.c: Likewise.
3330         * lib/freadahead.c: Likewise.
3331         * lib/freading.h: Likewise.
3332         * lib/freadptr.c: Likewise.
3333         * lib/fseterr.c: Likewise.
3334         * lib/fwritable.h: Likewise.
3335         * lib/fwritable.c: Likewise.
3336         * lib/fwriting.h: Likewise.
3337         * lib/fwriting.c: Likewise.
3339 2018-05-13  Bruno Haible  <bruno@clisp.org>
3341         doc: Add info about Android versions 2.0 to 8.1.
3342         * doc/**/*.texi: Add info about functions in all released versions of
3343         Bionic.
3345 2018-05-12  Bruno Haible  <bruno@clisp.org>
3347         fseeko: On mingw, don't use the hidden function _fseeki64.
3348         Reported by Eli Zaretskii <eliz@gnu.org>.
3349         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3350         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3352 2018-05-12  Bruno Haible  <bruno@clisp.org>
3354         glob: Choose 'dirent_type' in a way that works better on mingw.
3355         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3356         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3358 2018-05-12  Bruno Haible  <bruno@clisp.org>
3360         execute, spawn-pipe: Avoid warning about redefining 'close'.
3361         Reported by Eli Zaretskii <eliz@gnu.org>.
3362         * lib/execute.c: Undefine 'close' before redefining it.
3363         * lib/spawn-pipe.c: Likewise.
3365 2018-05-12  Bruno Haible  <bruno@clisp.org>
3367         nanosleep: Avoid test failure on mingw when it has nanosleep.
3368         Reported by Eli Zaretskii <eliz@gnu.org>.
3369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3370         If it does not exist, use a simpler test program that does not call
3371         alarm().
3373 2018-05-10  Bruno Haible  <bruno@clisp.org>
3375         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3376         Reported by Devin Hussey <husseydevin@gmail.com>.
3377         Based on a patch by Paul Eggert.
3378         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3379         as witness of libpthread.
3380         * lib/glthread/cond.h (pthread_in_use): Likewise.
3381         * lib/glthread/thread.h (pthread_in_use): Likewise.
3382         * lib/glthread/tls.h (pthread_in_use): Likewise.
3384 2018-05-10  Bruno Haible  <bruno@clisp.org>
3386         cond tests: Fix compilation error on Solaris.
3387         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3388         macro.
3390 2018-05-10  Bruno Haible  <bruno@clisp.org>
3392         doc: Add partial info about Android 4.3.
3393         * doc/*-functions/*.texi: Add info about functions that were added
3394         to Bionic between Android 4.3 and Android 9.0.
3396 2018-05-10  Bruno Haible  <bruno@clisp.org>
3398         doc: Add info about Android 9.0.
3399         * doc/**/*.texi: Add info about functions and headers in Bionic from
3400         Android 9.0.
3402 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3404         af_alg: fix my typo in afalg_buffer
3405         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3406         (afalg_stream): Simplify and avoid the need for a runtime test
3407         at the end.
3409         af_alg: recover better from crypto failures
3410         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3411         input stream is seekable, by repositioning the stream back to
3412         where it was, possibly by just calling sendfile with an offset
3413         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3414         cases, which lets our callers try again with user-mode code.
3415         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3416         instead of on fflush and lseek.
3418         af_alg: distiguish I/O errors better
3419         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3420         not -EIO, if it’s OK for the caller to try again with user-mode code.
3421         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3422         some other error number) if fflush fails, as the caller should not
3423         try again that case.
3425         af_alg: avoid gotos
3426         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3427         gotos, as they were a source of unreliability and made the code a
3428         bit harder to follow.
3430         af_alg: don’t leak file descriptors into children
3431         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3432         This code should be compiled only on recent GNU/Linux platforms
3433         so we shouldn’t have to also depend on the accept4 module.
3435         af_alg: coalesce socket creation
3436         * lib/af_alg.c (alg_socket): New function.
3437         (afalg_buffer, afalg_stream): Use it.  This avoids some
3438         code duplication and gotos.
3440         af_alg: fix file descriptor leak
3441         * lib/af_alg.c (afalg_stream): Close leak.
3443         af_alg: Pacify --enable-gcc-warnings on GCC 8
3444         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3445         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3447 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3449         af_alg: Pacify --enable-gcc-warnings
3450         Problem reported by Assaf Gordon in:
3451         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3452         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3453         gcc -Wjump-misses-init.
3454         * lib/sha512.c (shaxxx_stream): Now static.
3456 2018-05-06  Bruno Haible  <bruno@clisp.org>
3458         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3459         * lib/af_alg.h (afalg_buffer): New declaration.
3460         * lib/af_alg.c (afalg_buffer): New function.
3462 2018-05-06  Bruno Haible  <bruno@clisp.org>
3464         af_alg: Avoid warnings.
3465         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3466         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3468 2018-05-06  Bruno Haible  <bruno@clisp.org>
3470         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3471         * tests/bench-digest.h: New file.
3472         * tests/bench-md5.c: New file.
3473         * tests/bench-sha1.c: New file.
3474         * tests/bench-sha224.c: New file.
3475         * tests/bench-sha256.c: New file.
3476         * tests/bench-sha384.c: New file.
3477         * tests/bench-sha512.c: New file.
3478         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3479         tests/bench-digest.h.
3480         (Depends-on): Add getrusage, gettimeofday.
3481         (Makefile.am): Add variables to build bench-md5.
3482         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3483         tests/bench-digest.h.
3484         (Depends-on): Add getrusage, gettimeofday.
3485         (Makefile.am): Add variables to build bench-sha1.
3486         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3487         tests/bench-sha256.c, tests/bench-digest.h.
3488         (Depends-on): Add getrusage, gettimeofday.
3489         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3490         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3491         tests/bench-sha512.c, tests/bench-digest.h.
3492         (Depends-on): Add getrusage, gettimeofday.
3493         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3495 2018-05-06  Bruno Haible  <bruno@clisp.org>
3497         af_alg: Fix a resource leak.
3498         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3499         New local variable 'result'.
3501 2018-05-06  Bruno Haible  <bruno@clisp.org>
3503         af_alg: Fix bug with streams that are not at position 0.
3504         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3505         assume that the stream is positioned at position 0.
3506         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3507         of the stream.
3508         * lib/md5.h (md5_stream): Likewise.
3509         * lib/sha1.h (sha1_stream): Likewise.
3510         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3511         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3512         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3514         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3515         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3516         stream that is not positioned at the beginning.
3518 2018-05-06  Bruno Haible  <bruno@clisp.org>
3520         af_alg: Add configure option to enable/disable use of Linux crypto API.
3521         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3522         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3523         USE_LINUX_CRYPTO_API.
3524         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3525         * lib/af_alg.c: Likewise.
3527 2018-05-06  Bruno Haible  <bruno@clisp.org>
3529         Followup to 'af_alg: New module.'.
3530         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3531         * modules/crypto/sha1 (Depends-on): Likewise.
3532         * modules/crypto/sha256 (Depends-on): Likewise.
3533         * modules/crypto/sha512 (Depends-on): Likewise.
3535 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3537         crypto/{md5,sha1,sha256,sha512}: simplify
3538         * lib/md5.c (md5_stream):
3539         * lib/sha1.c (sha1_stream):
3540         * lib/sha256.c (shaxxx_stream):
3541         Simplify, partly by assuming C99.
3542         * lib/sha256.c (shaxxx_stream):
3543         New function, which implements both sha256 and sha224.
3544         Simplify, partly by assuming C99.
3545         (sha256_stream, sha224_stream):
3546         Use it to avoid code duplication, removing a FIXME.
3547         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3548         Likewise.
3550         af_alg: Improve comments.
3551         * lib/af_alg.h: Use imperatives and tighten up wording.
3553 2018-05-05  Bruno Haible  <bruno@clisp.org>
3555         af_alg: Improve comments.
3556         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3558 2018-05-05  Bruno Haible  <bruno@clisp.org>
3560         af_alg: New module.
3561         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3562         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3563         * lib/md5.c: Include "af_alg.h" unconditionally.
3564         (md5_stream): Invoke afalg_stream unconditionally.
3565         * lib/sha1.c: Include "af_alg.h" unconditionally.
3566         (sha1_stream): Invoke afalg_stream unconditionally.
3567         * lib/sha256.c: Include "af_alg.h" unconditionally.
3568         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3569         * lib/sha512.c: Include "af_alg.h" unconditionally.
3570         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3571         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3572         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3573         * modules/crypto/af_alg: New file.
3574         * modules/crypto/md5 (Files): Remove files that are now in the
3575         'crypto/af_alg' module.
3576         (Depends-on): Add crypto/af_alg.
3577         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3578         (Makefile.am): Don't mention af_alg.c here.
3579         * modules/crypto/sha1 (Files): Remove files that are now in the
3580         'crypto/af_alg' module.
3581         (Depends-on): Add crypto/af_alg.
3582         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3583         (Makefile.am): Don't mention af_alg.c here.
3584         * modules/crypto/sha256 (Files): Remove files that are now in the
3585         'crypto/af_alg' module.
3586         (Depends-on): Add crypto/af_alg.
3587         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3588         (Makefile.am): Don't mention af_alg.c here.
3589         * modules/crypto/sha512 (Files): Remove files that are now in the
3590         'crypto/af_alg' module.
3591         (Depends-on): Add crypto/af_alg.
3592         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3593         (Makefile.am): Don't mention af_alg.c here.
3595 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3597         crypto tests: pacify GCC
3598         * tests/test-digest.h (test_digest_on_files):
3599         Don’t assume digest size fits in int (!).
3601         af_alg: minor style improvements
3602         * lib/af_alg.c (afalg_stream): Prefer C99 style
3603         decl-after-statement, since we’re already assuming C99.  Clarify
3604         by strengthening the bind test and omit unnecessary assignment.
3606 2018-05-05  Bruno Haible  <bruno@clisp.org>
3608         af_alg: Fix bug on empty files.
3609         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3610         stream is empty.
3612 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3614         sys-limits.h: new file for crypto and safe I/O
3615         * lib/af_alg.c: Include sys-limits.h.
3616         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3617         (afalg_stream): Also reject negative sizes for sendfile; they
3618         should not happen and the code is a bit cleaner and faster this way.
3619         * lib/safe-read.c: Include sys-limits.h.
3620         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3621         * lib/sys-limits.h: New file, with values and commentary derived
3622         from the old safe-read.c and from GNU Emacs sysdep.c.
3623         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3624         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3625         Add lib/sys-limits.h to Files section.
3627 2018-05-05  Bruno Haible  <bruno@clisp.org>
3629         af_alg: Improve function signature.
3630         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3631         * lib/af_alg.c (afalg_stream): Likewise.
3632         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3634 2018-05-05  Bruno Haible  <bruno@clisp.org>
3636         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3637         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3638         * modules/crypto/sha1 (Depends-on): Likewise.
3639         * modules/crypto/sha256 (Depends-on): Likewise.
3640         * modules/crypto/sha512 (Depends-on): Likewise.
3642 2018-05-05  Bruno Haible  <bruno@clisp.org>
3644         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3645         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3646         * modules/crypto/sha1 (Depends-on): Likewise.
3647         * modules/crypto/sha256 (Depends-on): Likewise.
3648         * modules/crypto/sha512 (Depends-on): Likewise.
3650 2018-05-05  Bruno Haible  <bruno@clisp.org>
3652         af_alg: Add documentation.
3653         * lib/af_alg.h: Add comments.
3655 2018-05-05  Bruno Haible  <bruno@clisp.org>
3657         sha512: Add tests.
3658         * tests/test-sha512.c: New file.
3659         * modules/crypto/sha512-tests: New file.
3661 2018-05-05  Bruno Haible  <bruno@clisp.org>
3663         sha256: Add tests.
3664         * tests/test-sha256.c: New file.
3665         * modules/crypto/sha256-tests: New file.
3667 2018-05-05  Bruno Haible  <bruno@clisp.org>
3669         sha1 tests: Add test for sha1_stream.
3670         * tests/test-sha1.c: Include test-digest.h.
3671         (main): Invoke test_digest_on_files on 'sha1_stream'.
3672         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3674 2018-05-05  Bruno Haible  <bruno@clisp.org>
3676         md5 tests: Add test for md5_stream.
3677         * tests/test-digest.h: New file.
3678         * tests/test-md5.c: Include test-digest.h.
3679         (main): Invoke test_digest_on_files on 'md5_stream'.
3680         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3682 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3684         md5sum: Use AF_ALG when available.
3685         * lib/md5.c: Include af_alg.h.
3686         (md5_stream): Use afalg_stream when available.
3687         * modules/crypto/md5 (Files): Add the af_alg files.
3688         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3689         (Makefile.am): Add af_alg.c.
3691 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3693         sha512sum: Use AF_ALG when available.
3694         * lib/sha512.c: Include af_alg.h.
3695         (sha512_stream, sha384_stream): Use afalg_stream when available.
3696         * modules/crypto/sha512 (Files): Add the af_alg files.
3697         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3698         (Makefile.am): Add af_alg.c.
3700 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3702         sha256sum: Use AF_ALG when available.
3703         * lib/sha256.c: Include af_alg.h.
3704         (sha256_stream, sha224_stream): Use afalg_stream when available.
3705         * modules/crypto/sha256 (Files): Add the af_alg files.
3706         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3707         (Makefile.am): Add af_alg.c.
3709 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3711         sha1sum: Use AF_ALG when available.
3712         * lib/af_alg.h: New file.
3713         * lib/af_alg.c: New file.
3714         * lib/sha1.c: Include af_alg.h.
3715         (sha1_stream): Use afalg_stream when available.
3716         * m4/linux-if-alg.m4: New file.
3717         * modules/crypto/sha1 (Files): Add the new files.
3718         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3719         (Makefile.am): Add af_alg.c.
3721 2018-05-05  Bruno Haible  <bruno@clisp.org>
3723         all: Replace more http URLs by https URLs.
3724         * lib/localename.c: Use https: URL.
3725         * lib/timespec.h: Likewise.
3727 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3729         maint: port more modules to GCC 8
3730         * lib/dirname.h (base_name):
3731         * lib/exclude.h (new_exclude):
3732         * lib/xstrndup.h (xstrndup):
3733         Add malloc attribute.
3734         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3735         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3736         This pacifies GCC 8.
3737         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3738         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3740 2018-05-03  Bruno Haible  <bruno@clisp.org>
3742         Simplify code. Drop support for Borland C++ on Windows.
3743         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3744         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3745         'defined _WIN32'.
3746         * lib/canonicalize-lgpl.c: Likewise.
3747         * lib/classpath.c: Likewise.
3748         * lib/clean-temp.c: Likewise.
3749         * lib/csharpexec.c: Likewise.
3750         * lib/ctime.c: Likewise.
3751         * lib/dosname.h: Likewise.
3752         * lib/dup2.c: Likewise.
3753         * lib/errno.in.h: Likewise.
3754         * lib/error.c: Likewise.
3755         * lib/euidaccess.c: Likewise.
3756         * lib/execute.c: Likewise.
3757         * lib/fcntl.in.h: Likewise.
3758         * lib/fcntl.c: Likewise.
3759         * lib/filename.h: Likewise.
3760         * lib/findprog.c: Likewise.
3761         * lib/flock.c: Likewise.
3762         * lib/fopen.c: Likewise.
3763         * lib/freopen.c: Likewise.
3764         * lib/fstat.c: Likewise.
3765         * lib/fsync.c: Likewise.
3766         * lib/gc-gnulib.c: Likewise.
3767         * lib/get-rusage-data.c: Likewise.
3768         * lib/getaddrinfo.c: Likewise.
3769         * lib/getdelim.c: Likewise.
3770         * lib/getdtablesize.c: Likewise.
3771         * lib/gethostname.c: Likewise.
3772         * lib/getlogin.c: Likewise.
3773         * lib/getlogin_r.c: Likewise.
3774         * lib/getopt.c: Likewise.
3775         * lib/getpagesize.c: Likewise.
3776         * lib/getpass.c: Likewise.
3777         * lib/getrusage.c: Likewise.
3778         * lib/gettimeofday.c: Likewise.
3779         * lib/glob.c: Likewise.
3780         * lib/inttypes.in.h: Likewise.
3781         * lib/isapipe.c: Likewise.
3782         * lib/javaexec.c: Likewise.
3783         * lib/link.c: Likewise.
3784         * lib/localcharset.c: Likewise.
3785         * lib/localename.h: Likewise.
3786         * lib/localename.c: Likewise.
3787         * lib/localtime.c: Likewise.
3788         * lib/lseek.c: Likewise.
3789         * lib/mbsinit.c: Likewise.
3790         * lib/mkdir.c: Likewise.
3791         * lib/msvc-nothrow.h: Likewise.
3792         * lib/nanosleep.c: Likewise.
3793         * lib/nl_langinfo.c: Likewise.
3794         * lib/nonblocking.c: Likewise.
3795         * lib/nproc.c: Likewise.
3796         * lib/open.c: Likewise.
3797         * lib/openpty.c: Likewise.
3798         * lib/pathmax.h: Likewise.
3799         * lib/pipe-filter-aux.c: Likewise.
3800         * lib/pipe-filter-gi.c: Likewise.
3801         * lib/pipe-filter-ii.c: Likewise.
3802         * lib/pipe.c: Likewise.
3803         * lib/pipe2.c: Likewise.
3804         * lib/poll.c: Likewise.
3805         * lib/popen.c: Likewise.
3806         * lib/posix_openpt.c: Likewise.
3807         * lib/printf-parse.c: Likewise.
3808         * lib/progreloc.c: Likewise.
3809         * lib/putenv.c: Likewise.
3810         * lib/read.c: Likewise.
3811         * lib/relocatable.c: Likewise.
3812         * lib/rename.c: Likewise.
3813         * lib/same-inode.h: Likewise.
3814         * lib/secure_getenv.c: Likewise.
3815         * lib/select.c: Likewise.
3816         * lib/sethostname.c: Likewise.
3817         * lib/setlocale.c: Likewise.
3818         * lib/sigaction.c: Likewise.
3819         * lib/sigprocmask.c: Likewise.
3820         * lib/sleep.c: Likewise.
3821         * lib/spawn-pipe.h: Likewise.
3822         * lib/spawn-pipe.c: Likewise.
3823         * lib/spawni.c: Likewise.
3824         * lib/stat-time.h: Likewise.
3825         * lib/stat-w32.c: Likewise.
3826         * lib/stat.c: Likewise.
3827         * lib/stdio.in.h: Likewise.
3828         * lib/stdio-impl.h: Likewise.
3829         * lib/stdio-read.c: Likewise.
3830         * lib/stdio-write.c: Likewise.
3831         * lib/stdlib.in.h: Likewise.
3832         * lib/strerror_r.c: Likewise.
3833         * lib/strftime-fixes.c: Likewise.
3834         * lib/sys_stat.in.h: Likewise.
3835         * lib/sys_types.in.h: Likewise.
3836         * lib/sys_wait.in.h : Likewise.
3837         * lib/system-quote.h: Likewise.
3838         * lib/system-quote.c: Likewise.
3839         * lib/tmpdir.c: Likewise.
3840         * lib/tzset.c: Likewise.
3841         * lib/uname.c: Likewise.
3842         * lib/unistd.in.h: Likewise.
3843         * lib/utime.in.h: Likewise.
3844         * lib/utime.c: Likewise.
3845         * lib/utimecmp.c: Likewise.
3846         * lib/utimens.c: Likewise.
3847         * lib/vasnprintf.c: Likewise.
3848         * lib/vma-iter.h: Likewise.
3849         * lib/vma-iter.c: Likewise.
3850         * lib/wait-process.c: Likewise.
3851         * lib/wcsftime.c: Likewise.
3852         * lib/wctype.in.h: Likewise.
3853         * lib/write.c: Likewise.
3854         * tests/nap.h: Likewise.
3855         * tests/test-cloexec.c: Likewise.
3856         * tests/test-dup-safer.c: Likewise.
3857         * tests/test-dup2.c: Likewise.
3858         * tests/test-dup3.c: Likewise.
3859         * tests/test-fcntl.c: Likewise.
3860         * tests/test-get-rusage-data.c: Likewise.
3861         * tests/test-getaddrinfo.c: Likewise.
3862         * tests/test-getlogin.h: Likewise.
3863         * tests/test-isatty.c: Likewise.
3864         * tests/test-localename.c: Likewise.
3865         * tests/test-mbrtowc-w32.c: Likewise.
3866         * tests/test-nonblocking.c: Likewise.
3867         * tests/test-nonblocking-pipe-main.c: Likewise.
3868         * tests/test-nonblocking-socket-main.c: Likewise.
3869         * tests/test-nonblocking-socket.h: Likewise.
3870         * tests/test-pipe.c: Likewise.
3871         * tests/test-pipe2.c: Likewise.
3872         * tests/test-poll.c: Likewise.
3873         * tests/test-pthread_sigmask1.c: Likewise.
3874         * tests/test-select.h: Likewise.
3875         * tests/test-sethostname2.c: Likewise.
3876         * tests/test-sigprocmask.c: Likewise.
3877         * tests/test-spawn-pipe-child.c: Likewise.
3878         * tests/test-stat-time.c: Likewise.
3879         * tests/test-system-quote-main.c: Likewise.
3880         * tests/test-utimens-common.h: Likewise.
3881         * tests/test-wcrtomb-w32.c: Likewise.
3882         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3883         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3884         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3885         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3886         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3887         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3888         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3889         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3891         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3892         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3893         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3894         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3895         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3896         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3897         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3899 2018-05-02  Bruno Haible  <bruno@clisp.org>
3901         localename: Fix test failures on mingw.
3902         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3903         native Windows.
3904         (gl_locale_name_posix): Move code specific to native Windows here.
3905         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3906         Accept result without charset suffix, as it appears on mingw.
3908 2018-04-28  Paul Smith  <psmith@gnu.org>
3910         bootstrap: Avoid gnulib operations if not needed
3911         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3912         Set $gnulib_extra_files early so it can be overridden in .conf.
3913         Remove redundant --import flag from $gnulib_tool_options.
3914         Set $use_gnulib to false if no gnulib modules or files are needed.
3915         If $use_gnulib is false, don't do anything related to gnulib.
3916         A lot of this is just whitespace (indentation) changes.
3918 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3920         manywarnings: port to GCC 8.0
3921         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3922         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3923         fact that the GCC help message now mentions operands for
3924         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3925         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3926         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3927         and -Wunused-const-variable.
3928         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3929         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3930         -Wmissing-attributes, -Wmultistatement-macros,
3931         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3932         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3934 2018-04-24  Bruno Haible  <bruno@clisp.org>
3936         sys_socket: Make SO_REUSEPORT available across platforms.
3937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3938         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3939         * doc/posix-headers/sys_socket.texi: Mention the issue.
3940         * tests/test-poll.c (SO_REUSEPORT): Remove.
3941         * tests/test-select.h: Include <sys/socket.h>.
3942         (SO_REUSEPORT): Remove.
3943         * modules/select-tests (Depends-on): Add 'sys_socket'.
3945 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3947         localcharset: short-circuit the search for an alias on a Mac
3948         * lib/localcharset.c (get_charset_aliases): Add a tautological
3949         UTF-8 entry to speed up the search for this case.
3950         Most machines default to a UTF-8 locale nowadays, so begin the
3951         list of aliases with a dummy UTF-8 entry so it will be found
3952         immediately and a time-consuming search through the rest of
3953         the list is avoided.
3955 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3957         fts: add comment
3958         * lib/fts.c (fts_build): Explain why ==, not >.
3959         See remark by Bernhard Voelker in:
3960         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3962         fts: fix bug in find across filesystems
3963         This fixes a bug I introduced last summer.
3964         Problem reported by Kamil Dudka in:
3965         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3966         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3967         (leaf_optimization):
3968         New arg for file descriptor.  All callers changed.
3969         (fts_build): Check for whether inodes should be sorted
3970         before closing the directory.
3972 2018-04-07  Bruno Haible  <bruno@clisp.org>
3974         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3975         Reported by Genki Sky <sky@genki.is>.
3976         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3977         version 0.9.10 or newer.
3978         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3979         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3980         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3981         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3982         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3984 2018-04-07  Bruno Haible  <bruno@clisp.org>
3986         execute: Update comment.
3987         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3989 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3991         fts: treat CIFS like NFS
3992         Problem reported by Kamil Dudka in:
3993         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3994         * lib/fts.c (S_MAGIC_CIFS): New macro.
3995         (dirent_inode_sort_may_be_useful, leaf_optimization):
3996         Treat CIFS like NFS.
3998 2018-03-28  Bruno Haible  <bruno@clisp.org>
4000         c-stack: Fix possible build failure on some platforms.
4001         * lib/c-stack.c (die): Define whenever this function is referenced.
4003 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
4005         time_rz: fix workaround for Mac OS X 10.6 infloop
4006         Problems reported by Charles A. Roelli (Bug#27736#117).
4007         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
4008         Also, discard output, which clutters the 'configure' log.
4010 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4012         havelib: port to Solaris 10 /bin/sh
4013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
4014         instead of '! test EXPR'.
4016 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4018         time_rz: work around Mac OS X 10.6 infloop
4019         * doc/posix-functions/localtime.texi:
4020         * doc/posix-functions/localtime_r.texi: Mention the bug.
4021         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
4022         better to fix localtime and localtime_r instead, but that would be
4023         more work and is not needed to fix the Emacs problem.
4024         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
4026 2018-03-24  Jim Meyering  <meyering@fb.com>
4028         test-version-etc.sh: don't use diff directly: use init.sh's compare
4029         We'd rather not sacrifice readable "diff -u" output even for
4030         "diff -c" output (not supported by busybox) or for even less
4031         readable ed-style "diff" output.  So use init.sh's compare function
4032         * tests/test-version-etc.sh: Source init.sh and add "." to path.
4033         Remove "./" from invocation of test-version-etc, so we use path.
4034         And s/diff/compare/.
4035         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
4036         to get init.sh.
4037         Prompted by Eric Blake's comments in
4038         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
4040 2018-03-24  Bruno Haible  <bruno@clisp.org>
4042         javacomp-script, javacomp: Add support for Java 10.
4043         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
4044         target-version 10.
4045         * lib/javaversion.h: Update comments.
4046         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4047         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4048         TARGET_VERSION_BOUND, target_version_index,
4049         corresponding_classfile_version): Accept source_version 10 and
4050         target_version 10.
4051         * lib/javacomp.h: Update comments accordingly.
4053 2018-03-24  Bruno Haible  <bruno@clisp.org>
4055         javacomp-script, javacomp: Update comments.
4056         * m4/javacomp.m4: Update comments regarding gcj.
4057         * lib/javacomp.h: Likewise.
4059 2018-03-24  Bruno Haible  <bruno@clisp.org>
4061         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
4062         * lib/javaversion.h: Update comments.
4063         * lib/javacomp.h: Likewise.
4064         * lib/javacomp.c (default_target_version, source_version_index,
4065         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
4066         "1.9".
4067         (TARGET_VERSION_BOUND): Bump to 9.
4068         (target_version_index, corresponding_classfile_version): Recognize "9"
4069         instead of "1.9".
4070         (get_source_version_for_javac): New function.
4071         (is_envjavac_nongcj_usable, is_javac_usable): Add
4072         source_version_for_javac argument.
4073         (compile_java_class): Determine and pass source_version_for_javac.
4074         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
4075         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
4076         appropriate.
4078 2018-03-23  Jim Meyering  <meyering@fb.com>
4080         test-version-etc.sh: port to diff without -c
4081         * tests/test-version-etc.sh: Don't use diff's -c option.
4082         This caused spurious test failure on Alpine Linux, which
4083         uses busybox's diff. Reported by Assaf Gordon in
4084         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
4086 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4088         c-stack: port to recent GCC build
4089         Problem reported by The Fireplace (Bug#30913).
4090         * lib/c-stack.c (die): Define only if used.
4092 2018-03-20  Bruno Haible  <bruno@clisp.org>
4094         euidaccess: Port to native Windows.
4095         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
4096         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
4098 2018-03-19  Bruno Haible  <bruno@clisp.org>
4100         javacomp: Add support for Java 7, 8, 9.
4101         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4102         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4103         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
4104         and target_version 1,7, 1.8, 1.9.
4105         * lib/javacomp.h: Update comments accordingly.
4107 2018-03-19  Bruno Haible  <bruno@clisp.org>
4109         javacomp-script: Add support for Java 9.
4110         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4111         target-version 1.9.
4113 2018-03-16  Bruno Haible  <bruno@clisp.org>
4115         glob: Don't compile replacements on recent glibc systems.
4116         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4117         REPLACE_GLOB is 0, include the system's <glob.h> and use
4118         _GL_CXXALIAS_SYS.
4119         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4120         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4121         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4122         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4123         Remove snippet/warn-on-use.
4124         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4125         (Makefile.am): Create glob.h always. Update list of substitutions in
4126         glob.h. Don't depend on $(WARN_ON_USE_H).
4128 2018-03-16  Bruno Haible  <bruno@clisp.org>
4130         glob: Fix link error on native Windows.
4131         * modules/glob (Depends-on): Add 'lstat'.
4133 2018-03-15  Bruno Haible  <bruno@clisp.org>
4135         glob: Fix compilation error in C++ mode.
4136         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4138 2018-03-15  Bruno Haible  <bruno@clisp.org>
4140         host-cpu-c-abi: Support for RISC-V CPU.
4141         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4142         riscv32 and riscv64 ABIs.
4143         References:
4144         https://github.com/riscv/riscv-toolchain-conventions
4145         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4146         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4148 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4150         fflush: be more paranoid about libio.h change
4151         Suggested by Eli Zaretskii in:
4152         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4153         * lib/fbufmode.c (fbufmode):
4154         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4155         (disable_seek_optimization, rpl_fflush):
4156         * lib/fpending.c (__fpending):
4157         * lib/fpurge.c (fpurge):
4158         * lib/freadable.c (freadable):
4159         * lib/freadahead.c (freadahead):
4160         * lib/freading.c (freading):
4161         * lib/freadptr.c (freadptr):
4162         * lib/freadseek.c (freadptrinc):
4163         * lib/fseeko.c (fseeko):
4164         * lib/fseterr.c (fseterr):
4165         * lib/fwritable.c (fwritable):
4166         * lib/fwriting.c (fwriting):
4167         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4169 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4171         maint: write-file-hooks -> before-save-hook
4172         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4173         it's time to use the recommended replacement.
4174         Problem reported by Glenn Morris in:
4175         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4176         * build-aux/announce-gen, build-aux/bootstrap:
4177         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4178         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4179         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4180         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4181         * build-aux/update-copyright, build-aux/useless-if-before-free:
4182         * build-aux/vc-list-files:
4183         Update hook usage for files where Gnulib is the canonical source.
4185 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4187         binary-io: pacify gcc -Wunused-parameter
4188         Problem reported by Reuben Thomas in:
4189         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4190         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4191         Use _GL_UNUSED where appropriate.
4193         fflush: adjust to glibc 2.28 libio.h removal
4194         Problem reported by Daniel P. Berrangé in:
4195         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4196         * lib/fbufmode.c (fbufmode):
4197         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4198         (disable_seek_optimization, rpl_fflush):
4199         * lib/fpending.c (__fpending):
4200         * lib/fpurge.c (fpurge):
4201         * lib/freadable.c (freadable):
4202         * lib/freadahead.c (freadahead):
4203         * lib/freading.c (freading):
4204         * lib/freadptr.c (freadptr):
4205         * lib/freadseek.c (freadptrinc):
4206         * lib/fseeko.c (fseeko):
4207         * lib/fseterr.c (fseterr):
4208         * lib/fwritable.c (fwritable):
4209         * lib/fwriting.c (fwriting):
4210         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4211         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4212         Define if not already defined.
4214 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4216         environ: fix link error on 32-bit Cygwin
4217         Problem reported for GNU Emacs by Ken Brown in:
4218         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4219         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4221 2018-02-24  Bruno Haible  <bruno@clisp.org>
4223         mbrtowc tests: Fix regression on glibc.
4224         Reported by Bernhard Voelker.
4225         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4227 2018-02-24  Bruno Haible  <bruno@clisp.org>
4229         striconveha, uniconv/*: Avoid test failures on musl libc.
4230         * tests/iconvsupport.c: New file.
4231         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4232         does not support the ISO-2022-JP-2 encoding.
4233         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4234         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4235         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4236         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4237         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4238         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4239         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4240         (Makefile.am): Link test-striconveha with iconvsupport.o.
4241         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4242         tests/iconvsupport.c.
4243         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4244         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4245         tests/iconvsupport.c.
4246         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4247         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4248         tests/iconvsupport.c.
4249         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4250         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4251         tests/iconvsupport.c.
4252         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4253         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4254         tests/iconvsupport.c.
4255         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4256         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4257         tests/iconvsupport.c.
4258         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4260 2018-02-24  Bruno Haible  <bruno@clisp.org>
4262         localename: Add support for musl libc.
4263         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4264         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4265         on Linux platforms which define NL_LOCALE_NAME.
4267 2018-02-24  Bruno Haible  <bruno@clisp.org>
4269         mbrtowc tests: Don't make assumptions about the charset the C locale.
4270         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4271         particular mapping in the C locale.
4273 2018-02-24  Bruno Haible  <bruno@clisp.org>
4275         ptsname_r: Don't expect that this function sets errno.
4276         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4277         from ptsname_r().
4278         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4280 2018-02-23  Bruno Haible  <bruno@clisp.org>
4282         xmalloca: pacify gcc -Wbad-function-cast
4283         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4285 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4287         nl_langinfo: pacify gcc -Wunused-function
4288         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4289         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4290         this case.  Without this change, I got a diagnostic when building
4291         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4293         same: pacify gcc -Wunused-variable
4294         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4295         Omit unused variable.
4297         malloca: pacify gcc -Wbad-function-cast
4298         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4299         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4300         To pacify GCC, I had to cast alloca’s result to some type other
4301         than void * before casting that to uintptr_t.
4303 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4305         utimecmp: new function utimecmpat
4306         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4307         Do not include utimens.h.
4308         (utimecmpat): New function, generalizing utimecmp.
4309         (utimecmp): Now a thin layer around utimecmpat.
4310         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4311         utimensat instead of on lstat and utimens.
4313         same: new function same_nameat
4314         * lib/same.c: Include fcntl.h.
4315         * lib/same.c (same_nameat): New function, generalizing same_name.
4316         (same_name): Now a thin layer around same_nameat.
4317         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4318         * modules/same (Depends-on): Depend on fstatat, openat.
4320 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4322         warnings: Add support for Objective C.
4323         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4324         macro.
4326 2018-02-17  Bruno Haible  <bruno@clisp.org>
4328         lock: Fix test-once1 crash on FreeBSD11.
4329         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4330         'pthread_create', not 'pthread_cancel'.
4332 2018-02-17  Bruno Haible  <bruno@clisp.org>
4334         lock: Add test of gl_once.
4335         * tests/test-once.c: New file.
4336         * modules/lock-tests (Files): Add it.
4337         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4339 2018-02-17  Bruno Haible  <bruno@clisp.org>
4341         thread: Fix compilation error on IRIX.
4342         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4343         needed; include it outside the C++ extern "C" {} block.
4344         * doc/posix-headers/pthread.texi: Mention the problem with
4345         pthread_atfork on IRIX.
4347 2018-02-04  Bruno Haible  <bruno@clisp.org>
4349         nl_langinfo: Override the system's nl_langinfo() when needed.
4350         Reported by Jim Meyering.
4351         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4352         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4354 2018-02-04  Bruno Haible  <bruno@clisp.org>
4356         signal-h, monetary, strings: Fix build failure in some cases.
4357         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4358         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4359         as delimiter in sed command, not '|'.
4360         * modules/monetary (Makefile.am): Likewise.
4361         * modules/strings (Makefile.am): Likewise.
4363 2018-02-03  Jim Meyering  <meyering@fb.com>
4365         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4366         * top/maint.mk (sc_file_system): Don't complain about
4367         "/proc/filesystems".
4369 2018-02-03  Bruno Haible  <bruno@clisp.org>
4371         stdlib: Fix compilation error on OpenIndiana.
4372         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4373         <sys/time.h>.
4374         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4375         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4377 2018-02-03  Bruno Haible  <bruno@clisp.org>
4379         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4380         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4381         and use $EGREP instead of 'grep -E'.
4382         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4383         'grep -E'.
4385 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4387         malloca: Add a compile-time verification.
4388         * lib/malloca.c (small_t): Verify that it is wide enough.
4389         * modules/malloca (Depends-on): Add verify.
4391 2018-02-02  Bruno Haible  <bruno@clisp.org>
4393         malloca: Add an argument check.
4394         Suggested by Paul Eggert.
4395         * lib/malloca.c (freea): Check against an invalid argument.
4397 2018-02-02  Bruno Haible  <bruno@clisp.org>
4399         localename: Add support for OpenIndiana.
4400         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4401         Solaris 11 variants with uselocale() but without getlocalename_l().
4403 2018-02-02  Bruno Haible  <bruno@clisp.org>
4405         malloca, xmalloca: Make multithread-safe.
4406         Reported by Florian Weimer <fweimer@redhat.com>.
4407         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4408         * lib/malloca.h (malloca): In the stack allocation case, return a
4409         pointer that is a multiple of 2 * sa_alignment_max.
4410         (sa_increment): Remove enum item.
4411         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4412         a pointer that is a multiple of 2 * sa_alignment_max.
4413         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4414         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4415         HASH_TABLE_SIZE, mmalloca_results): Remove.
4416         (small_t): New type.
4417         (mmalloca, free): Rewritten.
4418         * lib/malloca.valgrind: Remove file.
4419         * modules/malloca (Files): Remove it.
4420         (Depends-on): Remove verify.
4422 2018-01-31  Bruno Haible  <bruno@clisp.org>
4424         environ: Fix link error on 64-bit Cygwin.
4425         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4426         __declspec(dllimport) attribute.
4427         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4429 2018-01-30  Bruno Haible  <bruno@clisp.org>
4431         get-rusage-data: Add support for Minix 3.
4432         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4434 2018-01-30  Bruno Haible  <bruno@clisp.org>
4436         vma-iter: Add support for Minix 3.
4437         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4438         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4440 2018-01-27  Bruno Haible  <bruno@clisp.org>
4442         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4443         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4444         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4445         _HPUX_ALT_XOPEN_SOCKET_API.
4446         * modules/accept (Depends-on): Add 'extensions'.
4447         * modules/getpeername (Depends-on): Likewise.
4448         * modules/getsockname (Depends-on): Likewise.
4449         * modules/getsockopt (Depends-on): Likewise.
4450         * modules/recvfrom (Depends-on): Likewise.
4451         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4452         * doc/posix-functions/getpeername.texi: Likewise.
4453         * doc/posix-functions/getsockname.texi: Likewise.
4454         * doc/posix-functions/getsockopt.texi: Likewise.
4455         * doc/posix-functions/recvfrom.texi: Likewise.
4457 2018-01-27  Bruno Haible  <bruno@clisp.org>
4459         getsockname tests: More tests.
4460         * tests/test-getsockname.c (open_server_socket): New function, mostly
4461         copied from test-poll.c.
4462         (main): Check that getsockname fills in addr.
4463         * modules/getsockname-tests (Depends-on): Add the necessary
4464         dependencies.
4465         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4467 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4469         manywarnings: fix maintainer comment
4470         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4471         it does not mistakenly think that ‘-1)’ is an option.
4473 2018-01-26  Bruno Haible  <bruno@clisp.org>
4475         langinfo: Fix last commit.
4476         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4477         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4479 2018-01-24  Bruno Haible  <bruno@clisp.org>
4481         langinfo, nl_langinfo: Add support for alternative month names.
4482         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4483         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4484         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4485         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4486         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4487         * doc/posix-functions/nl_langinfo.texi: Likewise.
4489 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4491         Merge strftime.c changes from glibc
4492         This incorporates:
4493         2017-11-14 [BZ #10871] Implement alternative month names
4494         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4495         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4496         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4497         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4498         Use locale_t, not __locale_t.
4499         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4500         (__strftime_internal): Add support for alternate months.
4502 2018-01-23  Bruno Haible  <bruno@clisp.org>
4504         doc: Mention another prerequisite for using Gnulib.
4505         Reported at <https://stackoverflow.com/questions/48378214/>.
4506         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4507         AC_CONFIG_HEADERS.
4509 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4511         build: GuixSD doesn't have /bin/bash
4512         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4514 2018-01-21  Bruno Haible  <bruno@clisp.org>
4516         Avoid test failures on Microsoft Windows Subsystem for Linux.
4517         * tests/test-fcntl.c (main): Allow a different errno.
4518         * tests/test-rename.h (test_rename): Likewise.
4519         * tests/test-renameat.c (main): Likewise.
4520         * tests/test-renameat2.c (main): Likewise.
4522 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4524         filenamecat: make base a suffix of result
4525         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4526         (mfile_name_concat): Always make BASE a suffix of the result, as
4527         cp expects this.  To implement this, separate with '.' instead of
4528         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4529         * tests/test-filenamecat.c (main): Adjust tests to match
4530         current behavior.  Check that BASE_IN_RESULT points to
4531         a copy of BASE and is a suffix of the resultk, and that DIR
4532         is a prefix of the result that is no longer than the prefix
4533         indicated by BASE_IN_RESULT.
4535 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4537         update-copyright: Handle use of ©
4538         * build-aux/update-copyright ($circle_c_re): Update regex to
4539         handle use of © in headers.
4541 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4543         Fix -Wundef warning in user-included header lib/cdefs.h.
4544         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4546 2018-01-04  Bruno Haible  <bruno@clisp.org>
4548         pthread_sigmask: Avoid compilation error on mingw.
4549         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4550         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4551         macro.
4553 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4555         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4556         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4557         Suggested by Bob Proulx (Bug#29968).
4558         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4560 2018-01-02  Eric Blake  <eblake@redhat.com>
4562         stat-time: silence -Wunused-parameter regression
4563         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4564         Prefer attribute over cast-to-void.
4565         (stat_time_normalize): Mark st as potentially unused.
4567 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4569         test-framework-sh: avoid netstat
4570         Problem reported by Kristýna Streitová (Bug#29947).
4571         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4572         deprecated on SuSE and it's not that important anyway.
4574 2018-01-01  Jim Meyering  <meyering@fb.com>
4576         update-copyright: add code to handle more special cases
4577         After running "make update-copyright" this year, five files
4578         required additional manual changes.  Automate those adjustments
4579         for next year.
4580         * Makefile (_year_and_prev): Define.
4581         (update-copyright): Add perl commands to induce this year's post-
4582         update-copyright adjustments.
4584 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4586         version-etc: new year
4587         * build-aux/gendocs.sh (version):
4588         * doc/gendocs_template:
4589         * doc/gendocs_template_min:
4590         * doc/gnulib.texi:
4591         * lib/version-etc.c (COPYRIGHT_YEAR):
4592         Update copyright dates by hand in templates and the like.
4594         maint: fix 'make update-copyright'
4595         * Makefile (update-copyright): Adjust to 2016-11-23 change
4596         to config/srclist-update, which changed the format of srclist.txt.
4598 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4600         chdir-safer: remove this module
4601         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4602         * NEWS: Document removal.
4603         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4604         * modules/chdir-safer: Remove these files.
4606 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4608         Add cross-compilation results for GNU/Hurd.
4609         * m4/calloc.m4: Add GNU/Hurd guess.
4610         * m4/cbrtl.m4: Likewise.
4611         * m4/ceil.m4: Likewise.
4612         * m4/ceilf.m4: Likewise.
4613         * m4/ceill.m4: Likewise.
4614         * m4/chown.m4: Likewise.
4615         * m4/duplocale.m4: Likewise.
4616         * m4/exp2l.m4: Likewise.
4617         * m4/expm1.m4: Likewise.
4618         * m4/fchdir.m4: Likewise.
4619         * m4/floor.m4: Likewise.
4620         * m4/floorf.m4: Likewise.
4621         * m4/fmod.m4: Likewise.
4622         * m4/fmodf.m4: Likewise.
4623         * m4/fmodl.m4: Likewise.
4624         * m4/getcwd.m4: Likewise.
4625         * m4/getgroups.m4: Likewise.
4626         * m4/gettimeofday.m4: Likewise.
4627         * m4/hypot.m4: Likewise.
4628         * m4/hypotf.m4: Likewise.
4629         * m4/hypotl.m4: Likewise.
4630         * m4/link-follow.m4: Likewise.
4631         * m4/link.m4: Likewise.
4632         * m4/linkat.m4: Likewise.
4633         * m4/log.m4: Likewise.
4634         * m4/log10.m4: Likewise.
4635         * m4/log10f.m4: Likewise.
4636         * m4/log1p.m4: Likewise.
4637         * m4/log1pf.m4: Likewise.
4638         * m4/log1pl.m4: Likewise.
4639         * m4/log2.m4: Likewise.
4640         * m4/log2f.m4: Likewise.
4641         * m4/logf.m4: Likewise.
4642         * m4/lstat.m4: Likewise.
4643         * m4/malloc.m4: Likewise.
4644         * m4/mbrlen.m4: Likewise.
4645         * m4/mbrtowc.m4: Likewise.
4646         * m4/mkdir.m4: Likewise.
4647         * m4/mkfifo.m4: Likewise.
4648         * m4/mknod.m4: Likewise.
4649         * m4/mkstemp.m4: Likewise.
4650         * m4/modf.m4: Likewise.
4651         * m4/modff.m4: Likewise.
4652         * m4/modfl.m4: Likewise.
4653         * m4/printf.m4: Likewise.
4654         * m4/pselect.m4: Likewise.
4655         * m4/ptsname.m4: Likewise.
4656         * m4/putenv.m4: Likewise.
4657         * m4/readlink.m4: Likewise.
4658         * m4/realloc.m4: Likewise.
4659         * m4/remainder.m4: Likewise.
4660         * m4/remainderf.m4: Likewise.
4661         * m4/remainderl.m4: Likewise.
4662         * m4/rmdir.m4: Likewise.
4663         * m4/round.m4: Likewise.
4664         * m4/roundf.m4: Likewise.
4665         * m4/roundl.m4: Likewise.
4666         * m4/select.m4: Likewise.
4667         * m4/setenv.m4: Likewise.
4668         * m4/signbit.m4: Likewise.
4669         * m4/sleep.m4: Likewise.
4670         * m4/stat.m4: Likewise.
4671         * m4/strerror.m4: Likewise.
4672         * m4/strtok_r.m4: Likewise.
4673         * m4/symlink.m4: Likewise.
4674         * m4/symlinkat.m4: Likewise.
4675         * m4/trunc.m4: Likewise.
4676         * m4/truncf.m4: Likewise.
4677         * m4/truncl.m4: Likewise.
4678         * m4/tzset.m4: Likewise.
4679         * m4/ungetc.m4: Likewise.
4680         * m4/usleep.m4: Likewise.
4681         * m4/wcwidth.m4: Likewise.
4683 2017-12-28  Bruno Haible  <bruno@clisp.org>
4685         gnulib-tool: Make --conditional-dependencies work better.
4686         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4687         * gnulib-tool (Options): Don't reject the combination of
4688         --conditional-dependencies with --with-tests.
4689         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4690         Don't reference $modules.
4691         (func_import, func_create_testdir): Pass it.
4693 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4695         regex: use re_malloc etc. consistently
4696         Problem and original patch reported by Arnold Robbins in:
4697         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4698         * lib/regcomp.c (re_comp):
4699         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4700         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4702 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4703             Paul Eggert  <eggert@cs.ucla.edu>
4705         glob: Silence warning about void pointer arithmetic.
4706         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4707         arithmetic.
4709 2017-12-15  Bruno Haible  <bruno@clisp.org>
4711         spawn-pipe: Silence a clang warning.
4712         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4713         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4714         in this file.
4716 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4718         explicit_bzero: port to macOS + Clang 9.0.0
4719         Problem reported by Marcus Johnson (Bug#29658).
4720         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4721         Don’t use asm.
4723 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4725         doc: Improve explanation of supporting relocatable libraries.
4726         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4727         properly how to build the relocatable module for
4728         libraries. (Method and example code from Bruno Haible.)
4730 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4732         doc: Use better texinfo tags in a few cases.
4733         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4734         instead of @samp in a few places.
4736 2017-12-11  Bruno Haible  <bruno@clisp.org>
4738         unistr/base: Update comment.
4739         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4741 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4743         test-faccessat.c: unlink temp file to avoid subsequent test failure
4744         * tests/test-faccessat.c: Remove the file to avoid failure
4745         to open the file on subsequent runs due to being created
4746         with no permissions.
4748 2017-12-10  Bruno Haible  <bruno@clisp.org>
4750         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4751         * doc/gnulib-tool.texi (Modified build rules): New node.
4753 2017-12-10  Bruno Haible  <bruno@clisp.org>
4755         doc: Tweak wording.
4756         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4757         "binaries".
4759 2017-12-05  Sam Steingold  <sds@gnu.org>
4760             Bruno Haible  <bruno@clisp.org>
4762         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4763         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4764         AC_EGREP_CPP pattern.
4766 2017-12-03  Bruno Haible  <bruno@clisp.org>
4768         all: Replace more http URLs by https URLs.
4769         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4770         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4771         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4772         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4774 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4776         Port better to CentOS 5
4777         Problems reported by Tom G. Christensen in:
4778         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4779         * doc/glibc-functions/strverscmp.texi (strverscmp):
4780         Document strverscmp bug with glibc 2.9 and earlier.
4781         * doc/posix-functions/tzset.texi (tzset):
4782         Document that TZ with angle brackets is POSIX-2001 and later.
4783         * tests/test-nstrftime.c: Include unistd.h.
4784         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4785         (TZ): Use it to skip tests with angle brackets in TZ,
4786         for older systems.
4788         stat: add missing module dependencies
4789         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4790         Add stat-time.
4792 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4794         stat: fix compilation failure on macOS Sierra
4795         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4796         https://savannah.gnu.org/bugs/?52546
4797         * lib/stat.c: Add missing include of stat-time.h.
4799 2017-11-28  Jim Meyering  <meyering@fb.com>
4801         test-faccessat.c: correct BASE definition to avoid parallel test failure
4802         * tests/test-faccessat.c (BASE): Define using this file's name, not
4803         that of test-lstat.c.  Using the latter caused this test to fail
4804         sometimes when run concurrently with test-lstat.
4806 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4808         unicase: fix VPATH build
4809         * modules/unicase/special-casing (Makefile.am): Ensure that the
4810         base directory is created when generating
4811         unicase/special-casing.h.
4813 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4815         libunistring: update to Unicode 9.0.0
4816         * lib/gen-uni-tables.c (fill_properties): Recognize
4817         Sentence_Terminal and Prepended_Concatenation_Mark.
4818         (is_property_default_ignorable_code_point): Exclude U+08E2.
4819         (fill_arabicshaping): Allow missing whitespace when parsing;
4820         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4821         (output_blocks): Increase the element size of the level1 table to
4822         accommodate more blocks.
4823         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4824         Update each class according to the standard.
4825         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4826         E_Base_GAZ characters.
4827         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4828         Glue_After_Zwj, and E_Base_GAZ characters.
4829         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4830         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4831         enum value.
4832         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4833         value.
4834         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4835         LBP_ZWJ, LBP_EB, and LBP_EM.
4836         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4837         enum value.
4838         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4839         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4840         declaration.
4841         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4842         (uniwbrk_table): Implement WB14.
4843         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4844         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4845         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4846         uc-is-grapheme-break.
4847         * modules/unigbrk/uc-grapheme-breaks: New module.
4848         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4849         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4850         enum value.
4851         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4852         * lib/unigbrk/u-grapheme-breaks.h: New file.
4853         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4854         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4855         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4856         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4857         29.
4858         * tests/unigbrk/test-uc-gbrk-prop.c
4859         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4860         GBP_GAZ, and GBP_EBG.
4861         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4862         * tests/unigbrk/test-uc-is-grapheme-break.c
4863         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4864         GBP_GAZ, and GBP_EBG.
4865         (main): Skip unsupported rules involving 3 or more characters,
4866         namely GB10, GB12, and GB13.
4867         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4868         * all generated files under lib/uni* and tests/uni*: Regenerate.
4869         * all the affected modules: Bump version.
4871 2017-11-26  Bruno Haible  <bruno@clisp.org>
4873         strfmon_l: Fix compilation error with glibc 2.5.
4874         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4875         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4876         * lib/monetary.in.h: Include also <locale.h>.
4878 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4880         posixtm: remove PDS_LEADING_YEAR
4881         This changes the API slightly, in a hopefully-innocuous way.
4882         Without this change the code had undefined behavior when a
4883         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4884         Problem reported by Pádraig Brady in:
4885         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4886         * NEWS: Mention this.
4887         * lib/posixtm.c (posix_time_parse): Treat the absence of
4888         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4889         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4890         present, but define it as zero, for compatibility with existing
4891         source code).  All other PDS_* values moved up.
4892         * tests/test-posixtm.c (LY): New macro.
4893         (T): Use it.  Do not expect a particular numeric encoding
4894         for PDS_CENTURY etc.
4896 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4898         stat: work around Solaris bug with tv_nsec < 0
4899         * doc/posix-functions/fstat.texi (fstat):
4900         * doc/posix-functions/fstatat.texi (fstatat):
4901         * doc/posix-functions/lstat.texi (lstat):
4902         * doc/posix-functions/stat.texi (stat):
4903         Mention Solaris 11 bug.
4904         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4905         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4906         * lib/lstat.c (rpl_lstat):
4907         * lib/stat.c (rpl_stat):
4908         Normalize resulting timestamps.
4909         * lib/fstatat.c (normal_fstatat): New function.
4910         (rpl_fstatat): Use it.
4911         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4912         (stat_time_normalize): New function.
4913         * m4/fstat.m4 (gl_FUNC_FSTAT):
4914         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4915         * m4/lstat.m4 (gl_FUNC_LSTAT):
4916         * m4/stat.m4 (gl_FUNC_STAT):
4917         Replace on Solaris.
4918         * modules/fstat (Depends-on):
4919         * modules/fstatat (Depends-on):
4920         Add stat-time.
4921         * modules/stat-time (Depends-on): Add errno, intprops.
4923 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4925         regex: merge from glibc
4926         * lib/regcomp.c (init_word_char): Add comments.
4928 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4930         regex: merge from glibc
4931         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4932         * lib/regex_internal.h (internal_function): Remove.
4933         All uses removed.
4935 2017-11-20  Bruno Haible  <bruno@clisp.org>
4937         crypto/gc-sm3: Fix buffer overrun.
4938         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4939         Reported by Coverity.
4941 2017-11-12  Jim Meyering  <meyering@fb.com>
4943         maint: shorten https://lists.gnu.org/archive/html/... links
4944         Each /archive/html/ part can be replace with /r/.
4945         Run this to induce the change:
4946         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4947         * ChangeLog: Perform that substitution.
4948         * Makefile: Likewise.
4949         * STATUS-libposix: Likewise.
4950         * build-aux/bootstrap: Likewise.
4951         * doc/maintain.texi: Likewise.
4952         * gnulib-tool: Likewise.
4953         * lib/allocator.h: Likewise.
4954         * lib/argp-ba.c: Likewise.
4955         * lib/argp-pv.c: Likewise.
4956         * lib/canon-host.c: Likewise.
4957         * lib/canonicalize-lgpl.c: Likewise.
4958         * lib/float.in.h: Likewise.
4959         * lib/fstat.c: Likewise.
4960         * lib/getdelim.c: Likewise.
4961         * lib/getprogname.c: Likewise.
4962         * lib/glthread/thread.h: Likewise.
4963         * lib/intprops.h: Likewise.
4964         * lib/mbsrtowcs-state.c: Likewise.
4965         * lib/safe-read.c: Likewise.
4966         * lib/signal.in.h: Likewise.
4967         * lib/stat.c: Likewise.
4968         * lib/stdbool.in.h: Likewise.
4969         * lib/stdio-impl.h: Likewise.
4970         * lib/stdio.in.h: Likewise.
4971         * lib/sysexits.in.h: Likewise.
4972         * lib/timespec.h: Likewise.
4973         * lib/wcsrtombs-state.c: Likewise.
4974         * m4/alloca.m4: Likewise.
4975         * m4/extern-inline.m4: Likewise.
4976         * m4/fstatat.m4: Likewise.
4977         * m4/gnulib-common.m4: Likewise.
4978         * m4/lib-ignore.m4: Likewise.
4979         * m4/printf.m4: Likewise.
4980         * m4/regex.m4: Likewise.
4981         * m4/stat-size.m4: Likewise.
4982         * m4/std-gnu11.m4: Likewise.
4983         * m4/stdbool.m4: Likewise.
4984         * m4/sys_types_h.m4: Likewise.
4985         * m4/threadlib.m4: Likewise.
4986         * m4/vararrays.m4: Likewise.
4987         * pygnulib/GLImport.py: Likewise.
4988         * tests/test-exp.h: Likewise.
4989         * tests/test-exp2.h: Likewise.
4990         * tests/test-expm1.h: Likewise.
4991         * tests/test-fflush2.c: Likewise.
4992         * tests/test-getopt_long.h: Likewise.
4993         * tests/test-intprops.c: Likewise.
4994         * tests/test-log.h: Likewise.
4995         * tests/test-log10.h: Likewise.
4996         * tests/test-log1p.h: Likewise.
4997         * tests/test-log2.h: Likewise.
4998         * tests/test-printf-posix.h: Likewise.
4999         * tests/test-regex.c: Likewise.
5000         * tests/test-snprintf-posix.h: Likewise.
5001         * tests/test-sprintf-posix.h: Likewise.
5002         * tests/test-stdalign.c: Likewise.
5003         * tests/test-stdbool.c: Likewise.
5004         * tests/test-vasnprintf-posix.c: Likewise.
5005         * tests/test-vasprintf-posix.c: Likewise.
5006         * top/maint.mk: Likewise.
5008 2017-11-12  Bruno Haible  <bruno@clisp.org>
5010         faccessat: Make the last change more robust.
5011         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
5012         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
5014 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5016         faccessat: port to macOS (Bug#29231)
5017         macOS faccessat has the same bug that lstat does: if the file
5018         name ends in '/' it ignores the trailing slash.
5019         Problem reported for Emacs by Vincent Zhang.
5020         * doc/posix-functions/faccessat.texi (faccessat): Document this.
5021         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
5022         around the initial includes.  Include errno.h, string.h, sys/stat.h.
5023         (orig_faccessat) [HAVE_FACCESSAT]: New function.
5024         Include "unistd.h" after defining it.
5025         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
5026         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
5027         Handle in the usual way.
5028         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
5029         lstat dereferences symlinks, since faccessat is likely to
5030         have the same problem.
5031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
5032         * modules/faccessat (Depends-on): Add fstatat.
5033         Depend if REPLACE_FACCESSAT is 1, too.
5034         (configure.ac): Link if REPLACE_FACCESSAT is 1.
5035         * modules/faccessat-tests (Depends-on): Add symlink.
5036         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
5037         * tests/test-faccessat.c (main): Test for the bug.
5039 2017-11-11  Bruno Haible  <bruno@clisp.org>
5041         getprogname: Fix compilation error on IRIX.
5042         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
5043         'namesize'.
5045 2017-11-11  Bruno Haible  <bruno@clisp.org>
5047         year2038: Tweak last patch.
5048         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
5050 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5052         year2038: be more insistent about 64-bit time_t
5053         Applications requiring access to arbitrary files should not be
5054         built with 32-bit time_t on hosts that have 64-bit timestamps,
5055         as this can lead to real trouble at runtime.
5056         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
5057         Check on all systems, not just MinGW.  Use a heuristic involving
5058         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
5059         output a failure or just a warning, to make it more likely that
5060         builders will select 64-bit time_t.
5062 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5064         havelib: fix typo in previous change
5065         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
5067         Don’t use AC_EGREP_CPP if affected by CFLAGS
5068         * m4/float_h.m4 (gl_FLOAT_H):
5069         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
5070         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
5071         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
5072         * m4/year2038.m4 (gl_YEAR2038):
5073         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
5074         likely to be affected by the choice of CFLAGS, since CFLAGS are
5075         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
5076         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
5078         fstatat: pacify GCC on unusual platform
5079         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
5080         Omit, as it’s unused in this case.
5082 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
5084         timespec: prefer ‘assume’ to ‘assure’
5085         This avoids some runtime tests.  The rest of the module makes
5086         similar assumptions and there is little point to testing here.
5087         * lib/timespec.h: Include verify.h instead of assure.h.
5088         (timespec_cmp): Use ‘assume’, not ‘assure’.
5089         Also, remove an unnecessary cast to ‘int’, as lots of other
5090         code in this module now causes -Wconversion to complain, and
5091         this is a problem with -Wconversion not with the code.
5093         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
5095         Port recent gnulib-tool change to Dash
5096         * gnulib-tool (func_create_testdir): Don't assume that the shell
5097         retokenizes after expanding "$@" inside the call to
5098         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
5100 2017-10-27  Jim Meyering  <meyering@fb.com>
5102         timespec.h: use "assure" to avoid a spurious warning
5103         * lib/timespec.h: Include "assure.h" and use it to help
5104         gcc7's -Wstrict-overflow avoid a false positive warning
5105         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5106         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5107         * modules/timespec (Depends-on): Add assure.
5109 2017-10-29  Bruno Haible  <bruno@clisp.org>
5111         Avoid several test failures with traditional locales on Haiku.
5112         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5113         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5114         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5115         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5116         LOCALE_ZH_CN=none.
5118 2017-10-29  Bruno Haible  <bruno@clisp.org>
5120         strerror_r-posix: Fix behaviour and test failure on Haiku.
5121         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5122         are positive. Work around return value 0 instead of ERANGE on Haiku.
5123         For unknown error numbers, use a format string consistent with perror().
5124         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5125         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5126         are positive.
5128 2017-10-29  Bruno Haible  <bruno@clisp.org>
5130         get-rusage-data: Avoid crash on Haiku.
5131         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5133 2017-10-29  Bruno Haible  <bruno@clisp.org>
5135         get-rusage-as: Avoid crash on Haiku.
5136         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5138 2017-10-29  Bruno Haible  <bruno@clisp.org>
5140         ilogbl: Ensure replacement on Haiku.
5141         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5142         REPLACE_ILOGBL if ilogbl does not work.
5143         (gl_FUNC_ILOGBL_WORKS): New macro.
5144         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5146         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5147         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5148         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5150 2017-10-29  Bruno Haible  <bruno@clisp.org>
5152         expl: Ensure replacement on Haiku.
5153         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5154         zero.
5155         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5157 2017-10-29  Bruno Haible  <bruno@clisp.org>
5159         math: Fix test failure on Haiku.
5160         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5161         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5162         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5163         * doc/posix-headers/math.texi: Mention the Haiku problem.
5165 2017-10-29  Bruno Haible  <bruno@clisp.org>
5167         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5168         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5169         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5171 2017-10-29  Bruno Haible  <bruno@clisp.org>
5173         crypto/*: Verify that the header file is self-contained.
5174         * tests/test-gc-*.c: Include the module's header file immediately after
5175         <config.h>.
5176         * tests/test-hmac-*.c: Likewise.
5177         * tests/test-arcfour.c: Likewise.
5178         * tests/test-arctwo.c: Likewise.
5179         * tests/test-des.c: Likewise.
5180         * tests/test-md2.c: Likewise.
5181         * tests/test-md4.c: Likewise.
5182         * tests/test-md5.c: Likewise.
5183         * tests/test-rijndael.c: Likewise.
5184         * tests/test-sha1.c: Likewise.
5185         * tests/test-sm3.c: Likewise.
5187 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5188             Bruno Haible  <bruno@clisp.org>
5190         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5191         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5193 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5195         New module: crypto/gc-sm3
5196         * lib/gc.h: Declare SM3-related stuffs.
5197         * lib/gc-gnulib.c: Support sm3 in internal functions.
5198         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5199         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5200         * modules/crypto/gc-sm3: Define gc-sm3 module.
5201         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5202         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5203         * MODULES.html.sh: List gc-sm3 module.
5205 2017-10-29  Bruno Haible  <bruno@clisp.org>
5207         random, random_r: Mention different prototypes on Haiku.
5208         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5209         * doc/glibc-functions/random_r.texi: Likewise.
5210         * doc/glibc-functions/initstate_r.texi: Likewise.
5211         * doc/glibc-functions/setstate_r.texi: Likewise.
5213 2017-10-28  Bruno Haible  <bruno@clisp.org>
5215         posix_spawn: Avoid spurious message in configure output.
5216         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5217         'cmp' command.
5219 2017-10-28  Bruno Haible  <bruno@clisp.org>
5221         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5222         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5223         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5225 2017-10-28  Bruno Haible  <bruno@clisp.org>
5227         ioctl: Override non-POSIX declaration on Haiku.
5228         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5229         * lib/sys_ioctl.in.h: Add comment about Haiku.
5230         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5231         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5233 2017-10-28  Bruno Haible  <bruno@clisp.org>
5235         crypto/sm3: Add overview documentation to the .h file.
5236         * lib/sm3.h: Add comments.
5238 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5240         New module: crypto/sm3
5241         This new module can be used to compute SM3 message digest of files or
5242         memory blocks according to the specification GM/T 004-2012
5243         Cryptographic Hash Algorithm SM3, published by State Cryptography
5244         Administration, China.
5245         The official SM3 cryptographic hash algorithm specification is
5246         available at
5247         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5248         * lib/sm3.h: Declare the APIs of sm3 module.
5249         * lib/sm3.c: Implement SM3 hash algorithm.
5250         * m4/sm3.m4: m4 file for sm3 module.
5251         * modules/crypto/sm3: Define sm3 module.
5252         * tests/test-sm3.c: Implement SM3 test case.
5253         * modules/crypto/sm3-tests: Define sm3 test module.
5254         * MODULES.html.sh: List sm3 module.
5256 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5258         gc-libgcrypt: fix undefined enum type in switch statement
5259         Resolve the following build failure:
5260         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5261         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5262         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5263              case 0:
5264              ^~~~
5265         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5266         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5268 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5270         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5271         Resolve the following build failure:
5272         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5273         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5274         in signedness [-Werror=pointer-sign]
5275             digest = gcry_md_read (ctx->gch, 0);
5276                    ^
5277         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5279 2017-10-26  Bruno Haible  <bruno@clisp.org>
5281         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5282         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5283         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5285 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5287         glob: fix another heap buffer overflow
5288         Problem reported by Tim Rühsen in:
5289         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5290         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5292 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5294         quotearg: pacify compiler re unsigned
5295         * lib/quotearg.c (quotearg_n_options):
5296         Rewrite to avoid diagnostic from overly-picky compiler.
5297         Problem reported by Sami Kerola in:
5298         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5300         glob: fix heap buffer overflow
5301         * lib/glob.c (glob): Fix off-by-one error introduced into
5302         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5303         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5304         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5305         Fix suggested by Bruno Haible.
5307 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5309         glob: pacify fuzzer for mempcpy
5310         Problem reported by Tim Rühsen in:
5311         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5312         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5314 2017-10-12  Bruno Haible  <bruno@clisp.org>
5316         doc: Fix syntax error (regression from 2017-10-03).
5317         * doc/posix-functions/strncpy.texi: Fix syntax error.
5319 2017-10-12  Bruno Haible  <bruno@clisp.org>
5321         doc: Update for Solaris 11.3.
5322         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5323         mention Solaris 11.3.
5324         * m4/log2.m4: Fix comments.
5325         * m4/log2f.m4: Likewise.
5326         * m4/printf.m4: Update comments.
5327         * m4/rename.m4: Likewise.
5328         * m4/strncat.m4: Likewise.
5330         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5332 2017-10-10  Bruno Haible  <bruno@clisp.org>
5334         doc: Improve doc about ioctl.
5335         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5336         prototype.
5338 2017-10-09  Bruno Haible  <bruno@clisp.org>
5340         wcwidth: Don't use obsolete syntax of 'test'.
5341         Reported by Eric Blake.
5342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5343         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5345 2017-10-09  Bruno Haible  <bruno@clisp.org>
5347         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5348         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5349         and Daniel P. Berrange <berrange@redhat.com>.
5350         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5351         on glibc systems. The getopt-pfx-core.h file declares exactly what
5352         unistd.h needs, nothing more.
5354 2017-10-08  Bruno Haible  <bruno@clisp.org>
5356         vma-iter: Improve support for FreeBSD.
5357         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5358         vma_iterate.
5359         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5361 2017-10-08  Bruno Haible  <bruno@clisp.org>
5363         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5364         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5366 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5368         test-framework-sh: Fix 'invalid path dir' error.
5369         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5370         separator between a drive letter and directory parts.
5371         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5372         treated as an invalid path dir.
5373         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5374         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5375         instead of hard coded ':'.
5377 2017-10-07  Bruno Haible  <bruno@clisp.org>
5379         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5380         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5381         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5382         (rof_open): On Linux, do multiple read() calls and make sure
5383         MIN_LEFTOVER bytes are left when read() returns.
5385 2017-10-07  Bruno Haible  <bruno@clisp.org>
5387         vma-iter: Improve support for GNU/Hurd.
5388         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5389         API, not the /proc file system.
5391 2017-10-07  Bruno Haible  <bruno@clisp.org>
5393         test-framework-sh: Don't require bash on Windows and OS/2.
5394         Reported by KO Myung-Hun.
5395         * tests/test-init.sh: Use 'shopt' only when running in bash.
5397 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5399         wcwidth: check a macro version of wcwidth () as well
5400         * lib/wchar.in.h: Revert commit from 2016-01-14.
5401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5403 2017-10-06  Bruno Haible  <bruno@clisp.org>
5405         getopt-posix: Clarify copyright header.
5406         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5407         * lib/getopt-pfx-core.h: Likewise.
5408         * lib/getopt-pfx-ext.h: Likewise.
5409         * lib/getopt-cdefs.in.h: Likewise.
5411 2017-10-03  Bruno Haible  <bruno@clisp.org>
5413         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5414         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5415         gl_HOST_CPU_C_ABI.
5417 2017-10-03  Bruno Haible  <bruno@clisp.org>
5419         doc: warn about misuse of strncpy and wcsncpy.
5420         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5421         memory allocation.
5422         * doc/posix-functions/wcscpy.texi: Likewise.
5423         * doc/posix-functions/strncpy.texi: Describe what this function is not
5424         useful for.
5425         * doc/posix-functions/wcsncpy.texi: Likewise.
5427 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5429         fsuage: fix typo in previous change
5430         * lib/fsusage.c: Remove stray include of full-read.h.
5431         Problem reported by Sam Steingold for macOS (Bug#28669).
5433 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5435         fsusage: remove SVR2 support
5436         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5437         and its code was getting in the way of use of this module by
5438         Emacs, which has its own ‘read’ function anyway.
5439         * lib/fsusage.c: Do not include sys/filsys.h.
5440         (get_fs_usage): Remove SVR2-specific code.
5441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5442         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5443         * modules/fsusage (Depends-on): Do not depend on full-read.
5445         Simplify autoupdate of licenses
5446         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5447         place.
5449 2017-10-01  Bruno Haible  <bruno@clisp.org>
5451         vma-iter: Add support for GNU/Hurd.
5452         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5453         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5455 2017-09-30  Bruno Haible  <bruno@clisp.org>
5457         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5458         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5459         fail when module 'largefile' is in use.
5460         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5461         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5462         Don't test HAVE_SYS_PROCFS_H.
5464 2017-09-30  Bruno Haible  <bruno@clisp.org>
5466         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5467         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5468         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5469         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5471 2017-09-30  Bruno Haible  <bruno@clisp.org>
5473         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5474         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5475         scope of local variables.
5477 2017-09-28  Bruno Haible  <bruno@clisp.org>
5479         string: code style
5480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5481         substitutable variables.
5482         * modules/string (Makefile.am): Likewise.
5484 2017-09-26  Bruno Haible  <bruno@clisp.org>
5486         uniname/uniname-tests: Tighten code.
5487         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5488         local variables into one.
5490 2017-09-26  Bruno Haible  <bruno@clisp.org>
5492         vma-iter: Improvements for Linux and BSD platforms.
5493         - Add support for DragonFly BSD.
5494         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5495         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5496         Read the entire file into memory in a single system call.
5497         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5498         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5500 2017-09-26  Bruno Haible  <bruno@clisp.org>
5502         vma-iter: Provide the protection flags on FreeBSD.
5503         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5504         skip three fields between the addresses and the protection flags.
5506 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5508         glob: remove bogus extern decl
5509         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5510         extern declaration.  Problem reported by Adhemerval Zanella in:
5511         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5513 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5515         uniname/uniname-tests: integer overflow fix
5516         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5517         Check for integer overflow.
5519         duplocale-tests: fix unlikely crash
5520         * tests/test-duplocale.c (get_locale_dependent_values):
5521         Don’t crash with absurdly long month names.
5523         maint: fix overflow checking in nap.h
5524         * modules/chown-tests:
5525         * modules/fchownat-tests, modules/fdutimensat-tests:
5526         * modules/futimens-tests, modules/lchown-tests:
5527         * modules/stat-time-tests, modules/utime-tests:
5528         * modules/utimens-tests, modules/utimensat-tests:
5529         Depend on intprops.
5530         * tests/nap.h: Include intprops.h.
5531         (diff_timespec): Handle overflow properly.
5533         sys_types: update URL
5534         * m4/sys_types_h.m4: Use https: URL.
5536         parse-datetime: fix dependency
5537         * modules/parse-datetime (Depends-on): Depend
5538         on nstrftime, not strftime.
5540         parse-datetime, posixtm: avoid uninit access
5541         * lib/parse-datetime.y (parse_datetime2):
5542         * lib/posixtm.c (posixtime):
5543         Do not access uninitialized storage, even though the resulting
5544         value is never used.
5546 2017-09-25  Bruno Haible  <bruno@clisp.org>
5548         vma-iter: Improvements for BSD platforms.
5549         - Add support for GNU/kFreeBSD.
5550         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5551         - Speed up on OpenBSD.
5552         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5553         (vma_iterate_bsd): New function.
5554         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5555         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5556         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5557         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5559 2017-09-23  Bruno Haible  <bruno@clisp.org>
5561         strfmon_l: New module.
5562         * modules/strfmon_l: New file.
5563         * lib/strfmon_l.c: New file.
5564         * m4/strfmon_l.m4: New file.
5565         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5566         * modules/strfmon_l-tests: New file.
5567         * tests/test-strfmon_l.c: New file.
5569         monetary: New module.
5570         * modules/monetary: New file.
5571         * lib/monetary.in.h: New file.
5572         * m4/monetary_h.m4: New file.
5573         * doc/posix-headers/monetary.texi: Mention the new module.
5574         * modules/monetary-tests: New file.
5575         * tests/test-monetary.c: New file.
5576         * modules/monetary-c++-tests: New file.
5577         * tests/test-monetary-c++.cc: New file.
5578         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5580 2017-09-23  Bruno Haible  <bruno@clisp.org>
5582         duplocale tests: Fix test crash on Linux/x86.
5583         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5584         locale from the current thread before freeing it.
5586 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5588         mktime: port to OpenVMS
5589         Problem reported by John E. Malmberg in:
5590         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5591         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5593 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5595         manywarnings: port to GCC on 64-bit MS-Windows
5596         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5597         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5598         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5600 2017-09-13  Bruno Haible  <bruno@clisp.org>
5602         all: Replace many more http URLs by https URLs. Update stale URLs.
5603         * users.txt: Remove mention of 'newts'.
5604         * lib/localename.c: Update comment about LANG_SOTHO.
5606 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5608         all: Replace many http URLs by https URLs.
5610 2017-09-12  Bruno Haible  <bruno@clisp.org>
5612         doc: Prefer https URLs where possible.
5613         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5614         * doc/ld-output-def.texi: Remove unavailable URL.
5616 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5618         maintainer-makefile: FTP -> HTTPS
5619         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5620         of FTP, which is planned to be decommissioned on 2017-11-01.
5622 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5624         libc-config: Fix __GNUC_PREREQ macro.
5625         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5626         __GNUC_MINOR.
5628 2017-09-09  Bruno Haible  <bruno@clisp.org>
5630         gnulib-tool: Simplify commit from 2015-08-20.
5631         * gnulib-tool (func_add_or_update): Remove local variable
5632         is_binary_file.
5634 2017-09-08  Bruno Haible  <bruno@clisp.org>
5636         stddef: Avoid conflict with system-defined max_align_t.
5637         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5638         Reported by Werner Lemberg <wl@gnu.org> in
5639         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5640         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5641         (max_align_t): Define as a macro.
5642         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5643         definitions of rpl_max_align_t in different copies of gnulib-generated
5644         <stddef.h>.
5646 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5648         libc-config: port to MSVC
5649         Problems reported by Gisle Vanem in:
5650         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5651         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5652         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5653         * m4/__inline.m4: New file.
5654         * modules/libc-config (Files): Add it.
5655         (Depends-on): Use it.
5657         glob: Use enum for __glob_pattern_type result
5658         From a patch proposed by Adhemerval Zanella in:
5659         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5660         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5661         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5662         * lib/glob_internal.h (__glob_pattern_type):
5663         * lib/glob.c (glob):
5664         * lib/glob_pattern_p.c (__glob_pattern_p):
5665         Use them.
5667         glob: fix for use in glibc
5668         Problem reported by Adhemerval Zanella in:
5669         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5670         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5671         Do not redefine if _LIBC.
5673 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5675         glob: fix bugs with long login names
5676         Problem reported by Adhemerval Zanella in:
5677         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5678         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5679         (glob): Use the same scratch buffer for both getlogin_r and
5680         getpwnam_r.  Don’t require preallocation of the login name.  This
5681         simplifies storage allocation, and corrects the handling of
5682         long login names.
5684 2017-09-02  Bruno Haible  <bruno@clisp.org>
5686         dirent: Update doc.
5687         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5689 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5691         glob: fix getpwnam_r errno typo
5692         * lib/glob.c (glob): Fix longstanding misuse of errno after
5693         getpwnam_r, which returns an error number rather than setting
5694         errno.
5696         glob: fix typo in recent change
5697         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5698         Fix recently-introduced typo.
5700 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5702         glob: don't save and restore errno unnecessarily
5703         * lib/glob.c (glob): Don't save and restore errno
5704         merely because we have getpwnam_r.
5706         glob: don't assume getpwnam_r
5707         * lib/glob.c (glob): Port recent patches to platforms
5708         lacking getpwnam_r.
5710         scratch_buffer: don’t use private glibc API
5711         Suggested by Florian Weimer in:
5712         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5713         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5714         * lib/scratch_buffer_grow.c: Rename to
5715         lib/malloc/scratch_buffer_grow.c.
5716         * lib/scratch_buffer_grow_preserve.c: Rename to
5717         lib/malloc/scratch_buffer_grow_preserve.c.
5718         * lib/scratch_buffer_set_array_size.c: Rename to
5719         lib/malloc/scratch_buffer_set_array_size.c.
5720         * lib/scratch_buffer.h: New file.
5721         * modules/scratch_buffer (Files, Makefile.am):
5722         Adjust to source-file renaming.
5724 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5726         glob: use scratch_buffer instead of extend_alloca
5727         Much of the lib/glob.c part of this patch comes from a glibc patch
5728         proposed by Adhemerval Zanella in:
5729         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5730         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5731         included via glob.h, does this for us now.
5732         (__set_errno): Remove, as libc-config does this for us now.
5733         Include <scratch_buffer.h>.
5734         (GETPW_R_SIZE_MAX): Remove.
5735         (glob): Use struct scratch_buffer instead of extend_alloca.
5736         * lib/glob.in.h: Include libc-config.h rather than
5737         including <sys/cdefs.h> conditionally.
5738         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5739         (__glibc_unlikely, __restrict, weak_alias):
5740         Remove, as libc-config does this for us now.
5741         * m4/glob.m4 (gl_PREREQ_GLOB):
5742         Remove sys/cdefs.h tests; no longer needed.
5743         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5744         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5746         scratch_buffer: new module
5747         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5748         * lib/scratch_buffer_grow_preserve.c:
5749         * lib/scratch_buffer_set_array_size.c:
5750         New files, copied from glibc with very minor changes that can be
5751         copied back.
5752         * modules/scratch_buffer: New file.
5754         libc-config: new module
5755         * MODULES.html.sh: Add libc-config.
5756         * lib/cdefs.h: New file, copied from the GNU C Library with very
5757         minor changes that can be copied back.
5758         * lib/libc-config.h, modules/libc-config: New files.
5760 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5762         glob: match dangling symlinks
5763         This fixes a bug I inadvertently introduced to Gnulib when I
5764         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5765         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5766         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5767         * doc/posix-functions/glob.texi: Update list of affected platforms.
5768         * lib/glob.c (__lstat64): New macro.
5769         (is_dir): New function.
5770         (glob, glob_in_dir): Match symlinks even if they are dangling.
5771         (link_stat, link_exists_p): Remove.  All uses removed.
5772         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5773         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5774         * modules/glob-tests (Depends-on): Add symlink.
5775         * tests/test-glob.c: Include errno.h, unistd.h.
5776         (BASE): New macro.
5777         (main): Test dangling symlinks, if symlinks are supported.
5779         glob, backupfile: inode 0 is a valid inode number
5780         * doc/posix-functions/readdir.texi (readdir):
5781         * doc/posix-headers/dirent.texi (dirent.h):
5782         Document more readdir portability issues.
5783         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5784         (numbered_backup): Don’t treat inode 0 any differently from
5785         other inode values.
5786         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5787         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5788         All uses removed.
5789         * modules/glob (Depends-on): Remove d-ino.
5791         glob: simplify symlink detection
5792         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5793         uint8_t, as C99 does not require uint8_t.
5794         (struct readdir_result): Use it.  Do not define skip_entry unless
5795         it is needed; this saves a byte on platforms lacking d_ino.
5796         (readdir_result_type, readdir_result_skip_entry):
5797         New functions, replacing ...
5798         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5799         ... these functions, which were removed.  This makes the callers
5800         easier to read.  All callers changed.
5801         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5803 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5805         fts-tests: tag as a longrunning-test so not included by default
5806         * modules/fts-tests: This test takes about 20s on current systems,
5807         and uses about 285M of space on ext4.
5809 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5811         renameat2: fix compilation on alpine linux
5812         * m4/renameat.m4: Check for <linux/fs.h> presence.
5813         * lib/renameat2.h: Only include <linux/fs.h> if present.
5814         Reported by Assaf Gordon on Alpine Linux.
5816 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5818         glob: try to port recent changes to MS-Windows
5819         Problem reported by Bruno Haible in:
5820         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5821         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5822         * lib/glob.in.h (__glob_pattern_p): ... to here.
5824 2017-08-24  Eric Blake  <eblake@redhat.com>
5826         warnings: fix compilation with old autoconf
5827         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5828         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5829         AC_DEFUN.
5830         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5831         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5833 2017-08-24  Bruno Haible  <bruno@clisp.org>
5835         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5836         * modules/glob (Depends-on): Add c99.
5838 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5840         glob: fix typo that broke platforms lacking d_ino
5841         This typo also hurt performance on GNU/Linux and similar hosts.
5842         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5843         in previous change.
5845 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5847         glob: merge from glibc with Zanella glob changes
5848         Merge glob from glibc, with changes for glob proposed
5849         by Adhemerval Zanella in the thread starting here:
5850         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5851         plus some fixes for this merge.
5852         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5853         New files, ported from glibc.
5854         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5855         with __restrict.
5856         (__size_t): Remove.  All uses replaced by size_t.
5857         (size_t): Define by defining __need_size_t and including <stddef.h>.
5858         This should work even in non-glibc platforms, where any name
5859         pollution is OK.
5860         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5861         (struct stat64): Don’t worry about __GLOB_GNULIB.
5862         (glob, globfree, glob_pattern_p): Remove macros for
5863         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5864         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5865         but set errno.
5866         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5867         removed since the glibc behavior works on null pointers.
5868         Do not include stdio.h; old SunOS is irrelevant now.
5869         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5870         Include glob_internal.h.
5871         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5872         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5873         worked only coincidentally.
5874         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5875         Remove macros; now done in glob.in.h.
5876         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5877         (glob): Properly initialize glob structure with
5878         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5879         Remove old code using SHELL since Bash no longer
5880         uses this.
5881         (glob, prefix_array): Separate MS code better.
5882         (glob, glob_in_dir): Use C99 decls before statements when glibc
5883         does.
5884         (glob_in_dir): Remove old Amiga and VMS code.
5885         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5886         separate files.
5887         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5888         (__glibc_unlikely):
5889         Move here from glob.c.
5890         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5891         (weak_alias): New macro.
5892         (__size_t): Remove.  All uses replaced by size_t.
5893         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5894         * modules/glob (Files): Add +lib/glob_internal.h,
5895         lib/glob_pattern_p.c, lib/globfree.c.
5896         (Depends-on): Remove snippet/arg-nonnull.
5898 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5900         glob: port to clang's Undefined Sanitizer
5901         Problem reported by Tim Rühsen in:
5902         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5903         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5904         (glob_in_dir): Do not rely on undefined behavior in accessing
5905         struct members beyond their bounds.  Use a flexible array member
5906         instead.
5908 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5910         vc-list-files: port to Solaris 10
5911         * build-aux/vc-list-files: Don't assume test -e works.
5913 2017-08-21  Karl Berry  <karl@freefriends.org>
5915         * doc/posix-functions/srandom.texi (srandom): typo }.
5917 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5919         git-version-gen: port to Solaris 10
5920         Problem reported by Dagobert Michelsen in:
5921         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5922         * build-aux/git-version-gen (v_from_git):
5923         Use expr instead of shell substitution.
5925 2017-08-19  Bruno Haible  <bruno@clisp.org>
5927         host-cpu-c-abi: Improve detection of MIPS ABI.
5928         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5929         _MIPS_SIM.
5931 2017-08-17  Bruno Haible  <bruno@clisp.org>
5933         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5934         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5936 2017-08-17  Bruno Haible  <bruno@clisp.org>
5938         float: Fix LDBL_MIN value on FreeBSD/x86.
5939         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5941 2017-08-17  Bruno Haible  <bruno@clisp.org>
5943         random: Fix test compilation failure on Cygwin 1.5.25.
5944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5945         HAVE_DECL_SETSTATE.
5946         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5947         declared.
5948         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5949         HAVE_DECL_SETSTATE.
5950         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5951         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5952         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5953         * doc/posix-functions/random.texi: Likewise.
5954         * doc/posix-functions/setstate.texi: Likewise.
5955         * doc/posix-functions/srandom.texi: Likewise.
5957 2017-08-16  Bruno Haible  <bruno@clisp.org>
5959         stdnoreturn: Fix test compilation failure on Cygwin.
5960         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5961         <stdnoreturn.h> replacement.
5962         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5963         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5965 2017-08-16  Bruno Haible  <bruno@clisp.org>
5967         thread: Fix conflict with pthread_sigmask module.
5968         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5969         it's defined as a macro.
5970         * modules/thread (Depends-on): Add pthread_sigmask.
5972 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5974         rename: port better to NetBSD
5975         * doc/posix-functions/rename.texi (rename): NetBSD 7
5976         does not have the link-count bug.
5977         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5978         broken merely because rename ("a", "b") removes "a" when the two
5979         names are hard links to the same file.
5981 2017-08-16  Bruno Haible  <bruno@clisp.org>
5983         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5984         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5985         the target file names with '$(srcdir)/'.
5986         * modules/unicase/locale-language (Makefile.am): Likewise.
5987         * modules/unicase/special-casing (Makefile.am): Likewise.
5988         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5989         * modules/unictype/category-byname (Makefile.am): Likewise.
5990         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5991         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5992         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5993         * modules/unictype/property-byname (Makefile.am): Likewise.
5994         * modules/unictype/scripts (Makefile.am): Likewise.
5995         * modules/uninorm/composition (Makefile.am): Likewise.
5997 2017-08-16  Bruno Haible  <bruno@clisp.org>
5999         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
6000         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
6001         value for OpenBSD.
6003 2017-08-16  Bruno Haible  <bruno@clisp.org>
6005         rename, renameat: Update doc regarding NetBSD.
6006         * doc/posix-functions/rename.texi: Clarify that when using
6007         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
6008         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
6009         version.
6011 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6013         renameat2: port better to macOS
6014         * lib/renameat2.c (renameat2): Use renameatx_np if available.
6016         futimens: don’t assume struct timespec layout
6017         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
6018         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
6019         * tests/test-fdutimensat.c (main):
6020         * tests/test-futimens.h (test_futimens):
6021         * tests/test-lutimens.h (test_lutimens):
6022         * tests/test-utimens.h (test_utimens):
6023         * tests/test-utimensat.c (main):
6024         Don’t assume that struct timespec is a two-member structure in
6025         tv_sec, tv_nsec order.  Although this is true on all platforms we
6026         know about, POSIX does not guarantee it.
6028         rename: document+test NetBSD rename
6029         Test failure reported by Bruno Haible in:
6030         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
6031         This is an area where NetBSD is better-behaved than POSIX,
6032         so allow the NetBSD behavior in tests.
6033         * doc/posix-functions/rename.texi:
6034         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
6035         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
6037 2017-08-15  Bruno Haible  <bruno@clisp.org>
6039         renameat: Ensure declaration in <stdio.h> on NetBSD.
6040         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
6041         * doc/posix-functions/renameat.texi: Mention this problem.
6043 2017-08-15  Bruno Haible  <bruno@clisp.org>
6045         duplocale: Work around NetBSD 7.0 bug.
6046         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
6047         * lib/duplocale.c: Add comment about NetBSD problem.
6048         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
6050 2017-08-15  Bruno Haible  <bruno@clisp.org>
6052         duplocale tests: Verify use with *_l functions.
6053         * modules/duplocale-tests (configure.ac): Test for uselocale and
6054         some *_l functions.
6055         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
6056         from main.
6057         (get_locale_dependent_values_from, test_with_locale_parameter): New
6058         functions.
6059         (main): Test both test_with_uselocale and test_with_locale_parameter.
6061 2017-08-15  Bruno Haible  <bruno@clisp.org>
6063         extensions: Enable NetBSD specific extensions.
6064         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
6066 2017-08-14  Bruno Haible  <bruno@clisp.org>
6068         open, openat: Update doc about O_CLOEXEC.
6069         * doc/posix-functions/open.texi: More concrete list of platforms.
6070         * doc/posix-functions/openat.texi: Likewise.
6072 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6074         open: support O_CLOEXEC
6075         * NEWS, doc/posix-functions/open.texi:
6076         * doc/posix-functions/openat.texi: Document this.
6077         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
6078         (GNULIB_defined_O_CLOEXEC): New symbol.
6079         * lib/open.c: Include cloexec.h.
6080         (open): Support O_CLOEXEC.
6081         * lib/openat.c: Include cloexec.h.
6082         (rpl_openat): Support O_CLOEXEC.
6083         * lib/popen-safer.c: Do not include cloexec.h.
6084         (open_noinherit): Remove.
6085         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
6086         * lib/save-cwd.c: Do not include cloexec.h.
6087         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
6088         * m4/open-cloexec.m4: New file.
6089         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
6090         Replace 'open' if O_CLOEXEC is not present.
6091         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
6092         Replace 'openat' if O_CLOEXEC is not present.
6093         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
6094         * modules/open (Files): Add m4/open-cloexec.m4.
6095         (Depends-on): Depend on cloexec if replacing 'open'.
6096         * modules/openat (Files): Add m4/open-cloexec.m4.
6097         (Depends-on): Depend on cloexec if replacing openat.
6098         * modules/popen-safer (Depends-on): Remove cloexec.
6099         * modules/save-cwd (Depends-on): Remove cloexec, and add
6100         fd-safer-flag and 'open'.
6102 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
6104         reallocarray: minor fixes
6105         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6106         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6107         * modules/reallocarray (License): Change from GPL to LGPL.
6108         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6109         Indent properly and don't use tabs.
6111 2017-08-13  Darshit Shah  <darnir@gnu.org>
6113         reallocarray: New module
6114         reallocarray is a new function in glibc 2.26 to safely allocate an array
6115         of memory locations with integer overflow protection.
6116         * MODULES.html.sh: Add reallocarray.
6117         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6118         * lib/reallocarray.c: New file to implement module reallocarray.
6119         * lib/stdlib.in.h: Add function declarations for reallocarray.
6120         * m4/reallocarray.m4: New file.
6121         * m4/stdlib_h.m4: Declare reallocarray.
6122         * modules/reallocarray: New file.
6123         * modules/reallocarray-test: New file.
6124         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6125         * tests/test-reallocarray.c: New test.
6127 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6129         dirent-safer: fix cloexec race
6130         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6131         (opendir_safer): Use F_DUPFD_CLOEXEC.
6132         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6133         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6134         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6135         instead of dup_safer.
6137         fts: fix cloexec races
6138         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6139         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6140         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6141         (fd_ring_check): Set cloexec flag on new file descriptors.
6142         (fts_build, fd_ring_check): While we’re at it, make sure the
6143         resulting file descriptor is not 0, 1, or 2, since that is easy.
6145 2017-08-11  Bruno Haible  <bruno@clisp.org>
6147         fts tests: Fix link error.
6148         Reported by Tom G. Christensen in
6149         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6150         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6152 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6154         fts: port recent changes to CentOS 6
6155         Problem reported by Tom G. Christensen in:
6156         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6157         * lib/fts.c (fsword): New type.
6158         (struct dev_type, filesystem_type): Use it.
6159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6160         Also, check for f_type only if fstatfs and sys/vfs.h work.
6162 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6164         tempname: do not depend on secure_getenv
6165         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6166         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6167         * modules/tempname (Depends-on): Remove secure_getenv.
6169 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6171         extensions: add _OPENBSD_SOURCE
6172         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6174 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6175             Bruno Haible  <bruno@clisp.org>
6177         manywarnings: Add support for C++.
6178         * build-aux/g++-warning.spec: New file.
6179         * m4/manywarnings-c++.m4: New file.
6180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6181         redirects to manywarnings-c++.m4.
6182         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6184 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6186         git-version-gen: another fix for tags with "-"
6187         * build-aux/git-version-gen: Improve fix for tags containing "-".
6188         Suggested by Markus Armbruster in:
6189         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6191 2017-08-06  Bruno Haible  <bruno@clisp.org>
6193         warnings, manywarnings: Add support for multiple languages, not just C.
6194         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6195         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6196         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6197         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6198         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6199         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6200         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6201         of the current language. If C++ is the current language, modify
6202         WARN_CXXFLAGS instead of WARN_CFLAGS.
6203         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6204         gl_MANYWARN_ALL_GCC.
6205         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6207 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6209         git-version-gen: Fix for tags containing '-'
6211         Really old versions of git-describe (before v1.5.0, Feb 2007)
6212         don't have the number of commits in their long format output,
6213         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6214         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6215         recognizes both patterns, and normalizes the old format to the new one.
6217         Unfortunately, this normalization code gets confused when the tag
6218         contains '-'.  Reproducer:
6220             $ git-tag -m test v0.2-rc1
6221             $ build-aux/git-version-gen .tarball-version; echo
6222             build-aux/git-version-gen: WARNING: git rev-list failed
6223             UNKNOWN
6225         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6226         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6227         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6229         * git-version-gen: We could perhaps drop support for versions from
6230         more than a decade ago.  But tightening the pattern match is easy
6231         enough, so do that.  Still breaks when you use version tags ending in
6232         something matching -g????, but you arguably get what you deserve then.
6234 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6236         valgrind-tests: use ls, and cache
6237         * m4/valgrind-tests.m4: Test ls, not bash.
6238         Problem reported by Reuben Thomas.
6239         Also, cache the result so that it can be overridden.
6241 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6243         manywarnings: port to 64-bit GCC builds of Emacs
6244         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6245         object size rather than hardwiring 2147483647.  This is needed to
6246         build GNU Emacs, which has one conditional (and used
6247         only-in-theory) call to malloc with a literal greater than
6248         2147483647.
6250 2017-08-04  Bruno Haible  <bruno@clisp.org>
6252         Relax the license of some modules with no runtime code.
6253         * modules/std-gnu11 (License): Set to 'unlimited'.
6254         * modules/c99 (License): Likewise.
6255         Reported by Reuben Thomas <rrt@sc3d.org>.
6256         * modules/d-ino (License): Set to 'LGPL'.
6257         * modules/host-os (License): Likewise.
6258         * modules/longlong (License): Likewise.
6260 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6262         renameat2: port to RHEL 7 + NFS
6263         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6264         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6265         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6267 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6269         renameat2: port to non-renameat platforms
6270         Problem reported for MSVC-2015 by Gisle Vanem in:
6271         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6272         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6273         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6275 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6277         manywarnings: port to 32-bit GCC bug
6278         Problem reported by Pino Toscano in:
6279         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6280         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6281         not 2**63 - 1, to work around the following GCC bug:
6282         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6284 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6286         backupfile: new function to validate backup suffix
6287         * lib/backupfile.c (set_simple_backup_suffix): New function.
6288         (backupfile_internal): Use it.
6290         canonicalize: fix EOVERFLOW commentary
6291         Problem reported by Bruno Haible in:
6292         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6293         * lib/canonicalize.c (canonicalize_filename_mode):
6294         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6296         Don't interpret EOVERFLOW to mean nonexistence
6297         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6298         may be EOVERFLOW; this is likely more useful than reporting the
6299         stat errno.
6300         * lib/glob.c (link_stat): Rename from link_exists2_p and
6301         return -1/0 instead of 0/1.  Caller changed.
6302         * lib/glob.c (link_exists_p):
6303         * lib/renameat2.c (rename_noreplace, renameat2):
6304         * lib/tempname.c (try_nocreate):
6305         If errno == EOVERFLOW then the directory entry exists, so do not
6306         act as if it does not exist.
6308         backup-rename: new module
6309         It is like backupfile, except it avoids some race conditions,
6310         and it does not output to stderr or exit.
6311         * MODULES.html.sh: Add backup-rename.
6312         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6313         * modules/backup-rename: New files.
6314         * lib/backupfile.c: Turn this into an internals file, which
6315         contains code common to backupfile and backup_rename.  Include
6316         backupfile-internal.h instead of backupfile.h.  Do not include
6317         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6318         renameat2.h and fcntl.h.
6319         (BACKUP_NOMEM): New constant.
6320         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6321         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6322         (backupfile_internal): Rename from find_backup_file_name.
6323         Support new arg RENAME.
6324         (backup_args, backup_types, get_version, xget_version):
6325         Move to lib/backup-find.c.
6326         * lib/backupfile.h (backup_file_rename): New decl.
6327         * modules/backupfile (Files): Add lib/backup-internal.h,
6328         lib/backup-find.c.
6329         (Depends-on): Add dirfd, fcntl, renameat2.
6330         (lib_SOURCES): Add backup-find.c.
6332         renameat2: port better to older Solaris
6333         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6334         Add goto to use a label, to silence picky compilers.
6336         fts-tests: port to gcc -Wwrite-strings
6337         * tests/test-fts.c (base, base_d): New static vars.
6338         (argv, remove_tree, main): Use them.
6340 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6342         relocatable-lib{,-lgpl}: improve documentation
6343         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6344         Various other updates.
6346 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6347             Bruno Haible  <bruno@clisp.org>
6349         relocatable-lib{,-lgpl}: add Valgrind suppressions
6350         * lib/relocatable.valgrind: New file.
6351         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6352         * modules/relocatable-lib-lgpl: Likewise.
6354 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6356         relocatable: Make the license on the sources the GPL.
6357         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6358         LGPL, which was a special case so that the relocatable source files
6359         could be used without gnulib-tool, to GPL. They can still be used under
6360         the LGPL, using the --lgpl option to gnulib-tool.
6362 2017-07-30  Bruno Haible  <bruno@clisp.org>
6364         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6365         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6366         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6367         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6368         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6370 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6372         faccessat: document AT_SYMLINK_NOFOLLOW issue
6373         * doc/posix-functions/faccessat.texi: Modernize platform list.
6374         Document AT_SYMLINK_NOFOLLOW limitation.
6376         renameat2: port to Solaris 10
6377         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6378         with AT_SYMLINK_NOFOLLOW (which is not portable).
6379         (renameat): Undef before using, to avoid endless recursion when
6380         the replacement renameat calls renameat2 which calls the
6381         replacement renameat.
6382         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6383         * modules/renameat2 (Depends-on): Remove faccessat.
6384         * modules/renameat-tests (test_renameat_LDADD):
6385         * modules/renameat2-tests (test_renameat2_LDADD):
6386         Remove $(LIB_EACCESS).
6388         renameat2: new module
6389         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6390         useful to have access to its RENAME_NOREPLACE flag.
6391         * MODULES.html.sh (func_all_modules): Add renameat2.
6392         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6393         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6394         * lib/renameat.c (renameat): Move most of the implementation
6395         to renameat2, and just call renameat2.
6396         * modules/renameat (Files): Remove lib/at-func2.c.
6397         (Depends-on): Depend only on renameat2.
6398         (Include): Remove <fcntl.h>.
6399         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6400         since renameat (via renameat2) might use faccessat.
6402 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6404         vc-list-files: Adjust the script to support git worktrees
6405         * build-aux/vc-list-files: Require existence, not directory.
6407 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6409         doc: bring MODULES.html.sh up to date
6410         Somehow a few months ago we stopped updating MODULES.html.sh.
6411         I don’t recall explicitly deciding this, so I updated it now.
6412         Alternatively I suppose we could remove it.
6413         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6414         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6415         truncate, utime, utime-h, windows-stat-inodes,
6416         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6418 2017-07-26  Jim Meyering  <meyering@fb.com>
6420         fprintftime: fix build-break caused by recent renaming
6421         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6422         "strftime.c".
6423         * modules/fprintftime: Depend directly on nstrftime.
6425 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6427         regex: work with GCC7's -Werror=implicit-fallthrough=
6428         * lib/regex_internal.h (FALLTHROUGH): New macro.
6429         * lib/regcomp.c (peek_token_bracket, parse_expression):
6430         * lib/regexec.c (check_node_accept): Use it.
6432 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6434         fts: simplify fts_build
6435         * lib/fts.c (fts_build): Simplify, and be lazier about
6436         calling leaf_optimization.
6438         fts: three levels of leaf optimization
6439         * lib/fts.c (enum leaf_optimization): New type with three values.
6440         (S_MAGIC_AFS): New macro.  Sort them.
6441         (leaf_optimization): Rename from leaf_optimization_applies, and
6442         return enum leaf_optimization instead of bool.  All uses changed.
6443         Add cases for unknown type and for AFS.
6444         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6446         fts: cache dirent_inode_sort_may_be_useful too
6447         * lib/fts.c (struct dev_type): New struct.
6448         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6449         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6450         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6451         Now takes FTSENT const *, not int.  All uses changed.  Use
6452         filesystem_type to cache.
6453         (link_count_optimize_ok): Remove.  Caller changed to use
6454         leaf_optimization_applies, which now uses shared cache.
6456         fts: introduce MIN_DIR_NLINK
6457         * lib/fts.c (MIN_DIR_NLINK): New constant.
6458         Use it instead of 2, whenever we are talking about link counts.
6460         fts: nlink_t signedness fixups
6461         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6462         so that root need not be a special case later.
6463         (fts_read): Remove now-redundant test for fts_level.
6464         Do not assume that nlink_t is signed.
6465         (fts_build): Remove useless decrement of nlinks.
6466         (fts_stat): Avoid unlikely signed integer overflow later, if
6467         nlink_t is signed.
6469         fts-tests: new module
6470         * modules/fts-tests, tests/test-fts.c: New files.
6472 2017-07-23  Bruno Haible  <bruno@clisp.org>
6474         Rename module 'strftime' to 'nstrftime'.
6475         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6476         * lib/nstrftime.c: Renamed from lib/strftime.c.
6477         * modules/nstrftime: Renamed from modules/strftime.
6478         (Files, Makefile.am): Update.
6479         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6480         Fix comment.
6481         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6482         (Files, Makefile.am): Update.
6483         * modules/strftime: New file, an obsolete indirection.
6484         * doc/posix-functions/strftime.texi: Update reference.
6485         * config/srclist.txt: Update info.
6486         * NEWS: Mention the change.
6488 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6490         malloca: Silence a warning from clang's memory sanitizer.
6491         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6492         (freea): Use it.
6494 2017-07-18  Bruno Haible  <bruno@clisp.org>
6496         host-cpu-c-abi: Fix detection of MIPS ABI.
6497         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6498         ABI, not the CPU instruction set.
6500 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6502         explicit_bzero: new module
6503         The explicit_bzero function has been added to glibc.
6504         This module is intended to supports its use in GNU programs.
6505         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6506         * m4/explicit_bzero.m4, modules/explicit_bzero:
6507         New files.
6508         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6509         * lib/string.in.h (explicit_bzero): Declare.
6510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6511         * modules/string (string.h): Substitute its vars.
6513 2017-07-16  Bruno Haible  <bruno@clisp.org>
6515         threadlib: Support static linking.
6516         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6517         set gl_cv_have_weak to 'no'.
6519 2017-07-16  Bruno Haible  <bruno@clisp.org>
6521         unicase/locale-language: Fix link dependencies.
6522         * modules/unicase/locale-language (Link): New section.
6523         * modules/unicase/locale-language-tests (Makefile.am): Link
6524         test-locale-language program with $(LIBTHREAD).
6526 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6528         sys_socket: Add support for OpenVMS.
6529         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6530         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6532 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6534         sys_resource: Add support for OpenVMS.
6535         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6536         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6538 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6539             Bruno Haible  <bruno@clisp.org>
6541         math: Add support for OpenVMS.
6542         * lib/math.in.h [__VMS]: Include <fp.h>.
6543         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6545 2017-07-15  Bruno Haible  <bruno@clisp.org>
6547         getdtablesize: Add minimal support for OpenVMS.
6548         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6549         * modules/getdtablesize (Description): Fix.
6550         * lib/getdtablesize.c: Fix comment.
6551         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6552         getdtablesize() function, even though the test fails.
6553         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6554         limitation on OpenVMS.
6556 2017-07-13  Bruno Haible  <bruno@clisp.org>
6558         Revisit cross-compilation guesses.
6559         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6561 2017-07-13  Bruno Haible  <bruno@clisp.org>
6563         Improve cross-compilation guesses for native Windows.
6564         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6565         Windows.
6566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6567         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6568         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6569         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6570         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6571         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6572         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6573         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6574         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6575         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6576         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6577         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6578         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6579         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6580         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6581         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6582         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6584         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6585         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6586         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6587         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6588         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6589         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6590         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6591         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6592         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6593         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6595         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6596         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6598         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6599         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6600         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6601         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6602         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6603         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6604         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6605         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6606         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6608         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6609         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6610         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6611         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6612         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6613         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6614         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6615         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6616         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6617         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6618         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6619         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6620         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6621         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6622         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6623         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6624         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6625         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6627         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6628         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6629         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6630         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6632         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6633         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6634         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6635         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6636         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6637         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6638         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6639         * m4/regex.m4 (gl_REGEX): Likewise.
6640         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6641         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6642         gl_FUNC_REMAINDERF_WORKS): Likewise.
6643         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6644         gl_FUNC_REMAINDERL_WORKS): Likewise.
6645         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6646         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6647         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6648         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6649         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6650         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6651         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6652         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6653         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6654         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6655         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6656         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6657         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6658         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6659         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6660         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6661         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6662         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6663         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6664         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6665         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6667         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6668         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6669         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6671         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6672         Likewise.
6673         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6674         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6675         Windows. Enable also on Autoconf 2.70.
6676         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6677         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6678         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6679         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6680         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6681         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6682         for native Windows.
6683         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6684         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6686 2017-07-13  Bruno Haible  <bruno@clisp.org>
6688         Improve cross-compilation guesses for native Windows.
6689         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6690         Windows.
6691         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6692         memchr.m4.
6693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6695 2017-07-13  Bruno Haible  <bruno@clisp.org>
6697         Improve cross-compilation guesses for native Windows.
6698         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6699         native Windows.
6700         (gl_FUNC_FFLUSH): Update accordingly.
6701         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6702         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6704 2017-07-11  Bruno Haible  <bruno@clisp.org>
6706         More systematic m4 quoting and indentation.
6707         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6708         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6709         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6710         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6711         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6712         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6713         gl_WINSIZE_IN_PTEM): Likewise.
6714         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6715         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6716         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6717         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6718         Correct indentation.
6719         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6720         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6721         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6723         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6726 2017-07-10  Bruno Haible  <bruno@clisp.org>
6728         round, roundf: Avoid compiler warning in configure test.
6729         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6732 2017-07-10  Bruno Haible  <bruno@clisp.org>
6734         getlogin tests: Avoid #ifdefs when sharing code between modules.
6735         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6736         * modules/getlogin-tests (Files): Likewise. Remove
6737         tests/test-getlogin_r.c.
6738         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6739         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6740         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6741         getlogin().
6743 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6745         getlogin: don’t assume one name per uid
6746         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6747         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6748         (ttyname): Remove test.
6749         * modules/getlogin_r-tests (ttyname): Remove test.
6750         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6751         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6752         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6753         getlogin rather than getlogin_r.  This avoids code duplication.
6754         (main): Use isatty and fstat rather than ttyname and stat.
6755         Use getpwnam instead of getpwuid, to be portable to test platforms
6756         that have multiple login names for the same uid.
6758 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6759             Bruno Haible  <bruno@clisp.org>
6761         glob: Fix more memory leaks.
6762         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6763         returning.
6764         Reported by Tim Rühsen.
6766 2017-07-10  Bruno Haible  <bruno@clisp.org>
6768         Make sure $host and $host_os are defined when used.
6769         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6770         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6771         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6773         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6774         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6775         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6776         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6777         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6778         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6779         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6780         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6781         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6782         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6783         m4_ifdef block.
6785 2017-07-09  Bruno Haible  <bruno@clisp.org>
6787         *printf: Fix cross-compilation guess for Solaris.
6788         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6789         2010-12-21.
6791 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6792             Bruno Haible  <bruno@clisp.org>
6794         vasnprintf: port to macOS 10.13
6795         Problem reported by comex in:
6796         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6797         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6799 2017-07-06  Bruno Haible  <bruno@clisp.org>
6801         imaxdiv tests: Fix logic.
6802         * tests/test-imaxdiv.c (main): Use == instead of =.
6803         Reported by Coverity.
6805 2017-07-06  Bruno Haible  <bruno@clisp.org>
6807         uninorm/filter: Fix use-after-free bug.
6808         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6809         sortbuf == filter->sortbuf invariant.
6810         Reported by Coverity.
6812 2017-07-06  Bruno Haible  <bruno@clisp.org>
6814         glob: Fix more memory leaks.
6815         * lib/glob.c (glob): Free dirname before returning.
6816         Reported by Coverity and Tim Rühsen.
6818 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6820         parse-datetime: fix uninit var bug
6821         Reported by Bruno Haible in:
6822         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6823         * lib/parse-datetime.y (parse_datetime2): Do not use
6824         uninitialized.
6826 2017-07-05  Bruno Haible  <bruno@clisp.org>
6828         doc: Update for MSVC 14.
6829         * doc/posix-headers/*.texi: Add info about MSVC 14.
6830         * doc/posix-functions/*.texi: Likewise.
6831         * doc/pastposix-functions/*.texi: Likewise.
6832         * doc/glibc-headers/*.texi: Likewise.
6833         * doc/glibc-functions/*.texi: Likewise.
6835 2017-07-05  Bruno Haible  <bruno@clisp.org>
6837         sched: Fix build failure on native Windows (regression from 2017-06-19).
6838         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6840 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6842         stdioext: Port to OpenVMS.
6843         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6844         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6845         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6846         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6847         * lib/fpurge.c (fpurge): Likewise.
6848         * lib/freadable.c (freadable): Likewise.
6849         * lib/freadahead.c (freadahead): Likewise.
6850         * lib/freading.c (freading): Likewise.
6851         * lib/freadptr.c (freadptr): Likewise.
6852         * lib/freadseek.c (freadseek): Likewise.
6853         * lib/fseeko.c (fseeko): Likewise.
6854         * lib/fseterr.c (fseterr): Likewise.
6855         * lib/fwritable.c (fwriteable): Likewise.
6856         * lib/fwriting.c (fwriting): Likewise.
6858 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6860         glob: Declare variables at the very start of their scope.
6861         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6862         its separate scope, so the functions will compile on Haiku.
6864 2017-07-01  Bruno Haible  <bruno@clisp.org>
6866         logbl: Work around a glibc bug on PowerPC64LE.
6867         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6868         numbers.
6869         * doc/posix-functions/logbl.texi: Update.
6871 2017-06-29  Bruno Haible  <bruno@clisp.org>
6873         stat, fstat: Compile stat-w32.c only on platforms that need it.
6874         Suggested by Paul Eggert.
6875         * modules/stat (configure.ac): Request stat-w32.o only on native
6876         Windows.
6877         * modules/fstat (configure.ac): Likewise.
6879 2017-06-25  Bruno Haible  <bruno@clisp.org>
6881         stat: Improve last change.
6882         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6884 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6886         stat: port to xlc 12.01
6887         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6888         12.01 complains "Compilation unit is empty."
6890 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6892         xalloc-oversized: port to icc
6893         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6894         __builtin_mul_overflow if ICC is defined, as this results in
6895         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6896         20170213.
6898 2017-06-19  Bruno Haible  <bruno@clisp.org>
6900         classpath: Avoid including config.h twice, as it produces warnings.
6901         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6902         * lib/classpath.h: Conditionalize the include of config.h.
6904 2017-06-19  Bruno Haible  <bruno@clisp.org>
6905             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6907         sched: Fix compilation failure on OpenVMS.
6908         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6909         test whether <pthread.h> exists and defines struct sched_param.
6910         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6912 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6914         diffseq: port to GCC 7 with --enable-gcc-warnings
6915         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6916         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6917         not complain about big_snake being defined but not used.
6919 2017-06-15  Bruno Haible  <bruno@clisp.org>
6921         gettext-h: Update theoretical condition for use of variable size arrays.
6922         Reported by Paul Eggert.
6923         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6924         to include the theoretical condition for availability of variable size
6925         arrays, if we could trust the value of __STDC_VERSION__.
6927 2017-06-12  Bruno Haible  <bruno@clisp.org>
6929         Relicense some modules under LGPLv2+.
6930         Daiki Ueno's approval is in
6931         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6932         * modules/uniwidth/base (License): Change to LGPLv2+.
6933         * modules/uniwidth/width (License): Likewise.
6935 2017-06-11  Bruno Haible  <bruno@clisp.org>
6937         localename: Fix test failure on DragonFly BSD.
6938         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6939         like FreeBSD.
6941 2017-06-11  Bruno Haible  <bruno@clisp.org>
6943         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6944         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6945         * lib/float.in.h: Likewise.
6946         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6948 2017-06-11  Bruno Haible  <bruno@clisp.org>
6950         gnulib-tool: Clean up after autotools.
6951         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6952         useless directory left over by the Autotools.
6954 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6956         getopt-posix: port to glibc 2.25.90
6957         Problem reported by Daniel P. Berrange in:
6958         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6959         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6960         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6961         #undef if __GETOPT_PREFIX is defined.
6963 2017-06-11  Bruno Haible  <bruno@clisp.org>
6965         strtod-obsolete: Fix license.
6966         * modules/strtod-obsolete (License): Change to LGPL.
6968 2017-06-10  Jim Meyering  <meyering@fb.com>
6970         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6971         * lib/savewd.c (FALLTHROUGH): Define.
6972         (savewd_save, savewd_restore): Use this, rather than a comment,
6973         whenever one switch case falls through into the next.
6975 2017-06-08  Bruno Haible  <bruno@clisp.org>
6977         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6978         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6979         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6980         case.
6982 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6984         doc: remove robots, add prereqs
6985         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6986         builds.  Simon's robot site does not seem to be up, so remove
6987         mentions of it for now.
6989 2017-06-08  Bruno Haible  <bruno@clisp.org>
6991         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6992         * gnulib-tool (func_symlink_target): New function, extracted from
6993         func_symlink.
6994         (func_symlink, func_symlink_if_changed): Use it.
6996 2017-06-08  Bruno Haible  <bruno@clisp.org>
6998         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6999         * gnulib-tool (func_ln_s): Determine cp_src correctly.
7001 2017-06-07  Bruno Haible  <bruno@clisp.org>
7003         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
7004         Reported by John E. Malmberg <wb8tyw@gmail.com> in
7005         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
7006         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
7007         override, pass 2 arguments to getcwd, not 3.
7009 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7011         same-inode: port better to VMS 8.2 and later
7012         Problem reported by John E. Malmberg in:
7013         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
7014         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
7015         Use the usual POSIX definition.
7016         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
7018 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7020         error: fix POSIX violation for va_end
7021         Problem reported by Bruno Haible in:
7022         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
7023         * lib/error.c (error_tail): Do not call va_end here.
7024         (error, error_at_line): Call it here instead.
7026 2017-05-28  Bruno Haible  <bruno@clisp.org>
7028         c-strtod: Make it usable in C++ mode.
7029         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
7031 2017-05-25  Jim Meyering  <meyering@fb.com>
7033         quotearg: fix compilation failure due to FALLTHROUGH misuse
7034         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
7035         macro back to /* fall through */ comment.  The macro can apply only
7036         to a following case statement.  Reported by Assaf Gordon.
7038 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7040         intprops: port to recent icc
7041         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
7042         but does not support __builtin_add_overflow etc.
7043         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
7044         Define to 0.
7046 2017-05-23  Karl Berry  <karl@freefriends.org>
7048         * config/srclist.txt (iconv.m4): sync broken, comment out
7049         until (hopefully) the next gettext release.
7051 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7053         Remove repeated words in comments.
7055 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
7057         fallthrough: reinstate a FALLTHROUGH instance in quotearg
7058         quotearg.c: Reinstate this instance which is significant
7059         when the if branch is not taken.
7061 2017-05-21  Bruno Haible  <bruno@clisp.org>
7063         gnulib-tool: Add options to create hard links.
7064         * gnulib-tool (func_usage): Document options --hardlink,
7065         --local-hardlink, --more-hardlinks.
7066         (func_symlink): Renamed from func_ln.
7067         (func_symlink_if_changed): Renamed from func_ln_if_changed.
7068         (func_hardlink): New function.
7069         (copymode, lcopymode): New variables.
7070         (symbolic, lsymbolic): Remove variables.
7071         (Options): Implement options --hardlink, --local-hardlink,
7072         --more-hardlinks.
7073         (func_should_link): Renamed from func_should_symlink. Set copyaction.
7074         (func_add_file, func_update_file): Update invocation of
7075         func_should_link. Invoke func_hardlink when appropriate.
7076         (func_import): Update comments.
7077         (func_create_testdir): Update invocation of func_should_link. Invoke
7078         func_hardlink when appropriate.
7079         Finally, invoke 'git update-index --refresh' to mitigate the effects of
7080         the hard links on git.
7082 2017-05-20  Bruno Haible  <bruno@clisp.org>
7084         argp: Simplify bit manipulation.
7085         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
7086         on a signed integer type.
7088 2017-05-20  Bruno Haible  <bruno@clisp.org>
7090         Avoid wrong configure results with gcc -fsanitize=address.
7091         This completes the work done on 2016-02-06 on this topic.
7092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
7093         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7095         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7096         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
7097         returning.
7098         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7099         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
7100         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7102         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7103         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7104         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
7105         free allocated memory before returning.
7106         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7107         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7108         objects before returning.
7109         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7110         returning.
7112 2017-05-20  Bruno Haible  <bruno@clisp.org>
7114         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7115         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7117 2017-05-20  Bruno Haible  <bruno@clisp.org>
7119         argp, tsearch tests: Fix file list.
7120         * modules/argp-tests (Files): Add tests/macros.h.
7121         * modules/tsearch-tests (Files): Likewise.
7123 2017-05-20  Bruno Haible  <bruno@clisp.org>
7125         getopt-posix tests: Remove redundant include.
7126         * tests/test-getopt.h: Don't include "macros.h". It's already included
7127         by tests/test-getopt-main.h.
7129 2017-05-19  Jim Meyering  <meyering@fb.com>
7131         dfa: two small simplifications
7132         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7134 2017-05-18  Jim Meyering  <meyering@fb.com>
7136         fallthrough: update for GCC 7/8
7137         * lib/quotearg.c (FALLTHROUGH): New macro.
7138         Use it whenever one switch case falls through into the next,
7139         replacing "/* Fall through */" comments.  This exposed one
7140         instance of an unwarranted "fall through" comment: unwarranted
7141         because it preceded a "goto" label not a case statement.
7142         * lib/freopen-safer.c (freopen_safer): Likewise.
7143         * lib/fts.c (leaf_optimization_applies): Likewise.
7144         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7145         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7146         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7147         tests/macros.h for the definition.
7148         * tests/test-argp.c (group1_parser): Likewise.
7149         * tests/test-getopt.h (getopt_loop): Likewise.
7151 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7153         argp: fix shift bug
7154         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7155         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7157         argp: fix pointer-subtraction bug
7158         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7159         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7160         See the thread containing Bruno Haible’s report in:
7161         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7163 2017-05-19  Bruno Haible  <bruno@clisp.org>
7165         printf-posix tests: Avoid test failure with "gcc --coverage".
7166         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7167         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7168         than 5000000.
7169         * tests/test-fprintf-posix2.c (main): Likewise.
7171 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7173         closeout: don’t close stderr when sanitizing
7174         * NEWS: Document this.
7175         * lib/closeout.c (__has_feature): New macro, if not already defined.
7176         (SANITIZE_ADDRESS): New constant.
7177         (close_stdout): Don’t close stderr if sanitizing addresses.
7179 2017-05-19  Bruno Haible  <bruno@clisp.org>
7181         get-rusage-data tests: Avoid failure on Linux/glibc.
7182         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7183         on glibc systems.
7185 2017-05-18  Bruno Haible  <bruno@clisp.org>
7187         localename: Include necessary header files on Cygwin.
7188         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7189         where NL_LOCALE_NAME is defined.
7191 2017-05-18  Bruno Haible  <bruno@clisp.org>
7193         gettext: Update macros from gettext git.
7194         * m4/intldir.m4: Require Autoconf >= 2.60.
7195         * m4/progtest.m4: Fix typos in copyright notice.
7197 2017-05-18  Bruno Haible  <bruno@clisp.org>
7199         copy-file tests: Fix link error (regression from 2017-05-01).
7200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7201         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7202         $(LIB_CLOCK_GETTIME).
7204 2017-05-18  Bruno Haible  <bruno@clisp.org>
7206         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7207         (regression from 2017-02-13).
7208         * lib/unicase/special-casing.in.h: Renamed from
7209         lib/unicase/special-casing.h.
7210         * modules/unicase/special-casing (Files): Add
7211         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7212         (Makefile.am): Add rule for generating unicase/special-casing.h.
7213         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7214         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7215         not "special-casing.h".
7216         * lib/unicase/u*.c: Likewise.
7218 2017-05-17  Bruno Haible  <bruno@clisp.org>
7220         README: Don't ask people to read a TeXinfo file.
7221         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7222         * README: Tell people how to read the HTML formatted manual.
7224 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7226         parse-datetime: Fix memleak
7227         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7228         localtime_rz() failure.
7230 2017-05-16  Bruno Haible  <bruno@clisp.org>
7232         javacomp: Fix handle leak.
7233         Found by Coverity.
7234         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7236 2017-05-16  Bruno Haible  <bruno@clisp.org>
7238         relocate: Make it easier to reclaim allocated memory.
7239         * lib/relocatable.h (relocate2): New declaration/macro.
7240         * lib/relocatable.c (relocate2): New function.
7241         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7242         relocate2 function.
7243         * lib/localcharset.c (relocate2): Define fallback.
7244         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7245         allocated memory.
7246         * lib/javaversion.c (relocate2): Define fallback.
7247         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7248         allocated memory.
7250 2017-05-16  Bruno Haible  <bruno@clisp.org>
7252         relocate: Simplify EMX specific code.
7253         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7254         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7256 2017-05-16  Bruno Haible  <bruno@clisp.org>
7258         sigpipe tests: Fix file list.
7259         * modules/sigpipe-tests (Files): Add tests/macros.h.
7261 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7263         manywarnings: update for GCC 7
7264         * build-aux/gcc-warning.spec:
7265         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7266         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7267         requires a non-comment fallthrough attribute.  This is a bit
7268         cleaner than the comment versions.
7269         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7270         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7271         Use it whenever one switch case falls through into the next.
7272         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7273         Use FALLTHROUGH macro.
7275 2017-05-15  Bruno Haible  <bruno@clisp.org>
7277         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7278         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7279         @ALLOCA@, not @LTALLOCA@.
7281 2017-05-15  Bruno Haible  <bruno@clisp.org>
7283         sys_select: Avoid "was expanded before it was required" warning.
7284         * modules/sys_select (configure.ac): Require, not invoke,
7285         gl_HEADER_SYS_SELECT.
7287 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7289         gnulib-tool: improve GNU Make debugging
7290         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7291         Report autoconf diagnostics when it fails, in the output makefile.
7293 2017-05-14  Bruno Haible  <bruno@clisp.org>
7295         stat-time tests: Improve comment.
7296         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7298 2017-05-14  Bruno Haible  <bruno@clisp.org>
7300         same-inode: Adapt for windows-stat-inodes.
7301         * lib/same-inode.h: Include <sys/types.h>.
7302         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7303         * modules/same-inode (Depends-on): Add sys_types.
7305 2017-05-14  Bruno Haible  <bruno@clisp.org>
7307         windows-stat-inodes: New module.
7308         * m4/windows-stat-inodes.m4: New file.
7309         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7310         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7311         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7312         (_GL_WINDOWS_STAT_INODES): New macro.
7313         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7314         (GetFileInformationByHandleExFunc): New variable.
7315         (initialize): Initialize it.
7316         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7317         st_ino appropriately.
7318         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7319         a fallback, because it does not provide st_dev and st_ino values.
7320         * modules/fstat (Depends-on): Add 'verify'.
7321         * modules/windows-stat-inodes: New file.
7322         * doc/windows-stat-inodes.texi: New file.
7323         * doc/gnulib.texi: Include it.
7324         * doc/posix-headers/sys_stat.texi: Mention the new module.
7326 2017-05-14  Bruno Haible  <bruno@clisp.org>
7328         stat-time tests: Workaround for native Windows.
7329         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7330         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7331         New variables.
7332         (initialize_filenames): New function.
7333         (main): Invoke it.
7334         (cleanup, prepare_test): Update.
7336 2017-05-14  Bruno Haible  <bruno@clisp.org>
7338         stat-time: Adapt for windows-stat-timespec.
7339         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7340         entire st_ctim field.
7342 2017-05-13  Jim Meyering  <meyering@fb.com>
7344         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7345         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7346         file that uses the assume macro, claiming that verify.h is unused.
7348 2017-05-13  Bruno Haible  <bruno@clisp.org>
7350         Use symbolic values for _WIN32_WINNT.
7351         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7352         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7354 2017-05-13  Bruno Haible  <bruno@clisp.org>
7356         year2038: New module.
7357         * m4/year2038.m4: New file.
7358         * modules/year2038: New file.
7359         * doc/year2038.texi: New file.
7360         * doc/gnulib.texi: Include it.
7362 2017-05-13  Bruno Haible  <bruno@clisp.org>
7364         largefile: Simplify.
7365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7366         of _GL_WINDOWS_64_BIT_ST_SIZE.
7368 2017-05-13  Bruno Haible  <bruno@clisp.org>
7370         largefile: Improve and document.
7371         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7372         the mingw headers already define 'stat' appropriately.
7373         * modules/largefile (Description): Clarify.
7374         * doc/largefile.texi: New file.
7375         * doc/gnulib.texi: Include it.
7376         * doc/posix-headers/sys_types.texi: Update.
7378 2017-05-13  Bruno Haible  <bruno@clisp.org>
7380         truncate: New module.
7381         * lib/unistd.in.h (truncate): New declaration.
7382         * lib/truncate.c: New file.
7383         * m4/truncate.m4: New file.
7384         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7385         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7386         REPLACE_TRUNCATE.
7387         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7388         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7389         * modules/truncate: New file.
7390         * tests/test-unistd-c++.cc (truncate): Test signature.
7391         * doc/posix-functions/truncate.texi: Mention the new module.
7393         * tests/test-truncate.c: New file.
7394         * modules/truncate-tests: New file.
7396 2017-05-13  Bruno Haible  <bruno@clisp.org>
7398         windows-stat-timespec: New module.
7399         * modules/windows-stat-timespec: New file.
7400         * m4/windows-stat-timespec.m4: New file.
7401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7402         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7403         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7404         fields st_atim, st_mtim, st_ctim.
7405         (st_atime, st_mtime, st_ctime): Define as macros.
7406         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7407         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7408         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7409         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7410         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7411         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7412         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7413         FILETIME to 'struct timespec', not 'time_t'.
7414         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7415         FILETIME to 'struct timespec', not 'time_t'.
7416         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7417         _GL_WINDOWS_STAT_TIMESPEC.
7418         * doc/windows-stat-timespec.texi: New file.
7419         * doc/gnulib.texi: Include it.
7421 2017-05-13  Bruno Haible  <bruno@clisp.org>
7423         windows-stat-override: New module.
7424         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7425         definition. Define GNULIB_defined_struct_stat.
7426         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7427         link error if this symbol is used and the corresponding module is not
7428         in use.
7429         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7430         GNULIB_OVERRIDES_STRUCT_STAT.
7431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7432         GNULIB_OVERRIDES_STRUCT_STAT.
7433         * modules/sys_stat (Makefile.am): Substitute
7434         GNULIB_OVERRIDES_STRUCT_STAT.
7435         * modules/windows-stat-override: New file.
7437 2017-05-13  Bruno Haible  <bruno@clisp.org>
7439         fstat: Fix module dependency conditions.
7440         * modules/fstat (Depends-on): Fix typo.
7442 2017-05-13  Bruno Haible  <bruno@clisp.org>
7444         stat, fstat: Complete removal of old native Windows code.
7445         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7446         * lib/fstat.c: Likewise.
7447         * lib/stat-w32.c: Likewise.
7449 2017-05-13  Bruno Haible  <bruno@clisp.org>
7451         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7452         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7454 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7456         getopt-posix: port to mingw
7457         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7458         Problem reported by Daniel P. Berrage in:
7459         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7461 2017-05-11  Bruno Haible  <bruno@clisp.org>
7463         gettimeofday: Increase precision on mingw.
7464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7465         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7466         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7467         GetSystemTimePreciseAsFileTime based implementation always.
7468         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7469         mingw.
7471 2017-05-11  Bruno Haible  <bruno@clisp.org>
7473         poll: Fix confusion between SOCKETs and FDs on native Windows.
7474         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7475         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7477 2017-05-11  Bruno Haible  <bruno@clisp.org>
7479         doc: Clarify doc about socket functions on native Windows.
7480         This reworks doc that was added on 2008-09-29.
7481         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7482         clearer wording.
7483         * doc/posix-functions/accept.texi: Use clearer wording.
7484         * doc/posix-functions/bind.texi: Likewise.
7485         * doc/posix-functions/connect.texi: Likewise.
7486         * doc/posix-functions/getpeername.texi: Likewise.
7487         * doc/posix-functions/getsockname.texi: Likewise.
7488         * doc/posix-functions/getsockopt.texi: Likewise.
7489         * doc/posix-functions/ioctl.texi: Likewise.
7490         * doc/posix-functions/listen.texi: Likewise.
7491         * doc/posix-functions/recv.texi: Likewise.
7492         * doc/posix-functions/recvfrom.texi: Likewise.
7493         * doc/posix-functions/send.texi: Likewise.
7494         * doc/posix-functions/sendto.texi: Likewise.
7495         * doc/posix-functions/setsockopt.texi: Likewise.
7496         * doc/posix-functions/shutdown.texi: Likewise.
7497         * doc/posix-functions/socket.texi: Likewise.
7499 2017-05-10  Bruno Haible  <bruno@clisp.org>
7501         poll: Fix link error on native Windows.
7502         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7504 2017-05-10  Bruno Haible  <bruno@clisp.org>
7506         time: Fix missing initialization of HAVE_TIMEZONE_T.
7507         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7508         here...
7509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7510         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7511         gl_HEADER_SYS_TIME_H_DEFAULTS.
7512         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7513         (configure.ac): Remove useless quoting.
7515 2017-05-10  Bruno Haible  <bruno@clisp.org>
7517         Implement a way to opt out from MSVC support, part 2.
7518         * modules/msvc-inval (Include): Document recommended idiom.
7519         * modules/msvc-nothrow (Include): Likewise.
7521         Implement a way to opt out from MSVC support.
7522         This is useful for Emacs.
7523         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7524         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7525         * lib/error.c: Likewise.
7526         * lib/fcntl.c: Likewise.
7527         * lib/flock.c: Likewise.
7528         * lib/fstat.c: Likewise.
7529         * lib/fsync.c: Likewise.
7530         * lib/ioctl.c: Likewise.
7531         * lib/isapipe.c: Likewise.
7532         * lib/lseek.c: Likewise.
7533         * lib/nonblocking.c: Likewise.
7534         * lib/poll.c: Likewise.
7535         * lib/select.c: Likewise.
7536         * lib/sockets.h: Likewise.
7537         * lib/sockets.c: Likewise.
7538         * lib/stdio-read.c: Likewise.
7539         * lib/stdio-write.c: Likewise.
7540         * lib/utimens.c: Likewise.
7541         * lib/w32sock.h: Likewise.
7542         * lib/w32spawn.h: Likewise.
7543         * tests/test-cloexec.c: Likewise.
7544         * tests/test-dup-safer.c: Likewise.
7545         * tests/test-dup2.c: Likewise.
7546         * tests/test-dup3.c: Likewise.
7547         * tests/test-fcntl.c: Likewise.
7548         * tests/test-pipe.c: Likewise.
7549         * tests/test-pipe2.c: Likewise.
7550         * lib/ftruncate.c: Likewise.
7551         (chsize_nothrow): Renamed from chsize.
7552         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7553         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7554         * lib/close.c: Likewise.
7555         * lib/dup.c: Likewise.
7556         * lib/fclose.c: Likewise.
7557         * lib/raise.c: Likewise.
7558         * tests/test-fgetc.c: Likewise.
7559         * tests/test-fputc.c: Likewise.
7560         * tests/test-fread.c: Likewise.
7561         * tests/test-fwrite.c: Likewise.
7562         * lib/getdtablesize.c: Likewise.
7563         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7564         * lib/isatty.c: Don't include msvc-inval.h if
7565         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7566         Include <io.h> as an alternative to msvc-nothrow.h.
7567         * lib/read.c: Likewise.
7568         * lib/write.c: Likewise.
7569         * lib/dup2.c: Likewise.
7570         (dup2_nothrow): New function.
7571         (ms_windows_dup2): Use it.
7572         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7573         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7574         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7575         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7576         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7577         * m4/read.m4 (gl_FUNC_READ): Likewise.
7578         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7579         * doc/windows-without-msvc.texi: New file.
7580         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7581         section.
7583 2017-05-10  Bruno Haible  <bruno@clisp.org>
7585         wait-process: Adjust native Windows support.
7586         * lib/wait-process.c: Use the usual condition for recognizing a native
7587         Windows platform.
7589 2017-05-10  Bruno Haible  <bruno@clisp.org>
7591         doc: New chapter "Native Windows Support".
7592         * doc/gnulib.texi (Native Windows Support): New chapter.
7593         * doc/windows-libtool.texi: Small wording changes.
7594         * doc/windows-sockets.texi: Small wording and formatting changes.
7596 2017-05-10  Bruno Haible  <bruno@clisp.org>
7598         doc: Move section "Library version handling".
7599         * doc/gnulib.texi: Move section "Library version handling"
7600         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7602 2017-05-10  Bruno Haible  <bruno@clisp.org>
7604         doc: Move section "Running self-tests under valgrind".
7605         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7606         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7608 2017-05-10  Bruno Haible  <bruno@clisp.org>
7610         doc: New chapter "Build Infrastructure Modules".
7611         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7613 2017-05-10  Bruno Haible  <bruno@clisp.org>
7615         Prepare for reordering sections in the manual.
7616         * doc/gnulib.texi: Move several sections to separate files. Include
7617         these files.
7618         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7619         * doc/obsolete.texi: Likewise.
7620         * doc/extra-tests.texi: Likewise.
7621         * doc/transversal.texi: Likewise.
7622         * doc/namespace.texi: Likewise.
7623         * doc/check-version.texi: Likewise.
7624         * doc/windows-sockets.texi: Likewise.
7625         * doc/windows-libtool.texi: Likewise.
7626         * doc/licenses-texi.texi: Likewise.
7627         * doc/build-automation.texi: Likewise.
7628         * doc/c-locale.texi: Likewise.
7630 2017-05-10  Bruno Haible  <bruno@clisp.org>
7632         Fix instructions how to update manual on www.gnu.org.
7633         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7635 2017-05-09  Bruno Haible  <bruno@clisp.org>
7637         tzset: Expand comment about TZ problem on native Windows.
7638         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7639         Paul Eggert.
7640         * lib/ctime.c (rpl_ctime): Likewise.
7641         * lib/localtime.c (rpl_localtime): Likewise.
7642         * lib/mktime.c (mktime): Likewise.
7643         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7644         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7646 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7648         intprops: don’t depend on ‘verify’
7649         Problem reported by Ævar Arnfjörð Bjarmason in:
7650         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7651         * lib/intprops.h: Do not include verify.h, and move compile-time
7652         checks from here ...
7653         * tests/test-intprops.c (main): ... to here, if they’re not here
7654         already.  Check widths of other standard integer types.
7655         * modules/intprops (Depends-on): Remove ‘verify’.
7657 2017-05-07  Bruno Haible  <bruno@clisp.org>
7659         utimens: On native Windows, support 100ns resolution also if fd < 0.
7660         * lib/utime.in.h: Include <time.h>.
7661         (_gl_utimens_windows): New declaration.
7662         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7663         (utime): Invoke it.
7664         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7665         instead of utime.
7666         * modules/utime (Depends-on): Add 'time'.
7668 2017-05-07  Bruno Haible  <bruno@clisp.org>
7670         utimens: Improve error code on native Windows.
7671         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7672         error code EACCES, not EINVAL.
7674 2017-05-07  Bruno Haible  <bruno@clisp.org>
7676         utime: Handle more Windows error codes.
7677         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7678         Based on explanations by Billy O'Neal.
7680 2017-05-05  Bruno Haible  <bruno@clisp.org>
7682         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7683         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7684         union.
7685         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7686         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7687         value of cipher->IV.
7689 2017-05-05  Bruno Haible  <bruno@clisp.org>
7691         wctype-h-c++-tests: Update.
7692         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7694 2017-05-05  Bruno Haible  <bruno@clisp.org>
7696         wchar-c++-tests: Update.
7697         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7699 2017-05-05  Bruno Haible  <bruno@clisp.org>
7701         utime-h-c++-tests: New module.
7702         * tests/test-utime-h-c++.cc: New file.
7703         (utime): Declare, missing since 2017-04-30.
7704         * modules/utime-h-c++-tests: New file.
7706 2017-05-05  Bruno Haible  <bruno@clisp.org>
7708         unistd-c++-tests: Update.
7709         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7710         (read): Declare, missing since 2011-04-15.
7711         (sethostname): Declare, missing since 2011-12-03.
7713 2017-05-05  Bruno Haible  <bruno@clisp.org>
7715         time-c++-tests: Update.
7716         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7717         (localtime, gmtime): Declare, missing since 2017-04-30.
7718         (ctime): Declare, missing since 2017-04-30.
7719         (strftime): Declare, missing since 2017-04-30.
7720         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7721         2015-07-24.
7723 2017-05-05  Bruno Haible  <bruno@clisp.org>
7725         sys_resource-c++-tests: New module.
7726         * tests/test-sys_resource-c++.cc: New file.
7727         (getrusage): Declare, missing since 2012-04-13.
7728         * modules/sys_resource-c++-tests: New file.
7730 2017-05-05  Bruno Haible  <bruno@clisp.org>
7732         strings-c++-tests: New module.
7733         * tests/test-strings-c++.cc: New file.
7734         (ffs): Declare, missing since 2011-07-12.
7735         * modules/strings-c++-tests: New file.
7737 2017-05-05  Bruno Haible  <bruno@clisp.org>
7739         string-c++-tests: Update.
7740         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7741         (ffsll): Declare, missing since 2011-07-15.
7743 2017-05-05  Bruno Haible  <bruno@clisp.org>
7745         stdlib-c++-tests: Update.
7746         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7747         2011-10-18.
7748         (ptsname_r): Declare, missing since 2011-11-07.
7749         (qsort_r): Declare, missing since 2014-08-29.
7750         (random, srandom, initstate, setstate): Declare, missing since
7751         2012-01-14.
7752         (secure_getenv): Declare, missing since 2013-02-05.
7754 2017-05-05  Bruno Haible  <bruno@clisp.org>
7756         stdio-c++-tests: Update.
7757         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7759 2017-05-05  Bruno Haible  <bruno@clisp.org>
7761         signal-h-c++-tests: Update.
7762         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7764 2017-05-05  Bruno Haible  <bruno@clisp.org>
7766         math-c++-tests: Update.
7767         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7768         (fma): Declare, missing since 2011-10-17.
7769         (fmal): Declare, missing since 2011-10-17.
7771 2017-05-05  Bruno Haible  <bruno@clisp.org>
7773         locale-c++-tests: Update.
7774         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7775         2012-03-25.
7777 2017-05-05  Bruno Haible  <bruno@clisp.org>
7779         inttypes-c++-tests: New module.
7780         * tests/test-inttypes-c++.cc: New file.
7781         (strtoimax): Declare, missing since 2012-01-05.
7782         (strtoumax): Declare, missing since 2012-01-05.
7783         * modules/inttypes-c++-tests: New file.
7785 2017-05-05  Bruno Haible  <bruno@clisp.org>
7787         dirent-c++-tests: Update.
7788         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7789         (rewinddir): Declare, missing since 2011-09-13.
7790         (dirfd): Declare, missing since 2010-03-08.
7792 2017-05-04  Bruno Haible  <bruno@clisp.org>
7794         argp: Fix mistake in 2017-04-23 commit.
7795         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7796         assume that strerror_r returns 'int', not 'char *'.
7798 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7800         argp: Fix typo.
7801         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7803 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7805         utimens: port to Emacs + MS-Windows
7806         Skip the new MS-Windows-specific code if Emacs.
7807         * lib/utimens.c [EMACS_CONFIGUATION]:
7808         Avoid new MS-Windows-specific code.
7809         (USE_SETFILETIME): New macro.
7810         (fdutimens): Use it.
7812 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7814         tzset: update doc for TZ problems on MS-Windows
7815         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7816         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7817         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7818         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7819         * doc/posix-functions/wcsftime.texi:
7820         Mention some issues with TZ under MS-Windows.
7822 2017-05-01  Bruno Haible  <bruno@clisp.org>
7824         copy-file: Fix build error on mingw.
7825         * modules/copy-file (Depends-on): Add 'close'.
7827 2017-05-01  Bruno Haible  <bruno@clisp.org>
7829         tzset: Work around TZ problem on native Windows.
7830         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7831         Windows, set REPLACE_TZSET to 1.
7832         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7833         invoke '_tzset' instead of 'tzset'.
7834         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7836         * modules/time_rz (Depends-on): Add tzset.
7837         * lib/time_rz.c (tzset): Remove fallback definition.
7838         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7840 2017-05-01  Bruno Haible  <bruno@clisp.org>
7842         mktime: Fix dependencies.
7843         * modules/mktime (Depends-on): Add 'time'.
7845 2017-05-01  Bruno Haible  <bruno@clisp.org>
7847         New module 'localtime-buffer', split off from module 'gettimeofday'.
7848         * lib/localtime-buffer.h: New file.
7849         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7850         * lib/time.in.h (tzset): New declaration.
7851         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7852         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7853         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7854         moved to lib/localtime-buffer.c or lib/tzset.c.
7855         * m4/localtime-buffer.m4: New file.
7856         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7857         HAVE_TZSET, REPLACE_TZSET.
7858         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7859         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7860         gl_LOCALTIME_BUFFER_NEEDED.
7861         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7862         since 2007-01-18.
7863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7864         tzset.
7865         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7866         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7867         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7868         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7869         * modules/localtime-buffer: New file.
7870         * modules/time (Depends-on): Remove 'gettimeofday'.
7871         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7872         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7873         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7874         (Files): Add lib/tzset.c.
7875         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7876         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7877         gl_TIME_MODULE_INDICATOR.
7878         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7880 2017-05-01  Bruno Haible  <bruno@clisp.org>
7882         copy-file: Preserve sub-second time stamps.
7883         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7884         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7885         transport the time stamps from the original file to the destination
7886         file.
7887         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7888         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7889         utime-h.
7891 2017-05-01  Bruno Haible  <bruno@clisp.org>
7893         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7894         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7895         also on MSVC.
7896         Reported by Eli Zaretskii <eliz@gnu.org>.
7898 2017-05-01  Bruno Haible  <bruno@clisp.org>
7900         wchar: Fix compilation error with the original mingw.org mingw.
7901         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7902         <stddef.h> instead.
7903         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7904         gl_WCTYPE_H.
7905         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7906         gl_TYPE_WINT_T_PREREQ instead.
7907         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7908         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7909         Reported by Eli Zaretskii <eliz@gnu.org>.
7911 2017-04-30  Bruno Haible  <bruno@clisp.org>
7913         utimecmp: Add support for native Windows.
7914         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7916 2017-04-30  Bruno Haible  <bruno@clisp.org>
7918         utimens: Add support for native Windows.
7919         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7920         (fdutimens): Provide a native Windows implementation, like utime.c with
7921         added tv_nsec support.
7922         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7923         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7925 2017-04-30  Bruno Haible  <bruno@clisp.org>
7927         wcsftime: New module.
7928         * lib/wchar.in.h (wcsftime): New declaration.
7929         * lib/wcsftime.c: New file.
7930         * m4/wcsftime.m4: New file.
7931         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7932         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7933         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7935         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7936         * modules/wcsftime: New file.
7937         * doc/posix-functions/wcsftime.texi: Mention the new module.
7939 2017-04-30  Bruno Haible  <bruno@clisp.org>
7941         strftime-fixes: New module.
7942         * lib/time.in.h (strftime): New declaration.
7943         * lib/strftime-fixes.c: New file.
7944         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7945         (gl_FUNC_STRFTIME): Remove macro.
7946         * m4/strftime-fixes.m4: New file.
7947         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7948         REPLACE_STRFTIME.
7949         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7950         REPLACE_STRFTIME.
7951         * modules/strftime-fixes: New file.
7952         * doc/posix-functions/strftime.texi: Mention the new module.
7954 2017-04-30  Bruno Haible  <bruno@clisp.org>
7956         mktime: Work around TZ problem on native Windows.
7957         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7958         from the native Windows workaround.
7959         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7960         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7961         'guessing no'.
7962         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7963         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7964         NEED_MKTIME_WINDOWS.
7965         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7966         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7967         NEED_MKTIME_INTERNAL.
7968         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7969         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7970         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7971         not REPLACE_MKTIME.
7972         * doc/posix-functions/mktime.texi: Mention the native Windows
7973         workaround.
7975 2017-04-30  Bruno Haible  <bruno@clisp.org>
7977         localtime: New module.
7978         * lib/time.in.h (localtime): Declare also if requested by module
7979         'localtime'.
7980         * lib/localtime.c: New file.
7981         * m4/localtime.m4: New file.
7982         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7983         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7984         * modules/localtime: New file.
7985         * doc/posix-functions/localtime.texi: Mention the new module.
7987 2017-04-30  Bruno Haible  <bruno@clisp.org>
7989         ctime: New module.
7990         * lib/time.in.h (ctime): New declaration.
7991         * lib/ctime.c: New file.
7992         * m4/ctime.m4: New file.
7993         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7994         REPLACE_CTIME.
7995         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7996         * modules/ctime: New file.
7997         * doc/posix-functions/ctime.texi: Mention the new module.
7999 2017-04-30  Bruno Haible  <bruno@clisp.org>
8001         gettimeofday: Provide higher resolution on native Windows.
8002         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
8003         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
8004         (initialize): Initialize it.
8005         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
8006         'struct timeval'. Don't use _ftime().
8007         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
8008         <sys/timeb.h> and _ftime.
8010 2017-04-30  Bruno Haible  <bruno@clisp.org>
8012         Document the problem with the Cygwin environment variable TZ.
8013         * doc/posix-functions/tzset.texi: Add note about TZ.
8014         * doc/posix-functions/ctime.texi: Likewise.
8015         * doc/posix-functions/localtime.texi: Likewise.
8016         * doc/posix-functions/mktime.texi: Likewise.
8017         * doc/posix-functions/strftime.texi: Likewise.
8018         * doc/posix-functions/wcsftime.texi: Likewise.
8019         * doc/pastposix-functions/ftime.texi: Likewise.
8021 2017-04-30  Bruno Haible  <bruno@clisp.org>
8023         utime-tests: New module.
8024         * tests/test-utime.c: New file, based on tests/test-utimens.h.
8025         * tests/test-utimens-common.h: Include <sys/stat.h>.
8026         * modules/utime-tests: New file.
8028 2017-04-29  Bruno Haible  <bruno@clisp.org>
8030         utime: New module.
8031         * lib/utime.in.h: Add comment for snippets.
8032         (utime): New declaration.
8033         * lib/utime.c: New file.
8034         * m4/utime.m4: New file.
8035         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
8036         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
8037         REPLACE_UTIME.
8038         * modules/utime-h (Depends-on): Add snippets.
8039         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
8040         Insert snippets.
8041         * modules/utime: New file.
8042         * doc/posix-functions/utime.texi: Mention the new module.
8044 2017-04-29  Bruno Haible  <bruno@clisp.org>
8046         utime-h: Modernize handling of 'struct utimbuf'.
8047         * lib/utime.in.h: Include next <utime.h> if it exists.
8048         (utimbuf): Define to _utimbuf on native Windows.
8049         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
8050         Set UTIME_H on native Windows.
8051         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
8052         * modules/utime-h (Depends-on): Add include_next.
8053         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
8054         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
8056         * lib/utimens.c (utimbuf): Remove fallback definition.
8057         * m4/utimens.m4 (gl_UTIMENS): Don't require
8058         gl_CHECK_TYPE_STRUCT_UTIMBUF.
8059         * m4/utimbuf.m4: Remove file.
8060         * modules/utimens (Files): Remove m4/utimbuf.m4.
8062 2017-04-29  Bruno Haible  <bruno@clisp.org>
8064         Make use of module 'utime-h'.
8065         * modules/copy-file (Depends-on): Add utime-h.
8066         * lib/copy-file.c: Assume that <utime.h> exists.
8067         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
8069         * modules/utimens (Depends-on): Add utime-h.
8070         * lib/utimens.c: Assume that <utime.h> exists.
8072 2017-04-29  Bruno Haible  <bruno@clisp.org>
8074         utime-h: New module.
8075         * m4/utime_h.m4: New file.
8076         * lib/utime.in.h: New file.
8077         * modules/utime-h: New file.
8078         * doc/posix-headers/utime.texi: Mention the new module.
8080         * tests/test-utime-h.c: New file.
8081         * modules/utime-h-tests: New file.
8083 2017-04-30  Bruno Haible  <bruno@clisp.org>
8085         Fix a few typos.
8086         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
8087         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
8088         * doc/posix-functions/fstat.texi: Fix a plural typo.
8089         * doc/posix-functions/stat.texi: Likewise.
8090         * m4/include_next.m4: Update comments.
8092 2017-04-29  Bruno Haible  <bruno@clisp.org>
8094         error: Fix mistake in 2017-04-23 commit.
8095         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
8096         assume that strerror_r returns 'int', not 'char *'.
8098 2017-04-29  Bruno Haible  <bruno@clisp.org>
8100         stat: Fix time_t values and other problems on native Windows platforms.
8101         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
8102         implementations of stat().
8103         * lib/stat.c: Include filename.h instead of dosname.h. Include
8104         malloca.h, stat-w32.h.
8105         (is_unc_root): New function.
8106         (rpl_stat): New implementation for native Windows. Remove
8107         REPLACE_FUNC_STAT_DIR code.
8108         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8109         Don't define REPLACE_FUNC_STAT_DIR.
8110         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8111         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8112         (Depends-on): Remove dosname. Add filename, malloca.
8113         (configure.ac): Also compile lib/stat-w32.c.
8115 2017-04-29  Bruno Haible  <bruno@clisp.org>
8117         fstat: Fix time_t values on native Windows platforms.
8118         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8119         * lib/stat-w32.h: New file.
8120         * lib/stat-w32.c: New file.
8121         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8122         stat-w32.h instead.
8123         (fstat_nothrow): Remove function.
8124         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8125         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8126         always.
8127         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8128         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8129         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8130         (configure.ac): Also compile lib/stat-w32.c.
8132 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8134         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8135         Problem reported by Assaf Gordon and Gavin Smith in:
8136         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8137         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8138         #define this, too.
8140 2017-04-29  Bruno Haible  <bruno@clisp.org>
8142         strerror_r-posix: Fixes for MSVC 14.
8143         * lib/strerror_r.c: Include <stdarg.h>.
8144         (strerror_r): Provide error messages for errno values 100...140.
8145         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8147 2017-04-28  Bruno Haible  <bruno@clisp.org>
8149         noreturn: New module.
8150         * lib/noreturn.h: New file.
8151         * modules/noreturn: New file.
8152         * tests/test-noreturn.c: New file.
8153         * modules/noreturn-tests: New file.
8154         * tests/test-noreturn-c++.cc: New file.
8155         * modules/noreturn-c++-tests: New file.
8157 2017-04-27  Bruno Haible  <bruno@clisp.org>
8159         wctype-h: Fix compilation error with the original mingw.org mingw.
8160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8161         HAVE_CRTDEFS_H.
8162         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8163         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8164         <stddef.h> instead.
8165         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8167 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8169         nap.h: Fix compilation on non windows platforms
8170         * tests/nap.h: Move misplaced endif.
8172 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8173         and Paul Eggert  <eggert@cs.ucla.edu>
8175         time_rz: fix heap buffer overflow vulnerability
8176         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8177         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8178         whether there is enough buffer space available, thus avoiding
8179         the problematic promotion of signed to unsigned causing an invalid
8180         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8181         the start of the buffer.
8182         * tests/test-parse-datetime.c (main): Add a test case written by
8183         Paul Eggert, which overwrites enough of the heap so that
8184         standard glibc will fail with "free(): invalid pointer"
8185         without the patch applied.
8187 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8189         xalloc: add missing integer overflow check
8190         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8191         overflow when P is null.
8193 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8195         parse-datetime: make it standalone
8196         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8197         (_GL_ATTRIBUTE_FORMAT): New macro.
8198         These are needed to get './gnulib-tool --test parse-datetime' to work.
8200 2017-04-23  Bruno Haible  <bruno@clisp.org>
8202         nap.h: Port to native Windows.
8203         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8204         use nap_fd instead. On native Windows, close and reopen nap_fd.
8205         (nap_works): Don't compare the ctimes, because on native Windows, these
8206         are the creation times.
8207         (nap): Update.
8209 2017-04-23  Bruno Haible  <bruno@clisp.org>
8211         nap.h: Fix logic.
8212         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8214 2017-04-23  Bruno Haible  <bruno@clisp.org>
8216         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8217         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8218         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8219         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8220         * lib/argp-help.c (__argp_failure): Likewise.
8222 2017-04-23  Bruno Haible  <bruno@clisp.org>
8224         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8225         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8226         * lib/strerror_r.c: Likewise.
8228 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8230         Target a C99 subset, not a C89 subset
8231         For many years Gnulib has targeted C89 and has resisted using C99
8232         features, as some Gnulib-using programs still wanted to target
8233         C89.  As this no longer seems to be the case, relax the porting
8234         requirements to allow some C99 features.  This is merely a change
8235         to the documentation, to give other Gnulib developers a chance to
8236         weigh in on the topic.
8237         * doc/extern-inline.texi (extern inline):
8238         * doc/gnulib-readme.texi (Portability guidelines):
8239         * doc/gnulib-tool.texi (Initial import):
8240         * doc/gnulib.texi (Header files):
8241         Modernize to talk about C99 and C11 instead of C89 and C99.
8242         * doc/gnulib-readme.texi (Portability guidelines):
8243         Now a section, not merely a subsection, so that it
8244         can be split up.  Modernize a bit.
8245         (C language versions, C99 features assumed)
8246         (C99 features avoided):
8247         New sections.
8249 2017-04-23  Bruno Haible  <bruno@clisp.org>
8251         doc: New section "Modules that modify the way other modules work".
8252         * doc/gnulib.texi (Modules that modify the way other modules work): New
8253         section.
8255 2017-04-23  Bruno Haible  <bruno@clisp.org>
8257         stat-time: Update comments.
8258         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8259         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8260         Windows.
8262 2017-04-01  Bruno Haible  <bruno@clisp.org>
8264         glob: Fix more memory leaks.
8265         * lib/glob.c (glob): Free allocated memory before returning.
8266         Reported by Coverity via Tim Rühsen.
8268 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8270         poll: improve fast check for out-of-range NFD
8271         * lib/poll.c: Do not include intprops.h.
8272         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8273         * modules/poll (Depends-on): Remove intprops.
8275         ftoastr: cite a newer paper
8276         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8277         instead of Loitsch 2010.
8279 2017-04-22  Bruno Haible  <bruno@clisp.org>
8281         poll: Enable argument check also in the Windows implementation.
8282         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8283         Reported by Paul Eggert.
8285 2017-04-22  Bruno Haible  <bruno@clisp.org>
8287         getlogin_r: Work around bug in Mac OS X 10.12.
8288         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8289         bug.
8290         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8291         given size minus 1, call getlogin_r a second time, on a larger buffer.
8292         * modules/getlogin_r (Depends-on): Add malloca.
8293         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8295 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8297         parse-datetime: fix %z and prefer signed int
8298         %z problem reported by Pádraig Brady in:
8299         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8300         While fixing it, I decided to prefer signed ints to size_t, as
8301         they are less error-prone (e.g., ubsan catches overflow).
8302         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8303         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8304         counts, since signed integers make for better debugging.
8305         (date): Don’t assume %z works in printf formats.
8306         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8307         sizes of buffers known to be small, e.g., because we’re using snprintf.
8308         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8310 2017-04-22  Bruno Haible  <bruno@clisp.org>
8312         *printf: Work around rounding bug on Mac OS X.
8313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8314         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8315         Mac OS X and FreeBSD.
8316         * doc/glibc-functions/*printf.texi: Likewise.
8318 2017-04-22  Bruno Haible  <bruno@clisp.org>
8320         vasnprintf tests: Avoid warnings.
8321         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8322         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8323         test.
8325 2017-04-22  Bruno Haible  <bruno@clisp.org>
8327         sys_file tests: Avoid warning.
8328         * tests/test-sys_file.c (main): Add a default clause to the switch
8329         statement.
8331 2017-04-22  Bruno Haible  <bruno@clisp.org>
8333         sethostname: Update doc.
8334         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8335         Mac OS X.
8337 2017-04-22  Bruno Haible  <bruno@clisp.org>
8339         quotearg tests: Avoid warnings.
8340         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8341         false.
8343 2017-04-22  Bruno Haible  <bruno@clisp.org>
8345         poll: Enable argument check.
8346         * lib/poll.c: Include intprops.h.
8347         (poll): Check value of nfd correctly.
8348         * modules/poll (Depends-on): Add intprops.
8350 2017-04-22  Bruno Haible  <bruno@clisp.org>
8352         get-rusage-data: Avoid warnings on Mac OS X.
8353         * lib/get-rusage-data.c: On Mac OS X, don't define
8354         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8355         (get_rusage_data) [Mac OS X]: Just return 0.
8357 2017-04-22  Bruno Haible  <bruno@clisp.org>
8359         xbinary-io: Fix build error.
8360         * modules/xbinary-io (Depends-on): Add gettext-h.
8361         * lib/xbinary-io.c: Include gettext.h and define _().
8362         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8363         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8365 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8367         parse-datetime: overflow and debug cleanups
8368         This long patch was triggered by this bug report from Ruediger Meier:
8369         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8370         I fixed the bug he noted, then found some others nearby, and then
8371         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8372         up some of the code to follow GNU standards while I was at it.
8373         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8374         use c_isdigit.
8375         (EPOCH_YEAR): Remove; unused.
8376         (TM_YEAR_BASE): Now an enum rather than a macro.
8377         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8378         time zone offset, since timezones now are in terms of seconds and
8379         not minutes.
8380         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8381         appropriate.  Verify that intmax_t is wide enough.
8382         (time_overflow, time_zone_str): New functions, used to deal
8383         more reliably with overflow.
8384         (dbg_printf): Add printf attribute, to help catch integer width errors.
8385         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8386         (%union, to_hour, yylex, parse_datetime2):
8387         Use intmax_t instead of long int and/or long_time_t.
8388         All uses changed.
8389         (DBGBUFSIZE): Move earlier.
8390         (relative_time, set_hhmmss, parser_control):
8391         Just use int for nanoseconds and for time zones; that’s wide enough.
8392         (parser_control): Use bool for members like year_seen that can
8393         be booleans instead of counters.  All uses changed.
8394         Remove debug_default_input_timezone; no longer needed.
8395         All uses removed.
8396         (apply_relative_time): Return a bool overflow flag.
8397         All uses changed to check for overflow.
8398         (apply_relative_time, zone, date, relunit, relunit_snumber)
8399         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8400         Check for integer overflow portably.
8401         (str_days): Use just int for N, as it’s wide enough.
8402         Prefer 2D char arrays to arrays of char * when it looks like
8403         2D is a win on typical platforms.
8404         Prefer snprintf to strncpy/strncat, for simplicity;
8405         all buffers are smaller than INT_MAX so this is safe.
8406         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8407         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8408         as this is not true on x32.  Output "." before any nanoseconds.
8409         (debug_print_current_time, parse_datetime2):
8410         Output local zones using a more-consistent format.
8411         (debug_print_current_time, date, parse_datetime2):
8412         (main) [TEST]:
8413         Don’t assume time_t is the same width as long.
8414         (print_rel_part): New function, replacing ...
8415         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8416         (debug_print_relative_time): Use bool for boolean.
8417         (local_zone): dsts_seen now counts only tDST instances.
8418         (date): Fix printf of size_t to use %z.  Do not assume numeric
8419         tokens have negative values merely because the context suggests
8420         a syntax with "-" separating tokens.
8421         (time_zone_hhmm): Return bool success indicator, which checks for
8422         overflow.  Store result into PC->time_zone instead.  All callers
8423         changed.
8424         (tm_year_str): New function.  Return a bool success indicator and
8425         store the result into a buffer.  All callers changed.  Output the
8426         numerically correct string even if adding 1900 to the year would
8427         overflow.
8428         (to_tm_year): New function, replacing the old to_year.  All
8429         callers changed.
8430         (tm_diff): Sync with glibc.
8431         (lookup_word): Use to_uchar instead of doing it by hand.
8432         (TZBUFSIZE): Now local to the only function that needs it.
8433         (debug_strfdatetime): Simplify now that time zones are int seconds.
8434         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8435         (get_effective_timezone): Remove.  All uses removed.
8436         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8437         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8438         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8439         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8440         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8441         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8442         * modules/parse-datetime (Depends-on): Add inttypes.
8444 2017-04-21  Bruno Haible  <bruno@clisp.org>
8446         gettext-h: Avoid -Wundef warning.
8447         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8448         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8449         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8451 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8453         error: Avoid "function declaration isn't a prototype" warning.
8454         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8456 2017-04-21  Bruno Haible  <bruno@clisp.org>
8458         vasnprintf: Fix for MSVC 14.
8459         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8460         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8461         of !HAVE_SNPRINTF_RETVAL_C99.
8463 2017-04-21  Bruno Haible  <bruno@clisp.org>
8465         mbrtowc tests: Fix test failures on MSVC 14.
8466         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8467         behaviour for invalid input.
8469 2017-04-21  Bruno Haible  <bruno@clisp.org>
8471         mbsinit: Fix for MSVC 14.
8472         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8473         implementation that is in sync with mbrtowc.c. On other platforms, use
8474         an adequate ad-hoc implementation.
8476 2017-04-21  Bruno Haible  <bruno@clisp.org>
8478         Fix test-mbrtowc5.sh failure on native Windows.
8479         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8480         "C".
8482 2017-04-21  Bruno Haible  <bruno@clisp.org>
8484         Avoid accidental use of native Windows APIs on Cygwin.
8485         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8486         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8487         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8489 2017-04-20  Bruno Haible  <bruno@clisp.org>
8491         Remove red warnings from the generated MODULES.html.
8492         * modules/fcntl (Description): Disambiguate function references.
8493         * modules/getcwd-lgpl (Description): Likewise.
8494         * modules/hostent (Description): Likewise.
8495         * modules/servent (Description): Likewise.
8496         * modules/tempname (Description): Likewise.
8498 2017-04-20  Bruno Haible  <bruno@clisp.org>
8500         verify tests: Fix spurious failure with parallel make.
8501         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8502         EXTRA_PROGRAMS.
8503         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8504         * tests/test-verify-try.c: New file.
8505         * modules/verify-tests (Files): Add it.
8506         (EXTRA_PROGRAMS): Add test-verify-try.
8507         (MOSTLYCLEANFILES): Update accordingly.
8508         Reported by Adam James Stewart <ajstewart@anl.gov>.
8510 2017-04-18  Bruno Haible  <bruno@clisp.org>
8512         vma-iter: Fix compilation error on Solaris 7.
8513         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8514         like on IRIX, OSF/1.
8515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8517 2017-04-18  Bruno Haible  <bruno@clisp.org>
8519         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8520         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8521         included.
8522         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8523         <sys/procfs.h>.
8524         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8525         <sys/procfs.h> cannot be included.
8526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8528 2017-04-18  Bruno Haible  <bruno@clisp.org>
8530         getopt-gnu: Add comments.
8531         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8532         * modules/getopt-gnu (configure.ac): Likewise.
8534 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8536         regex: port better to Solaris 10
8537         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8538         gettext, and this causes a double #define.
8539         Problem reported by Gavin Smith in:
8540         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8541         * lib/regex_internal.h (gettext): #undef before #defining.
8543 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8545         intprops: improve comments
8546         * lib/intprops.h: Improve and shorten commentary.
8547         For the record, if we ever run into a pedantic compiler that
8548         behaves differently from GCC when converting an out-of-range value
8549         to a signed integer, we can work around the problem with something
8550         like the following code, where UCT is the signed counterpart of T
8551         (UCT is sometimes narrower than UT) and all callers are changed
8552         accordingly:
8553         #if __SUNPRO_C <= 0x5120
8554         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8555            ((t) ((ut) (a) op (ut) (b)))
8556         #else
8557         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8558            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8559             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8560                + TYPE_MINIMUM (t)) \
8561             : (t) (uct) ((ut) (a) op (ut) (b)))
8562         #endif
8564 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8566         intprops: try to avoid tickling similar bugs
8567         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8568         needs to be the same width as T; it can be wider.
8569         Change callers so that UT is at least as wide as unsigned int,
8570         as I suspect that this is less likely to run into compiler bugs.
8572         intprops: port to Oracle Studio 12.3 x86
8573         Problem reported by Gavin Smith in:
8574         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8575         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8576         Convert unsigned to signed via the usual rather than the standard way,
8577         to avoid a compiler bug in Oracle Studio 12.3 x86.
8579 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8581         getopt: prefer - to _ in new file names
8582         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8583         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8584         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8585         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8586         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8587         All uses changed.
8589         getopt: port recent getopt changes to macOS
8590         Problem reported by Harald Maier (Bug#26398).
8591         The macOS C compiler uses __nonnull for its own purposes and that
8592         clashes with glibc's __nonnull.
8593         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8594         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8595         * lib/getopt_core.h (getopt):
8596         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8597         Use _GL_ARG_NONNULL, not __nonnull.
8598         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8599         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8600         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8601         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8603 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8605         getopt-gnu: omit some duplicate code
8606         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8607         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8608         gnulib-tool already does this.
8609         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8610         getopt-posix, which we depend on.
8612         getopt-posix: use angle-bracket include
8613         * lib/getopt1.c: Include <config.h>, not "config.h".
8615 2017-04-06  Zack Weinberg  <zackw@panix.com>
8617         getopt: annotate files with relationship to glibc
8619         As the final act in this patchset, adjust the message at the top of
8620         each file to indicate which files are synced with glibc.  (This has
8621         already been done for most of the headers.)
8623         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8624         Mention in top-of-file boilerplate that these files are shared
8625         between glibc and gnulib.
8628         getopt: split up getopt.in.h and eliminate __need_getopt
8630         Over in glibc, all of the __need macros are being phased out in favor
8631         of small headers that declare only the necessary components, as this
8632         is much simpler and less prone to bugs.  As getopt is shared with
8633         glibc, gnulib needs to do the same for __need_getopt.
8635         __need_getopt is misnamed; what it really means is "we want only the
8636         getopt features specified in POSIX, not the GNU extensions".  glibc
8637         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8638         these files can be shared verbatim with gnulib.  The portability
8639         wrapper, on the other hand, they have renounced altogether; glibc's
8640         getopt.h will no longer be shared with gnulib at all.  In exchange,
8641         certain glibc-specific quirks (having to do with __posix_getopt) no
8642         longer need appear in gnulib's headers at all.
8644         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8645         splits up the current gnulib-side portability wrapper into three
8646         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8647         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8648         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8649         unistd.in.h just use them.  All new files are clearly marked with
8650         whether they are shared with glibc.
8652         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8653         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8654         with glibc, and ...
8655         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8656         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8657         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8658         instead of defining __need_getopt and including the full getopt.h.
8660         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8661         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8662         * modules/getopt-posix (Files): Add new headers and sort list.
8663         (Depends-on): No longer need snippet/arg-nonnull.
8664         (Makefile.am): Generate getopt_cdefs.h.
8667         getopt: better handling of ambiguous options
8669         glibc's getopt uses alloca to construct a linked list of possibilities
8670         for an "ambiguous" long option.  In gnulib, malloc should be used
8671         instead.  Providing for both cases complicates things a fair bit.
8673         This patch rewrites ambiguous-option handling to use a boolean vector
8674         instead of a linked list.  There is then only one allocation that
8675         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8676         and in gnulib we define __libc_use_alloca to always be false, so we
8677         don't need ifdefs in the middle of the function.  This should also be
8678         slightly more efficient in the normal case of long options being fully
8679         spelled out -- I think most people aren't even aware they _can_
8680         sometimes abbreviate long options.
8682         One interesting consequence is that the list of possibilities is now
8683         printed in exactly the order they appear in the list of long options,
8684         instead of the first possibility being shuffled to the end.
8686         (The patch looks bigger than it really is because there's a fair bit
8687         of reindentation and code rearrangement.)
8689         * lib/getopt.c: When used standalone, define __libc_use_alloca
8690         as always false and alloca to abort if called.
8691         (process_long_option): Rewrite handling of ambiguous long options
8692         to use a single boolean vector, not a linked list; use
8693         __libc_use_alloca to decide whether to allocate this using alloca.
8696         getopt: refactor long-option handling
8698         There were two copies of the bulk of the code to handle long options.
8699         Now there is only one.
8701         This change temporarily removes the logic to avoid using alloca when
8702         standalone; the next patch in the series will restore it.
8704         * lib/getopt.c (process_long_option): New function split out
8705         from _getopt_internal_r.
8706         (_getopt_internal_r): Replace both copies of the long-option
8707         processing code with calls to process_long_option.
8710         getopt: tidy up _getopt_initialize a bit
8712         _getopt_data.__posixly_correct is completely redundant to
8713         _getopt_data.__ordering, and some work that logically belongs in
8714         _getopt_initialize was being done by _getopt_internal_r, making the
8715         code harder to understand.
8717         As a side effect, getenv will no longer be called if the first
8718         character of the options string is '+' or '-', which is probably a
8719         Good Thing.  (Perhaps we should have a flag character that
8720         specifically asks for the permutation behavior?)
8722         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8723         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8724         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8727         getopt: merge from glibc: repetition reduction
8729         The definitions of the entry point functions 'getopt' and
8730         '__posix_getopt' can be made substantially less repetitive with a
8731         helper macro.
8733         While I was merging the const-correctness changes from gnulib into
8734         glibc I noticed there are still some unnecessary casts in
8735         _getopt_internal_r.
8737         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8738         a macro.  Consistently cast 'argv' to 'char **' when calling
8739         _getopt_internal.
8740         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8743         getopt: clean up error reporting
8745         getopt can print a whole bunch of error messages, and when used
8746         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8747         cancellation point and getopt isn't, and also applying fprintf to a
8748         stream in wide-character mode is not allowed.  So every single error
8749         reporting case has an #ifdef _LIBC block in which it calls internal
8750         libc functions instead.  The counterpart patch series in glibc makes
8751         it possible to simplify all of that down to a set of #defines at the
8752         top of the file; core code is written as if it is safe to just call
8753         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8754         call any *other* stdio functions.)
8756         * lib/getopt.c: When _LIBC is defined, define fprintf to
8757         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8758         to _IO_funlockfile.  When neither _LIBC nor
8759         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8760         funlockfile as no-ops.
8761         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8762         standalone error-printing code can now be used for libc as well.
8763         Add an flockfile/funlockfile pair around one case where the error
8764         message is printed in several chunks.  Don't use fputc.
8767         getopt: fix fencepost error in ambiguous-W-option handling
8769         getopt_long contains an undocumented (AFAICT) feature in which, if you
8770         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8771         treated as equivalent to '--foo'.  This is implemented with a partial
8772         second copy of the code for handling long options, and that code
8773         increments optind one too many times when recovering from an ambiguous
8774         abbreviated option, which can cause the main loop to walk past the end
8775         of argv and crash.
8777         I discovered this while writing a test case that tries to exercise all
8778         of getopt's error reporting paths; I wouldn't be surprised to learn
8779         that this feature is never used by real applications.
8781         * lib/getopt.c (_getopt_internal_r): Don't increment
8782         d->optind a second time when reporting ambiguous -W options.
8785         getopt: clean up getopt.c and getopt1.c file headers
8787         In getopt.c, there is no need to include wchar.h at all, and it is
8788         safe nowadays to assume that stdlib.h does declare getenv (several
8789         other gnulib modules make this assumption).
8791         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8792         by using "" inclusions consistently, and there is no actual need to
8793         include stdlib.h (except in the #ifdef TEST block, where it should be
8794         unconditional), nor to provide a backup definition of NULL at all.
8796         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8797         Move inclusion of stdlib.h to #ifdef TEST block and make
8798         unconditional.  Do not define NULL.
8799         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8800         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8801         * modules/getopt-gnu, modules/getopt-posix: Don't call
8802         gl_PREREQ_GETENV.
8805         getopt: harmonize comments with glibc
8807         The comments explaining how the behavior of 'getopt' varies depending
8808         on whether it's the standalone version and whether there are special
8809         characters at the beginning of the options string were inconsistent
8810         between gnulib and glibc, and also out of sync with the code.
8812         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8815         getopt: remove USE_NONOPTION_FLAGS
8817         getopt includes code to parse an environment variable named
8818         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8819         in decimal); but all of it has been #ifdefed out since 2001, with no
8820         official way to turn it back on.
8822         According to commentary in glibc's config.h.in, bash version 2.0
8823         set this environment variable to indicate argv elements that were
8824         the result of glob expansion and therefore should not be treated
8825         as options, but the feature was "disabled later" because "it
8826         caused problems".  According to bash's CHANGES file, "later" was
8827         release 2.01; it gives no more detail about what the problems
8828         were.
8830         Version 2.0 of bash was released on the last day of 1996, and version
8831         2.01 in June of 1997.  Twenty years later, I think it is safe to
8832         assume that this environment variable isn't coming back.
8834         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8835         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8836         __libc_argc and __libc_argv externs, which were only used by
8837         #ifdef USE_NONOPTION_FLAGS blocks.
8840         getopt: tabify, in preparation for merge with glibc
8842         glibc sticks to the GNU default of indenting with a mix of
8843         8-column tabs and spaces; make the gnulib copy match.
8845         getopt.h is not included because it is *not* going to be merged in its
8846         present form.
8848         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8850 2017-04-02  Bruno Haible  <bruno@clisp.org>
8852         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8853         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8854         like it was done in modules/relocatable-lib on 2011-05-21 and in
8855         modules/relocatable-prog on 2011-08-15.
8856         Reported by Reuben Thomas <rrt@sc3d.org>.
8858 2017-03-31  Bruno Haible  <bruno@clisp.org>
8860         glob: Fix invalid free() call.
8861         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8862         static storage to home_dir.
8863         Reported by Coverity via Tim Rühsen.
8865 2017-03-31  Bruno Haible  <bruno@clisp.org>
8867         glob: Fix memory leaks.
8868         * lib/glob.c (glob): Free allocated memory before returning.
8869         Reported by Coverity via Tim Rühsen.
8871 2017-03-31  Bruno Haible  <bruno@clisp.org>
8873         md5, sha1, sha256, sha512: Add comments regarding correctness.
8874         * lib/md5.h (buflen): Add comments regarding range.
8875         * lib/sha1.h (buflen): Likewise.
8876         * lib/sha256.h (buflen): Likewise.
8877         * lib/sha512.h (buflen): Likewise.
8878         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8879         * lib/sha1.c (sha1_process_bytes): Likewise.
8880         * lib/sha256.c (sha256_process_bytes): Likewise.
8881         * lib/sha512.c (sha512_process_bytes): Likewise.
8882         Reported by Coverity via Tim Rühsen.
8884 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8886         getopt: merge from glibc
8887         This does not change anything substantial; it merely simplifies
8888         hypothetical merges back to glibc.
8889         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8890         Change copyright notice to match what is in glibc.
8891         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8892         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8893         __open_memstream rather than open_memstream and __glibc_likely
8894         instead of __builtin_expect.
8895         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8897 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8899         dfa: make [0-9] faster in non-C locales
8900         Problem reported by John P. Linderman (Bug#26193).
8901         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8902         If both ends of the range are ASCII digits, do not worry about
8903         multi-character collating sequences and the like.  Be consistent
8904         about using isalpha as a precondition for setbit_case_fold_c.
8906 2017-03-19  Bruno Haible  <bruno@clisp.org>
8908         lock: Fix compilation error with HP-UX IA64 cc.
8909         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8910         weak on non-glibc platforms.
8912 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8914         stdalign: tweak version# and test for HP-UX IA64
8915         Problems reported by Bruno Haible in:
8916         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8917         * lib/stdalign.in.h (_Alignas):
8918         * m4/stdalign.m4 (gl_STDALIGN_H):
8919         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8920         used octal (as that is how they document it), but it is decimal in
8921         practice now and the ancient implementations no longer matter.
8922         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8924 2017-03-19  Bruno Haible  <bruno@clisp.org>
8926         vma-iter: Add support for Solaris.
8927         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8928         approach.
8929         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8930         * lib/get-rusage-as.c: Update comment about Solaris.
8931         * lib/get-rusage-data.c: Likewise.
8933 2017-03-19  Bruno Haible  <bruno@clisp.org>
8935         vma-iter: Prefer HP-UX specific API on HP-UX.
8936         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8937         * lib/vma-iter.h: Update.
8938         Just in case HP-UX ever implements mquery().
8940 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8942         stdalign: restore previous behavior for HP-UX IA64
8943         See Bruno Haible's email in:
8944         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8945         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8946         * lib/stdalign.in.h (_Alignas):
8947         Assume the '061200' applies to Itanium, not to PA-RISC.
8948         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8950 2017-03-17  Bruno Haible  <bruno@clisp.org>
8952         stat-time, timespec: Support use of the header files in C++ mode.
8953         * lib/stat-time.h: Add "C" linkage declaration.
8954         * lib/timespec.h: Likewise.
8956 2017-03-17  Bruno Haible  <bruno@clisp.org>
8958         stdalign: Make it work with HP-UX cc.
8959         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8960         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8961         for HP-UX cc.
8963 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8965         flexmember: try to detect HP-UX 11.31 cc bug
8966         Problem reported by Bruno Haible in:
8967         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8968         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8969         Attempt to detect bug in HP-UX 11.31 cc.
8971 2017-03-16  Bruno Haible  <bruno@clisp.org>
8973         stdint: Fix test compilation failure with HP-UX 11 cc.
8974         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8975         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8976         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8977         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8979 2017-03-14  Bruno Haible  <bruno@clisp.org>
8981         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8982         * gnulib-tool (func_modules_transitive_closure_separately): If
8983         testsrelated_modules ends up with no "real" modules, aside from
8984         modules with applicability 'all', set it to empty.
8986 2017-03-14  Bruno Haible  <bruno@clisp.org>
8988         vma-iter: Add support for HP-UX.
8989         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8990         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8991         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8992         * lib/get-rusage-as.c: Update comment about HP-UX.
8993         * lib/get-rusage-data.c: Likewise.
8994         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8996 2017-03-14  Bruno Haible  <bruno@clisp.org>
8998         limits-h: Make it work with HP-UX cc.
8999         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
9000         defined.
9002 2017-03-14  Bruno Haible  <bruno@clisp.org>
9004         Fix test failures on DragonFlyBSD.
9005         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
9006         * tests/test-select.h (test_bad_fd): Likewise.
9007         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
9009 2017-03-14  Bruno Haible  <bruno@clisp.org>
9011         freadahead: Silence warning on DragonFlyBSD.
9012         * lib/freadahead.c (__sreadahead): Declare ourselves.
9014 2017-03-14  Bruno Haible  <bruno@clisp.org>
9016         vma-iter: Add comment about AIX.
9017         * lib/vma-iter.c: Add comment about why this module is not implemented
9018         on AIX.
9020 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9022         snippets: move unadjusted snippet sources to lib
9023         Problem reported by Michal Privoznik in:
9024         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
9025         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
9026         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
9027         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
9028         * lib/unused-parameter.h: Rename from
9029         build-aux/snippet/unused-parameter.h.
9030         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
9031         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
9032         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
9033         * modules/snippet/c++defs (Files:, CXXDEFS_H):
9034         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
9035         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
9036         Adjust to file renamings.
9038 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
9040         gnulib-tool: don't automatically distribute files from top/
9041         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
9042         not distribute top/README-release by default, don't distribute files
9043         from top/ unconditionally.
9044         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
9045         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
9047 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9049         gnulib-tool: fix typo in comment output
9050         * gnulib-tool (func_import): Fix typo with previous change.
9052         snippets: work around GNU Make 3.82 VPATH
9053         When using 'gnulib-tool --gnu-make' on Emacs, and building
9054         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
9055         an out-of-source (VPATH) build failed because the sans-copyright
9056         snippet file was not built before the file that used it.
9057         Presumably this is some sort of VPATH thing.  Work around the
9058         problem by using the original snippet, i.e., don’t bother to
9059         remove its copyright notice.
9060         * modules/snippet/_Noreturn, modules/snippet/link-warning:
9061         Don’t assume Automake in comments.  Omit long-incorrect comment.
9062         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
9063         (MOSTLYCLEANFILES):
9064         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
9065         (MOSTLYCLEANFILES):
9066         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
9067         (MOSTLYCLEANFILES):
9068         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
9069         (MOSTLYCLEANFILES):
9070         Remove.
9071         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
9072         * modules/snippet/c++defs (CXXDEFS_H):
9073         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
9074         * modules/snippet/warn-on-use (WARN_ON_USE_H):
9075         Don’t bother to remove the copyright notice; just use the
9076         original snippet as-is.
9078 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9080         gnulib-tool: minor --gnu-make fixups
9081         * gnulib-tool (func_emit_lib_Makefile_am):
9082         Remove useless code that was a blind alley during implementation.
9083         Problem reported by Thien-Thi Nguyen in:
9084         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
9085         (func_import): Note the "--gnu-make" option in the output comment.
9087 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
9089         gnulib-tool: new option --gnu-make
9090         This is for applications like GNU Emacs that use GNU Make
9091         features instead of Automake.
9092         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
9093         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
9094         Do not assume Automake.
9095         * gnulib-tool (func_determine_path_separator)
9096         (func_modules_transitive_closure, func_update_file)
9097         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9098         (func_import): Add support for --gnu-make.
9100 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9102         gnulib-common.m4: avoid aclocal.m4 bloat
9103         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
9104         Hide AM_PROG_AR from aclocal, so that aclocal does not
9105         install irrelevant macro definitions into aclocal.m4.
9107 2017-03-10  Bruno Haible  <bruno@clisp.org>
9109         vma-iter: Let callers know about error.
9110         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9111         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9113 2017-03-05  Bruno Haible  <bruno@clisp.org>
9115         Fix value of LD for 64-bit compilers on AIX.
9116         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9117         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9119 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9121         dtotimespec: simplify
9122         * lib/dtotimespec.c (dtotimespec): Simplify.
9124 2017-03-04  Bruno Haible  <bruno@clisp.org>
9126         test-calloc-gnu: Reenable test also for GCC 7.
9127         * tests/test-calloc-gnu.c (eight): New function.
9128         (main): Don't skip test; use eight() instead.
9130 2017-03-04  Jim Meyering  <meyering@fb.com>
9132         test-calloc-gnu: port to GCC7
9133         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9134         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9135         and newer would detect that at compilation time.
9137 2017-03-04  Bruno Haible  <bruno@clisp.org>
9139         tests: Avoid compiler warning about uses of null_ptr.
9140         * tests/null-ptr.h: New file.
9141         * tests/test-canonicalize.c: Include null-ptr.h.
9142         (null_ptr): Remove function.
9143         * tests/test-canonicalize-lgpl.c: Likewise.
9144         * tests/test-memmem.c: Likewise.
9145         * tests/test-ptsname_r.c: Likewise.
9146         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9147         * modules/canonicalize-lgpl-tests: Likewise.
9148         * modules/memmem-tests: Likewise.
9149         * modules/ptsname_r-tests: Likewise.
9150         Reported by Jim Meyering.
9152 2017-03-03  Bruno Haible  <bruno@clisp.org>
9154         doc: Mention Mac OS X deficiencies regarding semaphores.
9155         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9156         * doc/posix-functions/sem_destroy.texi: Likewise.
9157         * doc/posix-functions/sem_getvalue.texi: Likewise.
9159 2017-03-03  Bruno Haible  <bruno@clisp.org>
9161         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9162         Reported by Assaf Gordon <assafgordon@gmail.com> via
9163         Pádraig Brady <P@draigBrady.com>.
9164         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9165         semaphores.
9166         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9167         (atomic_int_semaphore): New macro.
9169 2017-02-28  Bruno Haible  <bruno@clisp.org>
9171         perror tests: Tweak for z/OS.
9172         Reported by Daniel Richard G. <skunk@iskunk.org>.
9173         * tests/test-perror.sh: Don't fail z/OS style perror output.
9175 2017-02-26  Bruno Haible  <bruno@clisp.org>
9177         nproc: Refactor large function.
9178         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9179         from num_processors.
9180         (num_processors): In this function, only deal with OMP.
9182 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9184         nproc: adjust handling of OpenMP environment variables
9185         to match the return value from omp_get_num_threads(), i.e.:
9186          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9187          - Treat 0 as an invalid value and ignore
9188         Also remove the call to omp_get_num_threads() because
9189         it's ineffective without the omp pragmas in place.
9190         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9191         so that it can be ignored.
9192         (num_processors): Honor OMP_THREAD_LIMIT even without
9193         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9194         variable being checked, from the previous recent commit.
9196 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9198         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9199         * lib/nproc.c (parse_omp_threads): A new function refactored
9200         from num_processors() to support parsing both of the
9201         above environment variables.
9202         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9203         to accurately reflect the current OpenMP nesting level.
9204         Also support the OMP_THREAD_LIMIT environment variable
9205         to limit the max value determined from OMP_NUM_THREADS.
9206         * modules/nproc: Depend on minmax header.
9207         Suggested by Oliver Heimlich.
9209 2017-02-25  Bruno Haible  <bruno@clisp.org>
9211         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9212         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9214 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9216         ftoastr: port to -Wdouble-promotion
9217         Work around -Wdouble-promotion false alarm in recent GCCs.
9218         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9219         (ftoastr_snprintf, FTOASTR): Use it.
9221 2017-02-21  Bruno Haible  <bruno@clisp.org>
9223         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9224         Reported by Rene Saavedra <rennes@openmailbox.org> in
9225         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9226         * lib/glthread/lock.h: On glibc systems without
9227         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9228         implementation of rwlocks.
9229         * lib/glthread/lock.c: Likewise.
9231 2017-02-20  Bruno Haible  <bruno@clisp.org>
9233         lock tests: Fix build failure on z/OS.
9234         Reported by Daniel Richard G. <skunk@iskunk.org>.
9235         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9236         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9237         exist.
9239 2017-02-19  Bruno Haible  <bruno@clisp.org>
9241         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9242         This helps when CC=clang.
9243         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9244         of /usr/bin/gcc.
9246         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9247         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9249 2017-02-19  Bruno Haible  <bruno@clisp.org>
9251         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9252         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9253         --with-tests --single-configure is specified.
9255 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9257         users.txt: Update links, use HTTPS where possible
9258         * users.txt: Updated to HTTPS where possible,
9259         fixed some links to new locations.
9261 2017-02-16  Bruno Haible  <bruno@clisp.org>
9263         xbinary-io: Fix inlining.
9264         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9266 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9268         xbinary-io: rename from xsetmode
9269         This patch is taken from suggestions by Bruno Haible in:
9270         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9271         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9272         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9273         not ENOTTY, when it is an inappropriate device.
9274         * lib/binary-io.h (SET_BINARY): Resurrect.
9275         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9276         (xset_binary_mode_error): Rename from xsetmode_error.
9277         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9278         (xset_binary_mode): Rename from xsetmode.
9279         All uses changed.
9280         * modules/xbinary-io: Rename from modules/xsetmode.
9281         Update file names.
9282         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9283         * NEWS: Update to match revised behavior.
9285 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9287         tests: Adjust to recent SET_BINARY change
9288         * tests/test-binary-io.c (main):
9289         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9290         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9291         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9292         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9294         xsetmode: new module
9295         This is to fix a problem noted by Eric Blake.
9296         Code was using xfreopen to change files to binary mode, but this
9297         fails for stdout when in append mode.  Such code should use
9298         xsetmode instead.
9299         * NEWS: Document incompatible changes to binary-io module.
9300         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9301         New function.
9302         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9303         (set_binary_mode): New function, which also checks for tty.
9304         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9306 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9308         headers: fix begin-end typos
9309         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9310         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9312         selinux-h: port to PGI 16.10
9313         * lib/se-selinux.in.h: Don't assume that include_next skips over
9314         duplicate -I DIR options.
9316         argp: port to PGI 16.10
9317         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9319 2017-02-13  Darshit Shah  <darnir@gnu.org>
9321         unicase: Update function protoype to match definition.
9322         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9323         uses 'size_t' as the datatype for the 'len' parameter in the functions
9324         it generates. Update the prototype specified here to match the newly
9325         generated function.
9327 2017-02-12  Bruno Haible  <bruno@clisp.org>
9329         times test: Avoid gcc warnings on Linux/x32.
9330         * tests/test-times.c (main): Really cast printf arguments from clock_t
9331         to 'long int'.
9333 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9335         glob: port better to emscripten
9336         Problem reported by Bruno Haible in:
9337         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9338         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9340 2017-02-11  Bruno Haible  <bruno@clisp.org>
9342         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9343         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9344         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9345         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9346         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9347         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9348         Distinguish hppa64 from hppa.
9350 2017-02-10  Bruno Haible  <bruno@clisp.org>
9352         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9353         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9354         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9355         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9357 2017-02-09  Bruno Haible  <bruno@clisp.org>
9359         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9360         * doc/gnulib.texi (Libtool and Windows): Recommend
9361         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9362         Reported by Reuben Thomas <rrt@sc3d.org>.
9364 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9366         stddef-tests: port to SIZE_MAX <= INT_MAX
9367         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9368         Do not assume that INT_MAX < SIZE_MAX.
9370 2017-02-01  Bruno Haible  <bruno@clisp.org>
9372         lock tests: Fix link error.
9373         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9376 2017-01-31  Bruno Haible  <bruno@clisp.org>
9378         lock: Fix link error (regression from 2017-01-05).
9379         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9380         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9381         pthread_rwlockattr_destroy weak.
9382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9384 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9386         Port to PGI 16.10 x86-64
9387         This patch fixes one real bug in gl_anylinked_list2.h, along with
9388         some minor glitches that are not bugs.  It does not silence PGI’s
9389         thousands of bogus warnings when compiling test-intprops.c.
9390         Fortunately, the warnings do not cause a failure.
9391         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9392         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9393         My goodness, PGI goes back a long ways - this predates C89!
9394         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9395         For example, ASYNCSAFE (const void *) should expand to
9396         ‘const void *volatile’, not to ‘volatile const void *’.
9397         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9398         * lib/verify.h (verify) [!__GNUC__]:
9399         Use shorter albeit meaningless string to bypass silly compiler limits.
9400         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9401         * tests/nan.h (NaNf, NaNd, NaNl):
9402         Use static functions to avoid misguided compiler diagnostics.
9403         Is there some reason we don’t use static functions on all platforms?
9405 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9407         parse-datetime: handle timezones reentrantly
9408         This API change was prompted by a report by Pádraig Brady in:
9409         https://bug.debian.org/851934#10
9410         To help fix the bug, make parse_datetime2 more reentrant.
9411         * NEWS: Document this incompatible change.
9412         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9413         Add two arguments, the timezone and the timezone name.
9414         All callers changed.  If TZ="..." is specified, use it for
9415         calculating defaults.
9416         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9417         this code should be usable in a library.
9418         (mktime_ok, get_effective_timezone):
9419         Accept timezone arg too.  All callers changed.
9420         (get_tz): Remove.
9421         (get_effective_timezone): Check for failures.
9423 2017-01-20  Eric Blake  <eblake@redhat.com>
9425         localename: port to cygwin 2.6
9426         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9427         Cygwin.
9428         * modules/localename (Depends-on): Add extensions, since
9429         NL_LOCALE_NAME() is not visible without it.
9431 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9433         parse-datetime: fix dependence on AC_PROG_SED
9434         * modules/parse-datetime: Use `sed` directly like all other modules.
9435         Reported by J William Piggott
9437 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9439         intprops: update doc URLs
9440         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9442 2017-01-16  Bruno Haible  <bruno@clisp.org>
9444         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9445         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9446         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9447         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9448         distinguish s390 and s390x.
9449         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9450         * NEWS: Mention the change regarding 'armel'.
9452 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9454         localeinfo: case_folded_counterparts and WEOF
9455         * NEWS: Document this.
9456         * lib/localeinfo.c (case_folded_counterparts):
9457         First arg is now wint_t, not wchar_t.  This generalizes the
9458         function to also work on WEOF, where it returns 0.
9460         dfa: port to gcc -fsanitize=undefined
9461         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9462         as this runs afoul of gcc -fsanitize=undefined.
9464 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9466         strftime: %z is -00 if unknown
9467         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9468         the caller's responsibility to set 'negative_number'.  All uses changed.
9469         (__strftime_internal): Put '-' before a zero UTC offset if the time
9470         zone abbreviation starts with "-", which is the recently-introduced
9471         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9472         * tests/test-strftime.c: Test for this.
9474 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9476         dfa: port to older GCC
9477         Problem reported by Assaf Gordon in:
9478         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9479         * modules/c99: New module.  This merely attempts to use the latest
9480         C version, which should be enough to solve this particular problem.
9481         The idea is to document which Gnulib modules assume C99 or later.
9482         * modules/dfa (Depends-on): Add it.
9484 2017-01-10  Bruno Haible  <bruno@clisp.org>
9486         Update DEPENDENCIES.
9487         * DEPENDENCIES: List only https URLs. Update recommended version for
9488         autoconf, automake, gperf.
9490 2017-01-10  Jim Meyering  <meyering@fb.com>
9492         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9493         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9494         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9496 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9498         dfa: minor simplification with emptyset
9499         * lib/dfa.c (build_state): Simplify by using emptyset.
9501 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9503         dfa: shrink constraints from 4 bits to 3
9504         * lib/dfa.c (newline_constraint, letter_constraint)
9505         (other_constraint, prev_newline_dependent)
9506         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9507         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9508         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9509         Constraints need only 3 bits, not 4.  Using smaller integers
9510         shrinks the code a bit and makes grep a tad faster on x86-64.
9512         dfa: omit unnecessary ptrdiff_t check
9513         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9514         overflow, since xnmalloc does that now.
9516         dfa: omit unnecessary allocation
9517         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9518         an all-zero follow set works just fine.
9520         dfa: omit unused local
9521         * lib/dfa.c (build_state): Fix up recent change.
9523         maint: remove stray .texi files
9524         Although these were superseded by other files like
9525         doc/posix-functions/ctime.texi, the old files were not removed.
9526         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9528 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9530         getprogname: fix port to IRIX
9531         * lib/getprogname.c (getprogname) [__sgi]:
9532         Don't dump core if malloc returns NULL.
9534         dfa: fix reallocation bug when matching newlines
9535         Problem reported for sed by S. Gilles (Bug#25390).
9536         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9537         (dfastate): Reallocate before moving any newline transition ...
9538         (build_state): ... instead of reallocating here, where it is too late.
9540 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9542         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9543         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9545 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9547         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9548         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9550 2017-01-07  Bruno Haible  <bruno@clisp.org>
9552         stdioext: Port to Minix 3.2 and newer.
9553         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9554         * lib/fseeko.c (fseeko): Likewise.
9555         Reported by Nelson Beebe via Paul Eggert.
9557 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9559         getprogname: port to IRIX
9560         * lib/getprogname.c (getprogname): Port to IRIX.
9561         Based on an idea by Bastien Roucariès at:
9562         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9563         via code from Bruno Haible at:
9564         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9566         localename-tests: port to NetBSD 7
9567         Problem reported by Nelson H. F. Beebe.
9568         * tests/test-localename.c:
9569         Test newlocale and uselocale only if both exist.
9571         glob, intprops, xalloc: work around Clang bug
9572         Work around LLVM bug 16404, which is still not fixed.
9573         https://llvm.org/bugs/show_bug.cgi?id=16404
9574         Problem reported by Nelson H. F. Beebe.
9575         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9576         Remove.
9577         * lib/glob.c (size_add_wrapv):
9578         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9579         * lib/xalloc-oversized.h (xalloc_oversized):
9580         Do not use overflow builtins if Clang.
9582         dfa: fix 'return' typo
9583         Problem reported by Nelson H. F. Beebe.
9584         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9586 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9588         parse-datetime: fix generated paths for coverage files
9589         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9590         within parse-datetime.c, so that gcc generates appropriate .gcno
9591         files, allowing lcov to proceed without error.  Previously it
9592         would error trying to find "lib/lib/parse-datetime.y".
9594 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9596         maint.mk: support parallel execution of coverage
9597         * top/maint.mk (coverage): Run dependencies serially,
9598         thus supporting parallel processing of each one,
9599         particularly build-coverage, which builds and runs tests.
9601 2017-01-05  Bruno Haible  <bruno@clisp.org>
9603         lock tests: Prefer semaphore over mutex.
9604         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9605         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9606         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9607         Suggested by Torvald Riegel <triegel@redhat.com>.
9609 2017-01-05  Bruno Haible  <bruno@clisp.org>
9611         lock: Provide guarantee to avoid writer starvation for rwlocks.
9612         The rationale is: 1) Read-preferring read-write locks are prone to
9613         writer starvation if the number of reader threads multiplied by the
9614         percentage of time they have the lock held is too high. 2) Write-
9615         preferring read-write locks are the only reliable way to avoid this.
9616         3) There have been reports of 'test-lock' hanging on glibc systems
9617         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9618         and glibc indeed implements read-preferring rwlocks by default, see
9619         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9620         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9621         * m4/pthread_rwlock_rdlock.m4: New file.
9622         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9623         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9624         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9625         of rwlock initialization on glibc systems without
9626         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9627         of rwlocks altogether on non-glibc systems without
9628         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9629         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9630         * lib/glthread/lock.c [USE_POSIX_THREADS]
9631         (glthread_rwlock_init_for_glibc): New function.
9632         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9633         comment.
9634         [USE_PTH_THREADS]: New implementation of rwlocks.
9635         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9636         readers.
9637         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9638         (Depends-on): Add 'extensions'.
9639         * tests/test-rwlock1.c: New file.
9640         * lock-tests (Files): Add it.
9641         (Depends-on): Add usleep.
9642         (Makefile.am): Add test-rwlock1 to the tests.
9644 2017-01-05  Bruno Haible  <bruno@clisp.org>
9646         thread: Fix pth port.
9647         * lib/glthread/thread.h (pth_init): Declare weak.
9648         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9649         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9650         function.
9652 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9654         parse-datetime: fix debug message on lone year number
9655         Input dates such as
9656           date -d "Apr 11 22:59:00 2011"
9657         are parsed as date (Apr 11, with default year 2016), then time, then a
9658         number (2011). Based on the combination of previously seen tokens,
9659         'digits_to_date_time' determines 2011 to be a year value.
9660         This fixes the debug messages to correctly show the updated year.
9661         Before:
9662             $ date --debug -d 'Apr 11 22:59:00 2011'
9663             date: parsed date part: (Y-M-D) 2016-04-11
9664             date: parsed time part: 22:59:00
9665             date: parsed number part: today/this/now
9666         After:
9667             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9668             date: parsed date part: (Y-M-D) 2016-04-11
9669             date: parsed time part: 22:59:00
9670             date: parsed number part: year: 2011
9671         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9672         'debug_year_seen' member fields.
9673         (digits_to_date_time): Update 'year_seen' as needed.
9674         (debug_print_current_time): Inform about year updates.
9675         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9677         parse-datetime: fix local timezone debug messages
9678         "Local timezones" are strings that affect only DST relative to the
9679         default timezone. The debug messages in parse-datetime.y printed
9680         wrong information when encountering local timezones.
9681         Examples:
9682         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9683              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9684              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9685         When the default timezone relates to the zone strings, EET/EEST are
9686         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9687         value (0/1, respectively):
9688              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9689              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9690         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9691         was seen, inform about DST change, don't print actual timezone.
9692         (debug_strfdatetime): If local timezone was seen, use default timezone
9693         (and adjust as needed) instead of using incorrect timezone.
9694         (parse_datetime2): Use correct time-zone source string, and adjust
9695         default timezone as needed.
9697         parse-datetime: add debug warning about DST changes
9698         Incorrect date arithmetic due to daylight saving time (DST) are a
9699         common (false) bug report in coreutils.
9700         Detect two such cases and print a warning:
9701         1. year/month/day adjustments (performed on 'struct tm'),
9702            where 'mktime' returns a different isdst value.
9703         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9704            where the result of 'localtime(3)' on the value will return a
9705            different isdst value.
9706         Note: DST changes could be harmless or unnoticeable.
9707         Examples (with 'TZ=America/New_York'):
9708         Unnoticeable: result is 2016-Dec-14
9709            $ date -d '2016-06-15 EDT + 6 months' +%b
9710            Dec
9711         Unnoticeable: result is 2016-Dec-15 11:00:00
9712            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9713            2016-12-15
9714         This is unexpected:
9715            $ date -d '2016-06-01 EDT + 6 months' +%F
9716            2016-11-30
9717         The new debug warnings will show:
9718            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9719            ...
9720            date: warning: daylight saving time changed after date adjustment
9721            ...
9722         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9723         print an appropriate warning message.
9725         parse-datetime: add debug warning about date arithmetic
9726         Date arithmetic are done directly on the fields of 'struct tm',
9727         which can result in invalid dates. Normalization with 'mktime(3)'
9728         will then produce a different date - which might cause unexpected
9729         results.
9730         Examples:
9731           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9732           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9733         Note that date normalization is not inherently wrong and not rejected,
9734         as it has legitimate uses:
9735           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9736         If the user asked to adjust months but 'mday' changed,
9737         or user asked to adjust years but 'month' changed - warn about it.
9738             $ ./src/date --debug -d '2016-10-31 - 1 month'
9739             ...
9740             date: warning: when adding relative months/years, \
9741                            it is recommended to specify the 15th of the month
9742             ...
9743             date: warning: month/year adjustment resulted in shifted dates:
9744             date:      adjusted Y M D: 2016 09 31
9745             date:    normalized Y M D: 2010 10 01
9746             ...
9747         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9748         a warning message. Improve recommendation of when to use 15 of the
9749         month or noon for date arithmetic.
9751         parse-datetime: fix debug message of relative part after timezone
9752         Relative part (e.g '+8 days') after a timezone string was not
9753         reported (was only reported after a timezone number). Due to the
9754         parser's structure, timezone strings with numbers were handled
9755         separately.
9756         before:
9757              # Timezone number + relative part: OK
9758              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9759              ...
9760              date: parsed relative part: -8 day(s)
9761              # Timezone string + relative part: missing
9762              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9763              [ missing message ]
9764         After: messages are printed in both cases.
9765         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9767         parse-datetime: fix incorrect debug message on lone number
9768         A lone number is an absolute value, not a relative time part.
9769         before:
9770            $ date --debug -d '20130101'
9771            date: parsed number part: today/this/now
9772         After:
9773            $ ./src/date --debug -d '20130101'
9774            date: parsed number part: (Y-M-D) 2013-01-01
9775         * lib/parse-datetime.y ('item'/'number' tokens): Call
9776         'debug_print_current_time' instead of 'debug_print_relative_time'.
9778 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9780         doc: modernize for C11 etc.
9781         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9782         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9783         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9785         dfa: prefer functions to FETCH_WC macro
9786         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9787         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9788         wint_t result into DFA->lex.wctok instead of to a separate arg.
9789         All callers changed.  Move more local decls closer to where
9790         they're used.
9792         dfa: narrow more local var scopes
9793         * lib/dfa.c: Move more local decls to be more local.
9795         dfa: remove duplicate assignment
9796         Problem reported by Bruno Haible in:
9797         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9798         * lib/dfa.c (parse_bracket_exp): Simplify.
9800 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9802         dfa: simplify constraint-dependency checking
9803         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9804         (prev_other_constraint): Remove.
9805         (prev_newline_dependent, prev_letter_dependent):
9806         Simplify, to avoid an unnecessary bitwise AND operation.
9808         dfa: prefer functions and constants to macros
9809         * lib/dfa.c: Prefer constants to macros where either will do.
9810         (streq, isasciidigit, newline_constraint)
9811         (letter_constraint, other_constraint, succeeds_in_context)
9812         (prev_newline_constraint, prev_letter_constraint)
9813         (prev_other_constraint, prev_newline_dependent)
9814         (prev_letter_dependent, accepting, accepts_in_context):
9815         Now static functions instead of function-like macros.
9816         Use lower-case names accordingly.  All uses changed.
9818         dfa: narrow more local var scopes
9819         * lib/dfa.c: Move some more local decls down to nearer where
9820         they're needed.
9822 2016-12-31  Jim Meyering  <meyering@fb.com>
9824         dfa: narrow the scope of many local variables
9825         * lib/dfa.c: Now that we are no longer constrained to c89, move
9826         declarations of many variables (often indices) "down" into the
9827         scope(s) where used or to the point of definition.  This is a
9828         no-semantic-change diff.
9830 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9832         version-etc: new year
9833         * build-aux/gendocs.sh (version):
9834         * doc/gendocs_template:
9835         * doc/gendocs_template_min:
9836         * doc/gnulib.texi:
9837         * lib/version-etc.c (COPYRIGHT_YEAR):
9838         Update copyright dates by hand in templates and the like.
9839         * all files: Run 'make update-copyright'.
9841 2016-12-31  Eric Blake  <eblake@redhat.com>
9843         do-release-commit-and-tag: avoid shell syntax error
9844         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9845         contain spaces when rebasing.
9847         maint.mk: hoist gnulib_dir definition earlier
9848         * top/maint.mk (gnulib_dir): Move near top of file.
9850 2016-12-31  Jim Meyering  <meyering@fb.com>
9852         maint.mk: do not always evaluate intprops-related shell
9853         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9854         using gnulib_dir undefined (gnulib_dir is defined later in the
9855         file, which will be fixed separately), and besides, there is no
9856         need to incur the cost of this shell invocation for every single
9857         use of this .mk file.  Reported by Eric Blake in
9858         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9860 2016-12-30  Jim Meyering  <meyering@fb.com>
9862         maint.mk: improve sc_prohibit_intprops_without_use
9863         * top/maint.mk (_intprops_names): Don't hard-code the list of
9864         symbol names.  Instead, derive it on the fly.
9866 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9868         dfa: shorten sbit, success
9869         * lib/dfa.c (struct regex_syntax.sbit):
9870         (struct dfa.success): Use char, not int, for array elements, since
9871         they are all in the range 0..7.
9873         dfa: simplify multibyte_prop etc.
9874         This follows up on a change made when dfa.c was in grep, namely grep
9875         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9876         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9877         That earlier simplification allows for some more simplification
9878         and trimming down here.
9879         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9880         (struct lexer_state): New mamber brack.
9881         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9882         since they must be in the range 0..3 now.
9883         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9884         the brack member now supersedes them.
9885         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9886         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9887         (dfaparse): Remove unnecessary initializations of already-0 storage.
9888         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9889         (dfassbuild): No need to clear sup->mbcsets.
9891         dfa: minor performance tweak
9892         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9894         dfa: wrap charclass inside a struct
9895         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9896         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9897         about 5% faster, where list.txt is generated by 'aspell dump
9898         master | head -n 100000 >list.txt'.  See Bug#22239.
9899         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9900         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9901         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9902         Adjust to this, e.g., by using charclass * rather than charclass.
9903         All callers changed as needed.
9904         (copyset): Remove.  All uses changed to simple assignment.
9905         (parse_bracket_exp): Use zeroset instead of memset.
9907 2016-12-30  Jim Meyering  <meyering@fb.com>
9909         maint.mk: update list of intprops.h symbol names
9910         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9911         This avoids a false failure of the sc_prohibit_intprops_without_use
9912         rule in grep.
9914 2016-12-29  Eric Blake  <eblake@redhat.com>
9916         getopt: fix parallel test failure
9917         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9918         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9919         * tests/test-getopt-main.h (main): Use different file names
9920         in case test-getopt-gnu and test-getopt-posix run in parallel.
9922 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9924         xalloc: x2nrealloc check for ptrdiff_t overflow
9925         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9926         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9928 2016-12-24  Bruno Haible  <bruno@clisp.org>
9930         lock test: Fix performance problem on multi-core machines.
9931         * tests/test-lock.c (USE_VOLATILE): New macro.
9932         (struct atomic_int): New type.
9933         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9934         functions.
9935         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9936         as 'struct atomic_int'.
9937         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9938         reclock_checker_thread, test_recursive_lock): Use the new functions.
9939         Reported by Eric Blake in
9940         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9941         and by Pádraig Brady in
9942         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9944 2016-12-19  Bruno Haible  <bruno@clisp.org>
9946         vma-iter: Fix endless loop on 64-bit Windows.
9947         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9948         'unsigned long'.
9950 2016-12-19  Bruno Haible  <bruno@clisp.org>
9952         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9953         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9954         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9955         Invoke gt_TYPE_WINT_T instead.
9956         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9957         * modules/stdint (Files): Add m4/wint_t.m4.
9958         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9959         * modules/wctype-h (Makefile.am): Likewise.
9960         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9961         not only on MSVC.
9962         * lib/wctype.in.h (wint_t): Likewise.
9964 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9966         getopt-posix-tests: fix Makefile typo
9967         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9968         Fix typo: the last ‘_’ was missing in the name.
9969         I suspect that the typo explains this build failure:
9970         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9971         although I can’t reproduce the problem on Solaris 10 sparc.
9973 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9975         dfa: improve worst-case 'replace' performance
9976         See my note in Bug#22357#71.
9977         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9978         (merge_constrained): New function, which is like
9979         the old 'merge' function, except with a new argument C2.
9980         Simplify the body by avoiding the need for different sections
9981         of code depending on whether one input is exhausted.
9982         (merge): Use the new function.
9983         (delete): Return the constraint of the deleted position,
9984         not the entire position.  Caller changed.
9985         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9987 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9989         dfa: performance improvement for removal of epsilon closure
9990         See Bug#22357#32.
9991         * lib/dfa.c (delete): Use binary search to find deleted index.
9992         (replace): New function.  It replaces a position with the followed set.
9993         (epsclosure): Replace it with a new algorithm.  Update caller.
9995 2016-12-18  Bruno Haible  <bruno@clisp.org>
9997         Split tests for getopt-posix and getopt-gnu.
9998         * tests/test-getopt-posix.c: New file.
9999         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
10000         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
10001         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
10002         GNULIB_TEST_GETOPT_GNU.
10003         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
10004         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
10005         (Makefile.am): Test test-getopt-posix instead of test-getopt.
10006         * modules/getopt-gnu-tests: New file.
10007         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
10009 2016-12-18  Bruno Haible  <bruno@clisp.org>
10011         posix-modules: Add options for specific platforms.
10012         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
10013         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
10014         Invoke func_tmpdir. Filter out the excludes.
10016 2016-12-18  Bruno Haible  <bruno@clisp.org>
10018         getopt: Fix link error for users of getopt() in <unistd.h>.
10019         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
10020         __need_getopt is defined. Undefine all macros before defining them.
10021         * modules/getopt (Include): Clarify that including <unistd.h> is also
10022         OK.
10023         * tests/test-getopt.c: Add comment.
10025 2016-12-17  Bruno Haible  <bruno@clisp.org>
10027         getaddrinfo tests: Avoid compilation error on MSVC.
10028         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
10029         getaddrinfo on native Windows.
10031 2016-12-17  Bruno Haible  <bruno@clisp.org>
10033         getlogin, getlogin_r: Fix link errors on MSVC.
10034         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
10035         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
10036         (Link): New section.
10037         * modules/getlogin_r (Files): Add m4/getlogin.m4.
10038         (configure.ac): Require gl_LIB_GETLOGIN.
10039         (Link): New section.
10040         * NEWS: Mention the new link requirements.
10041         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
10042         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
10044 2016-12-17  Bruno Haible  <bruno@clisp.org>
10046         Un-deprecate the 'progname' module.
10047         * NEWS: Describe the appropriate use-cases of 'progname' versus
10048         'getprogname'. Based on discussion summary at
10049         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
10051 2016-12-17  Bruno Haible  <bruno@clisp.org>
10053         Reorganize NEWS a bit.
10054         * NEWS: Move some not so important changes away from section
10055         "Important Notes".
10057 2016-12-17  Bruno Haible  <bruno@clisp.org>
10059         tanhf: Avoid redefinition error on MSVC.
10060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
10061         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
10062         may be defined as an inline function.
10063         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
10064         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
10066 2016-12-17  Bruno Haible  <bruno@clisp.org>
10068         tanf: Avoid redefinition error on MSVC.
10069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
10070         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
10071         may be defined as an inline function.
10072         * modules/math (Makefile.am): Substitute REPLACE_TANF.
10073         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
10075 2016-12-17  Bruno Haible  <bruno@clisp.org>
10077         sqrtf: Avoid redefinition error on MSVC.
10078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
10079         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
10080         may be defined as an inline function.
10081         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
10082         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
10084 2016-12-17  Bruno Haible  <bruno@clisp.org>
10086         sinhf: Avoid redefinition error on MSVC.
10087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
10088         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
10089         may be defined as an inline function.
10090         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
10091         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
10093 2016-12-17  Bruno Haible  <bruno@clisp.org>
10095         sinf: Avoid redefinition error on MSVC.
10096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
10097         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
10098         may be defined as an inline function.
10099         * modules/math (Makefile.am): Substitute REPLACE_SINF.
10100         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
10102 2016-12-17  Bruno Haible  <bruno@clisp.org>
10104         logf: Avoid redefinition error on MSVC.
10105         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10106         may be defined as an inline function.
10108 2016-12-17  Bruno Haible  <bruno@clisp.org>
10110         log10l: Avoid redefinition error on MSVC.
10111         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10112         may be defined as an inline function.
10114 2016-12-17  Bruno Haible  <bruno@clisp.org>
10116         log10f: Avoid redefinition error on MSVC.
10117         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10118         may be defined as an inline function.
10120 2016-12-17  Bruno Haible  <bruno@clisp.org>
10122         hypotl: Avoid redefinition error on MSVC.
10123         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10124         may be defined as an inline function.
10126 2016-12-17  Bruno Haible  <bruno@clisp.org>
10128         hypotf: Avoid redefinition error on MSVC.
10129         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10130         may be defined as an inline function.
10132 2016-12-17  Bruno Haible  <bruno@clisp.org>
10134         fmodl: Avoid redefinition error on MSVC.
10135         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10136         may be defined as an inline function.
10138 2016-12-17  Bruno Haible  <bruno@clisp.org>
10140         fmodf: Avoid redefinition error on MSVC.
10141         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10142         may be defined as an inline function.
10144 2016-12-17  Bruno Haible  <bruno@clisp.org>
10146         expf: Avoid redefinition error on MSVC.
10147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10148         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10149         may be defined as an inline function.
10150         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10151         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10153 2016-12-17  Bruno Haible  <bruno@clisp.org>
10155         coshf: Avoid redefinition error on MSVC.
10156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10157         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10158         may be defined as an inline function.
10159         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10160         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10162 2016-12-17  Bruno Haible  <bruno@clisp.org>
10164         cosf: Avoid redefinition error on MSVC.
10165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10166         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10167         may be defined as an inline function.
10168         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10169         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10171 2016-12-17  Bruno Haible  <bruno@clisp.org>
10173         atan2f: Avoid redefinition error on MSVC.
10174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10175         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10176         may be defined as an inline function.
10177         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10178         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10180 2016-12-17  Bruno Haible  <bruno@clisp.org>
10182         atanf: Avoid redefinition error on MSVC.
10183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10184         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10185         may be defined as an inline function.
10186         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10187         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10189 2016-12-17  Bruno Haible  <bruno@clisp.org>
10191         asinf: Avoid redefinition error on MSVC.
10192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10193         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10194         may be defined as an inline function.
10195         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10196         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10198 2016-12-17  Bruno Haible  <bruno@clisp.org>
10200         acosf: Avoid redefinition error on MSVC.
10201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10202         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10203         may be defined as an inline function.
10204         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10205         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10207 2016-12-17  Bruno Haible  <bruno@clisp.org>
10209         Avoid redefinition errors on MSVC.
10210         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10211         the function may be defined as an inline function.
10212         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10213         the function may be defined as an inline function.
10215 2016-12-17  Bruno Haible  <bruno@clisp.org>
10217         Avoid redefinition errors on MSVC.
10218         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10219         * lib/unistd.in.h: Include <stdio.h> when necessary.
10221 2016-12-17  Bruno Haible  <bruno@clisp.org>
10223         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10224         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10225         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10226         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10227         WINT_MAX.
10229 2016-12-17  Bruno Haible  <bruno@clisp.org>
10231         Avoid autoconf warning.
10232         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10233         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10235 2016-12-17  Bruno Haible  <bruno@clisp.org>
10237         fpending: Revert workaround against Emacs bug.
10238         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10239         The Emacs bug is fixed by Eli Zaretskii in
10240         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10242 2016-12-17  Bruno Haible  <bruno@clisp.org>
10244         getlogin_r tests: Port to mingw.
10245         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10246         regression introduced on 2014-05-19.
10248 2016-12-17  Bruno Haible  <bruno@clisp.org>
10250         getlogin: Port to newer mingw.
10251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10252         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10253         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10254         HAVE_GETLOGIN.
10255         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10256         HAVE_GETLOGIN.
10257         * doc/posix-functions/getlogin.texi: Mention the issue.
10258         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10259         regression introduced on 2014-05-14.
10261 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10263         builtin-expect: improve port to IBM XL C
10264         Problem reported for z/OS by Daniel Richard G. in:
10265         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10266         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10267         Test for <builtins.h> directly.
10269         builtin-expect: port to IBM XL C
10270         Problem reported for z/OS by Daniel Richard G. in:
10271         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10272         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10273         Also allow __builtin_expect defined via a standard include file.
10275         regex: fix dependency
10276         Problem reported by Bruno Haible in:
10277         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10278         * modules/regex: Depend on builtin-expect.
10280         builtin-expect: new module
10281         Fix fnmatch to use it.
10282         Problem reported for z/OS by Daniel Richard G.
10283         * lib/fnmatch.c (__builtin_expect):
10284         * lib/glob.c (__builtin_expect):
10285         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10286         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10287         * lib/scandir.c (__builtin_expect):
10288         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10289         Remove macro; config.h now does this.
10290         * lib/gl_anytreehash_list1.h (add_to_bucket):
10291         * lib/regex_internal.h (BE):
10292         Assume __builtin_expect.
10293         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10294         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10295         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10296         * modules/scandir, modules/strstr-simple:
10297         Depend on builtin-expect.
10299 2016-12-15  Bruno Haible  <bruno@clisp.org>
10301         init.sh: Add possibility to not delete temporary files.
10302         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10303         to yes, don't erase the temporary directory.
10305 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10307         regex: fix integer-overflow bug in never-used code
10308         Problem reported by Clément Pit–Claudel in:
10309         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10310         * lib/regex_internal.h: Include intprops.h.
10311         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10312         behavior on integer overflow.
10313         * modules/regex (Depends-on): Add intprops.
10315         fpending: fix port to MinGW on Emacs
10316         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10317         Problem reported by Eli Zaretskii in:
10318         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10319         Is Plan 9 still a valid porting target, anyway?
10321 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10323         safe-alloc: use xalloc-oversized
10324         * lib/safe-alloc.c: Include xalloc-oversized.h.
10325         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10326         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10328         xalloc: do not exceed PTRDIFF_MAX
10329         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10330         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10331         bytes have pointer-subtraction problems.
10333         malloca: do not exceed PTRDIFF_MAX
10334         * lib/malloca.h: Include xalloc-oversized.
10335         (nmalloca): Use xalloc_oversized instead of rolling our own.
10336         * modules/malloca (Depends-on):
10337         * modules/relocatable-prog-wrapper (Depends-on):
10338         Add xalloc-oversized.
10340         quotearg: pacify GCC better
10341         * modules/quotearg (Depends-on): Add minmax, stdint.
10342         * lib/quotearg.c: Include minmax.h, stdint.h.
10343         (nslots): Now int, as there seems little point to going to extra
10344         work merely to support the INT_MAX slot, which nobody ever uses.
10345         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10346         and to catch (mostly-theoretical) ptrdiff_t problems too.
10347         This can be done via one comparison.
10349 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10351         xalloc-oversized: check for PTRDIFF_MAX too
10352         This avoids undefined behavior when subtracting pointers to
10353         objects containing more than PTRDIFF_MAX bytes.
10354         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10355         Also return 1 if the result would exceed PTRDIFF_MAX>
10356         * modules/xalloc-oversized (Depends-on):
10357         Add stdint.
10359         dfa: fix glitches in previous commit
10360         Sorry, I don't know how I managed to commit the wrong version.
10361         * lib/dfa.c (MIN): Move up.
10362         (xpalloc): Now static.
10364         dfa: fix some unlikely integer overflows
10365         I found these while reviewing the recent Coverity-related fix.
10366         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10367         size_t for object counts.  Using ptrdiff_t is the style typically
10368         used in Emacs; although it wastes a sign bit as sizes can never be
10369         negative, it makes -fsanitize=undefined more likely to catch
10370         integer overflows in index calculation, and nowadays the upside is
10371         typically more important than the downside.  Although perhaps the
10372         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10373         of dfa.c already does, since it uses state_num which is signed),
10374         that is a bigger change and is not needed to fix the bugs I found.
10375         * lib/dfa.c: Include stdint.h and intprops.h.
10376         (TOKEN_MAX): New macro.
10377         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10378         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10379         (realloc_trans_if_necessary, free_mbdata):
10380         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10381         This is safe because xpalloc checks that the sizes do not exceed
10382         either SIZE_MAX or PTRDIFF_MAX.
10383         (xpalloc): New function, mostly taken from Emacs.
10384         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10385         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10386         (charclass_index): Check for integer overflow in computing
10387         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10388         added to it later.
10389         (alloc_position_set): Check for integer overflow.  On typical
10390         platforms this check has zero overhead, since the constant
10391         expression is false.
10392         (realloc_trans_if_necessary):
10393         Remove assertion, which I hope Coverity no longer needs.
10395         * modules/dfa (Depends-on): Add intprops, stdint.
10397 2016-12-12  Jim Meyering  <meyering@fb.com>
10399         dfa: add an assertion to avoid coverity false positive
10400         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10401         warned that "newalloc1 - 2" could overflow.
10403 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10405         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10406         * dfa.h (DFA_CASE_FOLD): Remove.
10407         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10409 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10411         link: fix test to declare use of rename()
10412         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10413         -Werror=implicit-function-declaration
10415 2016-12-12  Bruno Haible  <bruno@clisp.org>
10417         fpending: Port to native Windows with MSVC.
10418         * lib/fpending.c: Include stdio-impl.h.
10419         (__fpending): Include all known implementations. Err out if it's not
10420         ported.
10421         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10422         * modules/fpending (Files): Add lib/stdio-impl.h.
10423         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10425 2016-12-12  Bruno Haible  <bruno@clisp.org>
10427         stdioext: Port to native Windows with MSVC.
10428         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10429         (struct _gl_real_FILE): New type.
10430         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10431         Windows.
10432         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10433         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10434         other SystemV derived implementations.
10435         * lib/fpurge.c (fpurge): Likewise.
10436         * lib/freadable.c (freadable): Likewise.
10437         * lib/freadahead.c (freadahead): Likewise.
10438         * lib/freading.c (freading): Likewise.
10439         * lib/freadptr.c (freadptr): Likewise.
10440         * lib/freadseek.c (freadptrinc): Likewise.
10441         * lib/fseeko.c (fseeko): Likewise.
10442         * lib/fseterr.c (fseterr): Likewise.
10443         * lib/fwritable.c (fwritable): Likewise.
10444         * lib/fwriting.c (fwriting): Likewise.
10445         Reported by Gisle Vanem <gvanem@yahoo.no>.
10447 2016-12-11  Jim Meyering  <meyering@fb.com>
10449         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10450         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10451         to work with most shells, but not with the one provided by many
10452         Solaris 10 systems, so running configure with such a /bin/sh evokes
10453         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10454         Reported by Assaf Gordon in
10455         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10457 2016-12-10  Bruno Haible  <bruno@clisp.org>
10459         threadlib: Optimize out runtime test on Solaris >= 10.
10460         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10461         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10462         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10464 2016-12-10  Bruno Haible  <bruno@clisp.org>
10466         stdint: Update doc about Solaris 9.
10467         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10469 2016-12-09  Bruno Haible  <bruno@clisp.org>
10471         c-ctype tests: Fix link error on Solaris 9.
10472         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10473         Reported at <https://savannah.gnu.org/bugs/?46827>.
10475 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10477         dfa: fix performance bug that recomputes trans
10478         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10479         25 on-demand changes.  The bug caused build_state to reset all
10480         d->trans elements to -2 even when d->trans was already non-null.
10481         Use C99 style decls after statements in this function.
10483         same-inode: port to MinGW
10484         Here st_ino is always 0, so change the definition of SAME_INODE so
10485         that 1 means the two files are the same, 0 with st_ino != 0 means
10486         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10487         reported by Bruno Haible (Bug#25146).
10488         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10489         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10491 2016-12-04  Bruno Haible  <bruno@clisp.org>
10493         javacomp-script: Support Java 7 and 8.
10494         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10495         target-version 1.7, 1.8.
10497 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10499         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10500         GPLv2" rewriting.
10502 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10504         * gnulib-tool (func_import): Adhere to the license guideline when
10505         rewriting the license text to "LGPLv3+ or GPLv2":
10506         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10508 2016-12-02  Bruno Haible  <bruno@clisp.org>
10510         localcharset: Avoid theoretical buffer overrun.
10511         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10512         return value from setlocale if it would lead to a buffer overrun.
10514 2016-12-01  Bruno Haible  <bruno@clisp.org>
10516         Relicense some modules under LGPLv2+.
10517         Kevin Cernekee's approval is in
10518         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10519         * modules/fseterr (License): Change to LGPLv2+.
10520         * modules/mbchar (License): Likewise.
10521         * modules/mbiter (License): Likewise.
10522         * modules/mbsnlen (License): Likewise.
10523         * modules/wcwidth (License): Likewise.
10525 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10527         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10528         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10529         OS/2 kLIBC.
10531 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10533         alphasort, scandir: Port to OS/2 kLIBC
10534         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10535         declaration.
10536         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10538 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10540         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10541         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10542         with '/@unixroot'.
10544 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10546         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10547         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10548         OS/2 kLIBC unless TCPV40HDRS is defined.
10550 2016-11-29  Jim Meyering  <meyering@fb.com>
10552         dfa: avoid new infinite loop
10553         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10554         * lib/dfa.c (dfastate): When constructing a new state table, we could
10555         initially declare that we had found a match, and later find that
10556         constraints eliminate that possibility, yet continue to use the
10557         now stale "matched" indicator.  That would lead to an infinite loop.
10558         The solution is to update "matched" when necessary.
10559         Introduced by commit v0.1-983-g403adf1.
10561 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10563         dfa: avoid match middle in multibyte character
10564         * lib/dfa.c (transit_state): If fails in matching single byte characters
10565         on a state including period expression in non-UTF8 multibyte locales,
10566         skip trailing bytes.
10567         (dfa_supported): Revert previous change.
10569 2016-11-27  Jim Meyering  <meyering@fb.com>
10571         dfa: avoid false match in non-UTF8 multibyte locales
10572         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10573         as "not supported" so that callers will resort to using regex-based
10574         matcher.  This will surely hurt performance, but correctness trumps
10575         performance here, and the affected locales are less and less relevant,
10576         these days.  See grep's bug report https://bugs.gnu.org/24975.
10578 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10580         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10581         * lib/ptsname_r.c: Include the appropriate headers.
10582         [__sun]: Delete sys/sysmacros.h include.
10583         [_AIX || __osf__]: Likewise.
10584         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10586 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10588         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10589         * lib/md4.c (md4_process_bytes): The existing define is made internal
10590         in recent versions of glibc, so also use this new public define.
10591         * lib/md5.c (md5_process_bytes): Likewise.
10592         * lib/sha1.c (sha1_process_bytes): Likewise.
10593         * lib/sha256.c (sha256_process_bytes): Likewise.
10594         * lib/sha512.c (sha512_process_bytes): Likewise.
10596 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10598         maint: use a more standard return from mbrtowc test
10599         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10600         from the test program as this often indicates an
10601         unhandled case in the test program.
10602         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10603         (gl_MBRTOWC_SANITYCHECK): Likewise.
10604         (gl_MBRTOWC_NULL_ARG2): Likewise.
10605         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10607 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10609         freopen: work around glibc bug with closed fd
10610         Work around glibc bug#15589, where freopen mishandles the case
10611         where stdin etc. are already closed.
10612         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10613         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10614         instead of __need_FILE, as the latter does not work with glibc.
10615         Include <fcntl.h>, for open flags.
10616         (rpl_freopen): Work around glibc bug.
10617         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10618         * modules/freopen (Depends-on): Add fcntl-h.
10619         * tests/test-freopen.c (main): Test for bug.
10621 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10623         fnmatch: fix typo introduced on 2016-08-17
10624         This fixes the port to non-GCC compilers that lack __builtin_expect.
10625         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10627         dfa: simplify with new function fillset
10628         * lib/dfa.c (fillset): New function.
10629         Use it for clarity when applicable.
10631         dfa: fix glitches with on-demand states
10632         Also, adjust commentary to better match new code.
10633         Some of these glitches predate the recent change.
10634         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10635         only non-initial states.
10636         (dfastate): Rename locals to better match new roles.
10637         Move them into nested scopes if this is easy.
10638         Omit unnecessary calls to zeroset.
10639         Simplify test for whether to throw in the positions of state 0.
10640         Omit C99-ism (decl after statement) since Gawk still wants C89.
10641         (build_state): Omit unnecessary test and assignment.
10642         Fix some confusion that counted transition tables inaccurately
10643         and could cause a memory leak.
10644         (dfaexec_main): Redo to make it clearer to the compiler that
10645         -1 and -2 are the only negative state numbers here.
10647 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10649         dfa: addition of new state on demand
10650         * src/dfa.c (dfastate): Add argument UC, the current input character.
10651         Fill only a group including the character in transition table.
10652         (realloc_trans_if_necessary): Add the dummy state which means that a
10653         transition table is assigned but the next state is not assigned.
10654         (build_state): Return the next state.  All callers updated.
10655         (transit_state_singlebyte): If we get the dummy state,
10656         fill the transition table.
10657         (dfaexec_main): Handle the dummy state.
10658         (free_mbdata, dfafree): Consider the dummy state.
10660 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10662         srclist: sync with released gettext
10663         * config/srclist.txt: Set "release" option to the files under
10664         $GETTEXT.
10666 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10668         srclist: add "release" option
10669         * config/srclist.txt: Change the format so that the first column
10670         of each line points to the top-level directory of the source
10671         archive.
10672         * config/srclist-update: Accept "release" option that checks files
10673         from the most recently tagged revision in the source archive.
10675 2016-11-21  Bruno Haible  <bruno@clisp.org>
10677         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10678         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10679         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10680         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10681         Inline and remove member function 'rpl ()' of the wrapper struct.
10683 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10685         dfa: fix logic typo
10686         Problem reported by Stephane Chazelas (Bug#24973).
10687         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10688         non-simple locales like fr_FR to be treated as simple.
10690 2016-11-20  Jim Meyering  <meyering@fb.com>
10692         fix test driver leaks: exclude, malloc, realloc
10693         * tests/test-exclude.c (main): Fix trivial leak.
10694         * tests/test-malloc-gnu.c (main): Likewise.
10695         * tests/test-realloc-gnu.c (main): Likewise.
10696         With these changes, grep's tests are now leak free.
10697         I.e., running them with ASAN elicits no failure:
10698           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10699             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10701 2016-11-11  Bruno Haible  <bruno@clisp.org>
10703         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10704         * modules/libunistring: (License): Change from LGPL to
10705         "LGPLv3+ or GPLv2".
10706         * modules/libunistring-optional: Likewise.
10707         * modules/unicase/*: Likewise.
10708         * modules/uniconv/*: Likewise.
10709         * modules/unictype/*: Likewise.
10710         * modules/unigbrk/*: Likewise.
10711         * modules/unilbrk/*: Likewise.
10712         * modules/uniname/*: Likewise.
10713         * modules/uninorm/*: Likewise.
10714         * modules/unistdio/*: Likewise.
10715         * modules/unistr/*: Likewise.
10716         * modules/uniwbrk/*: Likewise.
10717         * modules/uniwidth/*: Likewise.
10719 2016-11-12  Bruno Haible  <bruno@clisp.org>
10721         Relicense some modules under LGPLv2+.
10722         Paul Eggert's approval is in
10723         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10724         Eric Blake's approval is in
10725         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10726         Ludovic Courtès's approval is in
10727         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10728         * modules/isnand-nolibm (License): Change to LGPLv2+.
10729         * modules/isnanf-nolibm (License): Likewise.
10730         * modules/isnanl-nolibm (License): Likewise.
10732 2016-11-19  Bruno Haible  <bruno@clisp.org>
10734         Relicense some modules under LGPLv2+.
10735         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10736         modules/vasnprintf.
10737         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10738         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10739         All other significant changes to the files in lib/ of these modules
10740         are from me.
10741         * modules/memcmp2 (License): Change to LGPLv2+.
10742         * modules/amemxfrm (License): Likewise.
10743         * modules/fpieee (License): Likewise.
10744         * modules/fpucw (License): Likewise.
10745         * modules/frexp-nolibm (License): Likewise.
10746         * modules/frexpl-nolibm (License): Likewise.
10747         * modules/printf-frexp (License): Likewise.
10748         * modules/printf-frexpl (License): Likewise.
10749         * modules/printf-safe (License): Likewise.
10750         * modules/signbit (License): Likewise.
10752 2016-11-17  Bruno Haible  <bruno@clisp.org>
10754         Enable Unicode decoder safety unconditionally.
10755         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10756         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10757         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10758         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10759         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10760         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10761         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10762         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10763         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10764         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10765         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10766         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10767         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10768         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10769         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10770         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10771         * lib/unistr/u32-next.c (u32_next): Likewise.
10772         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10773         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10774         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10775         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10776         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10777         CONFIG_UNICODE_SAFETY tests unconditionally.
10778         * tests/unistr/test-u32-mblen.c (main): Likewise.
10779         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10780         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10781         * tests/unistr/test-u32-next.c (main): Likewise.
10782         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10783         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10784         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10785         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10786         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10787         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10788         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10789         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10790         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10791         * lib/unistr/u16-check.c (u16_check): Update comment.
10792         * NEWS: Mention the changes that callers should be aware of.
10794 2016-11-19  Bruno Haible  <bruno@clisp.org>
10796         relocatable-prog-wrapper: Fix breakage on Cygwin.
10797         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10798         (Depends-on): Remove intprops.
10799         * lib/relocwrapper.c: Update dependency tree.
10800         (strerror): Undefine.
10801         * build-aux/install-reloc (func_create_wrapper): Do not compile
10802         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10804 2016-11-19  Bruno Haible  <bruno@clisp.org>
10806         strerror: Make it compile in C++ mode.
10807         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10809 2016-11-15  Pedro Alves  <palves@redhat.com>
10811         sys_time: add gnulib::timeval for C++
10812         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10813         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10814         timeval macro.
10816 2016-11-14  Pedro Alves  <palves@redhat.com>
10818         snippet/c++defs: fix real-floating arg functions in C++ mode
10819         Also, define isfinite, isinf, isnan, signbit in the gnulib
10820         namespace instead of in the global namespace.
10821         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10822         (_GL_END_NAMESPACE): New.
10823         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10824         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10825         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10826         instead of in the global namespace.
10827         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10828         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10829         of in the global namespace.
10831 2016-11-13  Jim Meyering  <meyering@fb.com>
10833         strftime: don't use __THROW
10834         Each use of __THROW would provoke this from gcc-7-to-be:
10836           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10837             on unit local functions [-Wattributes]
10838           static int iso_week_days (int, int) __THROW;
10839           ^~~~~~
10840         * lib/strftime.c (__THROW): Don't define.
10841         Remove each use of __THROW.
10842         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10843         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10845 2016-11-14  Paul Eggert  <eggert@union>
10847         obstack: port to gcc -fcheck-pointer-bounds
10848         Problem found by 'make check' failure on bleeding-edge coreutils
10849         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10850         6.2.0-5ubuntu12), configured via "./configure
10851         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10852         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10853         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10854         New macro, copied from fts_.h.
10855         (struct _obstack_chunk.contents): Use it.
10857 2016-11-14  Eric Blake  <eblake@redhat.com>
10859         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10860         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10861         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10863 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10865         strptime: fix compile error in recent change
10866         * lib/strptime.c (__strptime_internal): Fix ported code.
10868 2016-11-11  Bruno Haible  <bruno@clisp.org>
10870         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10871         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10872         (func_import): Extend determination of license_incompatibilities.
10873         (func_create_testdir): Extend table of license compatibility. Handle
10874         also the licenses GPLv3+, GPL, LGPLv3+.
10876 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10878         strftime: tune %q
10879         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10881         Merge strftime.c changes from glibc
10882         This incorporates:
10883         2007-10-16 [BZ #5184] Add tzset_called argument
10884         2008-06-13 [BZ #6612] pass reference to tzset_called around
10885         2009-10-30 Implement Burmese language locale for Myanmar
10886         2010-01-09 Add support for XPG7 testing
10887         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10888         2015-10-20 Convert miscellaneous function definitions to prototype style
10889         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10890         it anyway and this lessens the difference between gnulib and glibc.
10891         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10892         (__THROW): Define if standard headers do not.
10893         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10894         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10895         Declare with __THROW.
10896         (__strftime_internal): Rename from strftime_case_. Add arg for
10897         whether tzset is called.  All uses changed.  Call tzset at most
10898         once.  Allow %OC, for Burmese.
10899         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10900         Don't assume values are in range.
10902 2016-11-12  Eric Blake  <eblake@redhat.com>
10904         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10905         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10906         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10907         different value.
10909 2006-11-12  Pedro Alves  <palves@redhat.com>
10911         Fix gnulib C++ namespace support and std::frexp
10912         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10913         _GL_CXXALIASWARN.
10915 2006-11-12  Pedro Alves  <palves@redhat.com>
10917         GNULIB_NAMESPACE::func need not pull in rpl_func
10918         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10919         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10920         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10921         struct instead of a function pointer.
10923 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10925         manywarnings: fix -Wno-missing-field-initializers detection
10926         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10927         to be independent of -Wunused-variable.  I.E. ensure the latter
10928         warning doesn't occur so that detection of the former is accurate.
10930 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10932         strftime,strptime: support %q to represent the quarter
10933         * lib/strftime.c (strftime_case_): Add %q case.
10934         * lib/strptime.c (__strptime_internal): Likewise.
10935         * tests/test-strftime.c (quarter_test): A new test case.
10937 2016-11-03  Eric Blake  <eblake@redhat.com>
10939         bootstrap: Fix get_version() for AIX 5.3
10940         * build-aux/bootstrap (get_version): Factor out sed script, since
10941         indented comments choke AIX 5.3 sed.
10942         Reported-by: Michael Felt <aixtools@gmail.com>
10944 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10946         intprops: port to older XL C
10947         Problem reported by Alexander Samoilov in:
10948         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10949         http://savannah.nongnu.org/bugs/?49448
10950         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10951         Define to 1 only for XL C 12.1 or later, since this bug
10952         occurs in XL C for AIX 6.0 but not in 12.1.
10954 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10956         backupfile: initialize default suffix within the implementation
10957         * lib/backupfile.c (find_backup_file_name): Initialize the
10958         global variable here, to simplify usage, and to only call
10959         getenv() when needed.
10961 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10963         futimens: remove FIXME for old Linux kernels
10964         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10965         this in 2012" FIXME, like that for utimensat.
10967         utimensat: remove FIXME for old Linux kernels
10968         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10969         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10970         this in 2012" FIXME, by assuming the file system bug is absent
10971         unless demonstrated to be present.  We no longer need to worry
10972         about Linux kernel 2.6.32 when building with newer kernels.
10974 2016-10-16  Bruno Haible  <bruno@clisp.org>
10976         qsort_r: Fix macrology for platforms that lack the function.
10977         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10978         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10979         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10980         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10981         not exist.
10982         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10983         the function exists.
10984         * modules/qsort_r: Add comments.
10986 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10988         sys_types: fix Texinfo typos
10989         * doc/glibc-functions/gnu_dev_major.texi:
10990         * doc/glibc-functions/gnu_dev_makedev.texi:
10991         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10993 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10995         getprogname: port to HP-UX
10996         See Bug#24805.
10997         * lib/getprogname.c (getprogname) [__hpux]: Port.
10998         * tests/test-getprogname.c (STREQ) [__hpux]:
10999         Special-case for HP-UX limitations on program name length.
11001 2016-10-20  Bruno Haible  <bruno@clisp.org>
11003         Update doc about target platforms.
11004         * doc/gnulib-intro.texi (Target Platforms): Update list.
11006 2016-10-15  Bruno Haible  <bruno@clisp.org>
11008         opendir, readdir, closedir: Relicense under LGPLv2+.
11009         * modules/opendir (License): Change to LGPLv2+.
11010         * modules/readdir (License): Likewise.
11011         * modules/closedir (License): Likewise.
11013 2016-10-16  Bruno Haible  <bruno@clisp.org>
11015         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
11016         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
11017         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
11018         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
11019         HAVE_DECL_STRERROR_R.
11021 2016-10-16  Bruno Haible  <bruno@clisp.org>
11023         Make the 'argp' module work without the 'error' module.
11024         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
11026 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11028         diffseq: restore TOO_EXPENSIVE heuristic
11029         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
11030         (Bug#24715).  The simplest solution is to restore the
11031         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
11032         using a higher threshold to avoid Bug#16848 on smaller files.
11033         * lib/diffseq.h (struct context): Restore member too_expensive.
11034         (struct partition): Restore members lo_minimal, hi_minimal.
11035         (diag, compareseq): Restore arg find_minimal.  All uses changed.
11036         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
11037         1993 to make 'diff' run faster (but not as well) on large inputs,
11038         but use a threshold of 4096 instead of the old 256.
11039         * lib/fstrcmp.c (strcmp_bounded):
11040         * lib/git-merge-changelog.c (compute_differences):
11041         Adjust to diffseq.h changes.
11043 2016-10-22  Bruno Haible  <bruno@clisp.org>
11045         iconv: Avoid compilation error when bootstrapping GNU libiconv.
11046         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
11047         declaration yet, define ICONV_CONST to empty.
11049 2016-10-15  Bruno Haible  <bruno@clisp.org>
11051         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
11052         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
11053         module.
11055 2016-10-16  Bruno Haible  <bruno@clisp.org>
11057         system-quote tests: Avoid compiler warning on AIX.
11058         * tests/test-system-quote-child.c (fopen): Redefine like the system's
11059         <stdio.h> does.
11061 2016-10-16  Bruno Haible  <bruno@clisp.org>
11063         Fix some "gcc -Wall" warnings.
11064         * tests/test-ffsl.c (main): Use variable x, not i.
11065         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
11066         freopen.
11067         * tests/test-sethostname1.c (main): Explicitly ignore the return value
11068         of sethostname.
11070 2016-10-16  Bruno Haible  <bruno@clisp.org>
11072         gnulib-tool: Make --create-testdir on all modules work again.
11073         * gnulib-tool (func_create_testdir): Don't include the
11074         non-recursive-gnulib-prefix-hack module.
11076 2016-10-21  Daiki Ueno  <ueno@gnu.org>
11078         libunistring: change the maintainer to 'all'
11079         * modules/gen-uni-tables, modules/libunistring:
11080         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
11081         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
11082         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
11083         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
11084         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
11085         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
11086         * modules/uniwidth/*: Change the maintainer to 'all'.
11088 2016-10-16  Bruno Haible  <bruno@clisp.org>
11090         Simplify "configure: checking ..." messages.
11091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
11092         AC_MSG_NOTICE.
11093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11095 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11097         quotearg-tests: pacify gcc -Wall
11098         Problem reported by Bruno Haible in:
11099         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
11100         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
11101         * tests/test-quotearg.h: ... from here.
11103 2016-10-20  Pádraig Brady  <P@draigBrady.com>
11105         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11106         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11107         Needed on Centos <= 4.
11109 2016-10-20  Jim Meyering  <meyering@fb.com>
11111         printf.m4: fix a bug in detecting printf %j support
11112         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11113         uintmax_t is defined in neither stdint.h nor inttypes.h.
11114         Before, this macro might have mistakenly set
11115         gl_cv_func_printf_sizes_c99=yes on such a system.
11116         Spotted by Zev Weiss.
11118 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11120         sched: substitute HAVE_SYS_CDEFS_H too
11121         Problem reported by Tom G. Christensen in:
11122         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11123         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11124         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11126 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11128         quotearg: never write beyond the returned length
11129         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11130         scan of the string when we initially encounter a single quote when
11131         shell quoting, so that if we then switch to a more concise quoting method
11132         we will not have written beyond that returned length.
11133         This is significant for sh-quote, which has separate routines
11134         to determine the length and do the actual quoting.
11135         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11136         now that we never write more than the returned length.
11138 2016-10-18  Bruno Haible  <bruno@clisp.org>
11140         getprogname tests: Avoid failure in packages that use libtool.
11141         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11142         Based on a patch by Jim Meyering.
11144 2016-10-16  Bruno Haible  <bruno@clisp.org>
11146         getprogname: Fix test failure on Cygwin. Comments.
11147         * lib/getprogname.h: Add comments.
11148         * lib/getprogname.c: Add comments. Fix #elif indentation.
11149         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11150         ".exe" suffix.
11152 2016-10-16  Bruno Haible  <bruno@clisp.org>
11154         Make sure the libunistring detection rejects older versions with a
11155         known bug.
11156         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11157         * modules/unistr/u16-strtok (configure.ac): Likewise.
11158         * modules/unistr/u32-strtok (configure.ac): Likewise.
11160 2016-10-18  Bruno Haible  <bruno@clisp.org>
11162         sh-quote, system-quote: revert regression of unit test.
11163         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11164         * tests/test-system-quote-main.c (check_one): Likewise.
11166 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11168         quotearg: fix stale tests
11169         * tests/test-quotearg.c [locale_results]: Add the missing str7
11170         entries to the expected results.
11171         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11172         don't write beyond the returned length, since that's no longer the
11173         case if we switch to a more concise quoting style.
11174         * tests/test-sh-quote.c (check_one): Likewise.
11175         (main): Adjust for the new more concise quoting style.
11176         Reported by Bruno Haible.
11178 2016-10-16  Jim Meyering  <meyering@fb.com>
11180         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11181         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11182         to "$1".  This macro is always invoked with $1 == lib.
11183         Spotted by Bruno Haible
11185 2016-10-16  Bruno Haible  <bruno@clisp.org>
11187         Fix a test crash.
11188         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11189         fails.
11191 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11193         test-limits-h: suppress -Woverlength-strings
11194         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11196 2016-10-15  Bruno Haible  <bruno@clisp.org>
11198         gettime, timespec, utimens: Relicense under LGPL.
11199         * modules/gettime (License): Change to LGPL.
11200         * modules/timespec (License): Likewise.
11201         * modules/utimens (License): Likewise.
11203 2016-10-14  Bruno Haible  <bruno@clisp.org>
11204             Pádraig Brady  <P@draigBrady.com>
11206         canonicalize-lgpl: Support the case path_max > INT_MAX.
11207         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11208         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11210 2016-10-13  Jim Meyering  <meyering@fb.com>
11212         getprogname: IBM z/OS: avoid NULL-dereference
11213         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11214         upon strdup failure.
11216 2016-10-12  Jim Meyering  <meyering@fb.com>
11218         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11219         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11220         and an abbreviated diagnostic rather than verify with the full one,
11221         because the full-length strings would evoke warnings from gcc with
11222         -Woverlength-strings.
11224 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11226         stdint: port SIZE_MAX to glibc s390
11227         Problem reported by Eric Blake in:
11228         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11229         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11230         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11231         correct type, if possible.
11233 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11235         getprogname: port to IBM z/OS
11236         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11238 2016-10-11  Jim Meyering  <meyering@fb.com>
11240         maint: remove stray space after "." in AC_DEFINE comment.
11241         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11242         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11244 2016-10-05  Jim Meyering  <meyering@fb.com>
11246         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11247         * lib/long-options.c (parse_long_options): Add a break statement
11248         to avoid this new warning/failure:
11249         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11250           --create-testdir --dir=/t/x --with-tests --test long-options
11251         ../../gllib/long-options.c: In function 'parse_long_options':
11252         ../../gllib/long-options.c:66:12: error: this statement may \
11253           fall through [-Werror=implicit-fallthrough]
11254                    (*usage_func) (EXIT_SUCCESS);
11255                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11257 2016-10-05  Jim Meyering  <meyering@fb.com>
11259         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11260         Testing this module would fail when using GCC 7 like this:
11261         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11262           --dir=/tmp/x --with-tests --test utimecmp
11263         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11264         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11265           [-Werror=bool-operation]
11266                          time_t s = src_s & ~ (res == 2 * BILLION);
11267                                             ^
11268         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11269           [-Werror=bool-operation]
11270                src_s &= ~ (res == 2 * BILLION);
11271                         ^
11272         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11273         Instead, make it explicit that we intend to apply it to 0 or 1.
11275 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11277         dfa: save memory for states
11278         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11279         states if dfa has a lot of caches.
11281 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11283         wchar, wctype-h: fix for MinGW 3.22.2
11284         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11285         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11286         when included from <string.h>.
11287         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11288         convention for MinGW 3.22.2, to solve issues with their
11289         wctype.h when included from <ctype.h>.
11291 2016-10-05  Jim Meyering  <meyering@fb.com>
11293         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11294         * lib/long-options.c (parse_long_options): Add a break statement
11295         to avoid this new warning/failure:
11296         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11297           --create-testdir --dir=/t/x --with-tests --test long-options
11298         ../../gllib/long-options.c: In function ‘parse_long_options’:
11299         ../../gllib/long-options.c:66:12: error: this statement may \
11300           fall through [-Werror=implicit-fallthrough]
11301                    (*usage_func) (EXIT_SUCCESS);
11302                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11304         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11305         Testing this module would fail when using GCC 7 like this:
11306         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11307           --dir=/tmp/x --with-tests --test utimecmp
11308         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11309         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11310           [-Werror=bool-operation]
11311                          time_t s = src_s & ~ (res == 2 * BILLION);
11312                                             ^
11313         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11314           [-Werror=bool-operation]
11315                src_s &= ~ (res == 2 * BILLION);
11316                         ^
11317         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11318         Instead, make it explicit that we intend to apply it to 0 or 1.
11320 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11322         quotearg: minimize shell quoting using double quotes
11323         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11324         quote in encountered then use double quotes (c style quoting)
11325         when possible, as it simplifies the quoting.
11326         * tests/test-quotearg-simple.c: Add test cases.
11327         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11328         for the fact we now may write beyond the returned length.
11330 2016-10-02  Jim Meyering  <meyering@fb.com>
11332         vasnprintf.c: avoid spurious warning from GCC 7
11333         The presence of cpp directives renders this "FALLTHROUGH" comment
11334         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11335         from GCC 7 built from git on 2016-10-02.
11336         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11337         directives, so that it takes effect once again.  This is clearly
11338         not a proper change, and I will revert it once this bug is fixed:
11339         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11341 2016-10-01  Jim Meyering  <meyering@fb.com>
11343         getprogname: correct the test for a __progname variable
11344         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11345         and AC_LINK_IFELSE to check for a global __progname.  If found,
11346         define HAVE_VAR___PROGNAME.
11347         * lib/getprogname.c (getprogname): Reflect the new name of the
11348         feature- checked preprocessor symbol:
11349         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11351 2016-09-28  Jim Meyering  <meyering@fb.com>
11353         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11354         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11355         fall-through case with a /* fallthrough */ comment.
11357         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11358         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11359         /* fallthrough */ comment.
11361         getprogname: avoid __progname vs program_invocation_short_name pitfall
11362         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11363         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11364         not with Fedora 24's glibc-2.23.1-10.
11365         * lib/getprogname.c (__progname): Move this declaration down...
11366         (getprogname): ... into the #elif block where used, and make it
11367         explicitly "extern".
11369         getprogname: port to OpenBSD 5.1
11370         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11371         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11372         * modules/getprogname (configure.ac): Move most of this code...
11373         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11374         increment serial number, and add a test for __progname.
11375         https://bugs.gnu.org/24562
11376         Reported by Nelson H. F. Beebe.
11378 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11380         sched: port to GCC 6.2.1 on macOS Sierra
11381         Problem reported by Denis Davydov in:
11382         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11383         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11384         Include <sys/cdefs.h> before <sched.h>.
11385         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11386         so that we needn’t worry about the sched.h include bug here.
11387         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11388         and include it before <sched.h> if it exists, when
11389         checking for <sched.h>.
11391         tests/init.sh: port Alpine fix to AIX 7.1
11392         * tests/init.sh (compare_): When attempting to use diff -U3,
11393         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11394         diff -u not outputting a space after leading '+', as the users
11395         of 'compare' should not be that picky about its output format.
11396         In the AIX 7.1 case, return with diff exit status (or with 2 if
11397         trouble), instead of some random nonzero exit status.
11398         * tests/test-init.sh (test_compare): Remove space after leading
11399         '+', so that AIX 7.1 'diff' passes the test.
11401 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11403         nl_langinfo: pacify GCC
11404         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11405         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11407         stdint: also set GL_GENERATE_LIMITS_H
11408         Problem reported by Jim Meyering in:
11409         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11410         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11412         limits-h, stdint: Don't assume extensions, fix typo
11413         * m4/limits-h.m4 (gl_LIMITS_H):
11414         * m4/stdint.m4 (gl_STDINT_H):
11415         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11416         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11417         reported by Jim Meyering in:
11418         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11420 2016-09-21  Jim Meyering  <meyering@fb.com>
11422         getprogname: port to AIX
11423         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11424         and strdup to obtain a short program name string.  Using code from
11425         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11426         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11427         Assaf Gordon reported that this new file would fail to compile on
11428         AIX-7.1 32bit.
11430 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11432         extensions: fix typo in comment
11433         * m4/extensions.m4: Sync from Autoconf master.
11435         stdint: support new _WIDTH macros
11436         * doc/posix-headers/stdint.texi: Document this.
11437         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11438         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11439         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11440         * modules/stdint (Depends-on): Add limits-h.
11441         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11442         * modules/stdint-tests (Depends-on): Add extensions, so that
11443         INTMAX_MAX etc. are defined.
11444         * tests/test-stdint.c: Verify the new macros.
11446         limits-h: new module
11447         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11448         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11449         * doc/posix-headers/limits.texi: Document new module.
11450         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11451         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11453         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11454         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11455         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11456         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11458 2016-09-15  Eric Blake  <eblake@redhat.com>
11460         sys_types: avoid glibc 2.25 warnings about major()
11461         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11462         older autoconf.
11463         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11464         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11465         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11466         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11468         mountlist: include sysmacros.h for glibc
11469         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11470         AC_HEADER_MAJOR.
11471         * lib/mountlist.c (includes): Use correct headers.
11473 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11475         extensions: port to more ISO C TSes
11476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11477         master, to add support for more recent ISO C TRs and TSes.
11479 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11481         intprops: new macro TYPE_WIDTH
11482         * lib/intprops.h (TYPE_WIDTH): New macro.
11483         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11484         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11485         * lib/parse-datetime.y (parse_datetime2):
11486         Use it.
11488         extensions: port to recent ISO C TRs
11489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11490         Sync from Autoconf master, to add support for recent ISO C TRs.
11491         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11492         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11493         the MinGW option is not an extension.
11495 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11497         dfa: port to Solaris 9
11498         Problems reported by Tom G. Christensen in:
11499         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11500         * modules/dfa (Depends-on): Add isblank.
11501         * modules/dfa-tests (dfa_match_aux_LDADD):
11502         Rename from test_stat_LDADD, to fix typo.
11503         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11505 2016-09-10  Jim Meyering  <meyering@fb.com>
11507         strverscmp: avoid link failure on OS X
11508         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11509         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11511 2016-08-16  Jim Meyering  <meyering@fb.com>
11513         dfa: new module, importing grep's DFA matcher
11514         Since grep's DFA matcher is now being used by two gnulib-enabled
11515         projects, grep and sed, it makes sense to version-control its
11516         sources and unit tests in one place: here.
11517         * modules/dfa: New module.
11518         * modules/dfa-tests: New file.
11519         * lib/dfa.c: New file, from grep.
11520         * lib/dfa.h: Likewise.
11521         * lib/localeinfo.c: Likewise.
11522         * lib/localeinfo.h: Likewise.
11523         * tests/dfa-match-aux.c: Likewise.
11524         * tests/dfa-invalid-char-class.sh: Likewise.
11525         * tests/dfa-match.sh: Likewise, with minor changes.
11526         * MODULES.html.sh (Misc): Add "dfa" to this list.
11528 2016-09-09  Jim Meyering  <meyering@fb.com>
11530         getprogname-tests: don't depend on assert-h
11531         * modules/getprogname-tests (Depends-on): Remove assert-h.
11532         It was not needed, and in fact would cause build failure for
11533         coreutils on some systems.  Reported by Assaf Gordon in https:
11534         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11536 2016-09-07  Jim Meyering  <meyering@fb.com>
11538         getprogname-tests: work also when EXEEXT is nonempty
11539         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11540         * tests/test-getprogname.c (main): Use it.
11541         Suggested by Gisle Vanem.
11543 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11545         getprogname: fix errors in previous change
11546         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11547         s/program_invocation_name/base/
11548         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11550 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11552         parse-datetime: restrict debug output to input string
11553         * lib/parse-datetime.y (parse_datetime2): If we parse
11554         all of the input but determine it's invalid, ensure
11555         we don't output the now invalid input pointer.
11556         This issue was seen with `date -d 'now +1'`.
11558 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11560         flexmember: new macro FLEXALIGNOF
11561         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11562         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11563         this macro.  Update comments.
11565 2016-09-07  Jim Meyering  <meyering@fb.com>
11567         getprogname: port to systems with __argv (mingw, msvc)
11568         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11569         last_component: more general than open coding it with hard-coded "/".
11570         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11571         * modules/getprogname (Depends-on): Add dirname-lgpl.
11572         (configure.ac): Check for __argv in <stdlib.h>.
11573         * modules/getprogname-tests: New file.
11574         * tests/test-getprogname.c: New file.
11575         Suggested by Gisle Vanem in
11576         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11578 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11580         flexmember: port better to GCC + valgrind
11581         With a char[] flexible array member in a struct with nontrivial
11582         alignment, GCC-generated code can access past the end of the
11583         array, because GCC assumes there are padding bytes to get the
11584         struct aligned.  So the common idiom of malloc (offsetof (struct
11585         s, m), n) does not properly allocate an n-byte trailing member, as
11586         malloc’s argument should be the next multiple of alignof (struct s).
11587         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11588         Although C11 apparently permits this GCC optimization (i.e., there
11589         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11590         See the thread containing:
11591         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11592         * lib/flexmember.h: New file.
11593         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11594         * lib/localename.c, lib/time_rz.c:
11595         Include flexmember.h.
11596         * lib/fnmatch_loop.c (struct patternlist):
11597         * lib/localename.c (struct hash_node):
11598         Use FLEXIBLE_ARRAY_MEMBER.
11599         * lib/fnmatch_loop.c (EXT):
11600         * lib/fts.c (fts_alloc):
11601         * lib/glob.c (glob_in_dir):
11602         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11603         * lib/localename.c (gl_lock_define_initialized):
11604         * lib/time_rz.c (tzalloc):
11605         Use FLEXSIZEOF instead of offsetof.
11606         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11607         Check that the size of the struct can be taken.
11608         * modules/flexmember (Files): Add lib/flexmember.h.
11609         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11610         Add flexmember.
11612 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11614         getprogname: port to Solaris 10
11615         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11616         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11617         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11619         stdalign: correct mistake in alignof doc
11620         Problem reported by Joseph Myers in:
11621         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11622         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11623         alignof(S) where S is a structure containing a flexible array
11624         member.  The Gnulib substitute does not support this, but C11 does.
11626 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11628         main.mk: remove sc_program_name, since there is no more need to
11629         use set_program_name in tools (getprogname is enough for most
11630         of the cases).
11631         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11632         * top/maint.mk (sc_program_name): Remove.
11634 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11636         Port tests away from progname, since modules that need the
11637         program name already depend on getprogname.
11638         * modules/acl-tests (Depends-on): Remove progname.
11639         * modules/argmatch (Depends-on): Likewise.
11640         * modules/argmatch-tests (Depends-on): Likewise.
11641         * modules/argp-tests (Depends-on): Likewise.
11642         * modules/argp-version-etc-tests (Depends-on): Likewise.
11643         * modules/array-list-tests (Depends-on): Likewise.
11644         * modules/array-oset-tests (Depends-on): Likewise.
11645         * modules/avltree-list-tests (Depends-on): Likewise.
11646         * modules/avltree-oset-tests (Depends-on): Likewise.
11647         * modules/avltreehash-list-tests (Depends-on): Likewise.
11648         * modules/carray-list-tests (Depends-on): Likewise.
11649         * modules/copy-file-tests (Depends-on): Likewise.
11650         * modules/exclude-tests (Depends-on): Likewise.
11651         * modules/fchownat-tests (Depends-on): Likewise.
11652         * modules/fdopendir-tests (Depends-on): Likewise.
11653         * modules/filenamecat-tests (Depends-on): Likewise.
11654         * modules/fstatat-tests (Depends-on): Likewise.
11655         * modules/fstrcmp-tests (Depends-on): Likewise.
11656         * modules/linked-list-tests (Depends-on): Likewise.
11657         * modules/linkedhash-list-tests (Depends-on): Likewise.
11658         * modules/mkdirat-tests (Depends-on): Likewise.
11659         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11660         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11661         * modules/obstack-printf-tests (Depends-on): Likewise.
11662         * modules/openat-tests (Depends-on): Likewise.
11663         * modules/parse-datetime-tests (Depends-on): Likewise.
11664         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11665         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11666         * modules/quotearg-simple-tests (Depends-on): Likewise.
11667         * modules/quotearg-tests (Depends-on): Likewise.
11668         * modules/rbtree-list-tests (Depends-on): Likewise.
11669         * modules/rbtree-oset-tests (Depends-on): Likewise.
11670         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11671         * modules/spawn-pipe-tests (Depends-on): Likewise.
11672         * modules/system-quote-tests (Depends-on): Likewise.
11673         * modules/uniname/uniname-tests (Depends-on): Likewise.
11674         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11675         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11676         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11677         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11678         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11679         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11680         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11681         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11682         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11683         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11684         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11685         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11686         * modules/unlinkat-tests (Depends-on): Likewise.
11687         * modules/version-etc-tests (Depends-on): Likewise.
11688         * modules/xalloc-die-tests (Depends-on): Likewise.
11689         * modules/xmemdup0-tests (Depends-on): Likewise.
11690         * modules/xprintf-posix-tests (Depends-on): Likewise.
11691         * modules/xvasprintf-tests (Depends-on): Likewise.
11692         * tests/test-argmatch.c: Do not include progname.h.
11693         (main) Stop calling set_program_name.
11694         * tests/test-argp-version-etc.c: Likewise.
11695         * tests/test-argp.c: Likewise.
11696         * tests/test-argv-iter.c: Likewise.
11697         * tests/test-array_list.c: Likewise.
11698         * tests/test-array_oset.c: Likewise.
11699         * tests/test-avltree_list.c: Likewise.
11700         * tests/test-avltree_oset.c: Likewise.
11701         * tests/test-avltreehash_list.c: Likewise.
11702         * tests/test-carray_list.c: Likewise.
11703         * tests/test-copy-acl.c: Likewise.
11704         * tests/test-copy-file.c: Likewise.
11705         * tests/test-exclude.c: Likewise.
11706         * tests/test-fchownat.c: Likewise.
11707         * tests/test-fdopendir.c: Likewise.
11708         * tests/test-filenamecat.c: Likewise.
11709         * tests/test-fstatat.c: Likewise.
11710         * tests/test-fstrcmp.c: Likewise.
11711         * tests/test-linked_list.c: Likewise.
11712         * tests/test-linkedhash_list.c: Likewise.
11713         * tests/test-mkdirat.c: Likewise.
11714         * tests/test-nonblocking-pipe-main.c: Likewise.
11715         * tests/test-nonblocking-socket-main.c: Likewise.
11716         * tests/test-obstack-printf.c: Likewise.
11717         * tests/test-openat.c: Likewise.
11718         * tests/test-parse-datetime.c: Likewise.
11719         * tests/test-pipe-filter-gi1.c: Likewise.
11720         * tests/test-pipe-filter-gi2-main.c: Likewise.
11721         * tests/test-pipe-filter-ii1.c: Likewise.
11722         * tests/test-pipe-filter-ii2-main.c: Likewise.
11723         * tests/test-quotearg-simple.c: Likewise.
11724         * tests/test-quotearg.c: Likewise.
11725         * tests/test-rbtree_list.c: Likewise.
11726         * tests/test-rbtree_oset.c: Likewise.
11727         * tests/test-rbtreehash_list.c: Likewise.
11728         * tests/test-sameacls.c: Likewise.
11729         * tests/test-set-mode-acl.c: Likewise.
11730         * tests/test-spawn-pipe-main.c: Likewise.
11731         * tests/test-system-quote-main.c: Likewise.
11732         * tests/test-unlinkat.c: Likewise.
11733         * tests/test-version-etc.c: Likewise.
11734         * tests/test-xalloc-die.c: Likewise.
11735         * tests/test-xfprintf-posix.c: Likewise.
11736         * tests/test-xmemdup0.c: Likewise.
11737         * tests/test-xprintf-posix.c: Likewise.
11738         * tests/test-xvasprintf.c: Likewise.
11739         * tests/uniname/test-uninames.c: Likewise.
11740         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11741         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11742         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11743         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11744         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11745         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11746         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11747         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11748         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11749         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11750         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11751         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11752         * tests/test-c-stack.c: (program_name): Do not define.
11753         (main): Do not set program_name.
11754         * tests/test-closein.c: Likewise.
11755         * tests/test-xstrtol.c: Likewise.
11756         * tests/test-yesno.c: Likewise.
11758 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11760         Port modules to use getprogname explicitly, instead of requiring
11761         progname to be used (or program_name to be provided).
11762         * lib/argmatch.c: Do not include progname.h.
11763         [TEST] (program_name): Do not define.
11764         [TEST] (main): Call getprogname instead of using program_name.
11765         * lib/c-stack.c: Do not include progname.h.
11766         (program_name): Do not define.
11767         (die): Call getprogname instead of using program_name.
11768         * lib/chdir-long.c: Do not include progname.h.
11769         [TEST_CHDIR] (main): Do not set program_name.
11770         * lib/error.c [!_LIBC]: Include progname.h.
11771         [!_LIBC] (program_name): Define using getprogname.
11772         * lib/euidaccess.c: Do not include progname.h.
11773         [TEST] (main): Do not set program_name.
11774         * lib/git-merge-changelog.c: Include getprogname.h instead of
11775         progname.h.
11776         (usage): Call getprogname instead of using program_name.
11777         (main): Likewise.  Stop calling set_program_name.
11778         * lib/group-member.c: Do not include progname.h.
11779         [TEST] (main): Do not set program_name.
11780         * modules/argmatch (Depends-on): Add getprogname.
11781         * modules/c-stack (Depends-on): Likewise.
11782         * modules/error (Depends-on): Likewise.
11783         * modules/git-merge-changelog (Depends-on): Likewise.
11784         Also remove progname.
11786 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11788         * NEWS: Document the deprecation of the 'progname' module.
11790 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11792         getprogname: new module
11793         This provides a LGPL module for getting the name of the current
11794         program, using the same API found on *BSD systems.
11795         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11796         * modules/getprogname: New files.
11797         * MODULES.html.sh (Misc): Add getprogname.
11799 2016-09-02  Jim Meyering  <meyering@fb.com>
11801         manywarnings: add -fno-common
11802         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11803         to the list.  Quoting the manual, "Compiling with -fno-common is
11804         useful on targets for which it provides better performance, or if
11805         you wish to verify that the program will work on other systems that
11806         always treat uninitialized variable declarations this way [putting
11807         it in the data section]."  If diffutils had been using this sooner,
11808         it would have prevented this duplicate declaration issue:
11809         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11811 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11813         parse-datetime: Fix typo.
11814         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11816 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11818         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11819         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11820         GCC 5 and 6 that have __builtin_sub_overflow but not
11821         __builtin_sub_overflow_p.  With the recent changes, these
11822         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11823         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11824         since the former needs just one runtime comparison whereas the
11825         latter needs two.
11827         strverscmp: sync with glibc
11828         Although this doesn't exactly synchronize with glibc
11829         byte-for-byte, it makes the code behave the same as glibc.
11830         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11831         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11832         difference shouldn't matter in practical use.  All uses changed
11833         back to isdigit.
11834         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11835         (next_state): Now unsigned char array; redo elements.
11836         (result_type): Now signed char array; redo elements.
11837         (__strverscmp): Fix glibc bug 9913 by using new states.
11838         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11840 2016-08-29  Jim Meyering  <meyering@fb.com>
11842         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11843         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11844         similarly to how it was done to intprops.h.
11846 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11848         intprops.h: port recent changes to GCC 6.2.0
11849         * lib/intprops.h (__has_builtin): Move earlier.
11850         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11851         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11852         the last argument can be null.  All uses changed.
11853         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11854         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11855         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11856         and it's not clear which GCC versions it works for.
11857         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11858         its definiens.
11860         intprops.h: use __typeof__ with GCC 7
11861         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11862         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11863         This avoids computing the expression's value (which might overflow!).
11865 2016-08-29  Jim Meyering  <meyering@fb.com>
11867         intprops.h, xalloc-oversized.h: work with gcc 7
11868         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11869         __builtin_mul_overflow each accept a NULL pointer as the third
11870         argument.  However in gcc 7, that is no longer accepted.
11871         Instead, one must use the "_p"-suffixed names, with which, the
11872         third parameter is no longer a pointer.
11873         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11874         the definition: not true for gcc 7 and subsequent.
11875         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11876         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11877         Provide new definitions for gcc 7 and subsequent.
11878         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11879         that works with gcc-7.
11881         intprops.h: fix missing-backslash problems
11882         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11883         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11885 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11887         intprops: fix paren typo on old platforms
11888         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11889         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11890         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11891         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11892         && !defined LLONG_MAX]:
11893         Remove stray paren.
11895         intprops: port to OpenVMS
11896         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11897         * doc/posix-headers/limits.texi: Document the problem.
11898         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11899         Define if not already defined.
11901 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11903         parse-datetime: improve debug implementation
11904         Follow-up to commit 12ad79069 ("add optional debug printing").
11905         Improve parse-datetime's debug implementation: remove macros,
11906         replace global debug flag variable with a function parameter,
11907         use nstrftime for formatting.
11908         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11909         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11910         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11911         debug flag. Existing interface 'parse_datetime' left unmodified.
11912         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11913         (struct parser_control): add 'parse_datetime_debug' member variable.
11914         (parse_datetime): Call new function 'parse_datetime2' without debug.
11915         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11916         pc.parse_datetime_debug variable as needed.
11917         (to_year): Accept new flags parameter, instead of using global variable.
11918         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11919         use struct 'debug' variable instead of global variable.
11920         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11921         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11922         correspnding functions directly instead of using macros.
11923         * modules/parse-datetime: Add gnulib's strftime module.
11925 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11927         c-strcase-tests: port to EBCDIC
11928         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11929         which assume ASCII encoding semantics to run only in ASCII
11930         mode, as they fail in EBCDIC.
11932         sigpipe-tests: fix typo
11933         * tests/test-sigpipe.sh: C, not B.
11935 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11937         canonicalize-lgpl: fix errno after malloca fails
11938         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11939         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11940         * lib/canonicalize-lgpl.c (__realpath):
11941         Don't assume malloca sets errno on failure.
11943 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11945         strtod: port errno handling to z/OS
11946         * lib/strtod.c (strtod): Save and restore errno more reliably.
11948 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11950         strtod: port to z/OS
11951         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11952         implementation.
11954 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11956         strtod: port to z/OS
11957         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11958         implementation.
11960         regex, string: rename to avoid '__string'
11961         * lib/regex.h, lib/string.in.h: Do not use the identifier
11962         '__string', as it is effectively reserved by string.h on z/OS.
11964         c-strcase-tests, wcwidth-tests: depend on c-ctype
11965         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11966         Add c-ctype.
11968 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11970         thread: port to z/OS
11971         * lib/glthread/thread.c, lib/glthread/thread.h:
11972         Rudimentary gl_thread support for z/OS.
11974         maint: port tests to z/OS errno behavior
11975         * tests/test-nonblocking-reader.h:
11976         * tests/test-nonblocking-writer.h:
11977         Accommodate z/OS errno code preferences. (I believe this should
11978         still be within spec; IBM is good at following the letter if not
11979         the spirit of such things.)
11981         maint: preprocessor changes to support z/OS
11982         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11983         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11984         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11985         * tests/test-nonblocking-pipe.h:
11987         fclose, strstr-simple, wchar: port to z/OS
11988         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11989         Changes to the Autoconf M4 code to support z/OS.  Note that
11990         fclose() is broken in a different way on z/OS than it is on other
11991         systems, thus the special-case in fclose.m4.
11993         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11994         * tests/test-iconv-utf.c, tests/test-iconv.c:
11995         Added appropriately conditional #pragmas so that the test strings
11996         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11997         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11998         addressed in a more portable way by simply rewriting all the ASCII
11999         literal characters as octal escapes, but then you would lose the
12000         partial readability that the strings have now. Also, iconv_open()
12001         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
12003         c-strcase-tests, wcwidth-tests: port to EBCDIC
12004         * tests/test-c-strcasecmp.c: Include c-ctype.h.
12005         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
12006         * tests/test-wcwidth.c: Likewise.
12008 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12010         stdbool: don't require _Bool for C++
12011         Problem reported by David Seifert in:
12012         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
12013         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
12014         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
12015         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
12016         stricter about checking that bool and _Bool are compatible in C.
12018 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12020         getdelim: remove dependency on realloc-posix
12021         * lib/canonicalize-lgpl.c (alloc_failed)
12022         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
12023         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
12024         Use __set_errno where needed, for consistency.
12025         * lib/getdelim.c (alloc_failed): New function.
12026         (getdelim): Use it.
12028 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
12030         parse-datetime: add optional debug printing
12031         Print parsing information, warnings, and errors to stderr.
12032         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
12033         * lib/parse-datetime.y:
12034         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
12035         (PROGRESS*): Same as DEBUG, for progress reporting.
12036         (dbg_printf): Print message to stderr, with 'date' prefix.
12037         (struct parser_control): Add 'debug_*_seen' variables.
12038         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
12039         (debug_print_current_time, debug_print_relateive_time): Prints the
12040         current/relative date/time value of parser_control.
12041         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
12042         (to_year): Warn about 2-digit year parsing.
12043         (yylex):   Warn about unrecognized words.
12044         (get_effective_timezone): Returns current timezone in minutes.
12045         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
12046         clearly and unambigiously as possible.
12047         (debug_mktime_not_ok): Print detailed information about failed
12048         date/time values.
12049         (parse_datetime): Add DEBUG messages for failures, warnings. Add
12050         PROGRESS messages for status messages.
12051         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
12053 2016-08-06  Jim Meyering  <meyering@fb.com>
12055         tests/init.sh: exclude dash with bad "local" semantics
12056         * tests/init.sh (gl_shell_test_script_): Add a function to
12057         eliminate a shell like "dash" (unlike bash, zsh) that has
12058         surprising/risky "local var='...'" semantics.  Inspired by
12059         the problem and discussion in https://bugs.gnu.org/24116#11.
12061 2016-08-02  Ján Tomko  <jtomko@redhat.com>
12063         maint.mk: expand the prohibit_doubled_word regex
12064         This check has a static list of words that are checked for
12065         repetitions.  Expand it before running the perl script to
12066         avoid using expensive captures.  This decreases the cost
12067         for libvirt from 1.66s to 0.66s.
12068         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
12069         (sc_prohibit_doubled_word): Use it.
12071 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12073         useless-if-before-free: skip non-matching lines early
12074         * build-aux/useless-if-before-free: First match each line with the
12075         simple/quick /\bif\b/ and reject if there is no match. This often
12076         saves the cost of the much more involved regular expression.
12077         For libvirt, this decreases the cost from 1.44s to 1.02s.
12079 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12081         maint.mk: speed up sc_po_check
12082         sc_po_check would skip files based on their names, or on the
12083         existence of files with derived names. Rewrite it to use perl
12084         instead of shell to make the check faster.
12085         * top/maint.mk (perl_translatable_files_list_): Define.
12086         (sc_po_check): Use it.
12088 2016-07-30  Ján Tomko  <jtomko@redhat.com>
12090         maint.mk: speed up require_config_h_first
12091         Instead of spawning three processes per file,
12092         rewrite the check in perl and run it once for all the files.
12093         * top/maint.mk (perl_config_h_first_): Define.
12094         (sc_require_config_h_first): Use it in place of shell code.
12096 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12098         maint.mk: speed up sc_po_check
12099         sc_po_check would skip files based on their names, or on the
12100         existence of files with derived names. Rewrite it to use perl
12101         instead of shell to make the check faster.
12102         * top/maint.mk (perl_translatable_files_list_): Define.
12103         (sc_po_check): Use it.
12105 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12107         obstack: pacify GCC 6 with -Wnull-dereference
12108         Problem reported by Assaf Gordon in:
12109         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12110         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12111         Declare with __attribute_noreturn__.
12112         * lib/obstack.h (__attribute_noreturn__): New macro.
12114 2016-07-13  Eric Blake  <eblake@redhat.com>
12116         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12117         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12118         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12120 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12122         doc: mention glibc SSIZE_MAX buglet
12123         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12125 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12127         printf-posix: Fix mingw build
12128         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12129         expression for detecting C symbol prefixes but forgot to qoute square
12130         brackets in the command line arguments for grep.  That way when
12131         building with mingw the condition was false although it ought to be
12132         true instead.  In particular scenarios this led to the following
12133         compile error:
12135             Cannot export rpl_printf: symbol not found
12136             Cannot export rpl_scanf: symbol not found
12137             collect2: error: ld returned 1 exit status
12139         Fix this by properly quoting square brackets.
12141 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12143         mktime: call tzset as per POSIX
12144         Problem reported by Ludovic Courtès in:
12145         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12146         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12147         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12149 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12151         fts: handle readdir() errors
12152         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12153         but also upon error when it will also set errno.  Therefore
12154         flag the error case from readdir().  We treat the case where
12155         no items are read the same as if the dir can't be accessed,
12156         i.e. by setting fts_errno to FTS_DNR.
12158 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12160         intprops: port better to GCC 7
12161         GCC 7 __builtin_add_overflow supports a new usage form, where the
12162         last argument is a null pointer, and which merely returns 1 if an
12163         overflow would occur.  This is a constant expression if all
12164         arguments are constants, and should generate faster code when code
12165         needs to be generated.
12166         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12167         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12168         Use builtin operations if available.
12169         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12170         operations are available, as it's almost surely faster.
12172 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12174         intprops-test: port to GCC 6
12175         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12176         since the bug is not fixed in GCC 6.1.
12178 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12180         xalloc-oversized: port to GCC 7; fewer warnings
12181         GCC 7 will have a better way to deal with integer overflow.
12182         Plus, fix a warnings problem reported by Tim Ruehsen in:
12183         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12184         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12185         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12186         For GCC 5, use __xalloc_oversized if both args are constants,
12187         or if pedantic.
12189 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12191         regex: port to Sun C
12192         Reported by Daiki Ueno.
12193         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12194         __restrict, in prototype.  This fixes a problem I introduced in
12195         the 2016-02-19 merge from glibc.
12197 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12199         stdbool: Restore __bool_true_false_are_defined check
12200         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12201         __bool_true_false_are_defined is still defined, even with C++11.
12203 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12205         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12206         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12208 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12210         Use GCC_LINT, not lint
12211         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12212         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12213         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12214         Document problem with lint and _Noreturn.
12215         * lib/diffseq.h (IF_LINT, IF_LINT2):
12216         * lib/fts.c (sccsid):
12217         * lib/getndelim2.c (IF_LINT):
12218         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12219         (gl_linked_iterator_from_to):
12220         * lib/gl_anytree_list2.h (gl_tree_iterator)
12221         (gl_tree_iterator_from_to):
12222         * lib/gl_anytree_oset.h (gl_tree_iterator):
12223         * lib/gl_array_list.c (gl_array_iterator)
12224         (gl_array_iterator_from_to):
12225         * lib/gl_array_oset.c (gl_array_iterator):
12226         * lib/gl_carray_list.c (gl_carray_iterator)
12227         (gl_carray_iterator_from_to):
12228         * lib/idcache.c:
12229         * lib/inet_ntop.c (IF_LINT):
12230         * lib/regcomp.c (build_charclass_op, create_tree):
12231         * lib/regex_internal.c (re_acquire_state)
12232         (re_acquire_state_context):
12233         * lib/trigl.c (rcsid):
12234         * lib/trim.c (IF_LINT):
12235         * lib/vasnprintf.c (IF_LINT):
12236         * lib/verify.h (assume):
12237         Treat GCC_LINT like lint.
12239 2016-05-29  Bruno Haible  <bruno@clisp.org>
12241         secure_getenv: Port to many more platforms.
12242         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12243         functions.
12244         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12245         for non-BSD Unix platforms and for native Windows.
12246         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12247         Prompted by a request from Nikos Mavrogiannopoulos.
12249 2016-05-27  Eric Blake  <eblake@redhat.com>
12251         canonicalize: Fix broken probe for realpath.
12252         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12253         in logic introduced in 54615b95.
12255 2016-05-26  Eric Blake  <eblake@redhat.com>
12257         unsetenv: relax to LGPLv2+
12258         * modules/unsetenv (License): Match setenv license.
12260 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12262         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12263         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12264         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12265         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12266         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12267         (generate_html, generate_info, generate_tex, outdir)
12268         (source_extra, split, srcfile, texarg): Move above 'version'.
12269         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12271 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12273         manywarnings: update for GCC 6.1
12274         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12275         Add GCC 6.1 options that apply to C.
12276         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12277         do not apply to C, are obsolescent, etc.
12279 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12281         glob: size_t overflow checks
12282         * lib/glob.c (__has_builtin): New macro.
12283         (size_add_wrapv, glob_use_alloca): New static functions.
12284         (glob, glob_in_dir): Check for size_t overflow in several places,
12285         and fix some size_t checks that were not quite right.
12287         glob: don't assume INT_MAX < SIZE_MAX
12288         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12289         latter is not portable to (probably theoretical) hosts where
12290         SIZE_MAX <= INT_MAX.
12292 2016-05-09  Bruno Haible  <bruno@clisp.org>
12294         Fix undefined behaviour in gettext.h.
12295         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12296         pointer's value after the storage it points to has been freed.
12297         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12298         Spotted by Coverity.
12300 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12302         git-version-gen: avoid undefined shift
12303         Problem reported by Mosè Giordano in:
12304         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12305         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12306         with --prefix or --fallback but without a later argument.  While
12307         we're at it, omit unnecessary quotes.
12309 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12311         glob: merge glibc changes into lib/glob.c
12312         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12313         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12314         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12315           struct dirent [BZ #19779]
12316         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12317           callback gl_readdir
12318         2015-10-20 Convert miscellaneous function definitions to prototype style
12319         2015-10-20 Convert 113 more function definitions to prototype style
12320           (files with assertions)
12321         2015-06-12 Fix getlogin_r namespace (bug 18527).
12322         2014-02-10 Use glibc_likely instead __builtin_expect.
12323         2013-10-20 When glob pattern contains a trailing slash match only
12324           directories. Fixes bug 10278.
12325         2013-09-04 glob: silence -Wattribute warnings
12326         2013-06-07 Avoid use of "register" as optimization hint.
12327         2012-09-25 Use size_t instead of int for internal variables in glob
12328           (bug 14621)
12329         2011-07-20 Check for overflows in expressions
12330         2011-05-28 Remove unused variable
12331         2011-05-22 Add a few more alloca size checks
12332         2010-03-27 Whitespace fixes
12333         2010-03-27 Fix one more issue with the glob patch
12334         2010-03-24 Fix glob with empty pattern
12335         2008-05-27 Remove useless more "if" tests before "free"
12336         * modules/glob (Depends-on): Add stdint.
12338 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12340         mktime: port to stricter signed overflow checking
12341         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12342         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12343         instead of merely for INT_MAX * 2.  In practice platforms that
12344         do the latter also do the former.
12345         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12346         (shr): New static function, replacing SHR.  All uses changed.
12347         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12348         and TIME_T_MAX.  All uses changed.
12349         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12350         Use long_int, not time_t.
12351         (long_int_avg): New static function, replacing time_t_avg.
12352         All uses changed.  Round toward positive infinity, as that
12353         generates slightly better code.
12354         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12355         by INT_ADD_WRAPV.
12356         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12357         (convert_time): New static function.
12358         (ranged_convert): Use it
12359         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12360         Use simpler test for loop exit.
12361         (__mktime_internal): Store negative of guessed offset, to simplify
12362         overflow checking.  Remove no-longer-needed test for small time_t
12363         overflows.
12365         mktime: speed up DEBUG_MKTIME benchmarks
12366         Call tzset just once, at the start, rather than for every test
12367         case.  This lets us measure the CPU cost of mktime as opposed to
12368         that of tzset.  This is relevant when TZ is not set and glibc is
12369         being used.  This speeds up tests by a factor of 40 on my Fedora
12370         23 x86-64 platform.
12371         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12372         to call tzset and as a sanity check.  Later on, use localtime_r
12373         instead of localtime.
12375         mktime: resurrect DEBUG_MKTIME testing
12376         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12377         Include <string.h>, for strcmp.
12379         mktime: simplify DEBUG_MKTIME
12380         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12381         Simplify later usage accordingly.
12383         Port mktime_internal offset to unsigned time_t
12384         This avoids some assumptions about wraparound arithmetic on
12385         signed integer overflow.
12386         * lib/mktime-internal.h (mktime_offset_t): New type.
12387         (mktime_internal): Use it in decl.
12388         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12390         * lib/mktime.c (__mktime_internal, localtime_offset):
12391         * lib/timegm.c (timegm): Use it.
12392         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12393         (gl_FUNC_MKTIME): Require it.
12395 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12397         xstrtol: prohibit monstrosities like "1bB"
12398         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12399         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12400         "B" only if the first suffix needs a base.
12401         * tests/test-xstrtol.sh: Test this.
12403 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12405         xstrtod: reinstate setting of *result upon ERANGE
12406         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12407         the returned limits upon ERANGE, so allow and document that.
12409 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12411         xstrtod: modify *result only if no errors
12412         * lib/xstrtod.c (XSTRTOD).
12414 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12416         btowc: document problems in C locale
12417         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12418         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12420 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12422         mktime: improve integer overflow checking
12423         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12424         (WRAPV): Remove; no longer needed.
12425         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12426         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12427         Remove.  Use intprops.h defns instead.
12428         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12429         Use bool for Boolean, for clarity.
12430         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12431         detect integer overflow.
12432         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12434         intprops: check two's complement assumption
12435         Suggested by Eric Blake in:
12436         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12437         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12438         short, int, long, and (if available) long long are two's complement.
12439         * modules/intprops (Depends-on): Add 'verify'.
12441         intprops, mktime, strtol: assume two's complement
12442         These macros were not portable to every conforming C11 ones'
12443         complement platform.  It's not worth the hassle of porting to some
12444         platforms that use ones' complement or signed magnitude, as such
12445         platforms are almost purely theoretical nowadays and porting even
12446         to some of them makes the code harder to review for little
12447         practical benefit.  Problem reported by Florian Weimer in:
12448         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12449         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12450         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12451         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12452         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12453         (TYPE_SIGNED_MAGNITUDE):
12454         Remove.  All uses rewritten to assume two's complement, which is
12455         all we can reasonably test nowadays anyway.
12456         * top/maint.mk (_intprops_names): Remove the removed macros.
12458 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12460         stdint: port to strict C11 left shift
12461         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12462         Pacify clang -Wshift-negative-value, which should be an issue only
12463         on clang setups where stdint.h does not conform to C11 or to C++11.
12464         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12466 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12468         mbrtowc: work around glibc bug#19932
12469         Fix mbrtowc so that it never returns -1 in the C locale,
12470         as this conflicts with a future version of POSIX
12471         http://austingroupbugs.net/view.php?id=663#c2738
12472         and causes problems with GNU grep: http://bugs.gnu.org/23234
12473         See glibc bug 19932:
12474         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12475         * doc/posix-functions/mbrlen.texi (mbrlen):
12476         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12477         Document the glibc bug.
12478         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12479         Include hard-locale.h, locale.h.
12480         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12481         if the bug is possible.
12482         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12483         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12484         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12485         * modules/mbrtowc (Depends-on): Add hard-locale.
12486         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12487         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12488         * tests/test-mbrtowc5.sh: New file.
12490 2016-04-03  Pedro Alves  <palves@redhat.com>
12492         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12493         When gnulib is configured in C++ mode for a system with a working C99
12494         implementation of stdint.h that predates C++11, gnulib ends up
12495         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12496         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12497         MinGW is LLP64.  Instead of trying to detect the right types, detect
12498         good-enough-pre-C++11 stdint.h and in such case define
12499         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12500         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12501         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12502         conforms to C99.  If it does, check whether it hides symbols
12503         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12504         does, define those macros in config.h.
12506 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12508         argp: merge changes from glibc
12509         Among other things, this should fix problems found by a Coverity
12510         scan and reported by Andrei Borzenkov:
12511         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12512         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12513         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12514         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12515         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12516         * lib/argp.h:
12517         Merge changes from glibc.
12518         * tests/test-argp-2.sh: Adjust to match new behavior.
12520 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12522         stddef: support configuring with g++
12523         Problem reported by Ángel González in:
12524         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12525         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12526         Do not define if _GCC_MAX_ALIGN_T is defined.
12528 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12530         test-framework-sh: minor cleanups
12531         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12532         since strictly speaking POSIX requires this.
12533         (setup_): Do not use the variable 'fail', as that makes the
12534         trace output harder to read ('fail' is typically used by
12535         tests to mean the test failed).  Treat // portably.
12536         Check that new directory is not merely a sibling of the tmp dir.
12537         Avoid unnecessary invocation of tr.
12539         test-framework-sh: revert port to NetBSD 7.0
12540         It was a false alarm; I misinterpreted Assaf Gordon's report.
12541         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12542         Restore.
12543         (test_dir_): Adjust to mktempd_ change.
12544         (mktempd_): Restore 2nd arg.  Use -t again.
12545         (base_template_, template_, nx_): Resurrect old code.
12547         Port better to Alpine Linux
12548         Its diff implementation does not support -c, but does support -U3.
12549         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12550         * tests/init.sh (diff_opt_): New var.
12551         (compare_): Prefer diff -U3 to diff -c to plain diff.
12553 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12555         test-framework-sh: port to NetBSD 7.0
12556         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12557         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12558         Remove.  All uses removed.
12559         (test_dir_): Adjust to mktempd_ change.
12560         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12561         (base_template_, template_, nx_): Simplify by hardcoding.
12563 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12565         gitlog-to-changelog: suppress ignored chatter
12566         * build-aux/gitlog-to-changelog: Do not warn about skipping
12567         an SHA if it would have been ignored anyway.
12569 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12571         setlocale: add "sv" to Windows language table
12572         * lib/setlocale.c (language_table) [W32]: Add "sv".
12573         Reported in <https://savannah.gnu.org/bugs/?44588>.
12575 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12577         sys_select: port to new Cygwin
12578         Problem reported by Ken Brown in:
12579         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12580         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12581         diagnostics.
12583 2016-03-17  Jim Meyering  <meyering@fb.com>
12585         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12586         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12587         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12588           test-userspec.c:176:9: error: statement is indented as if it were \
12589             guarded by... [-Werror=misleading-indentation]
12590                    {
12591                    ^
12592           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12593                  if (!diag && !T[i].result)
12594                  ^~
12596 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12598         time_rz: port to clang -Wunused-const-variable
12599         * lib/time_rz.c (TZ): Remove.  All uses removed.
12601         std-gnu11: improve clang support
12602         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12603         2016-03-15 Also try clang
12604         2016-03-15 Port C11 and C++11 testing to clang
12606         select: port more to Intel 2016.1.150 compiler
12607         Problem reported by Balázs Hajgató in:
12608         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12609         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12611 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12613         select: try to port to 2016.1.150 compiler
12614         Problem reported by Balázs Hajgató in:
12615         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12616         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12617         POSIX specifies 'restrict'.
12619 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12621         localename-tests: memory allocation fixes
12622         * tests/test-localename.c (test_locale_name)
12623         (test_locale_name_thread): Don't call freelocale on a locale
12624         that was the base of a successful newlocale, as that
12625         results in a double free.  Problem reported by Assaf Gordon.
12626         (test_locale_name_thread): Free saved names after use, to pacify
12627         gcc -fsanitize=address.
12629 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12631         intprops: make .h file license match module
12632         * lib/intprops.h: Change the license wording to match glibc format.
12633         This is what is in modules/intprops anyway.  See:
12634         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12636 2016-03-08  Eric Blake  <eblake@redhat.com>
12638         acl: fix missing return on Cygwin
12639         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12640         fall off end of function. Fixes http://bugs.gnu.org/22949
12642 2016-03-05  Bruno Haible  <bruno@clisp.org>
12644         extern-inline: port to PGI CC
12645         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12646         keyword 'inline'.
12647         Reported by Adam James Stewart in:
12648         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12650 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12652         signbit: port back to pre-C++11 GCC
12653         * lib/math.in.h (signbit): Do previous change only if
12654         __cplusplus < 201103.  See Jonathan Wakely in:
12655         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12657 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12659         mountlist: recognize autofs-mounted remote file systems, too
12660         Originally reported at: https://bugzilla.redhat.com/1309247
12661         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12662         "-hosts" because it is used by autofs to mount remote file systems.
12664 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12666         signbit: port to C++ with GCC 6
12667         * lib/math.in.h (signbit) [__cplusplus]:
12668         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12669         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12671         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12673         regex: make it closer to libc
12674         Make Idx a signed type, rather than possibly unsigned.
12675         The unsignedness was not really buying us anything, since the code
12676         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12677         it signed allows us to use -1 and -2 with abandon, like libc does,
12678         thus lessening the number of differences between gnulib and libc.
12679         Also, it should help avoid gratuitous warnings like the one
12680         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12681         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12684         regex: merge patches from libc
12686         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12687         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12688         Convert miscellaneous function definitions to prototype style.
12689         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12690         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12691         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12692         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12693         (re_search_internal):
12694         Convert to prototype-style function definition.
12695         Use internal_function for internal functions.
12697 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12699         stdalign: port to older HP and IBM cc
12700         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12701         C compilers, by checking their version numbers.  These version
12702         numbers appear in MariaDB and in Qt code that dates way back and
12703         that conditiionally uses the 'aligned' attribute.
12705 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12707         stdalign: port to clang 3.7.0
12708         Problem reported by Herbert J. Skuhra in:
12709         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12710         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12711         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12712         https://llvm.org/bugs/show_bug.cgi?id=26547
12714 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12716         readdir_r: now obsolescent
12717         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12718         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12720 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12722         misc: port better to gcc -fsanitize=address
12723         Without these patches, ./configure CFLAGS='-fsanitize=address'
12724         would compute incorrect values.  This patch fixes some (but not all)
12725         test failures with recent glibc, with this configuration.
12726         * m4/acl.m4 (gl_ACL_GET_FILE):
12727         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12728         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12729         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12730         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12731         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12732         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12733         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12734         * m4/getline.m4 (gl_FUNC_GETLINE):
12735         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12736         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12737         * m4/regex.m4 (gl_REGEX):
12738         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12739         * tests/test-calloc-gnu.c (main):
12740         * tests/test-duplocale.c (main):
12741         * tests/test-getgroups.c (main):
12742         * tests/test-getline.c (main):
12743         * tests/test-inttostr.c (main):
12744         * tests/test-localename.c (test_locale_name)
12745         (test_locale_name_thread, test_locale_name_environ)
12746         (test_locale_name_default):
12747         * tests/test-regex.c (main):
12748         * tests/test-setlocale1.c (main):
12749         * tests/test-stat.h (test_stat_func):
12750         Free heap-allocated storage before exiting.
12751         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12752         Don't match *_foo symbols inserted by AddressSanitizer.
12753         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12755 2016-02-02  Jim Meyering  <meyering@fb.com>
12757         verify-tests: also remove stray test-verify.Tpo
12758         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12759         to remove the test-verify.Tpo file that is left behind by
12760         the automake-generated rule upon compilation failure.
12761         Otherwise, that .Tpo file would cause a failed "make distcheck"
12762         at least for grep.
12764 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12766         std-gnu11: new module
12767         This makes it easier for applications to prefer C11 and C++11
12768         to older variants, when compiling C and C++ code.
12769         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12770         a nontrivial chunk of GPLed Autoconf source code.
12771         * COPYING: Mention the m4/*.m4 copyright situation.
12772         * MODULES.html.sh (std-gnu11): New module.
12773         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12775 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12777         get-permissions, strftime: fix grammar in comments
12778         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12779         some grammar fixes Alan Mackenzie made to GNU Emacs.
12781 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12783         gettext: mark as obsolete
12784         Suggested by Paul Eggert in:
12785         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12786         * modules/gettext (Status): Mark as obsolete.
12787         (Notice): Suggest to use 'gettext-h' instead.
12788         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12789         the 'gettext' module.
12791 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12793         gnulib-tool: don't give up on ln -s so easily
12794         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12795         because an earlier one failed.  The targets could be on different
12796         file systems.  Problem reported by KO Myung-Hun in:
12797         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12799         closedir: fix OS/2-related typos
12800         Problem reported by KO Myung-Hun in:
12801         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12802         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12803         in the last couple of changes.
12805 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12807         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12808         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12809         copying a directory.
12811 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12813         regex: treat [x] as x if x is a unibyte encoding error
12814         Problem reported by Aharon Robbins in:
12815         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12816         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12817         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12819         closedir, dirfd, opendir: port to OpenSolaris 5.10
12820         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12821         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12822         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12823         Don't use ${word##pat} substitution, as it doesn't work in
12824         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12825         http://bugs.gnu.org/22443#11
12827 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12829         bootstrap: use American spelling
12830         * build-aux/bootstrap: Honor American spelling.
12832 2016-01-22  Karl Berry  <karl@freefriends.org>
12834         * doc/posix-functions/localtime.texi,
12835         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12837 2016-01-21  Bruno Haible  <bruno@clisp.org>
12839         hash-pjw-bare: fix comment
12840         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12842         wcwidth: Replace also on OpenBSD 5.8
12843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12844         * doc/posix-functions/wcwidth.texi: Update.
12846 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12848         gnu-web-doc-update: fix addition of new files
12849         If there were already added (emnpty) dirs,
12850         then cvs aborts the add with the message:
12851           cvs [add aborted]: there is a version in <./dirname> already
12852         * build-aux/gnu-web-doc-update: Add directories separately
12853         to the addition of files, to avoid the above issue
12854         impacting the addition of files.
12856 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12858         utimens-tests: avoid pulling gettext .m4 files
12859         Although this is not the right fix to the original problem:
12860         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12861         it makes it possible again for consumer projects to use arbitrary
12862         version of gettext, through the steps described at:
12863         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12864         See here for details:
12865         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12866         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12867         'gettext'.
12868         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12869         'gettext'.
12871 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12873         regex: pacify static checkers
12874         Problem and draft fix reported by Aharon Robbins in:
12875         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12876         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12877         Clear memory to pacify static checkers.
12879         regex: fix [ diagnostic
12880         Problem and fix reported by Aharon Robbins in:
12881         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12882         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12884         regex: fix memory leaks
12885         Problem and draft fix reported by Aharon Robbins in:
12886         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12887         * lib/regcomp.c (build_range_exp, build_charclass_op)
12888         * lib/regex_internal.c (re_dfa_add_node):
12889         Fix memory leak on failure.
12891 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12893         fts: don't unconditionally use leaf optimization for NFS
12894         NFS st_nlink are not accurate on all implementations,
12895         leading to aborts() if that assumption is made.
12896         See <https://bugzilla.redhat.com/1299169>
12897         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12898         the white list, and document the issue.
12900 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12901             KO Myung-Hun  <komh@chollian.net>
12903         gnulib-tool: don't assume ln -s works
12904         * gnulib-tool (func_ln_s): New function.
12905         (func_ln): Use it.
12907 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12909         utimes: detect utimes() correctly on OS/2 kLIBC
12910         utimes() of OS/2 kLIBC has some limitations.
12911         1. OS/2 itself supports a file date since 1980 year in local time.
12912         2. OS/2 itself supports only even seconds for a file time.
12913         3. utimes() of OS/2 kLIBC does not work on an opened file.
12914         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12915         * doc/posix-functions/utimes.texi: Document the above limitations of
12916         utimes() on OS/2 kLIBC.
12918 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12919             KO Myung-Hun  <komh@chollian.net>
12921         openat_proc_name: port to OS/2 kLIBC
12922         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12923         instead of /proc/self/fd.
12924         * lib/openat-proc.c (openat_proc_name):
12925         Don't assume file name length is less than INT_MAX.
12926         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12928 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12930         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12931         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12932         definitions of intptr_t and uintptr_t (which use int and unsigned)
12933         to avoid clashes with declarations of system functions like sbrk.
12934         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12935         _INTPTR_T_DECLARED before defining them.
12937         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12938         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12939         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12940         Declare on kLIBC.
12941         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12942         fd associated with dirp.
12943         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12944         dirp_fd_list.
12945         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12946         (dirfd): Implemented for kLIBC.
12947         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12948         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12949         succeeds.
12950         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12951         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12952         (REPLACE_DIRFD): Define to 1 if replaced.
12953         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12954         * modules/closedir (Depends-on): Add dirfd.
12955         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12956         condition.
12957         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12958         * modules/opendir (Depends-on): Add dirfd.
12960         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12961         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12962         * lib/dup.c (dup_nothrow): New.
12963         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12964         (klibc_dup2): New.
12965         * lib/fcntl.c (klibc_fcntl): New.
12966         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12967         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12968         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12969         fd.
12971         pipe_filter_ii_execute: port to OS/2 kLIBC
12972         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12973         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12974         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12975         Reuse Win32 code on OS/2 kLIBC.
12976         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12977         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12979         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12980         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12981         static inline function.  The implementation of wcwidth in wcwidth.c
12982         causes a "conflicting types" error.
12983         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12985         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12986         spawn() on OS/2 kLIBC is not silly like one on Windows
12987         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12988         empty string on OS/2 kLIBC.
12990         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12991         On OS/2 kLIBC, select() works only on sockets.
12992         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12994         binary-io: don't put fd in binary mode if it is a console on EMX
12995         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12996         a console on EMX.
12998 2016-01-15  Pádraig Brady  <P@draigBrady.com>
13000         doc: mention unfixed issues with unsupported localtime() values
13001         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
13002         returns nonsense for localtime(2^56).
13003         * doc/posix-functions/localtime_r.texi: Likewise.
13005 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13007         doc: mention setlocale() issues on OpenBSD
13008         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
13009         never fails, and the need to check categories individually.
13011 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13013         sig2str: list all signals on FreeBSD >= 7
13014         FreeBSD >= 7 is contravening POSIX by not defining NSIG
13015         to the maximal statically defined signal value.
13016         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
13017         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
13018         where available, even when NSIG is defined.
13020 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13022         acl-permissions: port to USE_ACL==0 platforms
13023         I ran into this problem when building bleeding-edge GNU Emacs
13024         with gcc -fsanitize=address on Fedora 23.  On this platform
13025         the ACL library does not pass the 'configure' test and Emacs
13026         then does not build due in part to what appear to be typos in the
13027         ACL part of Gnulib.
13028         * lib/acl-internal.c (free_permission_context):
13029         * lib/acl-internal.h (struct permission_context):
13030         Test whether USE_ACL is nonzero, not whether it is defined.
13032 2016-01-12  Martin Sebor  <msebor@redhat.com>
13034         mktime: rename macro to avoid glibc clash
13035         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
13036         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
13038 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13040         Port "$@" to OpenIndiana ksh93
13041         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
13042         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
13043         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
13044         bug long-dead shells, so remove the workaround.
13045         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
13046         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13047         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
13048         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
13049         Use "$@" instead of ${1+"$@"}.
13051         Port Universal Time settings to strict POSIX
13052         * build-aux/announce-gen, build-aux/bootstrap:
13053         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
13054         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13055         * build-aux/gnupload, build-aux/mkinstalldirs:
13056         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
13057         * build-aux/update-copyright, build-aux/useless-if-before-free:
13058         * build-aux/vc-list-files, tests/test-strftime.c:
13059         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
13060         but POSIX says the behavior of TZ="UTC" is undefined.
13062 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13064         msvc-inval: fix problem with unset shell var
13065         Problem reported by Karl Berry in:
13066         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
13067         * modules/msvc-inval (Depends-on):
13068         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
13069         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
13071 2016-01-01  Pádraig Brady  <P@draigBrady.com>
13073         tests: for compare_(), use cmp -s where available
13074         * tests/init.sh (compare_): Only fall back to cmp without
13075         the POSIX defined -s option, where this is not available.
13077 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13079         version-etc: new year
13080         * build-aux/gendocs.sh (version):
13081         * doc/gendocs_template:
13082         * doc/gendocs_template_min:
13083         * doc/gnulib.texi:
13084         * lib/version-etc.c (COPYRIGHT_YEAR):
13085         Update copyright dates by hand in templates and the like.
13086         * all files: Run 'make update-copyright'.
13088 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
13090         human: fix output buffer overrun by 1
13091         * lib/human.c (human_readable): Fix off-by-one typo in buffer
13092         calculation that could lead to a one-byte buffer overrun.
13094 2015-12-28  Daiki Ueno  <ueno@gnu.org>
13096         maint: fix operator precedence in mbrtowc test
13097         This is a fix for test breakage introduced by commit 45228d96; the
13098         equality expression must be parenthesized when negated with '!',
13099         otherwise we always get:
13101           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
13103         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13104         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13106 2015-12-23  James Youngman  <jay@gnu.org>
13108         regexprops-generic: update from regex.h
13109         * doc/regexprops-generic.texi: update by running the regexprops binary
13110         from findutils (the command line is 'regexprops "Regular Expressions"
13111         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13112         gnulib with GNU grep had made this document out-of-date.
13114 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13116         strftime-tests: avoid false failure on OS X
13117         * tests/test-strftime.c (struct localtime_rz_test): Add an
13118         ahistorical member which is used to warn rather than fail
13119         when tm_isdst isn't set for such entries.  This is the case for
13120         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13122 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13124         fts: ensure leaf optimization is used for NFS
13125         NFS provides usable dirent.d_type but not necessarily for all entries
13126         of large directories.  See <https://bugzilla.redhat.com/1252549>
13127         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13129 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13131         fts: enable leaf optimization for XFS
13132         XFS provides usable dirent.d_type only for DT_DIR,
13133         but the noleaf optimization still applies.
13134         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13136 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13138         intprops: comment fix
13139         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13140         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13142         intprops-test: work around GCC bug 68971
13143         Problem reported by Pádraig Brady in:
13144         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13145         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13146         (main): Add a case that better tests 64-bit long in this area.
13148 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13150         gnulib-tool: allow multiple --local-dir usage
13151         * gnulib-tool: Use --local-dir to construct compound
13152         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13153         PATH_SEPARATOR early.
13154         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13155         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13156         func_determine_path_separator because that needs to be detected
13157         earlier now.
13158         (func_determine_path_separator): New function.
13159         (func_path_foreach, func_path_foreach_inner): New functions.
13160         (func_path_prepend, func_path_append): Likewise.
13161         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13162         (func_lookup_file, func_all_modules): Use new functions to work
13163         with local_gnulib_path.
13164         (func_modules_in_dir, func_exists_module): New callbacks for
13165         func_path_foreach.
13166         (func_exists_module, func_get_tests_module): Likewise.
13167         (func_is_local_file, func_should_symlink): New helper methods.
13168         (func_add_file, func_update_file): Use new func_should_symlink
13169         instead, DRY.
13170         (func_reconstruct_cached_local_gnulib_path): New helper.
13171         (func_reconstruct_cached_dir): New callback.
13172         (func_import): The cached_local_gnulib_dir renamed to
13173         cached_local_gnulib_path similarly to local_gnulib_dir.
13174         Use new func_reconstruct_cached_local_gnulib_path.
13175         (func_count_relative_local_gnulib_path): New sub-method.
13176         (func_create_testdir): Use func_should_symlink, DRY.
13177         (func_create_megatestdir): Use new functions to work with
13178         local_gnulib_path correctly.
13179         (func_append_local_dir): New helper.
13181 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13183         fix freadptr to work with ungetc on all uClibc configs
13184         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13185         where GNU coreutils cut(1) generates invalid output on uClibc
13186         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13187         * lib/freadptr.c (freadptr): Return NULL if there are
13188         ungotten chars.  In this case freadseek() will iterate
13189         again to process the ungotten character.
13191 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13193         xalloc-oversized: improve performance with GCC 5
13194         * lib/xalloc-oversized.h (xalloc_oversized):
13195         Improve performance with GCC 5 by using __builtin_mul_overflow.
13197 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13199         intprops: new public macro EXPR_SIGNED
13200         Emacs can use this macro, so make it public.
13201         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13202         'Integer Type Determination', since some of these macros apply
13203         to non-integer types.  Clarify what kinds of constant expressions
13204         these macros return.  Say when the arguments can be non-integers.
13205         Mention newly published macro EXPR_SIGNED.
13206         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13207         make it public.  All uses changed.
13209         intprops: fix typo in clang port
13210         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13211         '__builtin_add_overflow' that is not caught by compiler.
13213 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13215         test-timespec: fix typo in previous change
13216         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13218         timespec-sub: fix overflow bug; add tests
13219         * lib/timespec-add.c (timespec_add):
13220         * lib/timespec-sub.c (timespec_sub):
13221         Work even if time_t is narrower than int (a theoretical
13222         possibility).  Redo code for a bit more clarity.
13223         * lib/timespec-sub.c (timespec_sub):
13224         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13225         * modules/timespec-tests, tests/test-timespec.c: New files.
13227         intprops-test: suppress -Woverlength-strings
13228         Problem reported by Pádraig Brady in:
13229         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13230         It is not worth the hassle to port this test to compilers that
13231         cannot handle long strings in diagnostics.
13232         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13234 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13236         quotearg: add quotearg_n_style_colon()
13237         This quotes with default options of the specified style,
13238         but with quoting enabled for instances of ':'.
13239         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13240         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13242 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13244         intprops: revise _WRAPV macros, revert _OVERFLOW
13245         The incompatible changes to the _OVERFLOW macros were too much of
13246         a hassle in practice, so revert them.  Instead, change the new
13247         _WRAPV macros to make them closer in behavior to GCC 5's new
13248         builtin_add_overflow etc. functions.  No other software was using
13249         these newly-added macros yet, so this should be OK.
13250         * NEWS: Revert previous change, since the incompatible change
13251         has been reverted, and nobody used the incompatible version.
13252         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13253         Document revised behavior.
13254         (Integer Range Overflow): Adjust example to match above revisions.
13255         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13256         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13257         these can be used in integer constant expressions again.
13258         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13259         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13260         needed.
13261         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13262         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13263         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13264         Remove, as they did not seem that useful.
13265         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13266         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13267         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13268         Support new semantics.
13269         (__has_builtin): New macro, if not alreay defined.
13270         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13271         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13272         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13273         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13274         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13275         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13276         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13277         New macros.
13278         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13280 2015-11-03  Jim Meyering  <meyering@fb.com>
13282         intprops: add parentheses for when OP has precedence lower than "-"
13283         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13284         "a OP b" must be parenthesized for when OP is like "<<", which has
13285         lower precedence than the following "-". Reported by Pádraig Brady.
13287 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13289         quotearg: constify get_quoting_style parameters
13290         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13291         * lib/quotearg.c (get_quoting_style): Likewise.
13293 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13295         quotearg: add support for $'' shell escaping
13296         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13297         items and descriptions.
13298         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13299         above types by quoting like "shell", but using $'...' syntax
13300         for non printable characters, which should provide unambiguous
13301         printable output for any input.
13302         * tests/test-quotearg-simple.c: Update accordingly.
13304 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13306         maint: use a more standard return from mbrtowc test
13307         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13308         from the test program as this is non standard and often
13309         indicates an unhandled case in the test program.
13310         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13312 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13314         intprops: add WRAPV and const flavors for GCC 5
13315         If available, use GCC 5's builtin functions for efficient integer
13316         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13317         and safely compute the low-order bits of the correct answer.
13318         A downside of these efficient functions is that they cannot be
13319         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13320         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13321         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13322         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13323         Document the changes.
13324         (Wraparound Arithmetic): New section.
13325         (Integer Range Overflow):
13326         Put this subsection last, since it's least useful.
13327         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13328         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13329         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13330         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13331         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13332         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13333         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13334         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13335         New macros.
13336         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13337         Generate calls to GCC builtins if available, for speed.
13338         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13339         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13340         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13341         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13342         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13343         (CHECK_QUOTIENT, CHECK_REMAINDER):
13344         Test WRAPV and CONST flavors (when available) too.
13346 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13348         doc: use extended timezone format in iso-8601 example
13349         * doc/parse-datetime.texi: The standard states that extended format
13350         is to be used consistently throughout.
13351         Note that lib/parse-datetime.y can handle either tz format.
13353 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13355         stdalign: port to Sun C 5.9
13356         * doc/posix-headers/stdalign.texi: Document this.
13357         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13358         __attribute__ ((__aligned__ (...))).
13360 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13362         time_rz: fix comment about tzalloc
13363         * lib/time_rz.c (tzalloc): Fix comment.
13365 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13367         stdalign: work around pre-4.9 GCC x86 bug
13368         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13369         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13370         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13372 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13374         maint.mk: sc_tight_scope: remove extraneous expressions
13375         * top/maint.mk (tight_scope): This is not really required since
13376         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13377         that matches all nm entries.  But it does remove extraneous entries
13378         that may be confusing or cause issue in future maintenance.
13380 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13382         time_rz: return NULL if localtime_r fails
13383         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13384         while still attempting to pacify bleeding-edge GCC.
13386         fts: port to C11 alignof
13387         * doc/posix-headers/stdalign.texi (stdalign.h):
13388         Document the C11 restriction.
13389         * lib/fts.c: Include stddef.h, for max_align_t.
13390         (fts_alloc): Align using max_align_t, not FTSENT.
13391         * modules/fts (Depends-on): Add stddef.
13393 2015-10-18  Jim Meyering  <meyering@fb.com>
13395         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13396         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13397         would see this:
13399         lib/time_rz.c: In function 'localtime_rz':
13400         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13401           [-Werror=nonnull]
13402                    if (tm && !save_abbr (tz, tm))
13403                        ^
13405         That was complaining about "tm" because it is a parameter that was
13406         declared with the __nonnull__ attribute.
13407         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13408         result of localtime_r.
13410 2015-10-17  Jim Meyering  <meyering@fb.com>
13412         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13413         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13414         name-extraction regexp mistakenly used \S+, and would mistakenly
13415         extract "*F" from "extern int *F()" rather than the desired "F".
13416         Use \w+ instead.
13418 2015-10-17  Jim Meyering  <meyering@fb.com>
13420         maint.mk: sc_tight_scope: factor and support OS X
13421         * top/maint.mk (_gl_tight_scope): Address three issues:
13422         - factor out four instances of code that wraps a string in "^...$"
13423         - allow nm-reported symbol names to have an optional leading "_"
13424         - add "main" to the list of ignored variable names, because on os x,
13425         "main" has nm-reported type "S" in the variable-checking section.
13427 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13429         safe-alloc-tests: fix typo in license header
13430         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13432 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13434         copy-file: fix mem leak in error case
13435         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13436         upon error opening or performing I/O to the src and dest files.
13438 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13440         localename: control langinfo.h inclusion
13441         This header is only used to work around buggy behavior in old
13442         versions of glibc, so do not include it all the time.  Otherwise
13443         we get build failures on systems that do not provide langinfo.h.
13444         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13445         in the source later on.
13446         The patch was originally submitted to gettext as:
13447         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13449 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13451         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13452         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13453         * lib/u64.c, lib/unistd.c:
13454         Append 'typedef int dummy;', to pacify compilers that are picky
13455         about empty translation units.
13457 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13459         accept4-tests: fix to avoid non portable flags
13460         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13461         as they are the only documented ones, and passing others may trigger
13462         EINVAL (seen on FreeBSD 10.1-RELEASE).
13463         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13464         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13466 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13468         gnulib-tool: fix tests of 'extensions' module
13469         This complements f8fe25fab60e3c687a124 commit.
13470         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13471         emitting of initial gl_EARLY macros.
13472         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13473         replaced with func_emit_pre_early_macros call.
13475 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13477         unicase/locale-language: fix typo in utf-8 cookie
13478         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13479         Problem reported by Zbigniew Jędrzejewski-Szmek.
13481 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13483         xalloc: do not worry about GCC 5 warning on 32 bit
13484         * lib/xalloc.h: Revert previous change.
13485         I found a better way to fix this in coreutils.
13487 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13489         xalloc: avoid GCC 5.1 warning on 32 bit
13490         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13491         xalloc_oversized(), which was seen to give this warning
13492         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13493         when simplifying conditional".
13495 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13497         uniname/uniname-tests: avoid compiler warnings
13498         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13499         unused local variables.
13500         (test_alias_lookup): Fix alias name display in failure cases.
13502 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13504         c-ctype: do not worry about EBCDIC + char signed
13505         Drop support for EBCDIC with char being signed, as this breaks too
13506         many programs.  Problem reported by Ben Pfaff in:
13507         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13508         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13509         char being signed.
13510         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13511         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13512         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13513         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13514         * tests/test-c-ctype.c (test_all):
13515         Simplify by assuming standard char values cannot be negative.
13516         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13518 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13520         c-ctype: port better to z/OS EBCDIC
13521         Problems reported by Daniel Richard G. in:
13522         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13523         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13524         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13525         (_C_CTYPE_OTHER_CNTRL): New macro.
13526         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13527         from SCHAR_MIN, as the functions are defined only from values
13528         promoted from char or from unsigned char, not necessarily from
13529         signed char.
13531 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13533         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13535         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13536         and ARFLAGS variables.  Doing this unconditionally could break
13537         later Automake's AM_PROG_AR invocation (at least it's
13538         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13540         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13541         Amsterdam Compiler Kit, so make the previous code to have effects
13542         only on ACK, and rather automatically call the Automake's
13543         AM_PROG_AR as soon as possible to decide other cases.
13545         References:
13546         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13548         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13549         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13550         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13551         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13552         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13553         'extensions' module is used.
13554         * modules/extensions (configure.ac-early): Remove as this snippet
13555         is added to gnulib-comp.m4 earlier anyway.
13557 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13559         sockets: MS Windows initalization fixes
13560         Problem reported by Test User in:
13561         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13562         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13563         Correct the endianness.
13564         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13565         number mismatch, not just on <.  Cleanup before any such failure.
13567 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13569         gc: fix detection of installed libgcrypt version
13570         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13571         at least as recent as 1.4.4.  The previously used macro is not
13572         available now, since modules were removed in version 1.6.0.
13574 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13576         c-ctype: rewrite to use inline functions
13577         This simplifies maintenance, since it makes for just one
13578         implementation of each function, letting the compiler have the fun
13579         of optimization.  In practice this works well nowadays with GCC.
13580         E.g., c_isascii might need only three instructions even though the
13581         source code lists every ASCII character individually in a large
13582         switch statement.
13583         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13584         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13585         * NEWS: Document the API change.
13586         * lib/c-ctype.c: Drastically simplify, since this now just expands
13587         inline functions.
13588         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13589         (C_CTYPE_INLINE): New macro.
13590         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13591         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13592         Verify that either ASCII or EBCDIC is being used.
13593         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13594         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13595         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13596         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13597         New private macros.
13598         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13599         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13600         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13601         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13602         (c_tolower, c_toupper): When converting, return the unsigned char,
13603         as that is what z/OS does.
13604         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13605         of some c-ctype.h macros.
13606         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13607         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13608         c_tolower promotion to be compatible with z/OS.
13610 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13612         gitlog-to-changelog: trim only trailing whitespaces
13613         This is fix for --format regression introduced by commit
13614         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13615         doubled %n string) had no effect anymore.  This format
13616         specification has been used e.g. by GNU paxuitils (commit
13617         edfd8bcc3).
13619         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13620         newlines in commmit messages.
13622 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13624         Test that c_iscntrl agrees with iscntrl, etc.
13625         Suggested by Daniel Richard G. in:
13626         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13627         * modules/c-ctype-tests (Depends-on): Add ctype.
13628         * tests/test-c-ctype.c: Include <ctype.h>.
13629         (NCHARS): New constant.
13630         (test_agree_with_C_locale): New function.
13631         (main): Use it.
13632         (test_all): Use named constants.
13634         c-ctype: improve c_isascii testing
13635         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13636         Add a test to count the number of ASCII characters.
13638 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13640         savewd: remove SAVEWD_CHDIR_READABLE
13641         It was problematic in the light of file systems that ignore umask.
13642         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13643         * NEWS: Document this.
13644         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13645         successful, -1 (setting errno) on failure, rather than something
13646         more complicated than that.
13647         * lib/mkdir-p.c (make_dir_parents):
13648         Do not use SAVEWD_CHDIR_READABLE.
13649         * lib/savewd.c (savewd_chdir):
13650         Remove support for SAVEWD_CHDIR_READABLE.
13651         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13653         c-ctype: port better to EBCDIC
13654         Problems reported by Daniel Richard G. in
13655         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13656         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13657         Include "verify.h".
13658         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13659         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13660         Define as enum constants with value false, if not defined, so that
13661         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13662         code more portable, as both branches of the 'if' are compiled on
13663         all platforms.
13664         (C_CTYPE_EBCDIC): New constant.
13665         Verify that the character set is either ASCII or EBCDIC.
13666         (to_char): New static function.
13667         (c_isascii, c_iscntrl):
13668         Assume standard control-character assignments for EBCDIC.
13669         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13670         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13671         Rewrite to use 'if' instead of 'ifdef'.
13672         Use to_char if non-ASCII.  Prefer <= to >=.
13673         Prefer true and false to 1 and 0, for booleans.
13674         (c_iscntrl): Use 'if', not 'ifdef'.
13675         * modules/c-ctype (Depends-on): Add verify.
13676         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13677         (to_char): New function.
13678         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13680 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13682         nanosleep: fix return code for interrupted replacement
13683         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13684         that we return -1 in the case the call is interrupted by a signal,
13685         rather than the current value of 1.
13686         Diagnosed and tested by Daniel Richard G.
13688 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13690         Diagnose ERE '()|\1'
13691         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13692         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13693         track of the set of previously-completed subexpressions available
13694         before the first alternative, and restore this set just before
13695         parsing each subsequent alternative.  This lets us diagnose the
13696         invalid back-reference in the ERE '()|\1'.
13698         regex: merge patches from libc
13700         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13701         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13702         * lib/regex_internal.h:
13703         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13705         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13706         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13707         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13708         wcscoll.
13709         * lib/regexec.c (check_node_accept_bytes): Likewise.
13711         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13712         Fix regex wcrtomb namespace (bug 18496).
13713         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13714         instead of wcrtomb.
13716         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13717         Fix regex wctype namespace (bug 18495).
13718         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13719         instead of towlower.
13720         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13721         instead of iswlower.  Call __towupper instead of towupper.
13722         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13723         instead of iswalnum.
13725         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13726         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13727         COLL_SYM in a couple of places to avoid uninitialized variable
13728         wanings on tilegx gcc 4.8.2.
13730         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13731         * lib/regex_internal.h: Remove NOT_IN_libc.
13733         2014-11-17  Andreas Schwab  <schwab@suse.de>
13734         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13736         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13737         Move findidx nested functions to top-level.
13738         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13739         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13740         Pass new arguments to findidx.
13741         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13742         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13743         Don't #include it inside the function.  Pass new arguments to findidx.
13744         * lib/regex_internal.h:
13745         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13746         (re_string_elem_size_at): Don't #include it inside the function.
13747         Pass new arguments to findidx.
13749         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13750         Check if DEBUG is defined in regex_internal.c
13751         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13753 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13755         ceill: detect buggy OpenBSD implementation
13756         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13757         which returns zero for small values.  Discussed here:
13758         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13760 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13762         mountlist: add me_mntroot field on Linux machines
13763         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13764         mount_entry so Linux machines based on /proc/self/mountinfo can
13765         distinguish between bind mounts and original mounts.  In reality bind
13766         mounts aren't treated differently than mountroot=/ mounts by the
13767         kernel, but the user often wants these bind mounts distinguished.
13768         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13769         More details at https://pad.lv/1432871
13771 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13773         doc: Describe to use multiple instances of gnulib
13774         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13775         instances of gnulib with different modules can be used, for example one
13776         for a lib and another one for associated tools.
13778 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13780         base32: mark function as __attribute__ const
13781         * lib/base32.h (isbase32): Mark __attribute__ const as
13782         suggested by GCC, and consistent with the base64 module.
13784 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13786         gnulib-tool: don't transform binary files with sed
13787         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13788         .mo and .class files.
13789         Reported by Denis Denisov.
13791 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13793         gperf: respect silent rules
13794         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13795         V_GPERF_0 for silent rules.
13796         * modules/iconv_open (Makefile.am): Use V_GPERF.
13797         * modules/unicase/locale-language (Makefile.am): Likewise.
13798         * modules/unicase/special-casing (Makefile.am): Likewise.
13799         * modules/unictype/category-byname (Makefile.am): Likewise.
13800         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13801         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13802         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13803         * modules/unictype/property-byname (Makefile.am): Likewise.
13804         * modules/unictype/scripts (Makefile.am): Likewise.
13805         * modules/uninorm/composition (Makefile.am): Likewise.
13807 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13809         Improve port of stdalign to C++11
13810         Problem reported by Sundaram in:
13811         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13812         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13813         (__alignas_is_defined): Define if C++11 or newer.
13815 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13817         pmccabe2html: fix gawk regex escaping
13818         * build-aux/pmccabe2html: Add one more backslash to properly
13819         escape the gsub replacement value.  Fixes this error:
13820         gawk: ./build-aux/pmccabe2html:425: \
13821         warning: escape sequence `\&' treated as plain `&'
13823 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13825         time_rz: port to pedantic memcpy
13826         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13827         that reject memcpy (..., NULL, 0).
13829 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13831         time_rz: port better to MinGW
13832         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13833         Instead, store the tzname copy in the struct tm_zone object.
13834         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13835         * lib/strftime.c [!_LIBC]:
13836         * lib/time_rz.c: Include time-internal.h.
13837         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13838         name from *TZ rather than from TZNAME, doable because *TZ now has
13839         a tzname_copy member.
13840         * lib/time-internal.h: New file, with contents taken from
13841         lib/time_rz.c.  It's separate because strftime.c now accesses
13842         struct tm_zone members.
13843         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13844         New member tzname_copy.
13845         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13846         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13847         Initialize tzname_copy member.
13848         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13849         in tzname_copy member.
13850         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13851         (restore_tzname): Remove; no longer needed.  All calls removed.
13852         * modules/time_rz (Files): Add lib/time-internal.h.
13854         time: port __need_time_t to MinGW
13855         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13856         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13858 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13860         strftime: fix newly-introduced bug on Solaris
13861         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13862         consistently at the start, rather than doing some of the setup at
13863         the start and some in the %Z format spec.  This is cleaner, and
13864         works better with time_rz on platforms like Solaris where struct
13865         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13866         mktime_z and localtime_rz can mess up the tzname cache.
13868         test-strftime: test for Solaris bug
13869         * modules/strftime-tests (Depends-on): Add strerror.
13870         * tests/test-strftime.c: Include <errno.h>.
13871         (posixtm_test): New function, containing the old 'main'.
13872         (struct tzalloc_test, struct localtime_rz_test): New types.
13873         (TZ, LT): New static vars.
13874         (tzalloc_test): New function.
13875         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13877         time_rz: port to Solaris etc.
13878         Works around a tzname problem on platforms like Solaris that have
13879         tzname but not tm_zone, by setting tzname at the appropriate time
13880         and restoring it later.
13881         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13882         New static vars.
13883         (save_abbr) [HAVE_TZNAME]: Set them.
13884         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13885         (restore_tzname): New function.
13886         (localtime_rz, mktime_z): Use it.
13888         time_rz: now LGPL
13889         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13891         time_rz: make a constant 'const'
13892         * lib/time_rz.c (local_tz): Now const.
13894         time_rz: fix off-by-one typo
13895         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13897 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13899         fprintftime, strftime: use timezone_t args
13900         * NEWS: Document the change.
13901         * lib/fprintftime.h (fprintftime):
13902         * lib/strftime.c (extra_args) [my_strftime]:
13903         * lib/strftime.h (nstrftime):
13904         Time zone arg is now of type timezone_t, not int.
13905         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13906         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13907         (my_strftime) [emacs && !my_strftime]:
13908         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13909         Remove; Emacs doesn't need this any more.
13910         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13911         fprintftime and nstrftime to call tzset.
13912         (ut) [!my_strftime]: Remove, replacing with ...
13913         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13914         (strftime_case_): Use localtime_rz and mktime_z instead
13915         of localtime_r and mktime.
13916         * modules/fprintftime (Depends-on): Add time_rz.
13917         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13918         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13920         time_rz: new module
13921         * MODULES.html.sh: Add time_rz.
13922         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13923         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13924         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13925         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13926         New var HAVE_TIMEZONE_T (default 0).
13927         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13928         New var GNULIB_TIME_RZ (default 0).
13929         * modules/time (time.h): Substitute the new vars.
13931         flexmember: license is now unlimited
13932         * modules/flexmember (License): Change to unlimited,
13933         since its only source file gives an unlimited license.
13935 2015-07-15  Eric Blake  <eblake@redhat.com>
13937         maint: update copyright paper procedures
13938         * config/srclist.txt: Drop outdated files.
13939         * doc/Copyright/conditions.txt: Update to latest.
13940         * doc/Copyright/assign.changes.manual: Delete.
13941         * doc/Copyright/assign.future.manual: Likewise.
13942         * doc/Copyright/assign.manual: Likewise.
13943         * doc/Copyright/assign.translation.manual: Likewise.
13944         * doc/Copyright/disclaim.changes.manual: Likewise.
13945         * doc/Copyright/disclaim.manual: Likewise.
13946         * doc/Copyright/disclaim.program: Likewise.
13948 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13950         localename: fix link error on Illumos
13951         Illumos defines __sun, but does not have getlocalename_l nor the
13952         equivalent.  This partially reverts commit 387c214.
13953         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13954         available, as well as uselocale.
13955         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13956         use getlocalename_l if it is not available.
13958 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13960         unistr/uN-strtok-tests: avoid a trivial leak
13961         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13962         input and delim after the multibyte delimiter tests.
13964 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13966         file-has-acl, acl-permissions: fix HP-UX typos
13967         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13968         * lib/file-has-acl.c (file_has_acl):
13969         * lib/set-permissions.c (context_acl_from_mode)
13970         (context_aclv_from_mode, set_acls):
13971         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13972         They were introduced by the recent ACL changes.
13974         regex: match current GNU grep behavior
13975         These symbols have not matched GNU grep behavior for quite some time.
13976         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13977         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13978         Change to match current GNU behavior.
13979         Simplify by expressing it as differences from POSIX BREs and EREs.
13980         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13982 2015-07-03  Jim Meyering  <meyering@fb.com>
13984         set-permissions.c: adjust acl_from_mode's cpp guard
13985         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13986         directives identical to those guarding the sole use.
13987         Otherwise, on some systems, we'd get a warning about
13988         the function being defined but not used.
13989         Also, filter through cppi to correct misleading indentation
13990         of cpp directives.
13992 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13994         tests: restrict shells to those that support 'local'
13995         The local keyword is very widely supported and used
13996         in tests in coreutils and grep at least.  Therefore
13997         restrict to testing with shells that support it.
13998         This mainly excludes /bin/sh on Solaris.
13999         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
14001 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
14002         and Daiki Ueno  <ueno@gnu.org>
14004         unistr/uN-strtok: handle multibyte delimiters
14005         Previously, uN_strtok moved PTR to the next unit to the token end.
14006         When DELIM contained a multibyte character, the new position could
14007         be a middle of a multibyte character.
14008         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
14009         after the token.
14010         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
14011         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
14012         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
14013         * modules/unistr/u8-strtok (Depends-on): Depend on
14014         unistr/u8-strmblen.
14015         * modules/unistr/u16-strtok (Depends-on): Depend on
14016         unistr/u16-strmblen.
14017         * modules/unistr/u32-strtok (Depends-on): Depend on
14018         unistr/u32-strmblen.
14019         * tests/unistr/test-u-strtok.h: New file.
14020         * tests/unistr/test-u8-strtok.c: New file.
14021         * tests/unistr/test-u16-strtok.c: New file.
14022         * tests/unistr/test-u32-strtok.c: New file.
14023         * modules/unistr/u8-strtok-tests: New file.
14024         * modules/unistr/u32-strtok-tests: New file.
14025         * modules/unistr/u16-strtok-tests: New file.
14027 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
14029         update-copyright: fix test failure with perl >= 5.22 (trivial)
14030         * build-aux/update-copyright: Escape a literal left curly bracket,
14031         required with perl >= 5.22
14033 2015-07-02  Daiki Ueno  <ueno@gnu.org>
14035         u{16,32}-strstr-tests: relax timeout condition
14036         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
14037         tests can take longer than 5 seconds to complete.
14038         Reported by Dagobert Michelsen in:
14039         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
14040         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
14041         seconds to 10 seconds.
14042         * tests/unistr/test-u32-strstr.c (main): Likewise.
14044 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14046         gnulib-common.m4: change the ARFLAGS default to 'cr'
14047         In some GNU/Linux distributions people started to compile 'ar'
14048         binary with --enable-deterministic-archives (binutils project).
14049         That, however, in combination with previous autotools long time
14050         working default AR{_,}FLAGS=cru causes warnings on such
14051         installations:
14052         ar: `u' modifier ignored since `D' is the default (see `U')
14053         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
14054         set already.
14056 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14058         selinux-h: avoid double free after *getfilecon()
14059         Originally reported by Ben Shelton on bug-tar:
14060         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
14061         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
14062         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
14063         param should be freed by freecon(3) (regardless the return value).
14065 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
14067         fix pty related tests issues on Windows (trivial)
14068         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
14069         however it's still present in tests/ subdirectory of the final project.
14070         Therefore avoid it to pass `make check`.
14071         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
14072         will just return -ENOSYS, so avoid this non applicable test allowing
14073         the build to proceed.
14075 2015-07-01  Pádraig Brady  <P@draigBrady.com>
14077         acl: fix definition of acl_from_mode on FreeBSD
14078         This was causing basic coreutils copy operations to fail
14079         with ENOTSUP or ENOENT error messages.
14080         * lib/acl-internal.h (acl_from_mode): Only define when
14081         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
14082         of acl_from_mode() defined in lib/set-permissions.c to
14083         be used on FreeBSD at least.
14084         * lib/set-permissions.c: Fix up comment spelling,
14085         and a redundant variable assignment; noticed in passing.
14087 2015-06-30  Pádraig Brady  <P@draigBrady.com>
14089         readutmp: port to FreeBSD >= 9
14090         * lib/readutmp.h: Map utmpxname() to setutxdb().
14091         With that coreutils who(1) and pinky(1) tests pass.
14093 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14095         mgetgroups: port to strict OS X
14096         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
14097         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
14098         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
14099         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
14101 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14103         mgetgroups: port to strict OS X
14104         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
14105         Document the getgrouplist problem.
14106         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14107         New macro.
14108         (mgetgroups): Use it.
14109         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14110         Check for OS X signature for getgrouplist.
14112 2015-06-29  Jim Meyering  <meyering@fb.com>
14114         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14115         It started like this when building coreutils' latest on OS X,
14116         invoking ./configure with a nonempty --cache=.cache:
14118           lib/linkat.c:46:42: error: operator '||' has no right operand
14119           lib/linkat.c: In function 'rpl_linkat':
14120           lib/linkat.c:330:27: error: #if with no expression
14122         Here's linkat.c's line 46:
14124           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14126         Here's some context:
14128           $ grep linkat_nofoll .cache
14129           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14130           $ grep LINKAT_SYM lib/config.h
14131           #define LINKAT_SYMLINK_NOTSUP
14133         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14134         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14135         but that violates a tenet of AC_CACHE_CHECK: it must
14136         have no side effect other than setting its cache variable.
14138         What happens is that when the cache is set, we'd skip the
14139         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14140         defined to whatever value it happened to have in configure's
14141         environment.  In my case, it was not defined, so this later code:
14143           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14144             [Define to 1 if linkat can create hardlinks to symlinks])
14146         would emit code with an empty RHS.
14148         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14149         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14151 2015-06-28  Jim Meyering  <meyering@fb.com>
14153         mountlist: avoid an unused-label warning on OS X
14154         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14155         Building on OS X, I saw a warning about the "free_then_fail" label
14156         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14158         error.c: correct printf-style format: %d -> %u
14159         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14160         rather than %d, to match the type of "line_number", unsigned int.
14162 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14164         fts: avoid reading beyond the heap allocation
14165         GCC 5.1.1 with -O2 and -fsanitize=address reports
14166         a read of size 4 from a heap object of size 3 is indeed invalid,
14167         though this may be due to incorrect padding assumptions by GCC, see:
14168         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14169         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14170         * modules/fts: Depend on stdalign.
14172 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14174         savedir: avoid undefined behavior in qsort call
14175         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14176         "runtime error: null pointer passed as argument 1,
14177          which is declared to never be null"
14178         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14180 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14182         userspec: avoid undefined behavior in gettext call
14183         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14184         "runtime error: null pointer passed as argument 2,
14185          which is declared to never be null"
14186         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14188 2015-06-20  Glenn Morris  <rgm@gnu.org>
14190         gitlog-to-changelog: improve gitmerge.el commits
14191         Let the Emacs ChangeLog generation process exclude "skipped"
14192         messages from merge commits (Bug#20717).
14193         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14195 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14197         wchar: fix MinGW compilation warnings
14198         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14199         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14200         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14202 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14204         uniname/uniname-tests: use pristine data files
14205         For copyright and maintenance reasons, use the data files from UCD
14206         without modification.
14207         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14208         (getfield): Remove.
14209         (aliases_count): New global variable.
14210         (fill_names): Skip comments and empty lines in the input.  Don't
14211         use getfield.
14212         (fill_aliases): Likewise.
14213         (main): Change the expected command line arguments to:
14214         NAMES... ["--" ALIASES...].
14215         * tests/uniname/test-uninames.sh: Adjust to the change in
14216         test-uninames.c.
14217         * tests/uniname/UnicodeDataNames.txt: Remove.
14218         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14219         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14220         file from Unicode 8.0.0.
14222 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14224         linked-list, linkedhash-list: avoid compiler warnings
14225         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14226         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14228 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14230         libunistring: bump minimum version to 0.9.6
14231         * all modules depending on updated Unicode data: Regenerate.
14232         The modules are listed by a script that does:
14233         - for each file listed by: git show --oneline --name-only 705f4efc
14234           - deduce the containing modules, based on "Files:"
14235         - deduce the modules which depend on the containing modules, based
14236           on "Depends-on:"
14238 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14240         uniname/uniname: update to Unicode 8.0.0
14241         * lib/uniname/uninames.h: Regenerate.
14242         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14243         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14245 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14247         libunistring: update to Unicode 8.0.0
14248         * lib/gen-uni-tables.c (SIZEOF): New macro.
14249         (output_numeric): Increase the maximum number of fractions from
14250         128 to 160.  Increase the level3 value width from 7 bits to 8
14251         bits.  Use SIZEOF instead of a hard-coded integer.
14252         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14253         0x28000.
14254         (fill_blocks): Increase the maximum number of blocks from 256 to
14255         384.  Use SIZEOF instead of a hard-coded integer.
14256         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14257         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14258         value width.
14259         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14260         a new case added to LBP22.
14261         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14262         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14263         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14264         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14265         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14266         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14267         lib/uniwidth/width.c.
14268         * all generated files under lib/uni* and tests/uni*: Regenerate.
14270 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14272         gnu-web-doc-update: add --mirror to remove stale files
14273         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14274         out of date files from the CVS server.  Since this is usually
14275         appropriate, a prompt is given when the option is not specified,
14276         along with the `cvs remove` command that would be run.
14278 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14280         acl-permissions: pacify -Wsuggest-attribute=const
14281         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14282         * lib/acl-internal.h (free_permission_context):
14283         Declare with attribute const if ! (defined USE_ACL &&
14284         (HAVE_ACL_GET_FILE || defined GETACL)).
14286         fsync: document AIX misbehavior
14287         * doc/posix-functions/fsync.texi (fsync):
14288         Document failure on AIX with read-only file descriptor.
14290 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14292         stdio: Don't redefine gets when using C++
14293         * lib/stdio.in.h (gets): Disable warning on C++.
14295 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14297         acl-permissions: port to AIX, C89 HP-UX
14298         Problems reported by Michael Felt.
14299         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14300         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14301         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14302         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14303         Add cast for AIX, whose system calls are declared to accept
14304         char * even though the arguments are really char const *.
14305         * lib/get-permissions.c (get_permissions):
14306         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14307         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14308         that broke a build.
14309         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14310         Rework types to pacify xlc.
14312 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14314         vasprintf-posix: avoid compiling vasnprintf where possible
14315         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14316         module where not required.  For example on a GNU/Linux system
14317         when gnulib-tool is run with the --conditional-dependencies option.
14319 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14321         file-has-acl: fix build on Mac OS X 10
14322         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14323         which has an incompatible 6 parameter getxattr() call.
14324         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14325         call on Mac OS X >= 10.4.
14326         * doc/glibc-functions/fgetxattr.texi: Likewise.
14327         * lib/file-has-acl.c: Revert to more complete combined check.
14328         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14329         Reported by Jack Howarth.
14331 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14333         prefix-gnulib-mk: remove no longer needed special case
14334         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14335         continued lib_SOURCES lines are no longer present,
14336         so special case handling of such entries is not required.
14338 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14340         acl: don't depend on the deprecated qacl module
14341         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14343 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14345         gnulib-tool: concatenate lib_SOURCES to a single line
14346         * gnulib-tool: Refactor the line merging sed logic,
14347         and use that to output a single lib_SOURCES line for each module.
14348         gnulib using projects often postprocess this output to prepend
14349         subdir paths to each item, and having a single line simplifies this
14350         processing allowing better decoupling from the gnulib-tool output.
14352 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14354         pthread_sigmask: discount system version if a simple macro (trivial)
14355         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14357         function to ensure it's available.
14359 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14361         readlinkat: avoid OS X 10.10 trailing slash bug
14362         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14363         has this bug.
14364         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14365         that OS X 10.10 has this function.
14366         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14367         as done for readlink().
14368         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14369         trailing slash bug, and assume readlinkat() has the same issue.
14370         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14371         rather than the correct $gl_cv_decl_readlinkat_works.
14373 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14375         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14376         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14377         module rewrite.
14379         acl-permissions: Fix build on Solaris and Cygwin
14380         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14381         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14382         ace_entries variables have moved into struct permission_context but
14383         they were still accessed as local variables here.
14385 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14387         linkat: avoid OS X 10.10 trailing slash with symlink bug
14388         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14389         causes the symlink to be dereferenced, and if it points
14390         to a non existent file, that file will be created as
14391         a hard link to "path1".
14392         This fixes a test failure in test-linkat.c.
14393         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14394         this case.  The existing workaround in linkat.c for
14395         trailing slash issues, suffices for this case.
14396         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14397         the list of platforms with trailing slash issues.
14399 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14401         unlinkat: handle ignoring of ".." on Darwin 14
14402         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14403         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14404         so handle in the same manner.
14405         * m4/unlinkat.m4: Comment on this Darwin issue.
14406         * doc/posix-functions/unlink.texi: Update the latest version
14407         where the issue was seen.
14408         * doc/posix-functions/unlinkat.texi: Mention this issue.
14409         Fixes a test failure in test-unlinkat.c.
14411 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14413         qacl: split into qcopy-acl and qset-acl
14414         Emacs needs the former, but not the latter.
14415         * modules/acl-permissions: New file, containing most of the old qacl.
14416         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14417         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14418         * modules/qcopy-acl, modules/qset-acl: New files.
14419         * MODULES.html.sh (File system functions):
14420         Mention the new modules, and mention qacl while we're at it.
14422 2015-05-27  Glenn Morris  <rgm@gnu.org>
14424         gitlog-to-changelog: new option --ignore-line
14425         (This patch is imported from the GNU Emacs master.)
14426         This option ignores individual commit lines matching a pattern.
14427         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14429 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14431         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14432         Implement get_permissions and set_permissions primitives for getting all
14433         the permissions of a file, storing them, and later setting them. (In the
14434         minimal case, the permissions consist only of a file mode.) Reimplement
14435         qset_acl and qcopy_acl based on these new primitives: this avoids code
14436         duplication and makes error handling more consistent.
14437         The Solaris and Cygwin code still uses duplicate code paths for setting
14438         a file mode while making sure that no acls exist and setting an explicit
14439         acl; this is no worse than before, but could be cleaned up.  The AIX
14440         code still doesn't read ACLs, it only makes sure that acls don't get in
14441         the way when setting a file mode.
14442         * lib/acl-internal.h (struct permission_context): New data structure.
14443         (get_permissions, set_permissions, free_permission_context): Declare.
14444         * lib/acl-internal.c (free_permission_context): New helper function.
14445         * lib/get-permissions.c (get_permissions): New helper function split off
14446         from qcopy_acl.
14447         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14448         AIX, set a file's permissions based only on a file mode.
14449         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14450         other platforms construct a temporary acl from the file mode and set
14451         that acl in the same way as setting an acl read from the source file.
14452         This should help avoid code duplication and inconsistent / buggy
14453         behavior.
14454         (set_acls): New helper function Split off from qcopy_acl.
14455         (chmod_or_fchmod): Moved here from qset-acl.c.
14456         (set_permissions): New helper function.
14457         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14458         set_permissions.
14459         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14460         * modules/qacl: Add get-permissions.c and set-permissions.c.
14462         file-has-acl: Split feature tests again (Bug#20667)
14463         * lib/file-has-acl.c: Instead of testing for
14464         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14465         define them when needed.
14466         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14467         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14469 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14471         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14472         This avoids a conflict with "FORTIFY_SOURCE" variants
14473         of the string functions when they're replaced on NetBSD-6.0.1
14474         and Darwin-14.3.0 at least.
14475         * lib/string.in.h: Avoid including our "lib/string.h" while
14476         including the system <string.h>.
14478 2015-05-26  Eric Blake  <eblake@redhat.com>
14480         stdio: limit __gnu_printf__ witness to gcc 4.4+
14481         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14482         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14484         error: use correct printf attributes on mingw
14485         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14487         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14488         * modules/inttypes (Depends-on): Require extensions, so that mingw
14489         always uses GNU style inttypes.
14490         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14492         stdio: fix probe on mingw under gcc 5.1
14493         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14494         around new gcc preprocessor rules.
14496 2015-05-07  Glenn Morris  <rgm@gnu.org>
14498         gitlog-to-changelog: parse "Tiny-change"
14499         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14500         "Copyright-paperwork-exempt".  (Bug#20324)
14502 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14504         doc: document glibc posix_fallocate() issues
14505         * doc/posix-functions/posix_fallocate.texi: Mention the
14506         glibc efficiency problems and issues with NFS.
14508 2015-05-05  Karl Berry  <karl@freefriends.org>
14510         * build-aux/gendocs.sh (usage): document new css default
14511         for HTML (--htmlarg).
14513 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14515         extern-inline: no need for workaround in GCC 5.1
14516         * doc/extern-inline.texi (extern inline):
14517         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14518         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14519         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14520         two we can remove these workarounds.
14522 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14524         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14525         Avoid [-Wunknown-attributes] warnings like:
14526         warning: unknown attribute '__alloc_size__' ignored
14527         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14528         with clang, as support has been fully removed as of clang 3.5:
14529         https://github.com/llvm-mirror/clang/commit/c047507a
14530         * lib/eealloc.h: Likewise.
14531         * lib/pagealign_alloc.h: Likewise.
14533 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14535         tests: pacify GCC 5.1's stricter printf checking
14536         * tests/test-dirname.c (main):
14537         * tests/test-getaddrinfo.c (simple):
14538         * tests/test-getlogin.c (main):
14539         * tests/test-getndelim2.c (main):
14540         * tests/test-inttostr.c (CK):
14541         * tests/test-md5.c (main):
14542         * tests/test-read-file.c (main):
14543         * tests/test-sha1.c (main):
14544         Fix mismatches between printf format and value signedness.
14545         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14546         Remove, as CAST_VAL always returned a value of type uintmax_t.
14548         fts: port to GCC 5.1 with --enable-gcc-warnings
14549         Without this fix, GCC 5.1 (correctly) warns about a subscript
14550         error on the fts_name component of FTSENT.  It's actually a
14551         flexible member, so define it that way on C99 or later hosts.
14552         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14553         structure that now has a flexible array member.
14554         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14555         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14556         * modules/fts (Depends-on): Add flexmember.
14558 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14560         file-has-acl: port to CentOS 6
14561         Problem reported by Tom G. Christensen in:
14562         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14563         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14564         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14565         HAVE_GETXATTR.
14566         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14567         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14568         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14569         file-has-acl.c actually needs.
14571 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14573         file-has-acl: always return false when ACLs aren't supported
14574         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14575         change the GNU/Linux getxattr path, to transform "not supported"
14576         errors to a false return rather than an error.  This is handled
14577         within file_has_acl() due to the platform specific tests to
14578         determine if ACLs are not supported.
14580 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14582         gettext: propagate po/Makefile.in.in too
14583         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14584         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14585         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14586         between Makefile.in.in and the gettext-runtime m4 files.
14588 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14590         file-has-acl: new module, split from acl
14591         And add a new module file-has-acl-tests to match.
14592         I ran into a problem with the recent changes to the acl module,
14593         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14594         When using the fixed version with Emacs, I discovered that
14595         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14596         had multiple libraries, but needed only one), so I fixed that too.
14597         * NEWS: Document this incompatible change.
14598         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14599         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14600         Initialize gl_need_lib_has_acl.
14601         (gl_FUNC_ACL): Require it.
14602         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14603         Move the file-has-acl.c-relevant stuff to ...
14604         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14605         use_xattrs = 0' typo, and omit some needless work.  Set
14606         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14607         when gl_FUNC_ACL is called.
14608         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14609         (Link): Remove $(LIB_HAS_ACL).
14610         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14611         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14612         modules/file-has-acl-tests.
14613         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14615         manywarnings: add GCC 5.1 warnings
14616         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14617         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14618         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14619         -Wsuggest-override, -Wuse-without-only.  Change
14620         -Wnormalized=... operands to match 5.1.
14621         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14622         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14623         -Wdiscarded-qualifiers, -Wformat-signedness,
14624         -Wincompatible-pointer-types, -Wint-conversion,
14625         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14626         -Wshift-count-negative, -Wshift-count-overflow,
14627         -Wsizeof-array-argument, -Wsuggest-final-methods,
14628         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14629         and add -Warray-bounds=2 as a special case.
14631 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14633         doc: update FDL template to match FDL examples.
14634         * doc/alloca-opt.texi:
14635         * doc/alloca.texi:
14636         * doc/c-ctype.texi:
14637         * doc/c-strcase.texi:
14638         * doc/c-strcaseeq.texi:
14639         * doc/c-strcasestr.texi:
14640         * doc/c-strstr.texi:
14641         * doc/c-strtod.texi:
14642         * doc/c-strtold.texi:
14643         * doc/ctime.texi:
14644         * doc/error.texi:
14645         * doc/gcd.texi:
14646         * doc/gnulib-tool.texi:
14647         * doc/inet_ntoa.texi:
14648         * doc/intprops.texi:
14649         * doc/lib-symbol-visibility.texi:
14650         * doc/maintain.texi:
14651         * doc/parse-datetime.texi:
14652         * doc/quote.texi:
14653         * doc/regexprops-generic.texi:
14654         * doc/standards.texi: Remove spurious 'with' in FDL license
14655         template.
14657 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14659         lstat: fix cross-compilation 'ln -s' problem
14660         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14661         Have the test program call 'symlink' rather than a separate
14662         script run 'ln -s'; this is more likely to work in
14663         cross-compilation environments.  Reported by Pavel Fedin in:
14664         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14666 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14668         gendocs.sh: default to a common CSS style sheet for HTML output
14669         * build-aux/gendocs.sh (htmlarg): Change default value.
14671 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14673         gnulib-tool: output bold attribute more portably
14674         * gnulib-tool (func_show_module_list): Change hexadecimal
14675         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14676         encoded numbers as arguments to `printf' is not portable,
14677         and is not claimed by POSIX.  This is the case with FreeBSD.
14679 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14681         qacl: Simplify HP-UX acl_nontrivial check
14682         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14683         acl_nontrivial. Check if the acl has at most three entries instead (it must
14684         have exactly three entries according to the HP-UX documentation). Ignore
14685         uids and gids as long as an entry is either for a user (i.e., the owner),
14686         a group (i.e., the owning group), or others.
14687         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14688         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14690 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14692         acl: On Linux, check for acls without libacl
14693         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14694         library function to check for the presence of acls, avoiding a library.
14695         * lib/file-has-acl.c: Include xattr headers if we have them.
14696         (file_has_acl): On Linux, use getxattr().
14697         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14698         file_has_acl(). Check for xattr headers and getxattr().
14700 2015-04-14  Ángel González  <keisial@gmail.com>
14702         tempname: avoid unused parameter warnings (trivial)
14703         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14704         (try_nocreate): Likewise.
14706 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14708         fseeko: fix build failure on NetBSD >= 6 (trivial)
14709         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14710         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14712 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14714         gitlog-to-changelog: port to MS-Windows
14715         * build-aux/gitlog-to-changelog (git_dir_option):
14716         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14717         MS-Windows Perl.  Reported by Eli Zaretskii in:
14718         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14720 2015-04-07  Karl Berry  <karl@gnu.org>
14722         gendocs: new option --tex for passing args to texi2dvi.
14723         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14724         (TEXI2DVI): cut to just command name.
14725         (usage): mention new option, and update copyright.
14726         <generate_tex>: use it.
14728 2015-04-07  Karl Berry  <karl@gnu.org>
14730         * config/srclistvars.sh (GETTEXT): new definition.
14731         * config/srclist.txt: use it for gettext .m4 files.
14732         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14733         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14734         and continuing into April.
14736 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14738         uniname/uniname-tests: fix failure due to alias
14739         Reported by Jack Howarth in:
14740         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14741         * tests/uniname/test-uninames.c (name_has_alias): New function.
14742         (test_inverse_lookup): Exclude character name with valid alias,
14743         from randomly generated character names.
14744         (main): Fill unicode_aliases before calling test functions.
14746 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14748         hash: remove deprecated hash_insert0 function
14749         * lib/hash.h (hash_insert0): Remove deprecated function.
14750         * lib/hash.c (hash_insert0): Likewise.
14752 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14754         mountlist: remove dependency on libmount
14755         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14756         directly, rather than depending on libmount, which has many
14757         dependencies due to its dependence on libselinux, as detailed at:
14758         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14759         Note we restrict this to __linux__ as that's probably where this
14760         interface will remain.  If ever porting, it would be best
14761         to first pull the makedev() wrapper from coreutils to a gnulib module.
14762         Note also we don't add a getline dependency to the mountlist module,
14763         as all Linux versions are sufficient.
14765 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14767         stddef: port to pre-C11 GCC on x86
14768         On this platform, max_align_t should have an alignment of 8 even
14769         though the storage alignments of double, long, etc. max out at 4.
14770         Inspired by a comment of Andreas Schwab's here:
14771         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14772         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14773         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14774         * tests/test-stddef.c: Test __alignof__ too, if available.
14776 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14778         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14779         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14781 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14783         yesno: make EOL optional in ENABLE_NLS case also (trival)
14784         * lib/yesno.c (yesno): Check for EOL before replacing.
14785         * tests/test-yesno.sh: Add a test case (test along with gettext).
14787 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14789         fdopendir-tests: test it does not close its arg
14790         * tests/test-fdopendir.c (main): Test that fdopendir does not
14791         close its argument.  From a suggestion by David Grayson in:
14792         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14794 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14796         gitlog-to-changelog: trim trailing white space
14797         * build-aux/gitlog-to-changelog (main):
14798         Trim trailing white space from commit message lines.
14799         This is helpful for processing the GNU Emacs repository,
14800         which dates back to 1985 and contains a lot of such lines.
14802         gitlog-to-changelog: new option --ignore-matching
14803         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14804         Support new option --ignore-matching=PAT, which ignores all
14805         commit messages whose first line matches PAT.
14807 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14809         fdopendir: port better to MinGW
14810         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14811         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14812         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14813         * modules/fdopendir (Depends-on): Add dirfd.
14815 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14817         fdopendir: fix typo in comment
14818         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14820 2015-03-09  Eric Blake  <eblake@redhat.com>
14822         error: document all entry points provided
14823         * doc/glibc-functions/error_print_progname.texi
14824         (error_print_progname): Mention the error module.
14825         * doc/glibc-functions/error_at_line.texi (error_at_line):
14826         Likewise.
14827         * doc/glibc-functions/error_message_count.texi
14828         (error_message_count): Likewise.
14829         * doc/glibc-functions/error_one_per_line.texi
14830         (error_one_per_line): Likewise.
14832 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14834         vasnprintf: pacify clang 3.5.0
14835         Problem reported by Werner Lemberg in:
14836         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14837         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14838         The casts aren't needed, since the characters in question are ASCII.
14840 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14842         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14843         * lib/dirent--.h (GNULIB_defined_opendir):
14844         * lib/dirent.in.h (GNULIB_defined_opendir)
14845         (GNULIB_defined_closedir):
14846         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14847         #undef only if Gnulib defined it.
14849         poll: port to MSVC v18 on MS-Windows 8.1
14850         Problem reported by Gisle Vanem in:
14851         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14852         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14853         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14854         Add sys_socket.
14856 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14858         tests: support stderr verification with returns_()
14859         * tests/init.sh (returns_): Disable tracing for this wrapper
14860         function, so that stderr of the wrapped command is unchanged,
14861         allowing for verification of the contents.
14863 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14865         passfd: avoid valgrind uninitalised data warning
14866         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14867         to include just the fd we've initialized, rather than including
14868         the extra space used for alignment.
14870 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14872         uniwbrk/u32-wordbreaks-tests: fix copyright
14873         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14875         dup2: doc and test for Android bug
14876         Reported by Kevin Cernekee in:
14877         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14878         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14879         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14881 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14883         Replace dup2() on Android
14884         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14885         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14886         fails.  Using rpl_dup2() fixes this because it has an explicit test
14887         for this condition.
14889 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14891         Android doesn't define RLIM_SAVED_*
14892         Portability problem reported by Kevin Cernekee in:
14893         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14894         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14895         Mention the portability problem.
14896         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14897         Define if not defined.
14898         * m4/dup2.m4 (gl_FUNC_DUP2):
14899         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14900         Likewise.
14902 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14904         vasnprintf-posix-tests: use consistent test
14905         * tests/test-vasnprintf-posix.c (test_function):
14906         Use "<" in assert instead of "<=", for consistency with other tests.
14908 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14910         printf, isinf, etc.: noncanonical != NaN
14911         Do not require that isinf, printf, etc. treat noncanonical
14912         values as NaNs.  Instead, require only that they do not crash.
14913         Problem reported by Joseph Myers in:
14914         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14915         * doc/posix-functions/dprintf.texi (dprintf):
14916         * doc/posix-functions/fprintf.texi (fprintf):
14917         * doc/posix-functions/isfinite.texi (isfinite):
14918         * doc/posix-functions/isinf.texi (isinf):
14919         * doc/posix-functions/isnan.texi (isnan):
14920         * doc/posix-functions/printf.texi (printf):
14921         * doc/posix-functions/snprintf.texi (snprintf):
14922         * doc/posix-functions/sprintf.texi (sprintf):
14923         * doc/posix-functions/vdprintf.texi (vdprintf):
14924         * doc/posix-functions/vfprintf.texi (vfprintf):
14925         * doc/posix-functions/vprintf.texi (vprintf):
14926         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14927         * doc/posix-functions/vsprintf.texi (vsprintf):
14928         Document this.
14929         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14930         * m4/isinf.m4 (gl_ISINFL_WORKS):
14931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14932         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14933         * tests/test-isfinite.c (test_isfinitel):
14934         * tests/test-isinf.c (test_isinfl):
14935         * tests/test-isnan.c (test_long_double):
14936         * tests/test-isnanl.h (main):
14937         * tests/test-snprintf-posix.h (test_function):
14938         * tests/test-sprintf-posix.h (test_function):
14939         * tests/test-vasnprintf-posix.c (test_function):
14940         * tests/test-vasprintf-posix.c (test_function):
14941 o       Test only that noncanonical values do not cause crashes, not that
14942         they are treated as NaNs.  In some cases this means a larger
14943         output buffer is needed.
14945 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14947         fts: remove redundant close() (trivial)
14948         * lib/fts.c (fts_read): Remove redundant call to close().
14949         Spotted by coverity.
14951 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14953         getdtablesize: port better for Android
14954         Problem reported by Kevin Cernekee in:
14955         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14956         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14957         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14958         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14960         poll: fixes for large fds
14961         * lib/poll.c (poll): Don't check directly for NFD too large.
14962         Don't rely on undefined behavior in FD_SET when an arg exceeds
14963         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14964         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14965         as that makes the test a bit stricter.
14967 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14969         fcntl: Fix cross compiling
14970         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14971         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14973 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14975         dup2, fcntl: cross-compile better for Android
14976         Problem reported by Kevin Cernekee in:
14977         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14978         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14979         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14980         there's little need to cross-compile for older kernels nowadays.
14981         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14982         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14984 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14986         getopt: don't crash on memory exhaustion
14987         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14988         memory exhaustion.  In the _LIBC case we use alloca() as is
14989         already done in glibc, so we don't need to consider the separate
14990         error path in that awkward case.  Also fix a memory leak when
14991         ambiguous options are present.
14992         Reported by Tobias Stoeckmann
14994 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14996         tempname: allow compilation with C++ (trivial)
14997         * lib/tempname.h [C++]: Specify extern "C" linkage.
14998         * lib/tempname.h (try_tempname):
14999         * lib/tempname.c (__try_tempname, __gen_tempname):
15000         Rename 'try' to 'tryfunc'.
15002 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15004         dup2, fcntl: port to AIX
15005         * m4/dup2.m4 (gl_FUNC_DUP2):
15006         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15007         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
15008         The former works on AIX 7.1 but the latter does not.
15009         Also, this may work better with Android; see:
15010         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
15012 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15014         getdtablesize, dup2, fcntl: port to Android
15015         Problem reported by Kevin Cernekee in:
15016         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
15017         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
15018         Mention that getdtablesize doesn't work on Android.
15019         * lib/getdtablesize.c: Use getrlimit substitute only if
15020         getdtablesize is declared.  This should suffice for Cygwin
15021         while not breaking Android.
15022         * m4/dup2.m4 (gl_FUNC_DUP2):
15023         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15024         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
15025         standardized but the latter is not, and sysconf works on Android.
15026         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
15027         Also check that getdtablesize is declared.
15028         This removes the need for a special case for Android.
15030 2015-02-16  Kevin Cernekee  <cernekee@google.com>
15032         localename: Implement gl_locale_name_thread_unsafe for Android
15033         * lib/localename.c: Android API level >= 21 supports two hardcoded
15034         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
15035         the internal __locale_t struct.
15037 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
15039         fts: avoid crash when a cycle is added while traversing
15040         This could be triggered by auto-mounting a recursive bind mount.
15041         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
15042         * lib/fts.c (fts_read): Avoid removing the original hash table item
15043         when leaving a directory that caused a cycle, and preserve the FTS_DC
15044         flag.
15046 2015-02-16  Daiki Ueno  <ueno@gnu.org>
15048         uniname/uniname: support character alias
15049         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
15050         Generate one-way mapping from aliases to codepoints in the
15051         generated tables.  Special case variation selectors to reduce
15052         table size.
15053         * lib/uniname/uniname.c (unicode_character_name): Special case
15054         variation selectors.
15055         (unicode_name_character): Special case variation selectors and
15056         their aliases.
15057         * lib/uniname/uninames.h: Regenerate.
15058         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
15059         * modules/uniname/uniname-tests (Files): Add
15060         tests/uniname/NameAliases.txt.
15061         * tests/uniname/test-uninames.c: Mark as static.
15062         (ALIASLEN): Define.
15063         (struct unicode_alias): New struct.
15064         (unicode_aliases): New variable.
15065         (fill_aliases): New function.
15066         (test_alias_lookup): New test function.
15067         (main): Run the 'test_alias_lookup' test if the second argument is
15068         given.
15069         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
15070         second argument.
15072 2015-02-11  Kevin Cernekee  <cernekee@google.com>
15074         Fix FILE struct compatibility with Android API level >= 21
15075         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
15076         __sferror.  Recent versions of Bionic's stdio.h no longer define
15077         __sferror.
15078         * lib/fbufmode.c: Likewise.
15079         * lib/fflush.c: Likewise.
15080         * lib/fpurge.c: Likewise.
15081         * lib/freadable.c: Likewise.
15082         * lib/freadahead.c: Likewise.
15083         * lib/freading.c: Likewise.
15084         * lib/freadptr.c: Likewise.
15085         * lib/freadseek.c: Likewise.
15086         * lib/fseeko.c: Likewise.
15087         * lib/fseterr.c: Likewise.
15088         * lib/fwritable.c: Likewise.
15090         Assume unbroken ungetc() on Android
15091         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
15092         test case passed when running on an Android host, and the code
15093         hasn't really changed since 2009.
15095         getdtablesize: Fix Android build
15096         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
15097         versions have this symbol in the .so library (at least 32-bit
15098         platforms) but are missing the declaration in the header file,
15099         causing the m4 logic to guess incorrectly.
15101         localename: Fix Android build
15102         * modules/localename (Depends-on): Add langinfo.
15104         getugroups: Fix Android build
15105         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15106         functions.
15108         euidaccess: Fix Android build
15109         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15110         AT_EACCESS gets declared.
15112         linkat_nofollow: Add fallback case for cross compiling
15113         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15115         net_if: Handle content-free <net/if.h> system headers
15116         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15117         struct if_nameindex.  If not, enable the replacement header.
15119         signal_h: Fix Android build
15120         * lib/signal.in.h: Add Android to the list of platforms that declare
15121         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15123         duplocale: Fix Android build of duplocale-tests
15124         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15125         is included by test-duplocale.c (but not by duplocale.c).
15126         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15127         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15128         * doc/posix-headers/monetary.texi: Add Android to the list of
15129         platforms missing monetary.h.
15131 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15133         tests: avoid recent -Werror=unused-variable regression in test-locale
15134         * tests/test-locale.c (main): Reference the variable to avoid the
15135         "unused variable" warning.
15137 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15139         maint: various whitespace cleanups in tempname
15140         * lib/tempname.c: Normalize spacing and line length.
15141         * lib/tempname.h: Likewise.
15142         * modules/tempname: Likewise.
15144 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15146         tests: provide returns_() to simplify exit status checking
15147         * tests/init.sh (returns_): A new function for use in tests,
15148         to allow for easier checking of return values, where you expect
15149         a command to exit with failure status.  By checking for a particular
15150         exit code, you don't hide any crashes for example.
15152 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15154         mountlist: only use libmount when specified
15155         There are currently many shared libs dependencies introduced by
15156         libmount with associated runtime and virt mem overhead.
15157         Therefore don't enable by default.
15158         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15160 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15162         uniname/unimame-tests: don't link with -lunistring
15163         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15164         $(LIBUNISTRING).  Document the rationale why we need to
15165         conditionalize the test.
15167 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15169         fstrcmp: don't assume strlen < INT_MAX
15170         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15171         (uintptr_t): Remove, as we're now assuming stdint.
15172         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15173         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15174         if the input string is long.
15175         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15176         uintptr_t to size_t when the underlying value is a pointer casted
15177         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15178         * modules/fstrcmp (Depends-on): Add stdint.
15180         diffseq: prefer ptrdiff_t to ssize_t
15181         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15182         ptrdiff_t is the natural type for signed indexes.
15183         On a few older platforms, ssize_t is narrower than size_t.
15185         xalloc: fix typo that suppressed warnings
15186         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15187         This typo, introduced a couple of years ago, mistakenly suppressed
15188         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15189         -Wmissing-declarations warnings.
15191         full-read: fix license notice typo
15192         * lib/full-read.h: Remove a stray line in the license notice.
15193         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15195         crypto/gc: fix a -Wswitch warning
15196         Reported by Bruce Korb in:
15197         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15198         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15200 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15202         gnulib-tool: fix handling of patch(1) diagnostics
15203         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15204         as otherwise gnulib-tool will reparse that output and attempt
15205         to lookup modules.
15207 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15209         bootstrap: exit immediately upon gnulib-tool failure
15210         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15211         This was noticed when gnulib-tool exited early due to failure
15212         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15213         but various confusing errors were then given as the build proceeded.
15215 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15217         symlinkat: include all required header files
15218         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15219         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15220         Reported at https://savannah.gnu.org/bugs/index.php?44151
15221         and by Jack Howarth.
15223 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15225         localename: support Solaris 12 and illumos
15226         * lib/localename.c (gl_locale_name_thread_unsafe): call
15227         getlocalename_l() on newer __sun platforms.
15228         Reported by Alexander Pyhalov.
15229         Fix suggested by Rich Burridge.
15231 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15233         locale: fix tests on illumos (trivial)
15234         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15235         so move from global scope to main().
15237 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15239         unictype: avoid undefined left-shift behavior
15240         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15241         gcc's -fsanitize=shift and running its tests triggered:
15242           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15243             places cannot be represented in type 'int'
15244         Cast LHS to 'unsigned int' after integer promotion.
15245         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15246         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15248 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15250         libunistring: bump version of unitypes dependants
15251         Due to the header file search order, all the headers which depend
15252         on unitypes.h need to be generated, when the preinstalled
15253         libunistring is older.
15254         * modules/unicase/base (configure.ac): Bump minimum version to
15255         0.9.4.
15256         * modules/uniconv/base (configure.ac): Likewise.
15257         * modules/unilbrk/base (configure.ac): Likewise.
15258         * modules/uninorm/base (configure.ac): Likewise.
15259         * modules/unistdio/base (configure.ac): Likewise.
15260         * modules/unistr/base (configure.ac): Likewise.
15261         * modules/uniwbrk/base (configure.ac): Likewise.
15262         * modules/uniwidth/base (configure.ac): Likewise.
15264 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15266         unictype/category-none: fix link with libunistring
15267         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15268         prefixed with "libstring_" when compiled as part of libunistring.
15269         To avoid undefined symbol at link time, increase the minimum
15270         version when the dependant modules are updated.
15271         * modules/unictype/category-none (configure.ac): Bump minimum
15272         version to 0.9.5.
15274 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15276         unitypes: fix build with installed libunistring
15277         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15278         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15279         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15281 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15283         time: port to MinGW32 3.21
15284         Problem reported by Eli Zaretskii in:
15285         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15286         * lib/time.in.h:
15287         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15288         * modules/time (Depends-on):
15289         Fall back on unistd.h if the other include files don't define
15290         struct timespec.
15292         update-copyright: apply to self
15293         * build-aux/update-copyright: Fix copyright date.  How ironic!
15295 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15297         libunistring: update to Unicode 7.0.0
15298         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15299         Manichaean names.
15300         * lib/unictype/joininggroup_name.h: Likewise.
15301         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15302         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15303         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15304         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15305         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15306         enum values.
15307         (is_property_alphabetic): Accept newly added characters to
15308         cuneiform numeric signs.
15309         (is_property_default_ignorable_code_point): Reject U+0605.
15310         (FIELDLEN): Increase from 120 to 160.
15311         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15312         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15313         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15314         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15315         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15316         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15317         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15318         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15319         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15320         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15321         U+1E8D0..U+1E8D6.
15322         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15323         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15324         lib/uniwidth/width.c.
15325         * all generated files under lib/uni* and tests/uni*: Regenerate.
15327 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15329         libunistring: update to Unicode 6.3.0
15330         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15331         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15332         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15333         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15334         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15335         Update WB5, WB9, WB10, WB13a, and WB13b.
15336         * tests/uniwbrk/test-uc-wordbreaks.c
15337         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15338         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15339         (UC_BIDI_PDI): New enumeration values.
15340         (bidi_category_byname): Support those enum values.
15341         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15342         dedicated property assigned.
15343         (is_property_case_ignorable): Check 0x0027.
15344         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15345         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15346         (output_wbp): Support those enum values.
15347         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15348         (UC_BIDI_PDI): New enumeration values.
15349         * lib/unictype/bidi_byname.gperf: Add those property names.
15350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15351         U+180E, U+1A1B, and U+2066..U+2069.
15352         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15353         lib/uniwidth/width.c.
15354         * all generated files under lib/uni* and tests/uni*: Regenerate.
15356 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15358         libunistring: update to Unicode 6.2.0
15359         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15360         (unilbrk_table): Adjust table size.
15361         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15362         for LBP_RI.
15363         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15364         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15365         Normalize table index skipping ignored properties.
15366         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15367         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15368         the table.
15369         * lib/uniwbrk/wbrktable.h: Adjust table size.
15370         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15371         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15372         Support rule GB8a.
15373         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15374         * tests/unigbrk/test-uc-is-grapheme-break.c
15375         (graphemebreakproperty_to_string): Support GBP_RI.
15376         * tests/uniwbrk/test-uc-wordbreaks.c
15377         (wordbreakproperty_to_string): Support WBP_RI.
15378         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15379         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15380         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15381         LBP_AL to LBP_ID.
15382         (output_lbp): Support LBP_RI.
15383         (WBP_RI): New enumeration value.
15384         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15385         (output_wbp): Support WBP_RI.
15386         (GBP_RI): New enumeration value.
15387         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15388         * all generated files under lib/uni* and tests/uni*: Regenerate.
15390 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15392         libunistring: update to Unicode 6.1.0
15393         * lib/gen-uni-tables.c (output_joining_group): Switch to
15394         3-level table to accommodate joining groups defined with higher
15395         codepoint value.  Since there are only 88 groups defined in
15396         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15397         (get_lbp): Update for Unicode 6.1.0.
15398         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15399         3-level table.
15400         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15401         joining group name.
15402         * lib/unictype/joininggroup_name.h: Likewise.
15403         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15404         (unilbrk_table): Adjust table size.
15405         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15406         for LBP_HL.
15407         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15408         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15409         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15410         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15411         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15412         U+302E..U+302F.
15413         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15414         lib/uniwidth/width.c.
15415         * all generated files under lib/uni* and tests/uni*: Regenerate.
15416         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15418 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15420         uniwbrk/u32-wordbreaks-tests: add conformance test
15421         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15422         tests/uniwbrk/test-uc-wordbreaks.c,
15423         tests/uniwbrk/test-uc-wordbreaks.sh, and
15424         tests/uniwbrk/WordBreakTest.txt.
15425         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15426         test-uc-wordbreaks to $(check_PROGRAMS), and define
15427         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15428         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15429         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15431 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15433         uniwbrk: ignore Extended/Format characters at BOL not BOS
15434         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15435         characters if the previous character property is one of
15436         WBP_NEWLINE, WBP_CR, and WBP_LF.
15438 2015-01-11  Jim Meyering  <meyering@fb.com>
15440         test-strstr.c: avoid a trivial leak
15441         * tests/test-strstr.c (main): Free haystack.
15443         update-copyright: recognize groff's \(co marker
15444         * build-aux/update-copyright (circle_c_re): Also accept
15445         uses of \(co, as found in gzip.1.
15447 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15449         maint.mk: fix compatibility with OS X nm
15450         * top/maint.mk (_gl_tight_scope): Use the -g option to
15451         show exported items rather than the -e option which is
15452         ignored on all platforms except OS X where it gives an error.
15453         Reported by Assaf Gordon.
15455 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15457         localcharset: improve charset detection on OS/2
15458         Use system codepage when appropriate.  Map OS/2 codepages to
15459         GNU canonical charset names if possible.
15460         * lib/config.charset: Don't output aliases if "$os" is os2*.
15461         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15462         result for OS/2.
15463         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15464         from the locale name which is neither "C" nor "POSIX".
15466 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15468         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15469         This reverts the last patch but one, as it shouldn't be needed now
15470         that the typo is fixed.
15471         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15472         * lib/count-trailing-zeros.h:
15473         * lib/count-one-bits.h:
15474         Go back to using 64-bit intrinsics.
15476         count-leading-zeros: fix pragma typos
15477         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15478         Fix typos in declaration of intrinsics when _MSC_VER.
15480 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15482         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15483         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15484         intrinsics in this case.
15485         * lib/count-trailing-zeros.h: Likewise.
15486         * lib/count-one-bits.h: Likewise.
15488 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15490         uniname/uniname: update to Unicode 7.0.0
15491         To accommodate new characters added since Unicode 5.1.0, this
15492         changes the internal representation of codepoint ranges.
15493         Previously, we grouped codepoint ranges by manually assigned 4-bit
15494         tag, which only allowed 16 groups.  This removes the limitation by
15495         switching to binary search on a table.  For the detail rationale
15496         and the benchmark results, see:
15497         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15498         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15499         to INDEX, as it no longer represents a codepoint.
15500         (range): New struct.
15501         (main): Switch to intervals list from a bit-pattern based
15502         classification.
15503         * lib/uniname/uninames.h: Regenerate.
15504         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15505         * modules/uniname/base (configure.ac): Bump minimum version to
15506         0.9.5.
15507         * modules/uniname/uniname (configure.ac): Bump minimum version to
15508         0.9.5.
15510 2015-01-05  Eric Blake  <eblake@redhat.com>
15512         doc: update INSTALL from autoconf
15513         * doc/install.texi: Resync from autoconf.
15514         * doc/INSTALL: Reflect recent autoconf update.
15515         * doc/INSTALL.ISO: Likewise.
15516         * doc/INSTALL.UTF-8: Likewise.
15518         stdio: fix use of PRIdMAX on modern mingw
15519         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15520         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15521         to work with modern mingw.
15523 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15525         pthread: detect git mingw builds with only partial pollution
15526         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15527         pollution, as seen temporarily in Fedora 21.
15529 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15531         lib-symbol-versions: cache script check
15532         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15533         Cache the check for linker version scripts.
15534         From a suggestion by Christophe Curis in:
15535         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15537 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15539         maint: fix grammar nits in propername (trivial change)
15540         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15541         and use an adequate verb and tense.
15543 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15545         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15546         * module/gendocs: Add 'doc/gendocs_template_min'.
15548         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15549         from to Gnulib's.
15550         (scripturl, templateurl): Adjust accordingly.
15552 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15554         gendocs: copyright date and version fix
15555         Reported by Karl Berry in:
15556         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15557         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15558         Fix copyright date.
15559         * build-aux/gendocs.sh (scriptversion): Update.
15561 2015-01-01  Karl Berry  <karl@gnu.org>
15563         * doc/install.texi,
15564         * build-aux/mdate-sh,
15565         * build-aux/depcomp,
15566         * build-aux/config.guess,
15567         * build-aux/config.sub,
15568         * build-aux/ar-lib,
15569         * build-aux/compile: revert copyright updates (some from last
15570         year) in slaved files.
15572 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15574         version-etc: new year
15575         * doc/gnulib.texi:
15576         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15577         * all files: Run 'make update-copyright'.
15579 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15581         xstrtol: ensure errno is reset
15582         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15583         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15585         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15587 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15589         utimens: fix dependency typo
15590         * modules/utimens (Depends-on): Remove 'assure'.
15591         This bug was introduced in the recent 'assure' patch.
15593 2014-12-22  Eric Blake  <eblake@redhat.com>
15595         docs: mention why libgen.h is bad
15596         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15598 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15600         assure: new module
15601         This works better than 'assert' when compiling with -DNDEBUG,
15602         as it avoids some compiler diagnostics in that case.
15603         Reported by Norihiro Tanaka in:
15604         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15605         * MODULES.html.sh (func_all_modules): Add 'assure'.
15606         * lib/assure.h, modules/assure: New files.
15607         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15608         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15609         Prefer 'assure' to 'assert'.
15610         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15611         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15612         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15613         Depend on 'assure'.
15615 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15617         stdalign: port better to HP compilers
15618         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15619         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15621         stdalign: work around Apple GCC 4.0 bug
15622         Reported by David Fang in:
15623         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15624         * lib/stdalign.in.h (_Alignas):
15625         * m4/stdalign.m4 (gl_STDALIGN_H):
15626         Do not use aligned attribute with GCC 4.0 on Apple.
15628 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15630         getcwd: fix test failure on OS X 10.9
15631         * m4/getcwd-path-max.m4: Avoid the replacement if it
15632         won't be effective due to the PATH_MAX limitation of lstat().
15633         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15634         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15635         for this case for use in tests, and also exclude this
15636         case when setting REPLACE_GETCWD.
15637         * tests/test-getcwd.c (test_long_name): Restrict the
15638         tested path length so that lstat() will not be passed
15639         a path greater than PATH_MAX.
15640         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15641         than AT_FDCWD, since the latter is set unconditionally
15642         since Sep 2009 in commit 52c658e9.
15644 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15646         parse-datetime: avoid a compiler warning with byacc (trivial)
15647         * lib/parse-datetime.y (yylex): Use the same prototype in the
15648         function definition as the declaration, to avoid a -Wstrict-prototypes
15649         warning seen when using byacc.
15651 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15653         unicase/locale-language-tests: fix LOCALE_FR test
15654         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15655         a French locale with traditional encoding.
15656         Reported by umerqayam in:
15657         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15659 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15661         stddef: support C11's max_align_t
15662         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15663         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15664         Do not undef, as that might cause max_align_t to be defined twice.
15665         Instead, change use to check for _GL_STDDEF_WINT_T too.
15666         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15667         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15668         Check for max_align_t.
15669         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15670         * modules/stddef-tests (Depends-on): Add stdalign.
15671         * tests/test-stddef.c: Test max_align_t.
15673 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15675         unistd: fix iOS check conditional
15676         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15677         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15678         yielded true on non-iOS environment.
15679         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15680         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15681         they are defined.
15683 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15685         posixtm: avoid compiler warning in a better way
15686         * lib/posixtm.c (IF_LINT): Remove.
15687         (year, posix_time_parse):
15688         Return true (not 0) if successful.  All callers changed.
15689         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15691 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15693         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15694         started with '/' on EMX.
15696 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15698         freopen: workaround freopen() on OS/2 kLIBC
15699         * lib/freopen.c (rpl_freopen): Workaround.
15700         * m4/freopen.m4: Add os2* case.
15702         get_shared_library_fullname: port to EMX
15703         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15704         on EMX, respectively.
15705         (_DLL_InitTerm): New on EMX.
15706         (get_shared_library_fullname): Implement on EMX.
15708         find_executable: port to EMX
15709         * lib/progreloc.c (find_executable): Implement on EMX.
15711         sched: check struct sched_param in spawn.h as well
15712         * lib/sched.in.h: Include spawn.h on kLIBC.
15713         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15715 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15717         bootstrap: Allow perl modules in $buildreq
15718         * build-aux/bootstrap: Add case for perl modules.
15720 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15722         apply _GL_ATTRIBUTE_PURE to some inline functions
15723         clang 3.4.2 flagged these inline functions as pure
15724         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15725         * lib/sig-handler.h (get_handler): Likewise.
15726         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15727         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15729 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15731         vasnprintf: fix potential use after free
15732         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15733         flagged by clang-analyzer 3.4.2.
15735 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15737         filevercmp, posixtm: avoid compiler warnings with -O3
15738         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15739         * lib/posixtm.c: (IF_LINT): Define.
15740         (posix_time_parse): Use it to void a "may be used uninitialized"
15741         warning, seen only with -O3.
15743 2014-12-05  Bruno Haible  <bruno@clisp.org>
15745         Fix LDBL80_WORDS macro on big endian platforms.
15746         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15747         LDBL80_WORDS macro.
15748         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15750         * tests/test-isfinite.c (test_isfinitel): Likewise.
15751         * tests/test-isinf.c (test_isinfl): Likewise.
15752         * tests/test-isnan.c (test_long_double): Likewise.
15753         * tests/test-isnanl.h (main): Likewise.
15754         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15755         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15756         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15757         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15758         Reported by Pádraig Brady.
15760 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15762         git-version-gen: do not print new line characters
15763         * build-aux/git-version-gen: Use printf instead of echo and tr.
15765         gnulib-tool: recognize x:* as an absolute path
15766         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15767         (func_relconcat): Likewise.
15769 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15771         argp: avoid extraneous translation and mem leak with empty pre doc
15772         * lib/argp-help.c (argp_doc): Never translate the empty string,
15773         when "\v" is the first or last character of the string, as that
15774         has a reserved meaning to return the header info from a po file.
15775         This also fixes a small memory leak in the !post case.
15776         The issue can be seen with this command for example:
15777         LC_MESSAGES=en_US grub2-mknetdir --help
15779 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15781         uniname/uniname-tests: skip if system's libunistring is used
15782         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15783         uniname/uniname module is not compiled.
15785 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15787         printf: fix configure check on big endian systems
15788         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15790 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15792         pipe-filter-gi, pipe-filter-ii: port to AIX
15793         On AIX 7.1, 'select' is defined as static and cannot be referred
15794         to from inline function.
15795         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15796         the definition...
15797         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15798         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15800 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15802         gitlog-to-changelog: add --until
15803         * build-aux/gitlog-to-changelog: Support new --until option.
15804         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15806 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15808         extern-inline: update commentary about GCC bugs
15809         * m4/extern-inline.m4: Add another GCC bug number to comments.
15811 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15813         gen-uni-tables: untabify
15814         * lib/gen-uni-tables.c: Untabify.
15816 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15818         gen-uni-tables: check out-of-range values added to 3-level tables
15819         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15820         (output_joining_type, output_ident_category): Check out-of-range
15821         values added to 3-level tables.
15823 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15825         gen-uni-tables: utilize 'assert'
15826         * lib/gen-uni-tables.c: Include <assert.h>.
15827         (output_category, output_combclass, output_decimal_digit_test)
15828         (output_decimal_digit, output_digit_test, output_digit)
15829         (output_numeric, get_mirror_value, fill_properties)
15830         (fill_property30, is_property_alphabetic)
15831         (is_property_default_ignorable_code_point)
15832         (is_property_uppercase, is_property_lowercase)
15833         (is_property_cased, is_property_case_ignorable)
15834         (is_property_changes_when_lowercased, is_property_iso_control)
15835         (is_property_math, fill_arabicshaping, output_joining_group)
15836         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15837         (output_wbp, fill_org_gbp, get_decomposition)
15838         (output_decomposition, fill_composition_exclusions)
15839         (debug_output_composition_tables, output_composition_tables)
15840         (redistribute_casefolding_rules, output_casing_rules): Use
15841         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15842         reporting.
15844 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15846         gen-uni-tables: cosmetic improvements
15847         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15848         variables specification.
15849         (is_outdigit): Remove unused function.
15851 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15853         fcntl-h-tests: port to PA-RISC GNU/Linux
15854         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15856 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15858         fts: port to C89
15859         Problem reported for MSVC 16 by Gisle Vanem in:
15860         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15861         * lib/fts.c (fts_build): Avoid declaration before statement.
15863 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15865         unistd: port to iOS
15866         Problem reported by André Klitzing in:
15867         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15868         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15870 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15872         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15873         Problem reported by Alan Modra in:
15874         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15875         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15876         Always cast the function arg, reverting this part of the previous
15877         change.
15879 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15881         obstack: avoid potentially-nonportable function casts
15882         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15883         Remove, replacing with ...
15884         (call_chunkfun, call_freefun): New static functions.
15885         All uses changed.  Avoid potentially-nonportable casts.
15886         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15887         (_obstack_begin_worker): Omit last two args, since they
15888         rely on potentially-nonportable casts.  All callers changed.
15889         * lib/obstack.h (_OBSTACK_CAST): New macro.
15890         Use it everywhere the old API used a potentially-nonportable cast.
15891         The new API doesn't cast.
15892         (struct obstack): Use unions rather than requiring
15893         potentially-nonportable casts.
15894         (obstack_chunkfun, obstack_freefun): Return void.
15896 2014-11-03  Alan Modra  <amodra@gmail.com>
15898         obstack: fix macro return values
15899         * lib/obstack.h (obstack_next_free): Return void *.
15900         (obstack_1grow_fast, obstack_blank_fast): Return void.
15901         For __GNUC__ macros:
15902         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15903         For !__GNUC__ macros:
15904         (obstack_make_room, obstack_grow, obstack_grow0)
15905         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15907 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15909         obstack: do not assume system-supplied obstack is size_t safe
15910         * m4/obstack.m4: New file.
15911         * modules/obstack (Files): Add it.
15913         obstack: port to platforms that #define __alignof__
15914         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15915         not if !_LIBC.  We don't know of any platforms that #define
15916         __alignof__, but it might be useful in tests.  Conversely,
15917         glibc assumes GCC.
15919 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15921         linkat: don't unconditionally replace on GNU/Linux
15922         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15923         was redundant for a few reasons.  It was present to support compiling
15924         on new systems but running on the old narrow window of Linux 2.6.1[67].
15925         It setup and cleaned up test files which weren't actually used.
15926         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15927         implicit in the following check.
15929 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15931         linkat: wrap to handle symlinks on OS X 10.10
15932         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15933         but not usable because it doesn't support creating hardlinks
15934         to symlinks.  Therefore add a generic test for this capability
15935         and fallback to our emulation if linkat() fails with ENOTSUP.
15937 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15939         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15940         * doc/posix-functions/open.texi (open):
15941         * doc/posix-functions/openat.texi (openat):
15942         Document that these functions do not set errno to ELOOP when
15943         a symlink is opened with O_NOFOLLOW.
15945 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15947         obstack: add NEWS entry for recent incompatible changes
15948         * NEWS: Describe recent changes.
15950 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15952         mountlist: don't use libmount to decide on dummy/remote
15953         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15954         routines to determine whether a file system is dummy or remote,
15955         as they're not currently compatible.  For example the remoteness
15956         is determined on file system type (for which the list seems incomplete),
15957         rather than simply checking for a ':' in the device name.
15958         Also libmount currently determines that 'tmpfs' is a dummy file system
15959         even though it has associated storage.
15961 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15963         obstack: prefer __alignof__ to alignof
15964         This is for portability to pre-4.7 GCC when compiling glibc.
15965         See Joseph S. Myers in:
15966         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15967         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15968         New macro, defined by including and using <alignof.h>.
15969         (MAX): New macro.
15970         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15971         Do not use enums as they are not portable to some broken compilers.
15972         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15974         obstack: prefer alignof to calculating alignments by hand
15975         * lib/obstack.c: Include <stdalign.h>.
15976         (struct fooalign): Remove.
15977         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15978         * modules/obstack (Depends-on): Add stdalign.
15980 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15982         obstack: use size_t alignments and check for overflow
15983         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15984         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15985         * lib/obstack.h (struct obstack.alignment_mask):
15986         Use _OBSTACK_SIZE_T, not int, for alignments.
15987         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15988         overflows, e.g., when adding the alignment.
15990 2014-10-29  Alan Modra  <amodra@gmail.com>
15992         obstack: 64-bit obstack support, part 3
15993         This finally enables full 64-bit obstack support.  The glibc
15994         shared library specific code is removed from obstack.c too, and
15995         the error handling code conditionally compiled under control of
15996         another macro, _OBSTACK_NO_ERROR_HANDLER.
15997         * lib/obstack.h: Include string.h earlier.
15998         (_OBSTACK_INTERFACE_VERSION): Define.
15999         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
16000         * lib/obstack.c: Don't include shlib-compat.h.
16001         (OBSTACK_INTERFACE_VERSION): Delete.
16002         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
16003         glibc code is compatible with version 2.  Don't include stdio.h for
16004         __GNU_LIBRARY.
16005         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
16006         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
16007         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
16008         glibc shared library specific source.
16010         obstack: 64-bit obstack support, part 2
16011         This gets us 4G obstack support, without changing ABI
16012         compatibility, apart from possibly introducing some
16013         signed/unsigned comparison warnings in code that uses obstack.h.
16014         a) Replace "int" size parameters, return values, and macro local vars
16015            with _OBSTACK_SIZE_T, an "unsigned int" for now.
16016         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
16017         c) Make all obstack macros checking available room use obstack_room.
16018            "next_free + desired > chunk_limit" may wrap the lhs for chunks
16019            allocated near the top of memory.
16020         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
16021         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
16022         in place of "int" size parameters, return values and local vars.
16023         (_CHUNK_SIZE_T): Define.
16024         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
16025         union use an _OBSTACK_SIZE_T integer type.
16026         For __GNUC__ versions of the following macros...
16027         (obstack_room): Rename local var.
16028         (obstack_make_room): Use obstack_room.
16029         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16030         obstack_int_grow, obstack_blank): Likewise.
16031         (obstack_finish): Use unsigned comparison when comparing aligned
16032         next_free against chunk_limit.
16033         (obstack_free): Cast OBJ to remove possible const qualifier.
16034         For !__GNUC__ versions of the following macros...
16035         (obstack_make_room): Use obstack_room.
16036         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16037         obstack_int_grow, obstack_blank): Likewise.
16038         (obstack_finish): Use unsigned comparision when comparing aligned
16039         next_free against chunk_limit.
16040         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
16041         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
16042         _OBSTACK_SIZE_T.
16043         (_obstack_begin, _obstack_begin_1): Likewise.
16044         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
16045         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
16047         obstack: 64-bit obstack support, part 1
16048         a) Correct calls to alloc function, to use a size_t arg.  "long" is
16049            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
16050            and "size_t" 64 bits.
16051         b) Consolidate _obstack_begin and _obstack_begin1 code.
16052         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
16053         use "size_t" rather than "long".
16054         (_obstack_begin, _obstack_begin1): Likewise.
16055         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
16056         obstack_chunkfun): Update alloc function casts.
16057         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
16058         (chunkfun_type, freefun_type): New typdefs.
16059         (_obstack_begin_worker): Split out from ..
16060         (_obstack_begin, _obstack_begin_1): ..here.
16062         obstack: tidy part 2
16063         a) Don't be concerned about "not polluting the namespace with stddef.h
16064            symbols" in obstack.h, since gnulib string.h includes stddef.h
16065            anyway, and it seems unlikely that anyone would care.
16066         b) Don't roll our own slow memcpy in _obstack_newchunk.
16067         c) Rename obstack_free to _obstack_free.  This makes the naming
16068            consistent with other obstack functions and obviates the need for
16069            __obstack_free.  Ancient obstack.c defined both obstack_free and
16070            _obstack_free.  We continue to do that for _LIBC via an alias.
16071         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
16072            is clever, but nowadays gcc warns on undefined macros.  You'll get
16073            an undefined macro warning if simulating an old gcc with -U__GNUC__
16074            -U__GNUC_MINOR__ -D__GNUC__=1.
16075         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
16076         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
16077         (__obstack_free): Delete, update refs.
16078         (_obstack_free): Rename from obstack_free.
16079         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
16080         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
16081         * lib/obstack.c: Don't include stddef.h.
16082         (COPYING_UNIT): Delete.
16083         (_obstack_begin): Formatting fix.
16084         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
16085         (_obstack_free): Rename from __obstack_free, update alias.  Move
16086         undef of obstack_free to where it is needed.
16088         obstack: tidy part 1
16089         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
16090            to me, and result in overlong lines after later patches.
16091         b) Move error handling code, to avoid a forward declaration and to
16092            simplify later patches in this series.
16093         * lib/obstack.h (struct obstack <temp>): Rename fields of union
16094         and update all uses.
16095         * lib/obstack.c: Include stdlib.h earlier.
16096         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
16097         in file.
16098         (print_and_abort): Remove now redundant forward declaration.
16100 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16102         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
16103         Without this change, in bleeding-edge fileutils Autoconf complains
16104         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
16105         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16106         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16107         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16109 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16111         iconv: avoid false detection of non-working iconv
16112         The INBUF arguments of iconv can be either 'const char **'
16113         or 'char **'.  If CC is g++, the difference causes a compile error
16114         and thus leads to a false detection of non-working iconv.
16115         Reported by Eli Zaretskii and Werner LEMBERG in:
16116         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16117         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16118         iconv.  Bump serial number.
16120 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16122         bootstrap: print more diagnostics for missing programs
16123         * build-aux/bootstrap: only suppress stderr when checking for
16124         alternative program names.  This supports programs issuing non
16125         standard error messages.
16127 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16129         bootstrap: only update the gnulib submodule
16130         * build-aux/bootstrap: Restrict the "submodule update" command
16131         to the gnulib path.
16133 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16135         symlinkat: port to AIX 7.1
16136         * doc/posix-functions/symlinkat.texi (symlinkat):
16137         Mention AIX porting problem.
16138         * lib/symlinkat.c: Always include errno.h.
16139         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16140         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16141         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16143         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16144         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16145         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16147         readlinkat: port to AIX 7.1
16148         * doc/posix-functions/readlink.texi (readlink):
16149         * doc/posix-functions/readlinkat.texi (readlinkat):
16150         Mention AIX porting problem.
16151         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16152         New function.
16153         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16154         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16156         * modules/readlinkat (configure.ac): Also compile replacement
16157         if REPLACE_READLINKAT.
16158         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16160 2014-10-12  Karl Berry  <karl@gnu.org>
16162         * doc/posix-functions/dirname.texi: remove spurious {.
16164 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16166         basename, dirname: Improve documentation.
16167         * doc/posix-functions/basename.texi: Mention dirname module and
16168         base_name() function.
16169         * doc/posix-functions/dirname.texi: Mention dir_name() and
16170         mdir_name() functions.
16171         Suggested by Werner LEMBERG <wl@gnu.org>.
16173 2014-09-24  Jim Meyering  <meyering@fb.com>
16175         exclude: declare exclude_patopts static
16176         * lib/exclude.c (exclude_patopts): Declare static,
16177         to avoid triggering a -Wmissing-prototypes warning.
16178         The alternative (declaring it in the .h file) would
16179         require publicizing the private "struct patopts".
16181 2014-09-21  Werner Lemberg  <wl@gnu.org>
16183         dirname: support compilation with C++
16184         * lib/dirname.h: Add necessary C linkage declarations.
16186 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16188         qsort_r: include <config.h>
16189         Problem reported by Tom G. Christensen in:
16190         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16191         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16193 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16195         avltree-list: avoid compiler warnings (trivial)
16196         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16197         -Werror=suggest-attribute=pure.
16198         * lib/gl_array_list.c: Likewise.
16199         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16200         declaration to avoid -Werror=missing-prototypes.  This is not added
16201         to a header as only exported for tests.  Add (void) to the
16202         check_invariants() call to indicate we're discarding the result
16203         in this context which avoids -Werror=unused-value.  Note we don't
16204         use ignore_value here to avoid a dependency as we know we'll not
16205         be adding __attribute__((warn_unused_result)) to check_invariants().
16206         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16208 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16210         qsort_r: new module, for GNU-style qsort_r
16211         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16213 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16215         strerror_r-posix: support compilation with C++
16216         * lib/strerror_r.c: Add necessary C linkage declarations.
16218 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16220         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16221         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16223 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16225         mountlist: use /proc/self/mountinfo when available
16226         Use libmount to propagate device IDs provided by Linux in
16227         /proc/self/mountinfo.  This will give more accurate output when
16228         using df in chroot'ed environments as the device IDs are not
16229         determined by stat() which may be inaccurate within the chroot.
16230         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16231         from util-linux to parse "/proc/self/mountinfo" or fall back to
16232         standard getmntent() processing.
16233         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16234         getmntent() is used, as is the case on GNU/Linux.
16236 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16238         users.txt: add cmogstored
16239         cmogstored has used gnulib since the beginning in 2012 to support
16240         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16242 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16244         Trivial change.
16245         * gnulib-tool: Use same options as build-aux/bootstrap to download
16246         PO files.
16248 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16250         Trivial change.
16251         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16253 2014-09-04  Eric Blake  <eblake@redhat.com>
16255         maintainer-makefile: add syntax check for useless ';;'
16256         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16258 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16260         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16261         Problem reported by Assaf Gordon in:
16262         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16263         Apparently Ubuntu is doing some fancy link-time optimization
16264         that doesn't work with -lpthread but does work with -pthread.
16265         Work around the bug by preferring -pthread to -lpthread.
16266         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16267         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16268         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16269         Treat -pthread like -lpthread.
16271 2014-09-04  Eric Blake  <eblake@redhat.com>
16273         error: drop spurious semicolon
16274         * lib/error.c (__error_at_line): Fix ';;'.
16276 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16278         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16279         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16280         Override AC_C_RESTRICT unconditionally.
16281         Update from autoconf, incorporating:
16282         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16283         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16285 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16287         manywarnings: add GCC 4.9 warnings
16288         Also, make it easier to maintain this in the future.
16289         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16290         -Wconditionally-supported, -Wdelete-incomplete,
16291         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16292         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16294         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16295         only for older GCC versions that need them.  Handle
16296         -Wnormalized=nfc specially, so that the 'comm' command used
16297         for maintenance doesn't get confused.
16299 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16301         vasnprintf: fix bugs in width computation
16302         * lib/vasnprintf.c (VASNPRINTF):
16303         Rework previous change, which introduced a bug,
16304         to avoid the warning in a different way.
16305         Avoid undefined behavior if the width arg is less than -INT_MAX.
16306         Avoid unnecessary use of HAS_WIDTH local.
16308 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16310         vasnprintf: Avoid signed/unsigned comparison warning.
16311         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16312         compare end addr of generated string w/ maximum end addr.
16314 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16316         parse-datetime: Avoid pointer difference.
16317         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16318         instead of calculating difference of pointers.  This removes an
16319         annoying warning, devoid of any use.
16321 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16323         qsort_r: new module, for GNU-style qsort_r
16324         This works even on FreeBSD, which has an incompatible qsort_r API.
16325         * MODULES.html.sh: Add it.
16326         * doc/glibc-functions/qsort_r.texi: It's now supported.
16327         * lib/qsort.c: New file, taken from glibc with minor changes
16328         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16329         removed.
16330         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16331         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16333         * modules/qsort_r, modules/qsort_r-tests: New files.
16334         * modules/stdlib (Makefile): Set up its defaults.
16335         * tests/test-qsort_r.c: New file.
16337 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16339         vla: new module
16340         GNU RCS can use this, mostly for documentation I expect.  See:
16341         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16342         * MODULES.html.sh: Add vla.
16343         * lib/vla.h, modules/vla: New files.
16345 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16347         localename: make gl_locale_name_thread really thread-safe on Windows
16348         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16349         "glthread/lock.h".
16350         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16351         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16353 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16355         getpass: don't assume struct termios
16356         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16357         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16358         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16360         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16361         Problem reported by Jonas 'Sortie' Termansen in:
16362         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16363         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16364         Implement via sysconf for platforms that lack getdtablesize.
16366         vararrays: modernize AC_C_VARARRAYS for C11
16367         This backports a change I recently made to Autoconf.
16368         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16369         VLAs are not supported, as this is what C11 does.  The old macro
16370         HAVE_C_VARARRAYS is still defined if they are supported, but is
16371         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16373 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16375         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16376         * build-aux/install-reloc (func_create_wrapper): Also wrap
16377         strerror-override, stat, stat.
16379 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16381         sys_select: fix FD_ZERO problem on Solaris 10
16382         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16383         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16384         to expand to an expression that invoked memset without necessarily
16385         including <string.h>.  The problem was that the first include
16386         defined _SYS_TIME_H, causing the second include to short-circuit.
16387         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16388         Also, fix what appears to be a cut-and-paste typo, by replacing
16389         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16390         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16392         accept: document Solaris 10 type glitch
16393         * doc/posix-functions/accept.texi (accept): Mention that
16394         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16396 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16398         extern-inline: port to FreeBSD, DragonFly
16399         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16400         is present if either __DragonFly__ or __FreeBSD__ is defined.
16401         FreeBSD problem reported by Andrey Borzenkov in:
16402         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16403         Also, worry about __APPLE__ only if __MACH__ is also defined,
16404         as this is more consistent with the rest of gnulib.
16405         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16406         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16408 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16410         regex: Make #if/#ifdef usage consistent for DEBUG
16411         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16412         of the inconsistent usage of #if and #ifdef as that works with
16413         both Glibc and Gnulib's style.
16415 2014-07-31  Eric Blake  <eblake@redhat.com>
16417         openat-die: use _Noreturn markup
16418         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16419         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16420         _Noreturn.
16422 2014-07-30  Eric Blake  <eblake@redhat.com>
16424         test-open: port to cygwin, which lacks Fortify
16425         * tests/test-open.h (ALWAYS_INLINE): New macro.
16426         (__always_inline): Don't abuse internal symbol on non-glibc.
16428 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16430         localename: Enforce declarations before statements.
16431         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16432         first statement.
16434 2014-07-18  Jim Meyering  <meyering@fb.com>
16436         test-userspec: don't look up numeric user names
16437         * tests/test-userspec.c: I found a system for which getpwnam("0")
16438         returned a pointer to a non-root user's entry, and that made the
16439         test fail.
16440         (T): Prefix each numeric input with "+", to inhibit lookup.
16442 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16444         localcharset, localename: MS-Windows support for non-default locales
16445         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16446         falling back on the default system codepage, try extracting
16447         the codepage from what 'setlocale' returns.  This allows to
16448         take into account changes of the codeset due to non-default
16449         locale set by a previous call to 'setlocale'.
16450         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16451         Define if not already defined.
16452         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16453         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16454         current locale by calling 'setlocale', then converting the
16455         locale name into LCID by calling 'get_lcid'.  This allows to
16456         take into account changes in the current locale from the
16457         default one, in contrast to GetThreadLocale.
16459 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16461         announce-gen: avoid failure when Digest::SHA is installed
16462         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16463         Digest::SHA1->new in print_checksums fails.
16464         * build-aux/announce-gen (digest_classes): New associative array
16465         for available message digest implementations.
16466         (print_locations): Use it.
16468 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16470         gettext: revert "update macros to version 0.19"
16471         This reverts commit 9b9370ca, as it currently requires that
16472         developers of any project that explicitly uses the gettext module
16473         or implicitly uses it through the utimens-tests or
16474         futimens-tests modules, use gettext >= 0.19.
16475         However there are some stability and availablity issues with
16476         that version at present.  We can reinstate this soon, when stability
16477         is addressed and packages are more readily available.
16479 2014-07-12  Jim Meyering  <meyering@fb.com>
16481         regex: don't deref NULL upon heap allocation failure
16482         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16483         failure in one more place.
16484         To trigger the segfault, configure grep -with-included-regex,
16485         build it, and run these commands:
16486         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16487         I discovered this while replying to a private report from
16488         Jens Schleusener about excessive memory consumption by grep
16489         when using a regular expression like the one above.
16491 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16493         regex: fix memory leak in compiler
16494         Fix by Andreas Schwab in:
16495         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16496         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16497         constructed tree before returning error.
16499 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16501         announce-gen: avoid perl warnings
16502         * build-aux/announce-gen: add two minor checks to avoid
16503         "use of uninitialized value" warnings when command-line parameters are
16504         missing.
16506 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16508         localename: avoid -Wsuggest-attribute={const,pure} warnings
16509         * lib/localename.c (string_has): Tag internal function as pure.
16510         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16511         as const when appropriate.
16513 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16515         nl_langinfo: Fix last change.
16516         * lib/nl_langinfo.c (includes): Drop redundant include.
16518 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16520         error: Fix -Wundef warnings in glibc
16521         * lib/error.c [_LIBC]: Define default macros for
16522         glibc.
16523         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16524         Check _LIBC before STRERROR_R_CHAR_P.
16526         error: Sync from glibc master
16527         * lib/error.c [_LIBC]: Remove INTUSE usage.
16528         (error_tail): Remove unused macro ALLOCA_LIMIT.
16529         Fix potential buffer overflow.  Fix potential NULL dereference
16530         in strcmp.
16532 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16534         nl_langinfo: fix build under mingw
16535         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16537 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16539         mountlist: do not classify a bind-mounted dir entry as "dummy"
16540         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16541         1-argument getmntent() (instead of assuming absence).
16543 2014-07-08  Eric Blake  <eblake@redhat.com>
16545         maint.mk: less syntax-check noise when SIGPIPE is ignored
16546         * top/maint.mk (_sc_header_without_use)
16547         (sc_require_config_h_first): Parse full list.
16549 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16550             Paul Eggert  <eggert@cs.ucla.edu>
16552         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16553         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16554         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16555         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16556         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16557         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16558         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16559         Include <stdio.h> if Microsoft Windows.
16560         Include <time.h> if !REPLACE_NL_LANGINFO.
16561         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16562         and with improvements for Microsoft Windows.
16563         (rpl_nl_langinfo): Use it.
16564         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16565         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16566         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16567         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16568         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16569         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16570         corresponding values returned by 'localeconv'.  Compute the values
16571         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16572         'strftime' with a suitable struct tm value.
16574 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16576         Bruno Haible has stepped down as maintainer.
16577         See Karl Berry in:
16578         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16579         Daiki Ueno has volunteered to maintain libunistring; see:
16580         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16581         * modules/gen-uni-tables, modules/libunistring:
16582         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16583         * modules/unicase/base, modules/unicase/cased:
16584         * modules/unicase/empty-prefix-context:
16585         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16586         * modules/unicase/locale-language, modules/unicase/special-casing:
16587         * modules/unicase/tocasefold, modules/unicase/tolower:
16588         * modules/unicase/totitle, modules/unicase/toupper:
16589         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16590         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16591         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16592         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16593         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16594         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16595         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16596         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16597         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16598         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16599         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16600         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16601         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16602         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16603         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16604         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16605         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16606         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16607         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16608         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16609         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16610         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16611         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16612         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16613         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16614         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16615         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16616         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16617         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16618         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16619         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16620         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16621         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16622         * modules/uniconv/u16-conv-to-enc:
16623         * modules/uniconv/u16-strconv-from-enc:
16624         * modules/uniconv/u16-strconv-from-locale:
16625         * modules/uniconv/u16-strconv-to-enc:
16626         * modules/uniconv/u16-strconv-to-locale:
16627         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16628         * modules/uniconv/u32-strconv-from-enc:
16629         * modules/uniconv/u32-strconv-from-locale:
16630         * modules/uniconv/u32-strconv-to-enc:
16631         * modules/uniconv/u32-strconv-to-locale:
16632         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16633         * modules/uniconv/u8-strconv-from-enc:
16634         * modules/uniconv/u8-strconv-from-locale:
16635         * modules/uniconv/u8-strconv-to-enc:
16636         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16637         * modules/unictype/bidicategory-all:
16638         * modules/unictype/bidicategory-byname:
16639         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16640         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16641         * modules/unictype/bidiclass-byname:
16642         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16643         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16644         * modules/unictype/block-all, modules/unictype/block-list:
16645         * modules/unictype/block-of, modules/unictype/block-test:
16646         * modules/unictype/category-C, modules/unictype/category-Cc:
16647         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16648         * modules/unictype/category-Co, modules/unictype/category-Cs:
16649         * modules/unictype/category-L, modules/unictype/category-LC:
16650         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16651         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16652         * modules/unictype/category-Lu, modules/unictype/category-M:
16653         * modules/unictype/category-Mc, modules/unictype/category-Me:
16654         * modules/unictype/category-Mn, modules/unictype/category-N:
16655         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16656         * modules/unictype/category-No, modules/unictype/category-P:
16657         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16658         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16659         * modules/unictype/category-Pi, modules/unictype/category-Po:
16660         * modules/unictype/category-Ps, modules/unictype/category-S:
16661         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16662         * modules/unictype/category-Sm, modules/unictype/category-So:
16663         * modules/unictype/category-Z, modules/unictype/category-Zl:
16664         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16665         * modules/unictype/category-all, modules/unictype/category-and:
16666         * modules/unictype/category-and-not, modules/unictype/category-byname:
16667         * modules/unictype/category-longname, modules/unictype/category-name:
16668         * modules/unictype/category-none, modules/unictype/category-of:
16669         * modules/unictype/category-or, modules/unictype/category-test:
16670         * modules/unictype/category-test-withtable:
16671         * modules/unictype/combining-class:
16672         * modules/unictype/combining-class-all:
16673         * modules/unictype/combining-class-byname:
16674         * modules/unictype/combining-class-longname:
16675         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16676         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16677         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16678         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16679         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16680         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16681         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16682         * modules/unictype/digit, modules/unictype/joininggroup-all:
16683         * modules/unictype/joininggroup-byname:
16684         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16685         * modules/unictype/joiningtype-all:
16686         * modules/unictype/joiningtype-byname:
16687         * modules/unictype/joiningtype-longname:
16688         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16689         * modules/unictype/mirror, modules/unictype/numeric:
16690         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16691         * modules/unictype/property-ascii-hex-digit:
16692         * modules/unictype/property-bidi-arabic-digit:
16693         * modules/unictype/property-bidi-arabic-right-to-left:
16694         * modules/unictype/property-bidi-block-separator:
16695         * modules/unictype/property-bidi-boundary-neutral:
16696         * modules/unictype/property-bidi-common-separator:
16697         * modules/unictype/property-bidi-control:
16698         * modules/unictype/property-bidi-embedding-or-override:
16699         * modules/unictype/property-bidi-eur-num-separator:
16700         * modules/unictype/property-bidi-eur-num-terminator:
16701         * modules/unictype/property-bidi-european-digit:
16702         * modules/unictype/property-bidi-hebrew-right-to-left:
16703         * modules/unictype/property-bidi-left-to-right:
16704         * modules/unictype/property-bidi-non-spacing-mark:
16705         * modules/unictype/property-bidi-other-neutral:
16706         * modules/unictype/property-bidi-pdf:
16707         * modules/unictype/property-bidi-segment-separator:
16708         * modules/unictype/property-bidi-whitespace:
16709         * modules/unictype/property-byname:
16710         * modules/unictype/property-case-ignorable:
16711         * modules/unictype/property-cased:
16712         * modules/unictype/property-changes-when-casefolded:
16713         * modules/unictype/property-changes-when-casemapped:
16714         * modules/unictype/property-changes-when-lowercased:
16715         * modules/unictype/property-changes-when-titlecased:
16716         * modules/unictype/property-changes-when-uppercased:
16717         * modules/unictype/property-combining:
16718         * modules/unictype/property-composite:
16719         * modules/unictype/property-currency-symbol:
16720         * modules/unictype/property-dash:
16721         * modules/unictype/property-decimal-digit:
16722         * modules/unictype/property-default-ignorable-code-point:
16723         * modules/unictype/property-deprecated:
16724         * modules/unictype/property-diacritic:
16725         * modules/unictype/property-extender:
16726         * modules/unictype/property-format-control:
16727         * modules/unictype/property-grapheme-base:
16728         * modules/unictype/property-grapheme-extend:
16729         * modules/unictype/property-grapheme-link:
16730         * modules/unictype/property-hex-digit:
16731         * modules/unictype/property-hyphen:
16732         * modules/unictype/property-id-continue:
16733         * modules/unictype/property-id-start:
16734         * modules/unictype/property-ideographic:
16735         * modules/unictype/property-ids-binary-operator:
16736         * modules/unictype/property-ids-trinary-operator:
16737         * modules/unictype/property-ignorable-control:
16738         * modules/unictype/property-iso-control:
16739         * modules/unictype/property-join-control:
16740         * modules/unictype/property-left-of-pair:
16741         * modules/unictype/property-line-separator:
16742         * modules/unictype/property-logical-order-exception:
16743         * modules/unictype/property-lowercase, modules/unictype/property-math:
16744         * modules/unictype/property-non-break:
16745         * modules/unictype/property-not-a-character:
16746         * modules/unictype/property-numeric:
16747         * modules/unictype/property-other-alphabetic:
16748         * modules/unictype/property-other-default-ignorable-code-point:
16749         * modules/unictype/property-other-grapheme-extend:
16750         * modules/unictype/property-other-id-continue:
16751         * modules/unictype/property-other-id-start:
16752         * modules/unictype/property-other-lowercase:
16753         * modules/unictype/property-other-math:
16754         * modules/unictype/property-other-uppercase:
16755         * modules/unictype/property-paired-punctuation:
16756         * modules/unictype/property-paragraph-separator:
16757         * modules/unictype/property-pattern-syntax:
16758         * modules/unictype/property-pattern-white-space:
16759         * modules/unictype/property-private-use:
16760         * modules/unictype/property-punctuation:
16761         * modules/unictype/property-quotation-mark:
16762         * modules/unictype/property-radical:
16763         * modules/unictype/property-sentence-terminal:
16764         * modules/unictype/property-soft-dotted:
16765         * modules/unictype/property-space:
16766         * modules/unictype/property-terminal-punctuation:
16767         * modules/unictype/property-test, modules/unictype/property-titlecase:
16768         * modules/unictype/property-unassigned-code-value:
16769         * modules/unictype/property-unified-ideograph:
16770         * modules/unictype/property-uppercase:
16771         * modules/unictype/property-variation-selector:
16772         * modules/unictype/property-white-space:
16773         * modules/unictype/property-xid-continue:
16774         * modules/unictype/property-xid-start:
16775         * modules/unictype/property-zero-width, modules/unictype/scripts:
16776         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16777         * modules/unictype/syntax-c-whitespace:
16778         * modules/unictype/syntax-java-ident:
16779         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16780         * modules/unigbrk/u16-grapheme-breaks:
16781         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16782         * modules/unigbrk/u32-grapheme-breaks:
16783         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16784         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16785         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16786         * modules/unigbrk/uc-is-grapheme-break:
16787         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16788         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16789         * modules/unilbrk/u16-width-linebreaks:
16790         * modules/unilbrk/u32-possible-linebreaks:
16791         * modules/unilbrk/u32-width-linebreaks:
16792         * modules/unilbrk/u8-possible-linebreaks:
16793         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16794         * modules/unilbrk/ulc-possible-linebreaks:
16795         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16796         * modules/uniname/uniname, modules/uninorm/base:
16797         * modules/uninorm/canonical-decomposition:
16798         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16799         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16800         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16801         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16802         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16803         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16804         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16805         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16806         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16807         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16808         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16809         * modules/unistdio/base, modules/unistdio/u-printf-args:
16810         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16811         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16812         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16813         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16814         * modules/unistdio/u16-u16-sprintf:
16815         * modules/unistdio/u16-u16-vasnprintf:
16816         * modules/unistdio/u16-u16-vasprintf:
16817         * modules/unistdio/u16-u16-vsnprintf:
16818         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16819         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16820         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16821         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16822         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16823         * modules/unistdio/u32-u32-asnprintf:
16824         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16825         * modules/unistdio/u32-u32-sprintf:
16826         * modules/unistdio/u32-u32-vasnprintf:
16827         * modules/unistdio/u32-u32-vasprintf:
16828         * modules/unistdio/u32-u32-vsnprintf:
16829         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16830         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16831         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16832         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16833         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16834         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16835         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16836         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16837         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16838         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16839         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16840         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16841         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16842         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16843         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16844         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16845         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16846         * modules/unistr/u16-check, modules/unistr/u16-chr:
16847         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16848         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16849         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16850         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16851         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16852         * modules/unistr/u16-move, modules/unistr/u16-next:
16853         * modules/unistr/u16-prev, modules/unistr/u16-set:
16854         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16855         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16856         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16857         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16858         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16859         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16860         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16861         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16862         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16863         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16864         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16865         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16866         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16867         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16868         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16869         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16870         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16871         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16872         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16873         * modules/unistr/u32-next, modules/unistr/u32-prev:
16874         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16875         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16876         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16877         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16878         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16879         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16880         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16881         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16882         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16883         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16884         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16885         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16886         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16887         * modules/unistr/u8-check, modules/unistr/u8-chr:
16888         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16889         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16890         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16891         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16892         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16893         * modules/unistr/u8-next, modules/unistr/u8-prev:
16894         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16895         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16896         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16897         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16898         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16899         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16900         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16901         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16902         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16903         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16904         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16905         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16906         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16907         * modules/uniwbrk/base, modules/uniwbrk/table:
16908         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16909         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16910         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16911         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16912         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16913         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16914         * modules/uniwidth/width, modules/utf16-ucs4:
16915         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16916         * modules/utf8-ucs4-unsafe:
16917         Change maintainer from Bruno Haible to Daiki Ueno.
16918         This is my guess at the libunistring modules; please feel free
16919         to fix if I guessed incorrectly.
16920         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16921         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16922         * modules/areadlink, modules/array-list, modules/array-mergesort:
16923         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16924         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16925         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16926         * modules/binary-io, modules/bison-i18n, modules/btowc:
16927         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16928         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16929         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16930         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16931         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16932         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16933         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16934         * modules/closedir, modules/concat-filename, modules/copy-file:
16935         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16936         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16937         * modules/csharpcomp-script, modules/csharpexec:
16938         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16939         * modules/dprintf, modules/dprintf-posix, modules/dup:
16940         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16941         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16942         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16943         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16944         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16945         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16946         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16947         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16948         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16949         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16950         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16951         * modules/findprog, modules/findprog-lgpl, modules/floor:
16952         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16953         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16954         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16955         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16956         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16957         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16958         * modules/freadable, modules/freadahead, modules/freadptr:
16959         * modules/freadseek, modules/freopen, modules/frexp:
16960         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16961         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16962         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16963         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16964         * modules/ftello, modules/full-read, modules/full-write:
16965         * modules/fwritable, modules/fwriteerror, modules/gcd:
16966         * modules/get-rusage-as, modules/get-rusage-data:
16967         * modules/getdtablesize, modules/getrusage, modules/gettext:
16968         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16969         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16970         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16971         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16972         * modules/iconv, modules/iconv-h, modules/iconv_open:
16973         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16974         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16975         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16976         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16977         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16978         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16979         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16980         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16981         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16982         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16983         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16984         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16985         * modules/lib-symbol-visibility, modules/libsigsegv:
16986         * modules/linked-list, modules/linkedhash-list, modules/list:
16987         * modules/localcharset, modules/locale, modules/localeconv:
16988         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16989         * modules/log10, modules/log10-ieee, modules/log10f:
16990         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16991         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16992         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16993         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16994         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16995         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16996         * modules/logf, modules/logf-ieee, modules/login_tty:
16997         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16998         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16999         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
17000         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
17001         * modules/mbscspn, modules/mbsinit, modules/mbslen:
17002         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
17003         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
17004         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
17005         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
17006         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
17007         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
17008         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
17009         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
17010         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
17011         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
17012         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
17013         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
17014         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
17015         * modules/posix_spawn, modules/posix_spawn-internal:
17016         * modules/posix_spawn_file_actions_addclose:
17017         * modules/posix_spawn_file_actions_adddup2:
17018         * modules/posix_spawn_file_actions_addopen:
17019         * modules/posix_spawn_file_actions_destroy:
17020         * modules/posix_spawn_file_actions_init:
17021         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
17022         * modules/posix_spawnattr_getpgroup:
17023         * modules/posix_spawnattr_getschedparam:
17024         * modules/posix_spawnattr_getschedpolicy:
17025         * modules/posix_spawnattr_getsigdefault:
17026         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
17027         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
17028         * modules/posix_spawnattr_setschedparam:
17029         * modules/posix_spawnattr_setschedpolicy:
17030         * modules/posix_spawnattr_setsigdefault:
17031         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
17032         * modules/pow, modules/powf, modules/printf-frexp:
17033         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
17034         * modules/progname, modules/propername, modules/pselect:
17035         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
17036         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
17037         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
17038         * modules/read, modules/readdir, modules/readlink:
17039         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
17040         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
17041         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
17042         * modules/relocatable-script, modules/remainder:
17043         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
17044         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
17045         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
17046         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
17047         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
17048         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
17049         * modules/setlocale, modules/sh-quote, modules/shutdown:
17050         * modules/signal, modules/signbit, modules/sigpipe:
17051         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
17052         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
17053         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
17054         * modules/snippet/link-warning, modules/snippet/unused-parameter:
17055         * modules/snprintf, modules/snprintf-posix, modules/spawn:
17056         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
17057         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
17058         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
17059         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
17060         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
17061         * modules/streq, modules/strerror_r-posix, modules/striconv:
17062         * modules/striconveh, modules/striconveha, modules/strncat:
17063         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
17064         * modules/sublist, modules/sys_resource, modules/sys_utsname:
17065         * modules/sys_wait, modules/system-posix, modules/system-quote:
17066         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
17067         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
17068         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
17069         * modules/truncf, modules/truncf-ieee, modules/truncl:
17070         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
17071         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
17072         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
17073         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
17074         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
17075         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
17076         * modules/wait-process, modules/waitpid, modules/wcpcpy:
17077         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
17078         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
17079         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
17080         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
17081         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
17082         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
17083         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
17084         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
17085         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
17086         * modules/write, modules/xconcat-filename, modules/xlist:
17087         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
17088         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
17089         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
17090         * modules/y0, modules/y1, modules/yn:
17091         Remove Bruno Haible as maintainer; if he's the sole maintainer,
17092         change the maintainer to 'all'.  Let's hope someone volunteers.
17094 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
17096         mktime: merge #if/#ifdef usage from glibc
17097         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
17098         as that works with both Glibc's and Gnulib's style.
17099         See thread starting at Siddhesh Poyarekar's bug report at:
17100         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
17102 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
17104         git-version-gen: improve option descriptions
17105         * build-aux/git-version-gen: Mention that --prefix and --fallback
17106         have a mandatory argument.
17108 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17110         regex: fix memory leak in compiler
17111         Fix by Andreas Schwab in:
17112         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17113         * lib/regcomp.c (parse_expression): Deallocate partially
17114         constructed tree before returning error.
17116         regex: merge patch from libc
17117         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17118         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17119         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17121 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17123         acl: port to gcc -Wredundant-decls
17124         From a request by Dmitry Antipov in:
17125         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17126         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17127         "#ifndef _GL_ACL_H".
17129 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17130         Jim Meyering  <meyering@fb.com>
17132         parse-duration: eliminate 68-year duration limit
17133         * lib/parse-duration.c: Include "intprops.h".
17134         (TIME_MAX): Rename to MAX_DURATION and define to
17135         TYPE_MAXIMUM(time_t).
17136         * modules/parse-duration (Depends-on): Add intprops.
17137         Reported by Jonas 'Sortie' Termansen.
17139 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17141         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17142         * modules/pthread (Depends-on): Add 'extensions', as it defines
17143         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17144         (configure.ac-early): New section.
17145         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17146         it is no longer needed.
17148 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17150         pthread: define thread-safe macros on some platforms
17151         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17152         for thread-safe operation on some platforms.
17154 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17156         regex: don't be multithreaded if USE_UNLOCKED_IO.
17157         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17158         * lib/regex_internal.h: Do not use multithreaded version if
17159         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17160         around a porting bug with coreutils 8.22 on AIX 7.1.
17162 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17164         gettext: update macros to version 0.19
17165         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17166         depend on gl_EXTERN_INLINE and drop support for older Bison
17167         versions.
17169 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17171         select,poll: fix console handle check on windows 8
17172         lib/poll.c (IsConsoleHandle): Change from testing the lower
17173         2 bits of the handle to the more expensive but accurate syscall.
17174         lib/select.c: Likewise.
17176 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17178         select: fix waiting on anonymous pipes on MS-Windows
17179         * lib/select.c (rpl_select): Fall back to polling when select()
17180         indicates there is nothing to check, while due to the timeout not
17181         expiring, activity is indicated on one of the handles.
17182         Also clear the TIMEOUT argument if the timer does expire.
17184 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17186         times: fix to return non constant value on MS-Windows
17187         * lib/times.c (times): Don't use the process creation time,
17188         rather clock() which on windows returns the number of
17189         clock ticks since the process started.
17191 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17193         isatty: fix to work on windows 8
17194         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17195         2 bits of the handle to the more expensive but accurate syscall.
17197 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17199         maint: fix typo in fdl.texi
17200         * doc/fdl.texi: Fix typo (missing '@').
17201         Somehow this was in fdl.texi but not fdl-1.3.texi.
17203 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17205         mountlist: avoid hasmntopt const type warning on solaris
17206         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17207         with char * instead of const char *.  Passing the constant string
17208         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17209         to avoid the warning.
17211 2014-06-04  Eric Blake  <eblake@redhat.com>
17213         maintainer-makefile: delete obsolete code
17214         * top/maint.mk (build_aux): Drop old code, as threatened.
17216         maintainer-makefile: avoid spurious error messages
17217         * top/maint.mk (syntax-check): Guard definition and use of
17218         $(shell) by whether Makefile is present.
17220 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17222         rename: avoid unused-but-set-variable compiler warning
17223         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17224         it is possible that dst_exists may be set but not used.  Mark it with
17225         the unused attribute to avoid compiler warnings.
17227 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17229         rename: mark a label as potentially unused
17230         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17231         by marking the out label as potentially unused.
17232         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17234 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17236         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17237         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17239 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17241         acl: apply pure attribute to two functions
17242         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17243         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17245 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17247         gnulib-common.m4: add _GL_UNUSED_LABEL
17248         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17249         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17251 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17253         dup2, fcntl, fcntl-h: port to AIX 7.1
17254         This fixes some porting problems discovered when testing the latest
17255         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17256         in grep but it could be important for other applications.
17257         * doc/posix-functions/dup2.texi:
17258         * doc/posix-functions/fcntl.texi:
17259         * doc/posix-headers/fcntl.texi:
17260         Document AIX bugs.
17261         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17262         Define to 0 if outside 'int' range.
17263         * m4/dup2.m4 (gl_FUNC_DUP2):
17264         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17265         Check for getdtablesize.  If it's available, test a value just
17266         outside its range instead of testing 1000000.  When cross-compiling,
17267         guess that AIX will fail this improved test.
17269 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17271         printf, config.rpath: Port to FreeBSD 10.
17272         Problem reported by Tijl Coosemans in:
17273         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17274         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17275         (hardcode_direct): Simplify FreeBSD configuration.
17276         (library_names_spec): Don't mishandle FreeBSD 10+.
17277         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17278         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17279         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17280         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17281         Don't mishandle FreeBSD 10+ when cross-compiling.
17283         ftoastr: work around compiler bug in IBM xlc 12.1
17284         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17285         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17286         around a compiler bug in IBM xlc 12.1.0.0: it complains
17287         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17288         _GL_FLT_PREC_BOUND.'
17290 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17292         valgrind-tests: fixed misleading help message
17293         * m4/valgrind-tests.m4: The help message generated by configure
17294         implied that valgrind was disabled by default, which it wasn't.
17295         Adjusted the help message using s/enable/disable/ to clarify.
17297 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17299         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17300         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17301         first double of a PowerPC "double double" pair.
17302         * tests/test-isinf.c (test_isinfl): Likewise.
17303         * tests/test-isnan.c (test_long_double): Likewise.
17304         * tests/test-isnanl.h (main): Likewise.
17305         * tests/test-signbit.c (test_signbitl): Likewise.
17307 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17309         exclude-tests: port to AIX 7.1
17310         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17311         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17312         the regex code uses locks.
17314 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17316         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17317         Without this fix, Emacs would sometimes call sigprocmask instead
17318         of pthread_sigmask, which is a no-no in multithreaded applications.
17319         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17320         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17321         Suppress check for pthread_sigmask working without -lpthread if
17322         the application always links with -lpthread.  Do not link with
17323         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17324         * m4/timer_time.m4 (gl_TIMER_TIME):
17325         Require gl_THREADLIB only if it is defined.  Do not append
17326         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17328 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17330         gnulib-tool: wget translations using --no-verbose rather than --quiet
17331         This allows the user to see error messages if any (--quiet hides them)
17332         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17334 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17336         gnulib-tool: adjust translation wget to avoid a https redirection
17337         Context: http://translationproject.org/latest/gnulib redirects to
17338            https://translationproject.org/latest/gnulib/
17339         Rationale: if the user falls back to wget, she doesn't have rsync and
17340         is probably in a minimal build environment, where packages such as
17341         'ca-certificates' are missing as well, resulting in a failed (and
17342         difficult to detect since ignored) translation initial fetch.
17343         Consequently let's avoid https if possible, and add the missing
17344         trailing slash.  This also avoids an unnecessary 302 redirection.
17345         * gnulib-tool: Add trailing slash to gnulib URL.
17347 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17349         getlogin_r-tests: check return value rather than errno
17350         * tests/test-getlogin_r.c (main): As per POSIX we should be
17351         verifying the return value from getlogin_r() rather than errno.
17353 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17355         getlogin_r-tests: fix various issues in recent change
17356         * tests/test-getlogin_r.c: Include required headers that were
17357         missed in recent commit eec20b4e.
17358         Also consistently check the errno rather than the return value from
17359         getlogin_r as POSIX only specifies that non zero is returned on error.
17360         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17362 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17364         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17365         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17366         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17367         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17368         * lib/spawn-pipe.c:
17369         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17370         and then 'int open64(const char *, int, ...);', which means the
17371         declaration for 'open' gets lost if we later '#undef open'.
17372         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17373         where the compilation reported the non-fatal error "In function
17374         'openat_proc_name' ... warning: implicit declaration of function
17375         'open'".  In this case the error is relatively harmless, but in
17376         other cases it might not be so minor.
17378 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17380         xalloc: don't potentially generate invalid code for xmemdup calls
17381         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17382         this function can initialize the newly-allocated storage with new
17383         pointers, which means this function is not malloc-like.  See:
17384         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17386 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17388         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17389         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17390         changes from commit 97249cf29 to not depend on environment variables.
17392 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17394         getlogin-tests: avoid false failure under cron
17395         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17396         since that's not what's under test.  Centos 6 was seen to return
17397         EINVAL for ttyname() when run from cron.
17399 2014-05-16  Jim Meyering  <meyering@fb.com>
17401         mbrtowc.m4: fix a comment typo
17402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17403         emitted documentation string.
17405 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17407         mbrlen, mbrtowc: fix bug with empty input
17408         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17409         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17410         so this is mainly for documentation.
17411         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17412         (gl_FUNC_MBRTOWC): Use it.
17413         * tests/test-mbrtowc.c (main): Test for the bug.
17415 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17417         doc: document mbrtowc and mbrlen problem with empty input
17418         * doc/posix-functions/mbrlen.texi (mbrlen):
17419         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17420         Document portability problem when the input string is empty.  See:
17421         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17423         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17424         Problem reported by Eli Zaretskii in:
17425         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17426         * doc/posix-functions/execl.texi (execl):
17427         * doc/posix-functions/execle.texi (execle):
17428         * doc/posix-functions/execlp.texi (execlp):
17429         * doc/posix-functions/execv.texi (execv):
17430         * doc/posix-functions/execve.texi (execve):
17431         * doc/posix-functions/execvp.texi (execvp):
17432         Mention spawn+exit problem on non-Cygwin Windows platforms.
17434 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17436         getlogin-tests: avoid false failure under sudo/ssh etc.
17437         * modules/getlogin-tests (configure.ac): Check for ttyname().
17438         * tests/test-getlogin.c (main): Don't depend on environment variables
17439         to correlate with getlogin(), since sudo and ssh etc. can tamper
17440         with the LOGNAME and USER env vars.  Instead lookup the name from
17441         the uid associated with the stdin tty.
17443 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17445         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17446         These were found when building the latest grep snapshot on IRIX 6.5.
17447         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17448         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17449         never used later.
17450         * lib/quotearg.c (quoting_options_from_style):
17451         * lib/xstrtol.c (__xstrtol):
17452         Use enum instead of 0, to pacify IRIX 6.5 cc.
17454 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17456         gitlog-to-changelog: revert inclusion of git-log-fix file
17457         * build-aux/git-log-fix: Delete dummy file.
17458         * modules/gitlog-to-changelog: Don't reference (overwrite)
17459         the project specific git-log-fix file.
17461 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17463         maint.mk: Relax the copyright check to cater for non FSF projects
17464         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17465         to not require the "Free" suffix after the copyright years.
17467 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17469         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17470         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17471         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17472         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17473         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17475 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17477         exclude: port to strict C99
17478         Strict C does not allow converting a function pointer to void *
17479         and vice versa.  Pass a pointer to a function pointer instead.
17480         * lib/exclude.c (add_exclude_file):
17481         Pass the address of the function pointer.
17482         (call_addfn): And deference the address here, to match.
17484 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17486         regex: do not depend on malloc-gnu
17487         * modules/regex (Depends-on): Remove malloc-gnu.
17488         It's no longer needed, because of the 2012-12-29 patch
17489         "regex: port to hosts where malloc (0) == NULL".
17490         Reported by Nathan Kennedy in:
17491         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17493 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17495         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17496         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17497         * doc/posix-functions/expl.texi: Mention the workaround.
17499 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17501         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17502         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17503         size to be zero even when the pointer is nonnull.  This
17504         accommodates the use case where P is malloc (0) and *PN is 0 on a
17505         host where malloc (0) yields nonnull.
17507 2014-04-09  Eric Blake  <eblake@redhat.com>
17509         fts: avoid unnecessary strlen calls
17510         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17512 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17514         fts: avoid unnecessary strlen calls
17515         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17516         when that can be faster than strlen.
17518 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17520         fts: avoid unnecessary strlen calls
17521         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17522         (fts_build): Store the length of the dp->d_name entry in a local variable
17523         instead of calling strlen() several times via the above, removed macro.
17524         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17525         run by ~4%, yet this reduces the execution time by about a third if run
17526         via "ltrace -c rm -rf some-dir".
17528 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17530         obstack: Remove ancient NeXTSTEP gcc support conditional
17531         This change will ease merging with glibc.  The "#if ... __NEXT__"
17532         causes a warning with -Wundef which glibc now enables by default.
17533         Problem reported by Will Newton in
17534         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17535         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17536         so go with that.
17537         * lib/obstack.h (__extension__):
17539 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17541         obstack: merge with glibc changes
17542         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17543         This is mostly indenting and commentary changes.
17544         Instances of 'register' have been removed.
17546 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17548         strftime: wrap macros in "do {...} while(0)"
17549         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17550         this macro in "do {...} while(0)" to prevent false use as a
17551         single statement, e.g., in an un-braced "{}" else-block.
17552         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17553         (strftime_case_): Remove 'else' after 'goto' - which was the
17554         only non-fatal, un-braced use of one of the above macros.
17555         Spotted by coverity (NESTING_INDENT_MISMATCH).
17557 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17559         modechange: avoid memory leaks for invalid octal modes
17560         * lib/modechange.c (mode_compile): During the parsing of
17561         notations like +40, free the 'mc' buffer for invalid mode
17562         strings like +17777 (greater than the maximum octal mode),
17563         =18 (bad octal mode characters) or u=1 ('affected' with
17564         octal modes).
17565         Reproducer, e.g.:
17566             $ valgrind --leak-check=full chmod +17777 file
17567         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17568         add notations +40, 00440, etc.".
17569         Spotted by coverity (RESOURCE_LEAK).
17571 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17573         gitlog-to-changelog: include a dummy git-log-fix file
17574         Problem reported by Nathan Stratton Treadway in:
17575         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17576         * build-aux/git-log-fix: New file.
17578 2014-03-13  Jim Meyering  <meyering@fb.com>
17580         gitlog-to-changelog: also include the file, git-log-fix
17581         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17582         Reported by Assaf Gordon.
17584 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17586         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17587         This fixes a bug when ignoring case and when comparing the
17588         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17589         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17590         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17591         titlecase letter is neither lowercase nor uppercase, but
17592         uppercasing the titlecase letter (via towupper) yields the
17593         uppercase letter, so the two letters should match when ignoring case.
17594         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17595         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17596         Don't test whether a character is lowercase before uppercasing it.
17598 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17600         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17601         This is basically one of the options Bruno Haible proposed in:
17602         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17603         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17604         * lib/stdint.in.h: Use it.
17605         * modules/stdint (Depends-on): Add sys_types.
17607 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17609         parse-datetime: fix crash or infloop in TZ="" parsing
17610         * lib/parse-datetime.y (parse_datetime): Break out of the
17611         TZ="" parsing loop once the second significant " is found.
17612         Also skip over any subsequent whitespace to be consistent
17613         with the non TZ= case.
17614         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17616 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17618         savedir: new symbol for fast-read version
17619         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17620         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17621         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17622         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17624 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17626         unistd: port readlink to Mac OS X 10.3.9
17627         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17628         around self-include problem in Mac OS X 10.3.9 when combined with
17629         readlink module.  Problem reported by Klaus Zietler in
17630         <http://bugs.gnu.org/16825>.
17632 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17634         diffseq: remove TOO_EXPENSIVE heuristic
17635         Problem with diffutils reported by Vincent Lefevre in
17636         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17637         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17638         Although appropriate for circa-1993 hardware, these days the heuristic
17639         seems to be more trouble than it's worth.
17640         * lib/diffseq.h: Modernize citations.
17641         (struct context): Remove member too_expensive.
17642         All uses changed.
17643         (struct partition): Remove members lo_minimal, hi_minimal.
17644         All uses changed.
17645         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17646         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17647         1993 to make 'diff' run faster (but not as well) on large inputs.
17648         These days, computers are fast enough that it's typically better
17649         to run slower but more accurately.
17650         * lib/fstrcmp.c: Remove duplicate comment.
17651         * lib/fstrcmp.c (strcmp_bounded):
17652         * lib/git-merge-changelog.c (compute_differences):
17653         Adjust to diffseq.h changes.
17654         * NEWS: Document the change.
17656         savedir: simplify by using stpcpy
17657         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17658         (streamsavedir): Use stpcpy instead.
17659         * modules/savedir (Depends-on): Add stpcpy.
17661 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17663         spawn: fix link error on uclibc
17664         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17665         to incorporate -lrt if needed (on uclibc for example).
17666         * modules/posix_spawn: Reference the substituted LIB.
17668 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17669         timer: fix uClibc detection of threading
17670         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17671         enabled in uClibc.
17673 2014-02-21  Eric Blake  <eblake@redhat.com>
17675         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17676         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17678 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17680         exclude: add support for posix regexps
17682         This commit adds support for POSIX extended regular expressions
17683         and fixes a long-standing memory leak (pattern buffer was never
17684         freed).  It also implements a new interface function to read
17685         exclude patterns from a FILE, which passes an additional parameter
17686         to its callback function, thereby allowing to preserve its state
17687         between invocations.
17689         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17690         (pattern_buffer): New struct.
17691         (exclude): New member patbuf.
17692         (exclude_add_pattern_buffer): New function.
17693         (free_exclude_segment): Free regexps.
17694         (free_exclude): Free allocated pattern buffers.
17695         (exclude_patopts): New function.
17696         (file_pattern_matches): Use exclude_patopts.
17697         (add_exclude): support regexps.
17698         (add_exclude_fp): New function.
17699         (add_exclude_file): Rewrite using add_exclude_fp.
17700         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17701         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17702         (add_exclude_fp)
17703         (add_exclude_file): Rewrite using add_exclude_fp.
17704         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17705         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17706         (add_exclude_fp)
17707         (exclude_add_pattern_buffer): New prototypes.
17708         * modules/exclude: Depends on regex and filename.
17710 2014-02-20  Eric Blake  <eblake@redhat.com>
17712         maintainer-makefiles: use $(SED) for syntax check
17713         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17714         * top/maint.mk: Change sed to $(SED).
17716 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17717             Paul Eggert  <eggert@cs.ucla.edu>
17719         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17720         Patch based on an idea by Dick Streefland in
17721         <https://savannah.gnu.org/patch/?7892>.
17722         * NEWS: Document this.
17723         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17724         (direntry_t, comparison_function): New types.
17725         (direntry_cmp_name): New function.
17726         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17727         (streamsavedir, savedir): New arg OPTION.
17728         (streamsavedir): Simplify memory allocation.
17729         (fdsavedir): Remove.
17730         * lib/savedir.h (enum savedir_option): New type.
17731         (streamsavedir, savedir): New arg OPTION.
17732         (fdsavedir): Remove.
17734 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17736         file-type: add support for doors and other less-common file types
17737         Problem with S_ISDOOR reported by Rich Burridge.
17738         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17739         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17740         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17742 2014-01-23  Eric Blake  <eblake@redhat.com>
17744         pthread: work around winpthread header pollution on mingw
17745         * lib/time.in.h: Move pthread workarounds...
17746         * lib/pthread.in.h: ...here.
17747         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17748         detect macro pollution on mingw.
17749         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17751 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17753         qacl: check for fchmod
17754         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17755         and qset-acl.c both use HAVE_FCHMOD.
17757 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17759         fdopen-tests: port to Tru64
17760         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17761         descriptor that is not open, as POSIX doesn't specify the
17762         resulting behavior and the test does not work on Tru64.
17763         Problem reported by Steven M. Schweda in:
17764         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17766         stdalign: port to HP-UX compilers
17767         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17768         if __HP_cc or __HP_aCC are nonzero.
17770 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17772         strtoimax: port to platforms lacking 'long long'
17773         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17774         check whether strtoll is declared, which causes the C file to
17775         wrongly report an error.  Problem reported by Steven M. Schweda in:
17776         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17777         * lib/strtoimax.c (strtoull):
17778         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17779         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17781 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17783         relocatable-perl: fix texi syntax
17784         * doc/relocatable-maint.texi: Escape braces.
17786 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17788         relocatable-perl: like relocatable-script, but for Perl scripts
17789         * build-aux/relocatable.pl.in: Add.
17790         * doc/relocatable-maint.texi: Add documentation.
17791         * modules/relocatable-perl: Add.
17793 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17795         tests: fix export bug in previous patch
17796         Problem reported by Jim Meyering.
17797         * tests/init.sh (re_shell): New var, which is exported instead of
17798         re_shell_.
17800         tests: simplify porting to Solaris 10 /bin/sh
17801         Some test cases in 'grep' need a shell that groks '$(';
17802         export re_shell_ for their benefit.  Problem reported for 'grep'
17803         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17804         * tests/init.sh (re_shell_): Export if it's used.
17806 2014-01-06  Eric Blake  <eblake@redhat.com>
17808         md5, sha1, sha256, sha512: support older autoconf
17809         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17810         for autoconf < 2.63b.
17812         include_next: port to autoconf 2.63
17813         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17815 2014-01-04  Jim Meyering  <meyering@fb.com>
17817         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17818         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17819         so that "make sc_maint" will ding anyone who puts non-ascii
17820         in any of gnulib's .texi files.
17822 2014-01-03  Jim Meyering  <meyering@fb.com>
17824         freadable, fwritable, fwriting: declare with the "pure" attribute
17825         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17826         * lib/fwritable.h (fwritable): Likewise.
17827         * lib/fwriting.h (fwriting): Likewise.
17828         Suggested by Bruno Haible.
17830         maint.mk: adapt openat.h-include-without-use test
17831         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17832         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17833         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17834         With this change, running "make sc_maint" in gnulib's top-level
17835         directory now passes for me.
17837 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17839         doc: use ASCII in .texi files where UTF-8 isn't needed
17840         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17841         * doc/posix-functions/setkey.texi, doc/regex.texi:
17842         Use ASCII input, not UTF-8.
17844 2014-01-02  Jim Meyering  <meyering@fb.com>
17846         freading: declare with the "pure" attribute
17847         * lib/freading.h (freading): Declare with the "pure" attribute.
17849         manywarnings: remove -Wmudflap
17850         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17851         it is no longer supported in gcc-4.9-to-be.
17853 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17855         relocatable-script: remove unused code
17856         Problem reported by Reuben Thomas in:
17857         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17858         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17860 2014-01-01  Jim Meyering  <meyering@fb.com>
17862         maint: fix public-submodule-commit to work with newer git
17863         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17864         We were over-quoting the test arguments, and somewhere prior to
17865         version 1.8.5.2.229, git stopped removing those excess quotes,
17866         which made the test fail, since the unexpanded strings would
17867         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17868         command wasn't even being run.
17870 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17872         doc: update main copyright year
17873         * doc/gnulib.texi: Update copyright date.
17875 2014-01-01  Eric Blake  <eblake@redhat.com>
17877         version-etc: new year
17878         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17879         * all files: run 'make update-copyright'
17881 2013-12-24  Eric Blake  <eblake@redhat.com>
17883         passfd: give nicer error for recvfd at eof
17884         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17885         * tests/test-passfd.c (main): Enhance test to cover this.
17887 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17889         gettimeofday: port recent C++ fix to Emacs
17890         Without this further patch, Emacs won't build due to
17891         the portcheck failing.  Also, this simplifies the patch a bit.
17892         * lib/time.in.h (localtime, gmtime): Don't replace unless
17893         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17894         * lib/time.in.h (localtime, gmtime):
17895         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17896         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17897         * modules/time (time.h):
17898         Don't worry about the possibility of localtime and gmtime
17899         being absent; they're present in all C libraries we know about.
17900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17901         Don't assume sys_time is present and has been initialized.
17902         Instead, use a hack that should work even if it hasn't been.
17903         Don't use a portcheck for gmtime or localtime; this supports
17904         the hack.
17905         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17907 2013-12-17  John W. Eaton  <jwe@gnu.org>
17909         gettimeofday: fix C++ crosscompilation
17911         Never replace gmtime and localtime by macros when compiling with
17912         C++, this prevents <ctime> from being included.
17914         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17915         define gmtime and localtime as preprocessor macros.  Instead
17916         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17917         REPLACE_LOCALTIME substitutions.
17918         * lib/time.in.h: Declare gmtime and localtime when needed.
17919         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17920         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17921         * modules/time: Depend on gettimeofday, and substitute the above
17922         variables in time.h.
17924 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17926         qacl: port to Windows better
17927         See Eli Zaretskii in
17928         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17929         * lib/file-has-acl.c (acl_access_nontrivial):
17930         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17931         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17933 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17935         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17936         * lib/gl_openssl.h: Cast void pointers to a specific type.
17938 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17940         open-tests: fix build failure with -Werror=old-style-declaration
17941         * tests/test-open.h: Reorder the inline to avoid the issue.
17943 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17945         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17946         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17947         init time, so that if early checks find crypto routines,
17948         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17949         avoiding link failures.
17951 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17953         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17954         This provides a new way to specify the default for
17955         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17956         Emacs uses this, as well as the old way.
17957         This attempts to implement a suggestion by Pádraig Brady in
17958         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17959         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17960         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17962         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17963         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17964         Add support for a new option, --with-openssl=auto, which causes
17965         the library to be used if available and silently ignored if not.
17966         Add support to allow configure.ac to specify its own
17967         default, by setting with_openssl_default before invoking gl_INIT.
17969 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17971         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17972         Problem reported by Daiki Ueno in:
17973         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17974         * tests/test-open.h (__always_inline):
17975         New macro, if not already defined.
17976         (test_open): Use it.
17978 2013-12-04  Eric Blake  <eblake@redhat.com>
17980         include_next: minimize code duplication
17981         * modules/include_next (Depends-on): Add absolute-header.
17982         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17983         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17985 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17987         getcwd: fix compile error in configure check
17988         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17990 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17992         regex: suppress core dumps from detection code
17993         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17994         to suppress core dumps that may well occur on glibc systems.
17995         These core dumps might not be cleaned up automatically, or could
17996         trigger some system core dump handling logic.
17998 2013-12-03  Pádraig Brady  <P@draigBrady.com>
18000         md5, sha1, sha256, sha512: support mandating use of openssl
18001         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
18002         description, to list the now 3 separate options.  also don't
18003         mention the default=no, since this is implicit given the option
18004         is described as --with-openssl rather than --without-openssl.
18005         If projects change the default they're free to document that.
18006         with --with-openssl[=yes] we now error out when the specified
18007         hash algorithm is not available in libcrypto.
18009 2013-12-03  Ivailo  <xakepa10@gmail.com>
18011         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
18012         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
18013         -Wformat-nonliteral checks, as these edge cases are part of the test.
18015 2013-12-03  Eric Blake  <eblake@redhat.com>
18017         regex: avoid glibc deadlock during configure
18018         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
18019         glibc bug 15078 in turn triggers bug 16159.
18020         Reported by Michal Privoznik.
18022 2013-12-02  Pádraig Brady  <P@draigBrady.com>
18024         md5, sha1, sha256, sha512: use openssl routines if available.
18025         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18026         routines will be used if available, requiring apps to link @LIB_CRYPTO@
18027         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
18028         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
18029         in the standard system location.
18030         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
18031         * m4/sha256.m4: Likewise with SHA256.
18032         * m4/sha512.m4: Likewise with SHA512.
18033         * m4/md5.m4: Likewise with MD5.
18034         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
18035         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
18036         * lib/sha256.h: Likewise with SHA256.
18037         * lib/sha512.h: Likewise with SHA512.
18038         * lib/md5.h: Likewise with MD5.
18039         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
18040         * lib/sha256.c: Likewise with SHA256.
18041         * lib/sha512.c: Likewise with SHA512.
18042         * lib/md5.c: Likewise with MD5.
18043         * modules/crypto/sha1 (Link:): Add the new optional lib.
18044         (Depends-on:): Add dependency on extern-inline.
18045         * modules/crypto/sha256: Likewise.
18046         * modules/crypto/sha512: Likewise.
18047         * modules/crypto/md5: Likewise.
18048         * modules/crypto/sha1-tests: Reference the lib here too.
18049         * modules/crypto/md5-tests: Likewise.
18050         * modules/crypto/gc-des-tests: Likewise.
18051         * modules/crypto/gc-hmac-md5-tests: Likewise.
18052         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18053         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18054         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18055         * modules/crypto/gc-md5-tests: Likewise.
18056         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18057         * modules/crypto/gc-sha1-tests: Likewise.
18058         * modules/crypto/gc-tests: Likewise.
18059         * modules/crypto/hmac-md5-tests: Likewise.
18060         * modules/crypto/hmac-sha1-tests: Likewise.
18061         * modules/crypto/hmac-sha256-tests: Likewise.
18062         * modules/crypto/hmac-sha512-tests: Likewise.
18064 2013-11-29  RV1971  <rv1971@web.de>
18066         base64: (trivial) fix compilation regression on some compilers
18067         * lib/base64.c: Don't return the void function,
18068         instead split to a separate return statement.
18070 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18072         ignore-value: revert previous code change
18073         * lib/ignore-value.h (ignore_value): Use __extension__ and
18074         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
18075         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
18076         Change the comment to try to explain this better.
18078 2013-11-27  Pádraig Brady  <P@draigBrady.com>
18080         selinux-h: improve stub types and add more stub functions
18082         * lib/se-selinux.in.h: Change security_context_t to a typedef
18083         rather than a define, as it's a pointer type and so is better
18084         as a typedef to avoid issues declaring multiple variables
18085         with the comma operator.  Also add stub for string_to_security_class().
18086         * lib/se-context.in.h: Add stub functions for
18087         context_{type,range,role,user}_get().
18089 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18091         ignore-value: prefer GCC version back through 2.0
18092         The code didn't match the comments, so I did a bit of software
18093         archaeology.  GCC 2.0 seems to support __extension__ and
18094         __typeof__, so fix both code and comments to use 2.0.
18095         * lib/ignore-value.h (ignore_value): Use __extension__ and
18096         __typeof__ for GCC 2.0 through 3.3, too.
18098 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
18100         pty: Activate the signature wrapper of forkpty.
18101         The intended preprocessor macro HAVE_FORKPTY is
18102         never defined, yet `lib/forkpty.c' depends on it.
18104         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
18105         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18106         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18108 2013-11-18  Jim Meyering  <meyering@fb.com>
18109         and Paul Eggert  <eggert@cs.ucla.edu>
18111         quotearg: don't attempt to store 1 << 31 into an "int"
18112         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18113         gcc's new -fsanitize=undefined and running its tests triggered some
18114         new test failures due to undefined behavior, all with this diagnostic:
18115           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18116             cannot be represented in type int
18117         Rather than shifting "1" left to form a mask, shift the bits right and
18118         simply use "1" as the mask.
18120 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18122         error: depend on stdio
18123         Problem reported by Nikos Mavrogiannopoulos in
18124         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18125         * modules/error (Depends-on): Add stdio.
18127 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18129         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18130         wording.
18131         Reported by Reuben Thomas <rrt@sc3d.org>.
18133 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18135         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18136         New function and macro, to work around _DARWIN_C_SOURCE problem.
18137         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18139 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18141         base64: provide a fast path for encoding well sized buffers
18142         Avoid conditionals in the base64 encoding loop,
18143         which was seen to give 60% better throughput.
18144         * lib/base64.c (base64_encode_fast): A new function to be called
18145         when we don't want to NUL terminate, and we have enough space
18146         in the output to encode the given input.
18147         (base64_encode): Call the _fast() version when appropriate.
18148         Also remove a redundant mask with 0x3F on the first encoded byte.
18150 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18152         extern-inline: port better to OS X 10.9
18153         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18154         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18155         OS X 10.9, except for g++ where the bug is still present.
18156         See <http://trac.macports.org/ticket/41033>.
18158 2013-11-08  Eric Blake  <eblake@redhat.com>
18160         fpending: fix regression on DragonFly BSD
18161         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18162         * lib/fpending.h (__fpending): Don't declare twice.
18163         Reported by GW in
18164         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18166 2013-11-05  Jim Meyering  <meyering@fb.com>
18168         hash: relax license to LGPLv2+, for libguestfs
18169         * modules/hash (License): Change from GPL to LGPLv2+.
18171 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18173         intprops: port to Oracle Studio c99
18174         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18175         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18177 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18179         obstack: pacify HP C
18180         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18181         warning "conversion from pointer to smaller integer" from HP
18182         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18183         C89 or later nowadays, so cast to void instead of int.  Privately
18184         reported by H.Merijn Brand.  Also, change header to match glibc's,
18185         to make checking against glibc easier.
18187 2013-10-29  Jim Meyering  <meyering@fb.com>
18189         maint.mk: prefer gpgv2 over gpgv
18190         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18191         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18192         Reported by Gary Vaughan.
18194 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18196         isnan: port to VAX
18197         Reported by John Klos for NetBSD-5/VAX in
18198         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18199         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18200         (FUNC): Use it.
18202 2013-10-28  Jim Meyering  <meyering@fb.com>
18204         gnulib-tool: protect against CDPATH
18205         * gnulib-tool: Many "cd" built-in functions print a directory name
18206         to stdout when CDPATH is set, e.g.,
18207           $ bash -c 'CDPATH=/; cd tmp'
18208           /tmp
18209         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18211         maint.mk: restore functionality removed by recent change...
18212         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18213         the context of a shallow-cloned gnulib repository: "git describe"
18214         would fail in such a directory.  However, that change made it so
18215         the reported gnulib revision no longer includes the version number
18216         or a commit count, even when run from a full clone.
18217         * top/maint.mk (gnulib-version): Use the full "git describe"
18218         output when possible, e.g., the form above, rather than the
18219         abbreviated, no-tag, no-commit-count string, and fall back to
18220         using a 10-byte hash, rather than the default minimal-length
18221         hash prefix, since while the minimal-length one may be fine today,
18222         it is likely not to be unique for very long.
18224 2013-10-26  Jim Meyering  <meyering@fb.com>
18226         maint.mk: fix "release" target to build _version
18227         This fixes a bug in README-release whereby following the outlined
18228         steps, one would publish a tarball whose programs would report
18229         --version output not consistent with the package version number.
18230         This bug caused grep-2.15 to produce a grep program whose
18231         --version option made it print 2.14.56-1e3d rather than 2.15.
18232         * top/maint.mk (release): Making this target build "_version"
18233         ensures that the new version number is reflected in configure.
18235 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18237         install-reloc: Support multi-binary installation.
18238         * build-aux/install-reloc: Support installing multiple programs in
18239         one invocation, as done by Automake starting with commit
18240         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18241         Haible <bruno@clisp.org>, archived at
18242         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18243         Reported by Sylvain <beuc@gnu.org>.
18245 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18247         selinux-h: Really build without selinux when library is missing.
18248         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18249         continue without selinux, as already told in the warning message.
18251 2013-10-21  Jim Meyering  <meyering@fb.com>
18253         regex: also remove dependency on HAVE_WCSCOLL
18254         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18256 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18258         xfreopen: Fix typo. s/frepoen/freopen/
18259         * lib/xfreopen.c: Fix description.
18260         * modules/xfreopen: Likewise.
18262 2013-10-21  Jim Meyering  <meyering@fb.com>
18264         regex: don't depend on wcscoll
18265         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18266         It is no longer used.
18268 2013-10-20  Jim Meyering  <meyering@fb.com>
18270         error: add the printf attribute to a static function
18271         * lib/error.c (error_tail): Add the printf attribute, to placate
18272         gcc's -Werror=suggest-attribute=format option.
18274 2013-09-30  Jim Meyering  <meyering@fb.com>
18276         fpending, obstack, strerror-override: use pure+const function attrs
18277         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18278         * lib/obstack.c (_obstack_allocated_p): Likewise.
18279         * lib/obstack.h (_obstack_memory_used): Likewise.
18280         (_obstack_memory_used): Likewise.
18281         * lib/strerror-override.h (strerror_override): Declare with
18282         the "const" attribute.
18284 2013-10-18  Eric Blake  <eblake@redhat.com>
18286         extern-inline: make safe for -Wundef usage
18287         Reported by Vladimir 'phcoder' Serbinenko in
18288         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18289         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18291 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18293         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18294         Problem reported by Daniel Richard G. in
18295         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18296         * doc/posix-functions/mkfifo.texi (mkfifo):
18297         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18298         * doc/posix-functions/mknod.texi (mknod):
18299         * doc/posix-functions/mknodat.texi (mknodat):
18300         Document the HP-UX 11.11 bug.
18301         * tests/test-mkfifo.h (test_mkfifo):
18302         Allow the HP-UX 11.11 bug.
18304 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18306         acl: allow cross-compilation to Gentoo
18307         Problem reported by Gabriel Marcano in
18308         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18309         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18310         test only whether it links.
18312 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18314         mgetgroups: remove dependency on realloc-gnu
18315         The dependency violates the comment in realloc-gnu, which
18316         says that tests can't depend on realloc-gnu; some tests depend
18317         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18318         Problem reported by Daniel Richard G. in
18319         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18320         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18321         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18322         not realloc-gnu.
18324 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18326         regex-tests: port to HP-UX 11.11
18327         Problem reported by Daniel Richard G. in
18328         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18329         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18331 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18333         verify: document some 'assume' pitfalls
18334         * doc/verify.texi (Compile-time Assertions):
18335         Mention that 'assume (E)' can sometimes slow things down.
18336         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18338 2013-10-10  Eric Blake  <eblake@redhat.com>
18340         strtoumax: fix typo in previous commit.
18341         * modules/strtoumax (Depends-on): Fix typo.
18342         * modules/strtoimax (Depends-on): Likewise.
18344 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18346         strtoumax: port to Solaris 8
18347         This problem was introduced in the recent HP-UX patch.
18348         Reported by Tom G. Christensen in
18349         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18350         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18351         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18353 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18355         strtoimax, strtoumax: port to HP-UX 11.11
18356         Problem reported by Daniel Richard G. in
18357         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18358         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18359         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18360         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18361         REPLACE_STRTOUMAX.
18362         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18363         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18364         Replace the function if defined as a macro but not as a function.
18365         * modules/inttypes-incomplete (inttypes.h): Substitute
18366         REPLACE_STRTOUMAX.
18367         * modules/strtoumax (configure.ac): Replace strtoumax if
18368         REPLACE_STRTOUMAX.
18370 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18372         strtoimax: port to HP-UX 11.11
18373         Problem reported by Daniel Richard G.
18374         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18375         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18376         they might clash with inttypes.h.
18378 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18380         New module 'count-trailing-zeros'.
18381         * MODULES.html.sh: Mention it.
18382         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18383         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18384         * modules/count-trailing-zeros-tests:
18385         * tests/test-count-trailing-zeros.c:
18386         New files.
18388         count-leading-zeros: port to MSC; support types wider than 64 bits
18389         The ideas behind the MSC port are stolen from Emacs.
18390         * lib/count-leading-zeros.h:
18391         Don't include verify.h: it's no longer needed, as types wider than
18392         64 bits are now supported.
18393         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18394         performance with MSC.  All uses changed.  Do not assume that TYPE
18395         has at most 64 bits.
18396         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18397         All uses changed.  Fold the subtraction from 31 into the table.
18399         count-one-bits: port to MSC; support types wider than 64 bits
18400         The ideas behind the MSC port are stolen from Emacs.
18401         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18402         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18403         Don't include verify.h: it's no longer needed, as types wider than
18404         64 bits are now supported.
18405         (COUNT_ONE_BITS_GENERIC): New macro.
18406         (popcount_supported) [_MSC_VER]: New inline function.
18407         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18408         performance with MSC.  All uses changed.  Do not assume that TYPE
18409         has at most 64 bits.
18410         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18412 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18414         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18415         * lib/mountlist.c (read_file_system_list): fix leak of directory
18416         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18418 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18420         tests: improve diagnostic when an assertion fails
18421         * tests/macros.h (ASSERT): Report the assertion that failed.
18423 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18425         verify: new macro 'assume'
18426         This is taken from Emacs, and should be generally useful.
18427         * doc/verify.texi (assume): Document it.
18428         * lib/verify.h (assume): New macro.
18429         (__has_builtin): Expand to 0 if not defined.
18431 2013-09-26  Eric Blake  <eblake@redhat.com>
18433         dup2, dup3: work around another cygwin crasher
18434         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18435         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18436         * tests/test-dup2.c (main): Likewise.
18437         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18438         * lib/dup3.c (dup3): Likewise.
18439         * doc/posix-functions/dup2.texi (dup2): Document it.
18440         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18442         getdtablesize: work around cygwin issue
18443         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18444         * modules/getdtablesize (configure.ac): Build replacement.
18445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18446         * modules/unistd (Makefile.am): Expose the witness.
18447         * lib/unistd.in.h (getdtablesize): Declare replacement.
18448         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18449         * tests/test-getdtablesize.c (main): Test it.
18450         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18452 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18454         pmccabe2html: escaping of special characters
18455         Escape all '<', '>', and '&' in HTML output.
18456         * build-aux/pmccabe2html (html_fnc): Call gsub()
18457         instead of sub() to capture all '<', '>', and '&'.
18458         Neither of '<' and '>' is special in a regexp,
18459         so first arguments to gsub() are corrected. Also,
18460         in replacement strings, ampersand must be escaped.
18461         Finally, '&' must be handled first, then '<' and '>'.
18463 2013-09-24  Eric Blake  <eblake@redhat.com>
18465         manywarnings: enable nicer gcc warning messages
18466         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18467         some -f options for optimal warnings.
18469 2013-09-21  Jim Meyering  <meyering@fb.com>
18471         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18472         * lib/timespec-add.c (timespec_add): Also replace 999999999
18473         with TIMESPEC_RESOLUTION - 1.
18474         * lib/timespec-sub.c (timespec_sub): Likewise.
18476 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18478         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18479         Problem reported by Dagobert Michelsen via Eric Blake in
18480         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18481         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18482         not AC_COMPILE_IFELSE.
18484 2013-09-23  Eric Blake  <eblake@redhat.com>
18486         configmake: support new --runstatedir option
18487         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18488         even if autoconf was too old to provide the command line option.
18489         * modules/configmake (Makefile.am): Propagate it to .h file.
18491 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18493         ctype, string: depend on extern-inline
18494         This is needed to complete the recent OS X fixes.
18495         Also, fix related documentation as suggested by Eric Blake.
18496         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18497         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18498         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18499         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18500         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18501         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18502         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18503         * doc/posix-functions/toupper.texi:
18504         List the 'ctype' gnulib module.
18505         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18506         * doc/posix-functions/strncpy.texi:
18507         List the 'string' gnulib module.
18508         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18509         Add string.
18510         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18512 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18514         userspec: support optional parameters to parse_user_spec()
18515         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18516         then avoid group processing and treat the full spec as a user.
18517         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18518         be optional params (NULL), in which case they're ignored.
18520 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18522         timespec: new function make_timespec, and new constants
18523         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18524         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18525         (make_timespec): New function.
18526         * lib/dtotimespec.c (dtotimespec):
18527         * lib/timespec-add.c (timespec_add):
18528         * lib/timespec-sub.c (timespec_sub):
18529         * lib/utimens.c (validate_timespec):
18530         * lib/utimensat.c (rpl_utimensat):
18531         Use these new constants and functions.
18533         stdio: OS X port of putc_unlocked + extern inline
18534         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18535         * doc/posix-functions/putc_unlocked.texi:
18536         * doc/posix-functions/putchar_unlocked.texi:
18537         Document this portability problem.
18539         signal: OS X port of sigaddset etc. + extern inline
18540         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18541         (sigismember): #undef on problematic Apple platforms.
18542         * doc/posix-functions/sigaddset.texi:
18543         * doc/posix-functions/sigdelset.texi:
18544         * doc/posix-functions/sigemptyset.texi:
18545         * doc/posix-functions/sigfillset.texi:
18546         * doc/posix-functions/sigismember.texi:
18547         Document this portability problem.
18549         extern-inline: do not always suppress extern inline on OS X
18550         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18551         extern inline on Apple only if the particular compile-time
18552         configuration is known to have the problem.
18553         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18554         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18555         other Gnulib modules.
18557         extern-inline: document fixes for ctype and wctype macros
18558         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18559         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18560         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18561         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18562         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18563         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18564         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18565         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18566         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18567         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18568         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18569         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18570         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18571         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18572         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18573         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18574         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18575         * doc/posix-functions/strncpy.texi:
18576         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18577         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18578         Document that Gnulib fixes portability problems with these
18579         functions on OS X 10.8 and earlier when called from plain inline
18580         or extern inline functions.
18582 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18584         fflush, freadahead, fseeko: Fix for Android
18585         Suggested by Bruno Haible in:
18586         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18587         * lib/stdio-impl.h: Use local __sfileext definition.
18589 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18591         pmccabe2html: Portability to other awk versions.
18592         The functions systime() and strftime() are available
18593         in Gawk only.  Properly close two HTML-tags 'style'
18594         and 'span'.
18595         * build-aux/pmccabe2html (BEGIN): Store timing
18596         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18597         systime() in HTML_COMMENT.
18598         (html_header): Correctly close tag 'style'.
18599         (END): Replace strftime() by CHRONOS_TIME.  Close
18600         tag 'span' correctly, not as 'div'.
18602 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18604         getgroups: statement without effect
18605         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18606         Change equality conditional to expected assignment.
18608 2013-09-09  Eric Blake  <eblake@redhat.com>
18610         glob: fix compilation
18611         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18613 2013-09-07  Eric Blake  <eblake@redhat.com>
18615         glob: fix build for platforms without __THROW
18616         * lib/glob.in.h (__THROW): Add definition again.
18618 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18620         regex-quote: fix buffer access out of bounds
18621         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18622         * lib/regex-quote.c (regex_quote_spec_pcre):
18623         Fix typo that resulted in an out-of-bounds read.
18625 2013-09-04  Eric Blake  <eblake@redhat.com>
18627         glob: avoid -Wattribute warnings on glibc
18628         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18629         __THROWNL, not __THROW, on static functions.
18630         * lib/glob.in.h (__THROW): Adjust...
18631         (__THROWNL): ...accordingly.
18633 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18635         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18636         Suggested by Bruce Korb in:
18637         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18638         * doc/extern-inline.texi (extern inline):
18639         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18640         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18641         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18642         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18643         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18644         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18645         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18646         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18647         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18648         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18649         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18650         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18651         * lib/xtime.h:
18652         Check that _GL_INLINE_HEADER_BEGIN is defined.
18654 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18656         bootstrap: remove the --version requirement from ancillary tools
18657         * build-aux/bootstrap (check_exists): A new refactored function to
18658         determine if a command exists.
18659         (find_tool): Use the new function which does not require the
18660         --version option to be supported.
18661         (check_versions): Use the new function.
18663 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18665         gc: support HMAC-SHA256 and HMAC-SHA512.
18666         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18667         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18668         functions.
18669         (gc_hmac_md5): Use symbolic constant.
18670         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18671         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18672         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18673         * m4/sha256.m4: Protect against empty expansion.
18674         * m4/sha512.m4: Likewise.
18675         * lib/hmac-sha256.c: New file.
18676         * lib/hmac-sha512.c: Likewise.
18677         * m4/gc-hmac-sha256.m4: Likewise.
18678         * m4/gc-hmac-sha512.m4: Likewise.
18679         * m4/gc-sha256.m4: Likewise.
18680         * m4/gc-sha512.m4: Likewise.
18681         * modules/crypto/gc-hmac-sha256: Likewise.
18682         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18683         * modules/crypto/gc-hmac-sha512: Likewise.
18684         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18685         * modules/crypto/hmac-sha256: Likewise.
18686         * modules/crypto/hmac-sha256-tests: Likewise.
18687         * modules/crypto/hmac-sha512: Likewise.
18688         * modules/crypto/hmac-sha512-tests: Likewise.
18689         * tests/test-gc-hmac-sha256.c: Likewise.
18690         * tests/test-gc-hmac-sha512.c: Likewise
18691         * tests/test-hmac-sha256.c: Likewise.
18692         * tests/test-hmac-sha512.c: Likewise
18694 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18696         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18697         of AC_CHECK_DECLS.
18699 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18701         selinux-at: omit unnecessary include
18702         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18703         this source file doesn't use its macros, and subsidiary files that
18704         use the macros already include it.
18706 2013-08-21  Eric Blake  <eblake@redhat.com>
18708         d-ino: avoid false negative on symlink
18709         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18710         Reported by Stephane Chazelas.
18712 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18714         bootstrap: port to OpenBSD sed
18715         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18716         does not interpret `-' as a file argument to mean stdin.
18718 2013-08-15  Eric Blake  <eblake@redhat.com>
18720         warnings: minor optimization
18721         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18723         warnings: check -Wfoo rather than -Wno-foo
18724         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18725         -Wno-, test if the compiler recognizes the positive form instead.
18727 2013-08-15  Karl Berry  <karl@gnu.org>
18729         * config/srclist-update: add option "doclicense" to placate
18730         pulling *.texi files from Emacs.  Write terse usage
18731         documentation at the top.
18733 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18735         xvasprintf-tests: port to GCC with hardening flags
18736         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18737         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18738         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18740 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18742         fpending: port to recent Cygwin change to stdio_ext.h
18743         Reported by LRN in
18744         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18745         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18746         just declare __fpending unless it's a macro.
18747         A duplicate decl shouldn't hurt.
18748         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18749         call compiles and links, instead of separately checking for
18750         decl and lib function.
18751         * modules/fpending (configure-ac):
18752         Adjust to fpending.m4's renaming of shell variable.
18754 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18756         sys_time: port to OpenBSD
18757         * lib/sys_time.in.h: Simply delegate to the system's header
18758         in the BSDish cases as well.  Problem reported by Mike Miller in
18759         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18760         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18761         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18762         wider than time_t.
18764 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18766         bootstrap: support checksum utils having -c but not --status
18767         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18768         Add sha1 to the list of supported checksum utils since it's now
18769         supported through adjustments below.
18770         (update_po_files): Remove the use of --status
18771         in a way that will suppress all error messages, but since this is
18772         only used to minimize updates, it shouldn't cause an issue.
18773         Exit early if there is a problem updating the po file checksums.
18774         (find_tool): Remove the check for --version support as this
18775         is optional as per commit 86186b17.  Don't even check for the
18776         presence of the command as if that is needed, it's supported
18777         through configuring prerequisites in bootstrap.conf.
18778         Prompt that when a tool isn't found, one can define an environment
18779         variable to add to the hardcoded search list.
18781 2013-08-05  Jim Meyering  <meyering@fb.com>
18783         regex: port to non-glibc/lock-using systems
18784         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18785         system with GNULIB_LOCK would fail due to absence of the
18786         included "glthread/lock.h".  This would affect any package
18787         for which the "lock" module is used only by the regex module,
18788         and not explicitly used.
18789         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18790         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18791         Add a dependency on the "lock" module.
18793 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18795         localecharset: make locale_charset thread-safe on Mac OS X
18796         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18797         instead of MB_CUR_MAX.
18799 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18801         gettext: update to version 0.18.3
18802         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18803         require AC_PROG_SED to allow user to specify custom sed command when
18804         generating en@quot PO file.
18806 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18808         bootstrap: use correct source when copying build-aux files
18809         * build-aux/bootstrap (gnulib_extra_files): This variable is
18810         relative to upstream gnulib layout, not downstream.
18812 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18814         tmpdir: fix bug in VMS port
18815         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18816         See Steven M. Schweda in
18817         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18819 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18821         tmpdir: port to VMS, to // != /, and to long dirs
18822         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18823         __secure_getenv, so that we're more like the glibc version.
18824         All uses changed.
18825         (path_search): Don't put slash after directory if __VMS.
18826         Problem reported by Steven M. Schweda in
18827         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18828         Simplify code to add slash; no need for a loop.
18829         Do not remove trailing slash from "//".
18830         Do not assume dlen <= INT_MAX.
18832 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18834         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18835         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18836         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18837         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18839         accept4, dup3, pipe2: port to Cygwin
18840         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18841         * lib/accept4.c (accept4) [O_BINARY]:
18842         * lib/dup3.c (dup3) [O_BINARY]:
18843         * lib/pipe2.c (pipe2) [O_BINARY]:
18844         Use set_binary_mode, not setmode.
18845         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18846         * modules/binary-io (Depends-on): Remove module indicator.
18847         These last two bits undo the previous change to pipe2 and binary-io.
18849 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18851         mountlist: add support for deallocating returned list entries
18852         * lib/mountlist.c (free_mount_entry): A new exported function
18853         to deallocate a mount list entry.
18854         (read_file_system_list): Refactor to use the new deallocation function.
18855         Suggested by Anton Ovchinnikov.
18857 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18859         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18860         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18861         * lib/stdalign.in.h (_Alignas, _Alignof):
18862         Port to FreeBSD 9.1, and to C11 and C++11.
18863         (_Alignas): Also support ICC.
18864         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18865         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18867 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18869         fnmatch: don't goto over declaration
18870         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18871         undefined behavior for goto over a declaration.
18872         Problem reported by Charlie Brown in
18873         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18875         pipe2: decouple from binary-io a bit
18876         This is for Emacs, which needs pipe2 but not binary-io.
18877         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18878         * modules/binary-io (Depends-on): Add module indicator.
18880 2013-07-03  Eric Blake  <eblake@redhat.com>
18882         mgetgroups: relax license to LGPLv2+
18883         * modules/getugroups (License): Change from GPLv3+.
18884         * modules/mgetgroups (License): Likewise.
18885         * modules/getgroups (License): Change from LGPLv3+.
18887         xalloc-oversized: relax license to LGPLv2+
18888         * modules/xalloc-oversized (License): Change from GPLv3+.
18890         nproc: relax license to LGPLv2+
18891         * modules/nproc (License): Change from LGPLv3+.
18893         bootstrap: honor --no-git
18894         * build-aux/bootstrap: Don't even try to use git when user is
18895         pointing to a static checkout.
18897 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18899         ignore-value: port to gcc -pedantic
18900         * lib/ignore-value.h (ignore_value):
18901         Port to gcc -pedantic, by using __extension__.
18902         Reindent as per usual gnulib style nowadays.
18903         Simplify GCC version check.
18905 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18907         extern-inline: port to gcc -std=c89
18908         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18909         Do not use __gnu_inline__ if pedantic and pre-C99.
18911 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18913         doc: document extern-inline
18914         * doc/extern-inline.texi: New file.
18915         * doc/gnulib.texi (alloca-opt): Include it.
18916         * m4/extern-inline.m4: Move some comments to documentation,
18917         and others closer to what they describe.
18919         doc: chatter less
18920         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18921         (updated-stamp): Use it.  This causes 'make' to output just
18922         one file name rather than zillions.
18924         fflush, fseeko: port to musl cross-compiles
18925         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18926         on some implementation that (1) is not known to be buggy,
18927         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18928         cross-compiled to so we can't easily check for lack of
18929         conformance.  This is for cross-compiling to musl.
18930         Reported by Rich Felker in
18931         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18932         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18933         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18934         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18935         Adjust to above change.
18936         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18937         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18938         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18939         known not to work, or unknown.
18941 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18943         msvc-inval: port to mingw-w64
18944         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18945         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18946         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18948 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18950         getcwd-lgpl: port to Tru64
18951         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18952         Problem reported by Steven M. Schweda in
18953         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18955         tests: port large-fd POSIX spawn tests to OS X
18956         Problem reported by Daiki Ueno in
18957         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18958         * tests/test-posix_spawn_file_actions_addclose.c:
18959         * tests/test-posix_spawn_file_actions_adddup2.c:
18960         * tests/test-posix_spawn_file_actions_addopen.c:
18961         Include <limits.h>, for OPEN_MAX, if available.
18962         (big_fd): New static function.
18963         (main): Use it.
18965 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18967         tests/nap.h: use an adaptive delay to avoid ctime update issues
18968         The recent change in nap.h (5191133e) decreased the probability of lost
18969         races to about a third, however such problems could still be observed
18970         in virtual machines and openSUSE's OBS.
18971         Before, nap() detected the needed time once empirically and then used
18972         that delay (together with a small correction multiplier) in further
18973         calls.  This problem has been reported and discussed several times,
18974         including guesses about possible kernel issues:
18975         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18976         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18977         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18978         http://bugs.gnu.org/12820
18979         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18980         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18981         Now, nap() avoids the race alltogether by verifying on a reference
18982         file whether a timestamp difference has happened.
18983         * tests/nap.h (nap_fd): Define file descriptor variable for the
18984         witness file.
18985         (nap_works): Change return value to bool.  Change passing
18986         the old file's status by value instead of by reference as this function
18987         does no longer update that timestamp; rename the function argument from
18988         st to old_st.  Remove the local variables cdiff and mdiff because that
18989         function now returns true/false instead of the precise delay.
18990         (guess_delay): Remove function.
18991         (clear_tmp_file): Add new function to close and unlink the witness file.
18992         (nap): Instead of re-using the delay which has been calculated during
18993         the first call, avoid the race by actually verifying that a timestamp
18994         difference can be observed on the current file system.  Use an adaptive
18995         approach for the delay to minimize execution time.  Assert that the
18996         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18997         = 2^31 - 1 = 2.1s.
18998         Use atexit to call clear_tmp_file when the process terminates.
19000 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19002         sig2str: port to C++
19003         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
19004         Reported by Daniel J Sebald in
19005         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
19007 2013-05-30  Eric Blake  <eblake@redhat.com>
19009         docs: mention cygwin shortcoming in <sys/un.h>
19010         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
19012         vasnprintf: silence mingw compiler warning
19013         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
19015 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19017         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
19018         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
19019         This fixes a porting bug I recently reintroduced in regex, and
19020         some other instances that I discovered while testing the fix.
19021         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
19022         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
19023         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
19024         with an empty argument if this is a pedantic pre-C99 GCC.
19025         * lib/verify.h: Do not use _Static_assert if this is a pedantic
19026         pre-C11 GCC.
19028         regex: adapt to locking regime instead of depending on pthread
19029         Instead of depending on pthread, adapt to whatever thread
19030         modules are in use.  Problem reported by Ludovic Courtès in
19031         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
19032         and by Mats Erik Andersson in
19033         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
19034         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19035         Support either the 'lock' module, or the 'pthread' module, or
19036         no module.
19037         (lock_lock, lock_unlock): New macros.
19038         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
19039         * modules/lock, modules/pthread (configure.ac): Add module indicator.
19040         * modules/regex (Depends-on): Remove pthread.
19042 2013-05-22  Eric Blake  <eblake@redhat.com>
19044         getgroups: document portability issues
19045         * doc/glibc-functions/initgroups.texi (initgroups): Mention
19046         multithread safety.
19047         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
19048         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
19049         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
19050         getugroups.
19051         * doc/posix-functions/getgroups.texi (getgroups): Mention
19052         multithread safety and mgetgroups.
19054 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19056         test-lchown, test-chown: also skip test if chown fails with EPERM
19057         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
19058         skip this test, to handle FAT file systems.
19059         * tests/test-chown.h (test_chown): Likewise.
19061 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19063         regex: fix dfa race in multithreaded uses
19064         Problem reported by Ludovic Courtès in
19065         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
19066         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19067         New macros.  All uses of __libc_lock_define, __libc_lock_init
19068         changed to use the first two of these.
19069         (__libc_lock_lock, __libc_lock_unlock): New macros, for
19070         non-glibc platforms.
19071         (struct re_dfa_t): Define the lock unconditionally.
19072         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
19073         '#ifdef _LIBC"s.
19074         * modules/regex (Depends-on): Add pthread, if we use the
19075         included regex.
19077         * lib/regcomp.c: Do actions that are not needed for glibc,
19078         but may be needed elsewhere.
19079         (regfree, re_compile_internal): Destroy the lock.
19080         (re_compile_internal): Check for lock-initialization failure.
19082         malloca: port to compilers that reject size-zero arrays
19083         This fixes a bug introduced in my previous patch.
19084         * lib/malloca.c (struct preliminary_header): Use an int
19085         rather than a character array of size int; that's simpler.
19086         (struct header): Remove, replacing with ...
19087         (union header): New type.  This avoids the need for declaring a
19088         character array of size zero, which is not allowed on some platforms.
19089         All uses changed.
19091 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19093         parse-datetime, tests: don't use "string" + int
19094         Recent versions of 'clang' complain about C source code that
19095         uses expressions of the form '"string literal" + integer',
19096         I guess on the theory that it's confusing for readers who are
19097         used to C++.  On those grounds I suppose it's OK to make this
19098         minor style change.
19099         * lib/parse-datetime.y (parse_datetime):
19100         * tests/test-fchdir.c (main):
19101         * tests/test-snprintf-posix.h (test_function):
19102         * tests/test-snprintf.c (main):
19103         * tests/test-vasnprintf-posix.c (test_function):
19104         * tests/test-vasnprintf.c (test_function):
19105         * tests/test-vsnprintf.c (main):
19106         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19107         Rewrite '"str" + E' to '&"str"[E]'.
19109 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19111         argmatch: port to C++
19112         * lib/argmatch.h [__cplusplus]: Add extern "C".
19114         argp: typo fix
19115         * lib/argp-help.c: Typo in comment.
19117 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19119         manywarnings: update for GCC 4.8.0
19120         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19121         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19122         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19123         -Wmissing-noreturn, as they are duplicates of other warnings.
19124         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19125         was documented to be flaky in earlier versions of GCC.
19127         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19128         * tests/test-spawn.c (main):
19129         * tests/test-sys_socket.c (main):
19130         * tests/test-sys_wait.c (main):
19131         Don't have a switch value that isn't covered by a case.
19133         getaddrinfo-tests: port --enable-gcc-warnings to clang
19134         * tests/test-getaddrinfo.c (simple):
19135         Avoid casts from looser to stricter-aligned pointers.
19137         thread: port --enable-gcc-warnings to clang
19138         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19139         Include <signal.h>, to pacify a warning about pthread_sigmask.
19141         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19142         * lib/stdio.in.h (fwrite):
19143         When working around bug 11959, use __REDIRECT rather than '#define
19144         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19145         fix the -Wunused-value issue with clang, and it works with GCC too.
19146         Problem with targeting reported by Eric Blake in
19147         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19148         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19149         debugging the fwrite issue.
19151         stdio: port --enable-gcc-warnings to clang
19152         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19153         since the GCC workaround for fwrite does not pacify clang.
19155         sig2str: port --enable-gcc-warnings to clang
19156         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19158         obstack: port --enable-gcc-warnings to clang
19159         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19160         Avoid casts from looser to stricter-aligned pointers.
19162         memchr2: port --enable-gcc-warnings to clang
19163         * lib/memchr2.c (memchr2):
19164         Avoid casts from looser to stricter-aligned pointers.
19166         mbsstr: port --enable-gcc-warnings to clang
19167         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19168         Avoid casts from looser to stricter-aligned pointers.
19170         malloca: port --enable-gcc-warnings to clang
19171         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19172         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19174         inttostr: port --enable-gcc-warnings to clang
19175         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19177         warnings: port to clang
19178         Problem reported by Daniel P. Berrange via Eric Blake in
19179         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19180         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19181         (gl_WARN_ADD): Use it.
19183 2013-05-11  Jim Meyering  <meyering@fb.com>
19185         quotearg: do not read beyond end of buffer
19186         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19187         end of an ARG for which no length was specified.  With an N-byte
19188         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19189         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19190         via coreutils' misc/sort-debug-keys.sh test and detected by running
19191         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19192         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19193         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19194         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19195         characters correctly."
19197 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19199         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19200         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19201         compilation target is Mac OS X 10.6.
19202         Problem reported by parafin and Andoni Morales in
19203         <http://savannah.gnu.org/bugs/?37844> and
19204         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19206 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19208         mkdir-p: remove assumptions about umask and mode
19209         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19210         umask is 0, or that MODE is a subset of MODE_BITS.
19212 2013-05-10  Eric Blake  <eblake@redhat.com>
19214         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19215         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19217 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19219         deps: require Automake >= 1.9.6 in generated Makefile fragments
19221         That is the same minimal version required in the DEPENDENCIES file.
19222         Moreover, the old code generated a requirement of Automake >= 1.5,
19223         and that is an insanely outdated version.
19225         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19226         * tests/havelib/rpathlx/Makefile.am: Likewise.
19227         * tests/havelib/rpathly/Makefile.am: Likewise.
19228         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19229         * tests/havelib/rpathlz/Makefile.am: Likewise.
19230         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19231         * tests/havelib/rpathx/Makefile.am: Likewise.
19232         * tests/havelib/rpathy/Makefile.am: Likewise.
19233         * tests/havelib/rpathz/Makefile.am: Likewise.
19235 2013-05-08  Eric Blake  <eblake@redhat.com>
19237         bootstrap: AC_INIT may have more than four parameters
19238         * build-aux/bootstrap (extract_package_name): Correctly extract
19239         non-empty tarname field.  Avoid range in regex.
19240         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19242 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19244         qacl: port to MS-Windows port of GNU Emacs
19245         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19246         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19247         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19248         <http://bugs.gnu.org/14295#14>.
19250 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19252         acl: include quote.h
19253         * lib/copy-acl.c: Include quote.h.
19254         * lib/set-acl.c: Likewise.
19256 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19258         fchownat, renameat, unlinkat: update statat dependencies
19259         These modules use statat and lstatat, not fstatat; so depend on
19260         the statat module, which was split out recently from fstatat.
19261         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19262         * modules/renameat: Likewise.  Also delete fstat.
19263         URL: http://bugs.gentoo.org/468790
19265 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19267         Assume gnulib is checked out from Git, not CVS
19269         In fact, access to the gnulib repository through CVS has been
19270         disabled, or more precisely, got broken and was never restored; see:
19271         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19273         Note that support for CVS is not removed completely and unthinkingly
19274         by this change: only support for CVS checkouts of gnulib itself is
19275         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19276         files and CVS directories, for the benefit of those poor gnulib clients
19277         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19279         * gnulib-tool: Simplify accordingly.
19280         * posix-modules: Likewise.
19281         * MODULES.html.sh: Likewise.
19282         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19283         repository.
19284         * doc/gnulib-intro.texi: Likewise.
19285         * doc/gnulib-readme.texi: Likewise.
19286         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19287         sample '.gitignore' file rather than a sample '.cvsignore'.
19288         * NEWS: Update.
19289         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19290         to "CVS Autoconf" rather than "git Autoconf".
19292 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19294         utimensat-tests, etc.: try to fix some races
19295         Problem reported by Bernhard Voelker in
19296         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19297         I don't know whether this patch fixes that race condition, but it
19298         fixes *some* race conditions, so it should be a win.
19299         * modules/chown-tests (Depends-on):
19300         * modules/fchownat-tests (Depends-on):
19301         * modules/fdutimensat-tests (Depends-on):
19302         * modules/futimens-tests (Depends-on):
19303         * modules/lchown-tests (Depends-on):
19304         * modules/stat-time-tests (Depends-on):
19305         * modules/utimens-tests (Depends-on):
19306         * modules/utimensat-tests (Depends-on):
19307         Depend on nanosleep, not usleep.
19308         * modules/chown-tests (test_chown_LDADD):
19309         * modules/lchown-tests (test_lchown_LDADD):
19310         * modules/stat-time-tests (test_stat_time_LDADD):
19311         New macro.
19312         * modules/fchownat-tests (test_fchownat_LDADD):
19313         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19314         * modules/futimens-tests (test_futimens_LDADD):
19315         * modules/utimens-tests (test_utimens_LDADD):
19316         * modules/utimensat-tests (test_utimensat_LDADD):
19317         Add $(LIB_NANOSLEEP).
19318         * modules/stat-time-tests (Files): Add tests/nap.h.
19319         * tests/nap.h: Include <limits.h>, for INT_MAX.
19320         (lt_mtime): Remove.
19321         (diff_timespec): New function.
19322         (get_stat): Rename from get_mtime.  All callers changed.
19323         (nap_works): Determine the needed delay by inspecting the
19324         file system's timestamp jumps; this should be more reliable.
19325         Look at both mtime and ctime, and take the maximum of the two jumps.
19326         (nap_works, guess_delay):
19327         Return a nanosecond count, not a microsecond count.
19328         All callers changed.
19329         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19330         failure.
19331         (nap): Multiply the guess by 1.125, to accommodate the case where
19332         the file system's clock is a bit slower than nanosleep's clock.
19333         * tests/test-stat-time.c (BASE): New macro.
19334         Include nap.h.
19335         (nap): Remove; nap.h now defines this.  This removes a duplicate
19336         implementation of 'nap'.
19338         utimens, utimensat: work around Solaris UTIME_OMIT bug
19339         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19340         Linux kernel 2.6.32 does.  Work around it in the same way.
19341         * doc/posix-functions/futimens.texi (futimens):
19342         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19343         * lib/utimens.c (fdutimens, lutimens):
19344         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19346         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19347         Formerly, it was your responsibility to do this for all Makefile.ams
19348         other than Gnulib's.  Now it's your responsibility to do it for
19349         Gnulib's Makefile.am, too.
19350         * NEWS: Document this.
19351         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19353         acl: include errno.h to get errno
19354         Reported by Daiki Ueno in
19355         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19356         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19358 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19360         tests: don't assume getdtablesize () <= 10000000
19361         * modules/cloexec-tests:
19362         * modules/dup2-tests:
19363         * modules/dup3-tests:
19364         * modules/nonblocking-tests:
19365         * modules/posix_spawn_file_actions_addclose-tests:
19366         * modules/posix_spawn_file_actions_adddup2-tests:
19367         * modules/posix_spawn_file_actions_addopen-tests:
19368         * modules/unistd-safer-tests:
19369         Depend on the getdtablesize module.
19370         * tests/test-cloexec.c:
19371         * tests/test-dup-safer.c:
19372         * tests/test-dup2.c:
19373         * tests/test-dup3.c:
19374         * tests/test-fcntl.c:
19375         * tests/test-nonblocking.c:
19376         * tests/test-posix_spawn_file_actions_addclose.c:
19377         * tests/test-posix_spawn_file_actions_adddup2.c:
19378         * tests/test-posix_spawn_file_actions_addopen.c:
19379         Don't assume getdtablesize () <= 10000000.
19381 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19383         extern-inline: work around bug in Sun c99
19384         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19385         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19387 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19389         qacl: new module, broken out from the acl module
19390         This is for GNU Emacs, which wants the acl functions but does
19391         not want 'error' invoked when they fail.
19392         * lib/acl-internal.h: Do not include error.h, quote.h.
19393         (ENOSYS, ENOTSUP): Remove; no longer needed.
19394         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19395         * lib/acl.h: Include <stdbool.h>.
19396         (acl_errno_valid): New function.
19397         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19398         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19399         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19400         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19401         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19402         * lib/file-has-acl.c (file_has_acl):
19403         * lib/qcopy-acl.c (qcopy_acl):
19404         * lib/qset-acl.c (qset_acl):
19405         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19406         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19407         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19408         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19409         Add lib/set-acl.c.
19410         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19411         Add qacl.
19412         (configure.ac): Move gl_FUNC_ACL to qacl module.
19413         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19414         Rename set-mode-acl.c to set-acl.c.
19415         * lib/acl-errno-valid.c: New file.
19416         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19417         copy_acl function remains in copy-acl.c.
19418         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19419         (_): Remove; not needed.
19420         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19421         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19422         * modules/qacl: New file, moved from the old modules/acl.
19423         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19424         Remove set-mode-acl.c, copy-acl.c.
19425         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19427         alignof, intprops, malloca: port better to IBM's C compiler
19428         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19429         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19430         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19432 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19434         wctype-h: fix gettext link error on mingw
19435         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19436         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19437         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19438         rpl_towupper and rpl_towupper.
19440 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19442         regex-tests, regex: allow glibc re_search behavior
19443         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19444         re_search input data to make the multi-character collating element
19445         in it clearly visible, and treat re_search return code 0 as valid.
19446         * m4/regex.m4 (gl_REGEX): Likewise.
19448 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19450         stdalign: doc fix
19451         * doc/posix-headers/stdalign.texi (stdalign.h):
19452         Gnulib doesn't support '_Alignof expr'.
19454 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19456         stdalign: port to stricter ISO C11
19457         ISO C11 says that _Alignof's operand must be a parenthesized type.
19458         Problem reported by Eli Zaretskii in
19459         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19460         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19461         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19463 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19465         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19466         Problem reported by Marco Atzeri in
19467         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19468         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19469         Simply delegate to the system <sys/select.h> in this case too.
19470         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19471         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19472         be needed on Solaris either.
19473         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19474         Simply delegate to the system <sys/time.h> in this case.
19476 2013-03-19  Karl Berry  <karl@gnu.org>
19478         * build-aux/gnupload: check for erroneous (with gnupload) use of
19479         ftp-upload.gnu.org, tweak help.
19481 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19483         copy-file, rpmatch: fix problems found by cppcheck
19484         Reported by Arno Onken in
19485         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19486         * lib/rpmatch.c (try): Fix memory leak.
19487         * lib/copy-file.c: Include "ignore-value.h".
19488         (qcopy_file_preserving): Ignore chown value.
19489         * modules/copy-file (Depends-on): Add ignore-value.
19491 2013-01-27  Jim Meyering  <jim@meyering.net>
19493         prefix-gnulib-mk: give better diagnostics
19494         * build-aux/prefix-gnulib-mk: Don't just "die".
19495         Give better diagnostics upon failure.
19497 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19499         putenv: port to Solaris 10
19500         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19501         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19502         is not what is wanted here.
19503         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19504         declaration, not for its existence.
19506 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19508         mktime: fix configure typo
19509         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19511 2013-03-12  Eric Blake  <eblake@redhat.com>
19513         regex-tests: skip UTF-8 test on mingw
19514         * modules/regex-tests (Depends-on): Add localcharset.
19515         * tests/test-regex.c (main): Use it to skip test on mingw.
19517 2013-03-11  Eric Blake  <eblake@redhat.com>
19519         tests: make it easier to bypass alarm time in debugger
19520         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19521         * tests/test-memmem.c (main): Likewise.
19522         * tests/test-passfd.c (main): Likewise.
19523         * tests/test-ptsname.c (main): Likewise.
19524         * tests/test-ptsname_r.c (main): Likewise.
19525         * tests/test-strcasestr.c (main): Likewise.
19526         * tests/test-strstr.c (main): Likewise.
19528         regex: port to mingw's recent addition of undeclared alarm
19529         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19530         exists but still doesn't work in newer mingw.
19531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19532         not existence.  Ensure SIGALRM is not trapped.
19533         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19534         * m4/regex.m4 (gl_REGEX): Likewise.
19535         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19536         * tests/test-regex.c (main): Use correct probe for alarm.
19538         putenv: avoid compilation warning on mingw
19539         * lib/putenv.c (_unsetenv): Protect variable declaration.
19540         (putenv): Fix indentation.
19542 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19544         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19545         * lib/unistd.in.h: be careful not to include un-needed system
19546         stdlib.h from here, because that prevents gnulib stdlib.h from
19547         defining rpl_strtod correctly.
19549 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19551         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19552         changesets, but for the 'precision 0' test.
19553         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19554         round-to-even, since POSIX says rounding is implementation-defined
19555         and OS X 10.8.2 rounds 1.51 to 1 here.
19557         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19558         changeset.
19559         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19560         round-to-even, since POSIX says rounding is implementation-defined
19561         and OS X 10.8.2 rounds 1.5 to 1 here.
19563 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19565         vasnprintf-posix-tests: allow rounding 1.5 to 1
19566         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19567         round-to-even, since POSIX says rounding is implementation-defined
19568         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19569         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19571         bootstrap: port to FreeBSD
19572         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19573         that treat '--' differently.  Reported by Mats Erik Andersson in
19574         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19576 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19578         regex: rename remaining __attribute calls to __attribute__.
19579         2012-02-25 changed definition of __attribute, but left some uses
19580         unchanged, preventing compilation of regex module on most non-gcc
19581         environments.
19582         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19583         (lookup_collation_sequence_value, build_range_exp)
19584         (build_collating_symbol): Set attributes with newly renamed
19585         __attribute__ decorator.
19586         * lib/regex_internal.c (re_string_peek_byte_case)
19587         (re_node_set_compare, re_node_set_contains): Likewise.
19588         * lib/regexec.c (acquire_init_state_context): Likewise.
19590 2013-03-06  Bruno Haible  <bruno@clisp.org>
19592         execute: Revert last change, but use a different condition.
19593         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19594         on Windows.
19596 2013-03-05  Eric Blake  <eblake@redhat.com>
19598         execute: drop dead code
19599         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19601 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19603         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19604         * m4/non-recursive-gnulib-prefix-hack.m4
19605         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19606         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19607         <http://bugs.gnu.org/10305#237>.
19609 2013-03-04  Eric Blake  <eblake@redhat.com>
19611         test-getsockopt: avoid compiler warning
19612         * tests/test-getsockopt.c (includes): Ensure close is declared.
19614 2013-03-02  Bruno Haible  <bruno@clisp.org>
19616         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19617         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19619 2013-03-02  Bruno Haible  <bruno@clisp.org>
19621         gettext: Update to version 0.18.2.
19622         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19623         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19624                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19626 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19628         regex: merge patches from libc
19630         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19631         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19632         All uses changed.
19633         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19634         (re_string_wchar_at, re_string_elem_size_at):
19635         Mark function as possibly unused.
19637         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19638         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19639         elements compare against the byte sequence of it, not its name.
19641 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19643         putenv: port better to native Windows
19644         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19645         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19646         (_unsetenv): Use _putenv if available.
19647         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19648         a bit less likely to cause damage.
19649         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19650         Fix the wrong value with SetEnvironmentVariable.
19651         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19652         code better.
19654 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19656         regex: ignore old-style-definition warnings
19657         * lib/regex.c: Add pragma to ignore these warnings.
19658         Problem reported for GNU tar by Pavel Raiskup.
19660 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19662         getcwd: support coreutils better
19663         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19664         but this might not be correct in coreutils, which disables
19665         the raw decl checks.  Problem reported by Nagendra in
19666         <http://bugs.gnu.org/10305#192>.
19667         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19668         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19669         Test the getcwd function, not any macro, since getcwd.c wants the
19670         function.
19671         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19672         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19673         compile, as might happen if there's a macro but no function.
19675         strtod: support coreutils better
19676         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19677         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19678         disables the raw decl checks.  This assumes there is an underlying
19679         strtod, but that's a safe assumption these days.
19680         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19682         mountlist: port to HP NonStop
19683         Reported by Joachim Schmitz in
19684         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19685         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19686         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19688 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19690         extern-inline: avoid compilation error with HP-UX cc
19691         Reported by Richard Lloyd in
19692         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19693         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19694         Suppress extern inline with HP-UX cc.  This should be safe,
19695         though it may hurt performance.  Perhaps someone with some HP-UX
19696         experience can come up with a higher-performance fix.
19698 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19700         putenv: fix heap corruption with mixed putenv/_putenv
19701         Problem reported by Michael Goffioul in
19702         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19703         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19704         Rely on _putenv to allocate the new environment.
19705         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19706         * modules/putenv (configure.ac): Use it.
19708 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19710         unsetenv etc.: port to Solaris 11 + GNU Emacs
19711         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19712         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19713         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19714         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19715         idea but is too painful to fix right now), and without this gnulib
19716         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19717         compiling unsetenv.c on Solaris 11.  Fix the problem for
19718         unsetenv.c, and fix other similar occurrences.
19720 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19722         secure_getenv: fix C++ declaration typo
19723         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19724         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19725         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19727 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19729         careadlinkat: stop exporting careadlinkatcwd
19730         Only Emacs used it directly, and Emacs no longer needs it.
19731         * NEWS: Document this simplification.
19732         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19733         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19734         for readlink.
19735         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19736         Don't include stdlib.h; no longer needed.
19737         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19738         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19739         * modules/areadlink (Depends-on): Add readlink.
19740         (Maintainer): Add self.
19741         * modules/careadlinkat (Depends-on): Remove readlink.
19743         extensions: port better to HP-UX
19744         This is merged from git Autoconf.
19745         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19746         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19747         so that it's compatible with the value used when compiling.
19749         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19750         Problem reported by Mats Erik Andersson in
19751         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19752         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19753         openpty function exists, not merely when we intend to replace it.
19754         This corrects the 2013-01-31 patch, which mistakenly defined
19755         HAVE_OPENPTY even on hosts that lacked it.
19757 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19759         secure_getenv: fix include typo
19760         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19762         secure_getenv: port better to FreeBSD and Solaris
19763         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19764         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19765         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19766         This works better on BSDish platforms.
19767         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19768         Test for issetugid if __secure_getenv is missing.
19770 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19772         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19773         Some of these changes are merged in from git Autoconf.
19774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19775         When deciding whether to define _XOPEN_SOURCE, inspect the
19776         preprocessor macro __hpux instead of the more-heavyweight
19777         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19778         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19779         as the key for __EXTENSIONS__.
19781         unistd: avoid namespace pollution on non-glibc systems
19782         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19783         This avoids namespace pollution on non-glibc systems, by causing
19784         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19785         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19786         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19788 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19790         tmpdir: use secure_getenv
19791         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19792         Define to secure_getenv, not getenv.
19793         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19794         as that's now secure_getenv's job.
19795         * modules/tmpdir (Depends-on): Add secure_getenv.
19797         tempname: use secure_getenv
19798         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19799         Define to secure_getenv, not getenv.
19800         * modules/tempname (Depends-on):
19801         Add secure_getenv.
19803         secure_getenv: new module
19804         * MODULES.html.sh (Extra functions based on ANSI C 89):
19805         Add secure_getenv.
19806         * doc/glibc-functions/secure_getenv.texi: New file.
19807         * doc/gnulib.texi: Include it.
19808         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19809         New files.
19810         * lib/stdlib.in.h (secure_getenv): New decl.
19811         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19812         * modules/stdlib (stdlib.h):
19813         Add secure_getenv checks.
19815 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19817         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19818         Reported for OS X 10.8.2 by Assaf Gordon in
19819         <http://bugs.gnu.org/13516>.
19820         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19821         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19822         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19823         so that they can be kept in sync more easily.  Avoid PATH_MAX
19824         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19825         mkdir or chdir failure.
19826         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19827         lib/getcwd.c.
19828         (test_abort_bug): Do not test for the deep directory bug unless we
19829         have openat support.  Avoid PATH_MAX test on the Hurd.
19831         regex-tests, regex: fix bug: memset undeclared
19832         * tests/test-regex.c: Don't include regex.h twice.  Include
19833         string.h, to declare memset.  Christensen's report also mentioned
19834         this issue.
19835         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19836         test-regex.c, to avoid future problems like this.  Remove
19837         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19838         twice.
19840         regex-tests: fix link errors on older Solaris
19841         These need to link with @LIBINTL@ to get libintl_gettext.
19842         Problem reported by Tom G. Christensen in
19843         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19844         * modules/regex-tests (test_regex_LDADD): New macro.
19846 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19848         regex-tests: new module
19849         * modules/regex-tests, tests/test-regex.c: New files.
19851         regex: fix off-by-one error in configure test
19852         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19854 2013-01-31  Eric Blake  <eblake@redhat.com>
19856         regex: avoid infinite configure test
19857         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19859 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19861         openpty: fix bug where HAVE_OPENPTY wasn't defined
19862         See the thread starting at:
19863         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19864         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19865         openpty function exists, not merely when we intend to replace it.
19867 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19869         sys_time: port to Solaris 2.6
19870         There is a circularity problem on Solaris 2.6, where <time.h> includes
19871         <sys/time.h> for struct timespec.  The include nesting is gnulib
19872         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19873         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19874         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19875         <sys/siginfo.h>; the last, innermost file needs struct
19876         timestruc_t, which is defined in <sys/time.h>, which has not been
19877         fully parsed.  Problem reported by Tom G. Christensen in
19878         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19879         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19880         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19881         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19882         uses split double-inclusion guards.
19884 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19886         regex: test for buffer overrun
19887         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19888         for the just-fixed regex bug.
19890 2013-01-29  Andreas Schwab  <schwab@suse.de>
19892         regex: fix buffer overrun in regexp matcher [BZ #15078]
19893         * lib/regexec.c (extend_buffers): Add parameter min_len.
19894         (check_matching): Pass minimum needed length.
19895         (clean_state_log_if_needed): Likewise.
19896         (get_subexp): Likewise.
19898 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19900         mountlist: don't consider "devtmpfs" as dummy
19901         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19902         as there is storage associcated with it.
19904 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19906         futimens-tests, utimens-tests: Depend on gettext.
19907         This works around a problem introduced in my 2013-01-12 patch,
19908         which added @LIBINTL@ to these modules.
19909         * modules/futimens-tests (Depends-on):
19910         * modules/utimens-tests (Depends-on): Add gettext.
19912 2013-01-26  Eric Blake  <eblake@redhat.com>
19914         test-getpeername: fix typo
19915         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19917 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19919         bootstrap: remove the need for a sorted .gitignore file
19920         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19921         rename to insert_if_absent(), so that we don't need or generate
19922         a sorted .gitignore file.  We do require a .gitignore with no
19923         existing duplicate entries and enforce that.
19924         (sort_patterns): Remove this function as we now use the simpler
19925         technigue of inserting blacklist entries at the top of the file,
19926         assuming gnulib won't be inserting !whitelist entries.
19928 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19930         readlinkat: don't depend on gl_FUNC_OPENAT
19931         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19932         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19933         renameat.m4, symlinkat.m4; but one thing at a time.
19935         statat: new module, split out from fstatat
19936         GNU Emacs needs the POSIX-specified fstatat, but not the
19937         gnulib-specified statat and lstat.  Split the latter two into a
19938         new module 'statat'.
19939         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19940         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19941         Rename from FSTATAT_INLINE. All uses changed.
19942         * modules/fstatat (Files): Remove lib/statat.c.
19943         (gl_MODULE_INDICATOR([fstatat])): Remove.
19944         (lib_SOURCES): Remove.
19945         (Maintainer): Add self.
19946         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19947         * tests/test-fstatat.c (BASE): Don't define if already defined.
19948         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19950 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19952         tests: don't assume fd 99 is closed
19953         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19954         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19955         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19956         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19957         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19958         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19959         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19960         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19961         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19962         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19963         * tests/test-fwrite.c, tests/test-getpeername.c:
19964         * tests/test-getsockname.c, tests/test-getsockopt.c:
19965         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19966         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19967         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19968         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19969         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19970         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19971         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19972         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19973         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19974         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19975         Close file descriptor 99, instead of assuming it's already closed.
19977 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19979         stpncpy: port to OS X 10.8
19980         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19981         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19983 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19985         unistd: port to recent mingw
19986         * lib/unistd.in.h: Remove special invocation convention for mingw,
19987         which breaks for the latest mingw version.  See John W. Eaton in
19988         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19990         largefile: port better to Mac OS X 10.5
19991         This patch is backported from Autoconf git.
19992         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19993         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19994         with ino_t size being different for configuration time versus
19995         build/run time.  Problem reported by PHO in
19996         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19998 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20000         doc: clarify -Werror
20001         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
20002         clarify that it's intended for developers, not for ordinary builds,
20003         and mention --enable-gcc-warnings as one possible use.
20005 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
20007         stdint: fix build with Android's Bionic fox x86
20008         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
20009         was already included as _SSIZE_T_DEFINED_ might also be defined
20010         in include/machine/_types.h, which is included by stdio.h
20012 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20014         net_if-tests: port to Solaris 7 + GCC 3.4.6
20015         Problem reported by Tom G. Christensen in
20016         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
20017         * tests/test-net_if.c (ni): Move to next the code that uses it,
20018         so that it's declared only if needed.
20020 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20022         net_if-tests: port to older Solaris
20023         Problem reported by Tom G. Christensen in
20024         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20025         * modules/net_if-tests (NET_IF_LIB): New substitution.
20026         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
20027         (HAVE_IF_NAMEINDEX): New C macro.
20028         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
20030         system-quote-tests: port to older Solaris
20031         Problem reported by Tom G. Christensen in
20032         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20033         * tests/test-system-quote-child.c (fopen, fread): Undef.
20035         c-xvasprintf etc.: fix link errors on older Solaris
20036         These need to link with @LIBINTL@ to get libintl_gettext.
20037         Problem reported by Tom G. Christensen in
20038         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20039         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
20040         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
20041         * modules/futimens-tests (test_futimens_LDADD):
20042         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
20044 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20046         locale: port to Solaris 2.6 and 7 + GNU gettext
20047         * lib/locale.in.h: Just include_next <locale.h> when
20048         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
20049         when combining the localename module with GNU gettext 0.18.2.
20050         Problem reported by Tom G. Christensen in
20051         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
20053 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20055         stdlib: port to Solaris 2.6
20056         Also, the code worked on Solaris 7 through 9 only by accident.
20057         Problem reported by Tom G. Christensen in
20058         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
20059         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
20060         simply include the system stdlib.h.
20061         * lib/getopt.in.h (__need_system_stdlib_h):
20062         * lib/pthread.in.h (__need_system_stdlib_h):
20063         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
20064         Define when including <stdlib.h>, to avoid problems at least for
20065         the pthread case on Solaris 2.6 and 7.  These .h files can get by
20066         with the system stdlib.h.
20068 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20070         doc: update main copyright year
20071         * doc/gnulib.texi: Update copyright date.
20073         doc: improve ISO 8601 discussion
20074         * doc/parse-datetime.texi (Combined date and time of day items):
20075         Specify more carefully what formats are supported and what is
20076         done with excess precision.
20078 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20080         doc: avoid small caps
20081         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
20082         they're more trouble than they're worth.  Suggested by Karl Berry
20083         in <http://bugs.gnu.org/13360>.
20085         regex: conform to strict C
20086         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
20087         From Aharon Robbins.
20089         gnulib-tool: fix incompatibility with autopoint 0.18.2
20090         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
20091         Problem reported by Tom G. Christensen in
20092         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
20094 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20096         fprintftime: bring back and reword fwrite comment
20097         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
20099         stdio: remove now-unnecessary stdio.c
20100         Since stdio.in.h no longer uses inline functions, we no longer
20101         need to compile the extern versions.
20102         * lib/stdio.c: Remove.
20103         * modules/stdio (Files): Remove lib/stdio.c.
20104         (lib_SOURCES): Remove.
20106         unicodeio: depend on stdio, not ignore-value
20107         * lib/unicodeio.c: Do not include ignore-value.h.
20108         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20109         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20111         fprintftime: depend on stdio, not ignore-value
20112         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20113         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20114         since the stdio module arranges to silence that warning now.
20115         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20117 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20119         stdint-tests: Fix expanded-before-required-warning.
20120         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20122 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20124         fwrite: silence __wur only for older glibc versions
20125         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20126         This will help us remove this workaround some time in the far future.
20128 2013-01-03  Eric Blake  <eblake@redhat.com>
20130         fwrite: silence __wur without using inline
20131         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20132         just gcc, and in a way that avoids inline issues.
20133         * modules/stdio (Depends-on): Drop extern-inline.
20135 2013-01-03  Jim Meyering  <jim@meyering.net>
20137         update-copyright: avoid copyright notice date corruption
20138         Given a sequence of copyright year numbers in which the final
20139         one was a two-digit number that happened to be a substring of
20140         a preceding four-digit year number, we would mistakenly update
20141         the substring (from two- to four-digit) rather than the two-digit
20142         number at the end, which, combined with the addition of the current
20143         4-digit year number would yield two 5-digit year numbers, e.g.,
20144         here, it would convert the first "99" to "1999, 2013" rather than
20145         the final one:
20146           1991, 99
20147           11999, 20131, 1999
20148         * build-aux/update-copyright: Tighten a regexp.
20149         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20150         Reported by Joseph Myers in
20151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20153 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20155         regex: omit needless signed-pointer casts
20156         * lib/regcomp.c (build_charclass, build_charclass_op):
20157         Use char *, not unsigned char *, for class name and extra.
20158         The char values are always nonnegative so there's no need to
20159         insist on unsigned char * here, and using char * removes the need
20160         for casts.  Reported by Aharon Robbins in
20161         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20163         regex: support Gawk, which never uses alloca
20164         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20165         Do not include in this case.  Gawk doesn't supply a substitute
20166         alloca.h and doesn't need one.
20168         regex: port __libc_lock_define usage to C89
20169         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20170         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20171         does not conform to C89, as it has an empty macro argument.
20172         Reported by Aharon Robbins in
20173         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20175 2013-01-01  Eric Blake  <eblake@redhat.com>
20177         maint: update all copyright year number ranges
20178         Run "make update-copyright".
20180         version-etc: bump copyright year reported in --version
20181         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20183 2012-12-31  Eric Blake  <eblake@redhat.com>
20185         sigprocmask-tests: skip test if pid is unexpectedly large
20186         * tests/test-sigprocmask.c (main): Add range check.
20188         git-version-gen: avoid test -z portability glitch
20189         * build-aux/git-version-gen: Prefer portable test spelling, since
20190         git-version-gen is run on more than just developer machines.
20192 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20194         git-version-gen: add --fallback option to use if git is not present
20195         * build-aux/git-version-gen: Add support for the new option --fallback,
20196         which comes into play when there is no $tarball_version_file and
20197         git is not working.
20198         (scriptversion): Update.
20200         maint.mk: handle missing git with more grace
20201         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20202         Quietly proceed if git is not present.
20204 2012-12-31  Eric Blake  <eblake@redhat.com>
20206         dup2: work around cygwin bug
20207         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20208         * lib/dup2.c (rpl_dup2): Work around it.
20209         * doc/posix-functions/dup2.texi (dup2): Document it.
20211 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20213         regex: remove unnecessary dependency on localcharset.h
20214         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20215         hasn't been needed for years.
20216         * modules/regex (Depends-on): Remove localcharset.
20218         regex: revert single-byte change
20219         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20220         to this function.  This was alredy fixed in a different way, at
20221         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20222         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20223         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20225         regex: simplify based on Gawk version
20226         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20227         Reported by Aharon Robbins in
20228         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20230 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20232         regex: check that pattern char is single-byte
20233         Reported by Aharon Robbins in
20234         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20235         * lib/regexec.c (check_node_accept_bytes):
20236         Return 0 if the pattern string has a multibyte character here.
20238         regex: implement rational ranges
20239         Reported by Aharon Robbins in
20240         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20241         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20242         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20243         Implement rational ranges.
20245         regex: avoid redefining __wctype
20246         Reported by Aharon Robbins in
20247         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20248         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20249         #undef before defining.
20251         regex: port to hosts where malloc (0) == NULL
20252         Reported by Aharon Robbins in
20253         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20254         * lib/regex_internal.c (re_node_set_alloc):
20255         Don't assume that malloc (0) yields nonnull.
20256         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20257         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20258         * modules/regex (Files): Add m4/eealloc.m4.
20260         regex: port to C89
20261         Reported by Aharon Robbins in
20262         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20263         * lib/regcomp.c (init_word_char): Declaration before statement.
20265         regex: merge glibc changes
20266         Also, copy the license wording from glibc.  This simplifies
20267         merging changes.  gnulib-tool will change the wording to GPL as
20268         appropriate, when importing it to other packages.  The only
20269         glibc change made since the last merge, which needs merging, is:
20270         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20271         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20273         * users.txt: Add Emacs.
20275         doc: omit mention of version when not needed
20276         * doc/gnulib-intro.texi (Portability and Application Code):
20277         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20278         Don't mention particular dates or versions when not necessary, so
20279         that the documentation won't go out of date so quickly.
20281         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20283 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20285         bootstrap: pass --force to autoreconf.
20286         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20287         Add "--force" so that Automake's ylwrap and other such tools
20288         be updated at each bootstrap invocation.
20289         Use it.
20291 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20293         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20294         The earlier patch forgot to update one of the #if conditions, causing
20295         a problem on Debian testing i386 reported by Mats Erik Andersson
20296         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20297         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20298         (__argp_fmtstream_puts, argp_fmtstream_puts)
20299         (__argp_fmtstream_write, argp_fmtstream_write)
20300         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20302         * doc/gnulib-readme.texi: Minor fixups.
20303         (Portability guidelines): Modernize URLs.  Remove some repetition.
20304         (Indent with spaces not TABs): Reword to avoid too-long lines.
20305         Remove some '@ifset standalone' stuff that isn't used.
20307         * doc/gnulib-readme.texi (Portability guidelines):
20308         ctype.h, not ctime.h.
20310         Correct name of POSIX.1-2001.
20311         * doc/posix-functions/fgetc.texi (fgetc):
20312         * doc/posix-functions/fgets.texi (fgets):
20313         * doc/posix-functions/fread.texi (fread):
20314         * doc/posix-functions/fscanf.texi (fscanf):
20315         * doc/posix-functions/getc.texi (getc):
20316         * doc/posix-functions/getchar.texi (getchar):
20317         * doc/posix-functions/scanf.texi (scanf):
20318         POSIX.1-2001, not POSIX-2001.
20320         doc: move README into manual
20321         * README: Move contents to new file doc/gnulib-readme.texi.
20322         Replace with a one-line summary.
20323         * doc/gnulib.texi (Brief Overview): New section,
20324         with old intro preface.  Include gnulib-readme.texi for contents.
20325         (Philosophy): Rename from "Introduction", since this
20326         section no longer introduces the rest.  Write a new preface.
20327         * doc/gnulib-readme.texi: New file, with the old contents of
20328         README texinfo-ized.  This way, the README info appears
20329         in the online and printed manual.
20331 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20333         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20334         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20335         c_vasprintf() prototype.
20337 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20339         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20340         * lib/c-vasprintf.h: Remove stray semicolon.
20342 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20344         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20345         It is obsolete and is planned to be removed from Automake 1.14; see
20346         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20347         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20348         (installdirs-data, installdirs-data-yes):
20349         Use $(MKDIR_P), not $(mkdir_p).
20350         * m4/intl.m4 (AM_INTL_SUBDIR):
20351         * m4/po.m4 (AM_PO_SUBDIRS):
20352         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20354 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20356         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20357         On this platform, we are not optimizing but we are using
20358         the substitute for extern inlines, so compile as if
20359         C99-style extern inline, or a substitute, is available.
20360         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20361         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20362         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20363         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20364         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20365         Declare as ARGP_FS_EI, not as extern.
20366         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20367         (__option_is_short, _option_is_end, __option_is_end)
20368         [!_LIBC && __USE_EXTERN_INLINES]:
20369         Declare as ARGP_EI, not as extern.
20371 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20373         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20374         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20375         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20376         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20377         ...), as the latter is fatal with older Autoconfs.
20378         Problem reported and fix suggested by Eric Blake in thread starting at
20379         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20381 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20383         AC_PROG_MKDIR_P: don't workaround if not buggy
20384         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20385         Define only for Autoconf versions before 2.62.
20386         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20387         undocumented m4_PACKAGE_VERSION, for consistency with the
20388         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20389         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20390         was introduced in 2.62.
20392 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20394         New 'c-*printf' modules for formatted output in C locale.
20396         New module 'c-vasnprintf'.
20397         * modules/c-vasnprintf: New file.
20398         * lib/c-vasnprintf.c: New file.
20399         * lib/c-vasnprintf.h: New file.
20401         New module 'c-snprintf'.
20402         * modules/c-snprintf: New file.
20403         * modules/c-snprintf-tests: New file.
20404         * lib/c-snprintf.c: New file.
20405         * lib/c-snprintf.h: New file.
20406         * tests/test-c-snprintf.c: New file.
20407         * tests/test-c-snprintf.sh: New file.
20409         New module 'c-vsnprintf'.
20410         * modules/c-vsnprintf: New file.
20411         * modules/c-vsnprintf-tests: New file.
20412         * lib/c-vsnprintf.c: New file.
20413         * lib/c-vsnprintf.h: New file.
20414         * tests/test-c-vsnprintf.c: New file.
20415         * tests/test-c-vsnprintf.sh: New file.
20417         New module 'c-vasprintf'.
20418         * modules/c-vasprintf: New file.
20419         * modules/c-vasprintf-tests: New file.
20420         * lib/c-asprintf.c: New file.
20421         * lib/c-vasprintf.c: New file.
20422         * lib/c-vasprintf.h: New file.
20423         * tests/test-c-vasprintf.c  +: New file.
20424         * tests/test-c-vasprintf.sh: New file.
20426         New module 'c-xvasprintf'.
20427         * modules/c-xvasprintf: New file.
20428         * modules/c-xvasprintf-tests: New file.
20429         * lib/c-xasprintf.c: New file.
20430         * lib/c-xvasprintf.c: New file.
20431         * lib/c-xvasprintf.h: New file.
20432         * tests/test-c-xvasprintf.c: New file.
20433         * tests/test-c-xvasprintf.sh: New file.
20435 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20437         argp: better 'inline'
20438         Use extern-inline module to declare extern inline functions.
20439         This avoids some bogus warning diagnostics.  Problem discovered
20440         when modifying GNU tar to use the manywarnings module.
20441         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20442         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20443         Define based on extern-inline.
20444         * modules/argp (Depends-on): Add extern-inline.
20446 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20448         filemode, sys_stat: Handle MPX files a la AIX.
20449         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20450         * lib/sys_stat.in.h (S_ISMPX): New macro.
20451         * tests/test-sys_stat.c: Add tests for MPX files.
20453 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20455         x-to-1: honor $PERL
20456         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20457         a chance to use his preferred version of Perl.  This is typically
20458         required by Darwin users whose default /usr/bin/perl does not have all
20459         the libraries required by help2man, and who need to use their MacPorts
20460         installation of Perl instead.
20462 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20464         gnu-web-doc-update: add all the new files, even in new directories
20465         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20466         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20467         Use it.
20468         (main): Don't use cvsutils to get the list of unknown files,
20469         just add all the existing files and directories.
20471 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20473         gnu-web-doc-update: improve --help
20474         * build-aux/gnu-web-doc-update: Move comments into --help.
20476 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20478         mountlist: recognize more "dummy" file systems
20479         * lib/mountlist.c (ME_DUMMY_0):
20480         Add these dummy FS names to the list:
20481         - "debugfs" virtual filesystem for kernel debugging
20482         - "devpts" PTY slave filesystem
20483         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20484         - "fusectl" control filesystem for FUSE
20485         - "mqueue" enumerates POSIX message queues
20486         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20487         - "sysfs" is for exporting kernel objects
20488         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20490 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20492         extern-inline: avoid incompatibility with Darwin Libc
20493         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20494         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20495         Problem reported by Akim Demaille in
20496         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20498 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20500         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20501         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20502         let it handle password prompting.
20504 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20506         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20507         * lib/canonicalize.c (canonicalize_filename_mode):
20508         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20509         fetching the current directory.  Don't overrun the beginning of
20510         rpath if there's no slashes after the MS-Windows drive letter.
20512 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20514         maint.mk: avoid extra forks
20515         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20516         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20517         So use that instead of "$(shell test -f FILE && echo FILE)".
20519 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20521         vasnprintf: fix ASCII_ONLY typo
20522         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20523         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20524         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20525         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20526         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20528 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20530         list, oset, xlist, xoset: fix extern inline issue with C99
20531         This was introduced by my recent changes for 'inline'.
20532         Problem reported for gettext by Daiki Ueno in
20533         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20534         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20535         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20536         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20537         (gl_list_previous_node, gl_list_get_at)
20538         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20539         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20540         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20541         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20542         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20543         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20544         (gl_list_iterator_free, gl_sortedlist_search)
20545         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20546         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20547         (gl_sortedlist_remove):
20548         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20549         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20550         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20551         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20552         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20553         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20554         (gl_list_add_at, gl_sortedlist_add):
20555         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20556         Wrap these extern decls inside "#if 0", because they are implemented
20557         as inline functions, and extern inline is not what's wanted here.
20558         It would simplify these .h files to remove the extern decls entirely,
20559         although a downside would be less-clear separation between
20560         specification and implementation.
20562 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20564         sys_stat: no 'static inline'
20565         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20568         extern-inline: no 'static inline'
20569         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20570         Do not require AC_C_INLINE.
20571         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20572         'static inline', for older compilers.
20574         snippet/warn-on-use: no 'static inline'
20575         * build-aux/snippet/warn-on-use.h:
20576         Remove unnecessary 'inline' in comment.
20578         rbtree-list, rbtreehash-list: no 'static inline'
20579         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20580         * lib/gl_anytree_list2.h (node_at):
20581         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20582         (gl_oset_first, add_nodes_to_buckets):
20583         Now static, not static inline.
20585         regex: no 'static inline'
20586         * lib/regex_internal.c (calc_state_hash):
20587         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20588         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20589         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20590         Now static, not static inline.
20591         (inline) [__GNUC__ < 3 && _LIBC]:
20592         Remove macro; no longer needed.
20594         xvasprintf: no 'static inline'
20595         * lib/xvasprintf.c (xstrcat):
20596         Now static, not static inline.
20597         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20598         Do not require AC_C_INLINE.
20600         parse-datetime, parse-duration: no 'static inline'
20601         * lib/parse-datetime.y (to_uchar):
20602         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20603         (scale_n_add):
20604         Now static, not static inline.
20605         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20606         * modules/parse-duration (configure.ac):
20607         Do not require AC_C_INLINE.
20609         getaddrinfo: no 'static inline'
20610         * lib/getaddrinfo.c (validate_family):
20611         Now static, not static inline.
20612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20613         Do not require AC_C_INLINE.
20615         ftruncate, fts, lstat, openat, raise: no 'static inline'
20616         * lib/ftruncate.c (chsize_nothrow):
20617         * lib/fts.c (opendirat, diropen):
20618         * lib/lstat.c (orig_lstat):
20619         * lib/openat.c (orig_openat):
20620         * lib/raise.c (raise_nothrow):
20621         Now static, not static inline.
20622         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20623         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20624         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20625         * m4/openat.m4 (gl_PREREQ_OPENAT):
20626         * m4/raise.m4 (gl_PREREQ_RAISE):
20627         Do not require AC_C_INLINE.
20629         fflush, stat: no 'static inline'
20630         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20631         (clear_ungetc_buffer, disable_seek_optimization)
20632         (restore_seek_optimization, update_fpos_cache):
20633         * lib/stat.c (orig_stat):
20634         Now static, not static inline.
20635         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20636         (update_fpos_cache):
20637         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20638         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20639         * m4/stat.m4 (gl_PREREQ_STAT):
20640         Do not require AC_C_INLINE.
20642         error, filevercmp: no 'static inline'
20643         * lib/error.c (is_open, flush_stdout):
20644         * lib/filevercmp.c (order):
20645         Now static, not static inline.
20646         * m4/error.m4 (gl_PREREQ_ERROR):
20647         * modules/filevercmp (configure.ac):
20648         Do not require AC_C_INLINE.
20650         dup, execute, fatal-signal, etc.: no 'static inline'
20651         * lib/dup.c (dup_nothrow):
20652         * lib/execute.c (nonintr_close, nonintr_open):
20653         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20654         * lib/fopen.c (orig_fopen):
20655         * lib/freadseek.c (freadptrinc):
20656         * lib/freopen.c (orig_freopen):
20657         * lib/fstat.c (orig_fstat, fstat_nothrow):
20658         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20659         (get_rusage_as_via_iterator):
20660         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20661         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20662         * lib/isatty.c (_isatty_nothrow):
20663         * lib/open.c (orig_open):
20664         * lib/read.c (read_nothrow):
20665         * lib/sigprocmask.c (signal_nothrow):
20666         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20667         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20668         * lib/wait-process.c (unregister_slave_subprocess):
20669         * lib/write.c (write_nothrow):
20670         Now static, not static inline.
20671         * lib/spawn-pipe.c (nonintr_open): Define only if
20672         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20673         * m4/dup.m4 (gl_PREREQ_DUP):
20674         * m4/execute.m4 (gl_EXECUTE):
20675         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20676         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20677         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20678         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20679         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20680         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20681         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20682         * m4/open.m4 (gl_PREREQ_OPEN):
20683         * m4/read.m4 (gl_PREREQ_READ):
20684         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20685         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20687         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20688         * m4/write.m4 (gl_PREREQ_WRITE):
20689         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20690         Do not require AC_C_INLINE.
20692         c-strtod, memcoll, readutmp: no 'static inline'
20693         * lib/c-strtod.c (c_locale):
20694         * lib/memcoll.c (strcoll_loop):
20695         * lib/readutmp.c (desirable_utmp_entry):
20696         Now static, not static inline.
20697         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20698         * m4/memcoll.m4 (gl_MEMCOLL):
20699         * m4/readutmp.m4 (gl_READUTMP):
20700         Do not require AC_C_INLINE.
20702         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20703         * lib/arctwo.c (to_uchar):
20704         * lib/md4.c (set_uint32):
20705         * lib/md5.c (set_uint32):
20706         * lib/sha1.c (set_uint32):
20707         * lib/sha256.c (set_uint32):
20708         * lib/sha512.c (set_uint64):
20709         Now static, not static inline.  This is a bit simpler, and doesn't
20710         affect performance with GCC and default optimization.
20711         * m4/arctwo.m4 (gl_ARCTWO):
20712         * m4/md4.m4 (gl_MD4):
20713         * m4/md5.m4 (gl_MD5):
20714         * m4/sha1.m4 (gl_SHA1):
20715         * m4/sha256.m4 (gl_SHA256):
20716         * m4/sha512.m4 (gl_SHA512):
20717         Do not require AC_C_INLINE.
20719         cond, lock, thread: better 'inline'
20720         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20721         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20722         New macros.  Use them instead of static inline, for header functions.
20723         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20724         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20725         * lib/glthread/lock.c (gl_waitqueue_init)
20726         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20727         * lib/glthread/thread.c (get_current_thread_handle):
20728         Change 'static inline' to 'inline'.
20729         * lib/glthread/cond.h, lib/glthread/thread.h:
20730         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20731         * m4/cond.m4 (gl_COND):
20732         * m4/lock.m4 (gl_PREREQ_LOCK):
20733         * m4/thread.m4 (gl_THREAD):
20734         Do not require AC_C_INLINE.
20735         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20737         chdir-long, cycle-check, savewd: better 'inline'
20738         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20739         (find_non_slash):
20740         * lib/cycle-check.c (is_zero_or_power_of_two):
20741         * lib/savewd.c (savewd_delegating):
20742         Change 'static inline' to 'inline'.
20743         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20744         Replace all remaining uses of 'static inline' with it.
20745         * lib/savewd.h:
20746         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20748         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20749         * m4/savewd.m4 (gl_SAVEWD):
20750         Do not require AC_C_INLINE.
20751         * modules/savewd (Depends-on): Add extern-inline.
20753         base32, base64: no need for 'inline'
20754         * lib/base32.c (to_uchar, get_8, decode_8):
20755         * lib/base64.c (to_uchar, get_4, decode_4):
20756         Change 'static inline' to 'inline'.
20757         * m4/base32.m4 (gl_PREREQ_BASE32):
20758         * m4/base64.m4 (gl_PREREQ_BASE64):
20759         Do not require AC_C_INLINE.
20761         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20762         * lib/gl_array_oset.c (gl_array_nx_add_at):
20763         (gl_array_remove_at):
20764         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20765         (add_to_bucket, remove_from_bucket):
20766         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20767         Change 'static inline' to 'static', as it's simpler to omit
20768         'inline' unless there's a significant performance advantage.
20770         list, oset, xlist, xoset, xsublist: simplify via extern inline
20771         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20772         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20773         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20774         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20775         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20776         New macro.  Replace all uses of 'static inline' with it.
20777         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20778         instead of as macros FOO that are defined to static inline
20779         functions FOO_inline.
20780         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20781         * lib/gl_xsublist.c:
20782         Reimplement from scratch, by defining the corresponding *_INLINE
20783         macro and including the corresponding .h file.  This is simpler.
20784         * modules/list, modules/oset, modules/xlist, modules/xoset:
20785         (Files): Remove m4/gl_list.m4.
20786         (configure.ac): Remove gl_LIST.
20787         * m4/gl_list.m4: Remove.
20788         * modules/list, modules/oset, modules/xlist, modules/xoset:
20789         * modules/xsublist:
20790         (Depends-on): Depend on extern-inline, not inline.
20792         xalloc: better 'inline'
20793         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20794         New macro.  Replace all uses of 'static inline' with it.
20795         (static_inline): Remove.
20796         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20797         Let 'extern inline' do the work automatically, instead of doing
20798         it by hand.
20799         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20800         Remove.  All uses removed.
20801         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20803         gethrxtime: better 'inline'
20804         * lib/xtime.c: New file.
20805         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20806         * lib/xtime.h (XTIME_INCLUDE):
20807         New macros.  Replace all uses of 'static inline' with them.
20808         * lib/gethrxtime.c (gethrxtime): Define only if
20809         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20810         this source file is now always compiled, because of the extern inline.
20811         * lib/gethrxtime.h, lib/xtime.h:
20812         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20813         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20814         if gethrtime works, as they're not needed in that case.
20815         (gl_XTIME): Do not require AC_C_INLINE.
20816         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20817         compiled now.  Move the check into gl_GETHRXTIME.
20818         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20819         (Depends-on): Add extern-inline.
20820         (configure.ac): gethrxtime is always compiled now.
20821         (lib_SOURCES): Add gethrxtime.c.
20823         wctype-h: better 'inline'
20824         * lib/wctype-h.c: New file.
20825         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20826         New macro.  Replace all uses of 'static inline' with it.
20827         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20828         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20829         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20830         (Depends-on): Add extern-inline.
20832         unistd: better 'inline'
20833         * lib/unistd.c: New file.
20834         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20835         New macro.  Replace all uses of 'static inline' with it.
20836         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20837         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20838         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20839         (Depends-on): Add extern-inline.
20841         sys_socket: better 'inline'
20842         * lib/sys_socket.c: New file.
20843         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20844         New macro.  Replace all uses of 'static inline' with it.
20845         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20847         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20848         (Depends-on): Add extern-inline.
20850         stdio: better 'inline'
20851         * lib/stdio.c: New file.
20852         * lib/stdio.in.h (_GL_STDIO_INLINE):
20853         New macro.  Replace all uses of 'static inline' with it.
20854         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20855         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20856         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20857         (Depends-on): Add extern-inline.
20859         sigaction: better 'inline'
20860         * lib/sig-handler.c: New file.
20861         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20862         New macro.  Replace all uses of 'static inline' with it.
20863         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20864         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20865         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20866         (Depends-on): Add extern-inline.
20868         selinux-h: better 'inline'
20869         * lib/se-context.c, lib/se-selinux.c: New files.
20870         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20871         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20872         New macro.  Replace all uses of 'static inline' with it.
20873         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20874         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20875         New macro.  Replace all uses of 'static inline' with it.
20876         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20877         * modules/selinux-h (Files, lib_SOURCES):
20878         Add lib/se-context.c, lib/se-selinux.c.
20879         (Depends-on): Add extern-inline.
20880         (configure.ac): Do not require AC_C_INLINE.
20882         pthread: better 'inline'
20883         * lib/pthread.c: New file.
20884         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20885         New macro.  Replace all uses of 'static inline' with it.
20886         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20887         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20888         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20889         * modules/pthread (Files): Add lib/pthread.c.
20890         (Depends-on): Add extern-inline.
20892         math: better 'inline'
20893         * lib/math.c: New file.
20894         * lib/math.in.h (_GL_MATH_INLINE):
20895         New macro.  Replace all uses of 'static inline' with it.
20896         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20897         * m4/math_h.m4 (gl_MATH_H):
20898         Do not require AC_C_INLINE.
20899         * modules/math (Files, lib_SOURCES):
20900         Add lib/math.c.
20901         (Depends-on): Add extern-inline.
20903         count-one-bits: better 'inline'
20904         * lib/count-one-bits.c: New file.
20905         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20906         New macro.  Replace all uses of 'static inline' with it.
20907         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20908         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20909         Do not require AC_C_INLINE.
20910         * modules/count-one-bits (Files, lib_SOURCES):
20911         Add lib/count-one-bits.c.
20912         (Depends-on): Add extern-inline.
20914         count-leading-zeros: better 'inline'
20915         * lib/count-leading-zeros.c: New file.
20916         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20917         New macro.  Replace all uses of 'static inline' with it.
20918         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20919         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20920         Do not require AC_C_INLINE.
20921         * modules/count-leading-zeros (Files, lib_SOURCES):
20922         Add lib/count-leading-zeros.c.
20923         (Depends-on): Add extern-inline.
20925         bitrotate: better 'inline'
20926         * lib/bitrotate.c: New file.
20927         * lib/bitrotate.h (BITROTATE_INLINE):
20928         New macros.
20929         Replace all uses of 'static inline' with them.
20930         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20931         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20932         (Depends-on): Add extern-inline.
20933         (configure.ac): Do not require AC_C_INLINE.
20935 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20937         maint.mk: avoid gratuitous failure
20938         Reported by Stefano Lattarini in
20939         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20940         * top/maint.mk (public-submodule-commit): Quote more safely.
20942 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20944         canonicalize, canonicalize-lgpl: support MS-Windows file names
20945         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20946         for test cases, which it'd be nice to add at some point.
20947         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20948         * lib/canonicalize.c (canonicalize_filename_mode):
20949         * lib/canonicalize-lgpl.c (__realpath):
20950         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20951         slash is at the beginning of the file name.  Use ISSLASH, instead
20952         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20953         the first character with '/'.  Test for
20954         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20955         with a drive letter.
20956         * lib/canonicalize.c (SLASHES): New macro.
20957         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20959 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20961         fts: introduce FTS_VERBATIM
20962         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20963         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20964         * lib/fts.c (fts_open): Honor it.
20966 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20968         getlogin-tests: allow errno == ENXIO
20969         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20970         with errno == ENXIO (No controlling tty).
20971         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20972         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20973         with errno == ENOENT.  This was reported to happen in various
20974         situations on GNU/Linux.
20976 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20978         getlogin-tests: allow errno == ENOENT
20979         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20980         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20981         when running a test in an Emacs shell buffer.
20983 2012-11-08  Jim Meyering  <jim@meyering.net>
20985         tests/nap.h: avoid warning about unused variable
20986         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20988         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20989         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20990         white space before each of the special-cased file names, to avoid
20991         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20992         in http://bugs.gnu.org/12830.
20994 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20996         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20997         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20998         fails with errno == EBADF when fd is opened with O_PATH.
20999         Reported by Jim Meyering in
21000         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
21001         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21002         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
21004 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21006         test-utimens: speed up by taking shorter naps
21007         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
21008         New functions.
21009         (nap): Use them, to do a better job of guessing the delay.
21010         On Fedora 17 with ext4 atop md atop hard disks, this made
21011         test-utimens run 10x faster, because the test napped for
21012         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
21013         <http://bugs.gnu.org/12820#11>.
21015 2012-11-07  Jim Meyering  <jim@meyering.net>
21017         mountlist.c: fix a compilation failure
21018         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
21019         I introduced while transforming commit v0.0-7683-g613bcb6
21021 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21023         errno: port to LynxOS 178 2.2.2
21024         Problem reported by Joel Brobecker in
21025         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
21026         * doc/posix-headers/errno.texi (errno.h): Document this.
21027         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
21028         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
21029         Supply a string for EILSEQ.
21030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
21032 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21034         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
21035         Linux kernel 2.6.39 introduced O_PATH (see
21036         <http://lwn.net/Articles/433854/>) and this is a better fallback
21037         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
21038         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21039         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
21040         * lib/fcntl.in.h (O_ACCMODE):
21041         * tests/test-fcntl-h.c (main):
21042         Do not reject O_ACCMODE merely because it has more than the
21043         minimal number of bits, as POSIX allows extensions here.
21045 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
21047         mountlist: do not classify a bind-mounted dir entry as "dummy"
21048         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
21049         the "none"-testing clause.
21050         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
21051         exception for bind-mounted directories.
21053 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
21055         quote: provide a means to escape strings with nul characters
21056         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
21057         (quote, quote_n): Rename formal arguments for consistency with
21058         quotearg.
21060 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21062         test-raise: don't assume 199 is an invalid signal
21063         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
21065         sh-quote-tests: port to Solaris 9
21066         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
21067         Problem reported by Dagobert Michelsen in
21068         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
21070 2012-10-28  Jim Meyering  <jim@meyering.net>
21072         maint.mk: rename a new configurable variable
21073         * top/maint.mk (_gl_translatable_string_re): Rename from
21074         translation-markers: _gl_ prefix to insulate from user Makefile code,
21075         and the _re suffix to inform that it's a regular expression.
21077 2012-10-26  Eric Blake  <eblake@redhat.com>
21079         maint.mk: let packages tweak sc_po_check pattern
21080         * top/maint.mk (sc_po_check): Add translation-markers, to allow
21081         finding files with other translation markers.
21083 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21085         euidaccess: speed up 'configure' on GNU hosts
21086         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
21087         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
21088         it's needed only in this case.  Use AC_CHECK_DECLS, not
21089         AC_CHECK_DECLS_ONCE.
21090         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
21091         or AC_REQUIRE for AC_FUNC_GETGROUPS.
21093         * lib/regexec.c (re_search_internal): Fix grammar in comment.
21095 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21097         fchmodat, fchownat, fstatat: port to non-inlining compilers
21098         Problem reported for FreeBSD 9 by Jim Meyering in
21099         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
21100         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
21101         New files, which define FCHMODAT_INLINE etc.
21102         * lib/fchmodat.c (FCHMODAT_INLINE):
21103         * lib/fchownat.c (FCHOWNAT_INLINE):
21104         * lib/fstatat.c (FSTATAT_INLINE):
21105         Remove, as chmodat.c etc. now do this.
21106         * modules/fchmodat (Files): Add lib/chmodat.c.
21107         * modules/fchownat (Files): Add lib/chownat.c.
21108         * modules/fstatat (Files): Add lib/statat.c.
21110 2012-10-15  Jim Meyering  <jim@meyering.net>
21112         fchmodat.c, fchownat.c: compile-impeding typos
21113         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21114         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21115         Introduced in commit v0.0-7636-gd202279.
21117 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21119         fcntl-h: support GNU flags like O_IGNORE_CTTY
21120         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21121         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21122         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21123         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21124         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21125         Define to 0 if not already defined.
21126         * tests/test-fcntl-h.c: Test these new flags.
21128 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21130         faccessat, etc.: support AT_FDCWD-only use
21131         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21132         this function only if its first argument is AT_FDCWD.
21133         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21134         values other than AT_FDCWD, so it doesn't want all the openat
21135         machinery with fchdir etc.
21136         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21137         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21138         * modules/unlinkat (Files):
21139         Remove lib/openat-priv.h, as at-internal supplies this file.
21140         Removing this file here allows us to support programs like Emacs
21141         that avoid at-internal.
21143         faccessat: speed up 'configure' on mainstream hosts
21144         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21145         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21146         since it's only on unusual platforms that we need to check for
21147         'access', and it's better not to slow 'configure' down on all
21148         platforms.
21150         faccessat: port to Solaris 10
21151         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21152         Needed on Solaris 10, which doesn't have AT_EACCESS,
21153         so we need the Gnulib fcntl.h, which defines it.
21155 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21156         canonicalize: fix C89 compilation
21157         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21158         declarations so C89 is supported.  Also remove the comment
21159         referencing memorty allocation as the suggested feature could
21160         not be implemented as suggested.
21161         Reported by Michael Goffioul.
21163 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21165         group-member: omit unnecessary dependencies
21166         This is for Emacs, which has its own allocator and where we
21167         don't want to use xalloc.
21168         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21169         since we no longer use xmalloc.  Do not include stdbool.h, since
21170         the changes below happen to remove the only use of bool.
21171         (GROUPBUF_SIZE): New constant.
21172         (struct group_info): Remove n_groups member.  Add groupbuf member.
21173         This lets us get the groups without using malloc, usually.
21174         (free_group_info, get_group_info): Adjust to this.
21175         (get_group_info): Return the number of groups found, or -1 on error.
21176         Use plain malloc not xmalloc, and treat its failure as if there
21177         are no groups, as the user already loses in case of error.
21178         (group_member): Simplify, based on changes to get_group_info.
21179         * modules/group-member (Depends-on): Remove dependencies on
21180         xalloc and stdbool.  Add dependency on xalloc-oversized.
21182 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21184         gethrxtime: port to C++
21185         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21187 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21189         ptsname: fix macro-name typo
21190         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21192 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21194         inttostr: Relax license.
21195         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21197 2012-10-03  Eric Blake  <eblake@redhat.com>
21199         ptsname_r: support ptys returned by FreeBSD posix_openpt
21200         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21201         lives in /dev/pts/.
21203 2012-10-02  Eric Blake  <eblake@redhat.com>
21205         pselect: reject invalid file descriptors
21206         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21207         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21208         * modules/pselect (Depends-on): Add dup2.
21209         * doc/posix-functions/pselect.texi (pselect): Document this.
21211         select: reject invalid file descriptors
21212         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21213         * lib/select.c (rpl_select) [!win32]: Work around it.
21214         * modules/select (Depends-on): Add dup2.
21215         * doc/posix-functions/select.texi (select): Document this.
21217         select: enhance test
21218         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21219         New functions.
21220         (test_function): Enhance test.
21221         (do_select_bad_fd): Avoid any stale errno values.
21223         ptsname: reject invalid file descriptors
21224         http://www.austingroupbugs.net/view.php?id=503
21225         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21227         * modules/stdlib (Makefile.am): Replace witness.
21228         * lib/stdlib.in.h (ptsname): Allow for replacement.
21229         * modules/ptsname (configure.ac): Trigger replacement.
21230         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21232 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21234         hash-pjw-bare: new module
21235         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21236         * lib/hash-pjw-bare.h: Likewise.
21237         * modules/hash-pjw-bare: New file.
21238         * MODULES.html.sh (Misc): Add it.
21240 2012-10-02  Eric Blake  <eblake@redhat.com>
21242         manywarnings: cater to more gcc infelicities
21243         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21244         -Wuninitialized without -O.
21246 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21248         select, poll tests: Make setsockopt invocation effective.
21249         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21250         the bind() call.
21251         * tests/test-select.h (open_server_socket): Likewise.
21253 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21255         sockets, sys_stat: restore AC_C_INLINE
21256         This undoes the 2012-09-22 patch.
21257         * m4/sockets.m4 (gl_SOCKETS):
21258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21259         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21260         and does not support plain 'inline'.  Reported by Bruno Haible in
21261         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21263 2012-09-30  Bruno Haible  <bruno@clisp.org>
21265         localeconv tests: Avoid test failure on OpenIndiana.
21266         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21267         skip the 'grouping' and 'mon_grouping' tests.
21268         Reported by Jim Meyering.
21270 2012-09-30  Bruno Haible  <bruno@clisp.org>
21272         havelib: Follow libtool developments.
21273         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21274         Suggested by Simon Josefsson.
21276 2012-09-29  Jim Meyering  <meyering@redhat.com>
21278         fstatat.c: fix a compile-impeding typo
21279         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21280         Introduced in commit v0.0-7636-gd202279.
21281         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21283 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21285         extern-inline: provide a -Wundef safe config.h
21286         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21287         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21288         to produce a -Wundef warning free config.h.
21290 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21292         hash-pjw: relax license to LGPLv2+
21293         * modules/hash-pjw (License): Relax, with consent of author.
21295 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21297         maint.mk: fix strict vs. lazy variable issues with RELEASE
21298         * top/maint.mk (_equal): New function.
21299         (member_check): Strip the result to avoid spurious spaces.
21300         (url_dir_list): Do not use ifeq, which is strict, as it will
21301         require RELEASE_TYPE to be defined.
21302         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21303         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21304         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21305         (announcement_Cc_beta,announcement_mail_headers_beta)
21306         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21307         (release): Do not depend on $(release-type), as it forces its
21308         evaluation.  Bounce to it.
21310 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21312         maint.mk: formatting changes
21313         * top/maint.mk: Indent bodies of if's.
21315 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21317         maint.mk: factor the validation of RELEASE_TYPE
21318         With help from Jim Meyering.
21319         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21320         * top/maint.mk (_empty, _sp): Move their definition earlier.
21321         (member-check, release-type): New.
21322         Use the latter instead of $(RELEASE_TYPE).
21323         Remove now useless local checks.
21325 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21327         maint.mk: provide "make upload" to ease uploading
21328         See
21329         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21330         Do not depend simply on the current $(VERSION), as there may have been
21331         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21332         as "make release-commit" already does.
21334         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21335         "make TYPE".
21337         * top/maint.mk (upload_command, upload, release): New.
21338         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21339         (VERSION): first word of $(RELEASE) is always right.
21340         (emit_upload_commands): Adjust.
21341         * top/README-release: Update.
21343 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21345         maint.mk: silent rules
21346         With help from Stefano Lattarini.
21347         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21348         (announcement): Use $(AM_V_at).
21350 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21352         localename: port gl_locale_name_thread_unsafe to FreeBSD
21353         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21354         and use the simpler FreeBSD implementation on Mac OS X as well.
21355         Original idea suggested by Ed Maste in
21356         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21358 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21360         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21361         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21362         * lib/mbuiter.c, lib/xsize.c: New files.
21363         * lib/binary-io.h (BINARY_IO_INLINE):
21364         * lib/eealloc.h (EEALLOC_INLINE):
21365         * lib/mbfile.h (MBFILE_INLINE):
21366         * lib/mbiter.h (MBITER_INLINE):
21367         * lib/mbuiter.h (MBUITER_INLINE):
21368         * lib/xsize.h (XSIZE_INLINE):
21369         New macros.
21370         Replace all uses of 'static inline' with them.
21371         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21372         * m4/eealloc.m4 (gl_EEALLOC):
21373         * m4/mbfile.m4 (gl_MBFILE):
21374         * m4/mbiter.m4 (gl_MBITER):
21375         * m4/xsize.m4 (gl_XSIZE):
21376         Do not require AC_C_INLINE.
21377         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21378         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21379         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21380         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21381         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21382         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21383         * modules/binary-io, modules/eealloc, modules/mbfile:
21384         * modules/mbiter, modules/mbuiter:
21385         (Depends-on): Add extern-inline.
21387         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21388         * lib/pipe-filter-aux.c: New file.
21389         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21390         Replace all uses of 'static inline' with it.
21391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21392         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21393         (filter_retcode): No real need for inline here.
21394         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21395         (Files): Add lib/pipe-filter-aux.c.
21396         (Depends-on): Add extern-inline.
21397         (configure.ac): Do not require AC_C_INLINE.
21398         (lib_SOURCES): Add pipe-filter-aux.c.
21400         fdutimensat: omit unnecessary AC_C_INLINE
21401         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21403         fchmodat, fchownat, fstatat: use extern-inline
21404         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21405         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21406         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21407         New macros.
21408         * lib/openat.h:
21409         Replace all uses of 'static inline' with them.
21410         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21411         * modules/fchmodat, modules/fchownat, modules/fstatat:
21412         * modules/openat-h:
21413         (Depends-on):
21414         Add extern-inline.
21415         (configure.ac): Remove AC_C_INLINE.
21417         acl, mbchar, priv-set: use extern-inline
21418         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21419         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21420         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21421         New macros.
21422         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21423         Replace all uses of 'static inline' with it.
21424         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21425         * m4/acl.m4 (gl_FUNC_ACL):
21426         * m4/mbchar.m4 (gl_MBCHAR):
21427         * m4/priv-set.m4 (gl_PRIV_SET):
21428         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21429         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21430         Add extern-inline.
21432         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21433         * m4/sockets.m4 (gl_SOCKETS):
21434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21435         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21436         environments where it's already guaranteed to work, so we needn't
21437         check for it at 'configure'-time.
21439         tls-tests: omit unnecessary 'inline'
21440         * tests/test-tls.c (perhaps_yield): No longer inline.
21441         Simplicity and portability trump efficiency in test cases.
21443         utimens-tests: avoid unnecessary 'inline'
21444         * modules/fdutimensat-tests (configure.ac):
21445         * modules/futimens-tests (configure.ac):
21446         * modules/utimens-tests (configure.ac):
21447         * modules/utimensat-tests (configure.ac):
21448         Remove AC_C_INLINE.
21449         * tests/test-utimens-common.h (ctime_compare):
21450         No longer inline.  Simplicity and portability trump efficiency here.
21452         misc: don't limit commentary to inline functions
21453         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21454         * lib/xalloc-oversized.h, lib/xsize.h:
21455         Contrast macros to functions in general, not just to inline functions,
21456         when the commentary does not apply only to inline functions.
21458 2012-09-20  Jim Meyering  <meyering@redhat.com>
21460         non-recursive-gnulib-prefix-hack: new module
21461         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21462         the file that originated in Bison.
21463         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21464         largely copied from a snippet that resided in bison's configure.ac.
21465         * modules/non-recursive-gnulib-prefix-hack: New file.
21466         * MODULES.html.sh (Support for maintaining and releasing projects):
21467         Add it.
21469 2012-09-18  Jim Meyering  <meyering@redhat.com>
21471         maint.mk: generalize _gl_tight_scope for non-recursive make
21472         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21473         that *.h would describe additional .h files in the directory
21474         specified by $(_gl_TS_dir).  I.e., add this...
21475         (_gl_TS_other_headers): New variable.
21477         maint.mk: exempt trailing blanks found in "binary" files
21478         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21479         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21480         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21482 2012-09-17  Jim Meyering  <meyering@redhat.com>
21484         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21485         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21486         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21487         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21489 2012-09-17  Jim Meyering  <meyering@redhat.com>
21491         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21492         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21493         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21494         It is not in the same category as "exit (0)" or "exit (1)", and
21495         besides, I know of no symbolic name for that 77.  Reported by
21496         Richard W.M. Jones in
21497         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21499 2012-09-17  Jim Meyering  <meyering@redhat.com>
21501         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21502         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21503         all uses of #define, not just those that start in column 1.
21504         Richard W.M. Jones reported a false positive in
21505         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21507 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21509         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21510         * lib/localcharset.c (locale_charset) [DARWIN7]:
21511         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21512         as these two values are incompatible.  Problem reported by Max Horn.
21513         For more discussion, please see
21514         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21516         doc: document sticky-EOF issue
21517         * doc/posix-functions/fgetc.texi (fgetc):
21518         * doc/posix-functions/fgets.texi (fgets):
21519         * doc/posix-functions/fread.texi (fread):
21520         * doc/posix-functions/fscanf.texi (fscanf):
21521         * doc/posix-functions/getc.texi (getc):
21522         * doc/posix-functions/getchar.texi (getchar):
21523         * doc/posix-functions/scanf.texi (scanf):
21524         Mention that glibc and default Solaris do not conform to
21525         C99 and POSIX-2001 or later, with respect to how getchar
21526         etc. behave when feof reports nonzero.
21528 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21530         poll: fix poll(0, NULL, msec)
21531         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21532         but nfd is 0.  In that case poll should behave like select.
21534 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21535             Paolo Bonzini  <bonzini@gnu.org>
21537         poll: fix for systems that can't recv() on a non-socket
21538         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21539         is readable.  In this case POLLHUP will not be supported.
21540         * doc/posix-functions/poll.texi: Document this.
21542 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21544         poll/select: document portability problems not fixed by Gnulib.
21545         * doc/posix-functions/poll.texi: poll does not work well on
21546         pipes under Windows.  It has the same limitations as select on
21547         BeOS.
21548         * doc/posix-functions/select.texi: select does not work well
21549         on pipes under Windows.
21551 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21553         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21554         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21555         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21556         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21558 2012-09-06  Eric Blake  <eblake@redhat.com>
21560         net_if: give more details about the bug being fixed
21561         * doc/posix-headers/net_if.texi: Add clarification.
21563 2012-09-05  Eric Blake  <eblake@redhat.com>
21565         net_if: new module
21566         * modules/net_if: New module, borrowing ideas from netinet_in.
21567         * m4/net_if_h.m4: New file.
21568         * lib/net_if.in.h: Likewise.
21569         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21570         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21571         * tests/test-net_if.c: Make function checks conditional.
21572         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21574 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21576         readutmp: fix non-portable UT_PID use
21577         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21578         Use `UT_PID (u) > 0' as absolute condition.
21580 2012-09-04  Jim Meyering  <meyering@redhat.com>
21582         fts: reduce two or more trailing spaces to just one, usually
21583         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21584         or more slashes, trim all but the final one.  But if a name consists
21585         solely of two slashes, don't modify it.  If it consists solely of
21586         three or more slashes, strip all but one.
21588         This is part of the solution to a minor problem with rm:
21589         it would print a bogus ELOOP diagnostic when failing to remove
21590         the slash-decorated name of a symlink-to-directory:
21592             $ mkdir d && ln -s d s && env rm -r s/
21593             rm: cannot remove 's': Too many levels of symbolic links
21595         With the change below and a trivial don't-trim-trailing-slashes
21596         adjustment to remove.c, it does this:
21598             $ env rm -r s/
21599             rm: cannot remove 's/': Not a directory
21601         Improved by: Eric Blake
21603         fts: when there is no risk of overlap, use memcpy, not memmove
21604         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21606 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21608         stdbool: be more compatible with mixed C/C++ compiles
21609         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21610         Define to bool, true, false, respectively, as GCC's builtin
21611         stdbool.h does.  Problem reported by Michael Goffioul in
21612         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21614 2012-08-28  Jim Meyering  <meyering@redhat.com>
21616         revert last change: it was not needed
21617         * tests/test-vc-list-files-git.sh: There's already a test for
21618         a working git, just below.
21620 2012-08-28  Jim Meyering  <meyering@redhat.com>
21622         tests: test-vc-list-files-git.sh: skip if git is not available
21623         * tests/test-vc-list-files-git.sh: Skip this test when git is
21624         not available.
21626 2012-08-26  Bruno Haible  <bruno@clisp.org>
21628         gnulib-tool: Remove no-op option --no-changelog.
21629         * gnulib-tool (func_usage): Don't mention --no-changelog.
21630         (do_changelog): Remove variable.
21631         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21633 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21635         doc: remove fdl-1.2.texi
21636         It is no longer used or maintained, and its use of @acronym
21637         is problematic.  See the thread containing
21638         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21639         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21640         * doc/old-licenses/fdl-1.2.texi: Remove.
21642         execinfo: port to FreeBSD
21643         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21644         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21645         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21646         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21648 2012-08-23  Jim Meyering  <meyering@redhat.com>
21650         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21651         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21652         to placate gcc's -Wold-style-declaration.
21654 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21656         doc: do not use @acronym
21657         * doc/inet_ntoa.texi (inet_ntoa):
21658         * doc/parse-datetime.texi (Seconds since the Epoch)
21659         (Specifying time zone rules):
21660         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21661         Don't use @acronym.  Problem reported by John Darlington in
21662         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21664 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21666         stdnoreturn: port to newer GCCs
21667         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21668         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21669         Problem reported by Jim Meyering in
21670         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21671         Also, rename the 'test' function to a void a clash with the
21672         already-supplied 'main' function; this fixes a bug that incorrectly
21673         rejected GCC 4.7.1's <stdnoreturn.h>.
21674         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21675         Document GCC problem.
21677 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21679         pipe-filter: fix comment typo
21680         * lib/pipe-filter.h: Mention correct function.
21682 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21684         execinfo: new module
21685         This is for Emacs.  Currently, it provides a no-effect stub
21686         on all platforms where it does not already work.
21687         It already works on glibc-based systems, and on Solaris 11.
21688         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21689         New files.
21690         * doc/glibc-headers/execinfo.texi (execinfo.h):
21691         * MODULES.html.sh (Misc): Document it.
21693 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21695         extern-inline: support old GCC 'inline'
21696         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21697         if available.  This applies to GCC versions 2.7 through 4.2, or
21698         when newer GCC is using -fgnu89-inline.  The goal is to address
21699         some of the performance issues mentioned by Bruno Haible in
21700         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21702 2012-08-20  Eric Blake  <eblake@redhat.com>
21704         maint.mk: avoid redundant file name in message
21705         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21706         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21707         (sc_makefile_path_separator_check): Remove bogus $(ME).
21709 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21711         timer-time: fix link order when static linking on glibc
21712         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21713         _after_ -lrt so that it's significant.
21715 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21717         timespec: omit unnecessary AC_C_INLINE
21718         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21720         stat-time: omit unnecessary AC_C_INLINE
21721         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21722         Do not require AC_C_INLINE.
21724         ignore-value: omit unnecessary AC_C_INLINE
21725         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21727         sys_select: avoid 'static inline'
21728         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21730         mktime: avoid 'static inline'
21731         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21732         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21734 2012-08-19  Bruno Haible  <bruno@clisp.org>
21736         gnulib-tool: Improve coding style.
21737         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21738         func_emit_lib_Makefile_am.
21739         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21741 2012-08-19  Bruno Haible  <bruno@clisp.org>
21743         gnulib-tool: Fix indentation.
21744         * gnulib-tool (func_import): Fix indentation.
21746 2012-08-19  Bruno Haible  <bruno@clisp.org>
21748         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21749         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21750         on the list of removed files.
21752 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21754         test-parse-datetime: avoid glibc leap-second glitch
21755         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21756         with the 2012 rules.  Problem reported by Bruce Dubbs in
21757         <http://bugs.gnu.org/12206>.
21759 2012-08-14  Bruno Haible  <bruno@clisp.org>
21761         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21762         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21763         from argument.
21764         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21766 2012-08-14  Eric Blake  <eblake@redhat.com>
21768         ldexp: relax license
21769         * modules/ldexp (License): Trivial relax, since the module only
21770         provides a permissively licensed m4 file.
21772 2012-08-13  Bruno Haible  <bruno@clisp.org>
21774         gnulib-tool: Fix persistence of --witness-c-macro option.
21775         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21776         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21778 2012-08-11  Eric Blake  <eblake@redhat.com>
21780         count-leading-zeros: use a lookup table on non-gcc compilers
21781         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21782         alternate implementation, suggested by Jim Meyering.
21784 2012-08-10  Eric Blake  <eblake@redhat.com>
21786         count-leading-zeros: new module
21787         * modules/count-leading-zeros: New module.
21788         * m4/count-leading-zeros.m4: New file.
21789         * lib/count-leading-zeros.h: Likewise.
21790         * modules/count-leading-zeros-tests: New test.
21791         * tests/test-count-leading-zeros.c: New file.
21792         * MODULES.html.sh (Integer arithmetic functions): Document it.
21794 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21795             Jim Meyering  <meyering@redhat.com>
21797         maintainer-makefile: Fix syntax error with dash.
21798         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21799         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21801 2012-08-05  Jim Meyering  <meyering@redhat.com>
21803         extern-inline: also ignore -Wmissing-declarations
21804         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21805         required with gcc-4.8.0-to-be.
21807         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21808         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21809         for /error ?([^,]*)/.  This avoids false-positives for strings like
21810         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21812 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21814         gnumakefile: better interaction with Automake-NG
21815         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21816         Automake-NG always contain a definition of VPATH, even in non-VPATH
21817         builds (its value being simply '.' in that case).  So, in the
21818         'clean-GNUmakefile' rule, to determine whether running under a
21819         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21820         '$(VPATH)' expands to the empty string.
21822 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21824         base64: Use extern C scope in header file, for C++.
21825         * lib/base64.h: Add C++ namespace protection.
21827 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21829         stat-time, timespec, u64: support naive out-of-dir builds
21830         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21831         Use '#include "foo.h"', not '#include <foo.h>', when including
21832         one's own interface.  This works better when configuring with
21833         out-of-directory builds, since packages need not add an
21834         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21836 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21838         utimens: use extern-inline
21839         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21840         * lib/utimens.h: Add copyright notice, since this is now large enough
21841         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21842         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21843         * modules/utimens (Depends-on): Add extern-inline.
21845         u64: use extern-inline
21846         * lib/u64.c: New file.
21847         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21848         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21849         * modules/u64 (Files): Add lib/u64.c.
21850         (Depends-on): Add extern-inline.
21851         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21852         does that now.
21853         (lib_SOURCES): Add u64.c.
21855         timespec: use extern-inline
21856         * lib/timespec.c: New file.
21857         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21858         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21859         * modules/timespec (Files): Add lib/timespec.c.
21860         (Depends-on): Add extern-inline.
21861         (lib_SOURCES): Add timespec.c.
21863         stat-time: use extern-inline
21864         * lib/stat-time.c: New file.
21865         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21866         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21867         * modules/stat-time (Files): Add lib/stat-time.c.
21868         (Depends-on): Add extern-inline.
21869         (lib_SOURCES): Add stat-time.c.
21871         extern-inline: new module
21872         * modules/extern-inline, m4/extern-inline.m4: New files.
21873         This is for better support of 'extern inline' a la ISO C99,
21874         with a portable alternative on compilers that do not support
21875         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21876         of the Emacs executable, when compiled with debugging disabled,
21877         which is a typical way that Emacs is built while developing.
21879 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21881         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21882         * build-aux/do-release-commit-and-tag: Move variable definitions
21883         together.
21884         ($branch): Instead of defaulting to "master", default to the current
21885         branch (as gnu-web-doc-update does).
21886         (help): Display the current values of the option arguments.
21887         * top/maint.mk (release-commit): New.
21888         * top/README-release: Simplify the corresponding step.
21890 2012-07-30  Eric Blake  <eblake@redhat.com>
21892         passfd: fix comment on recvfd
21893         * lib/passfd.c (recvfd): Fix comment.
21894         Reported by Jann Horn <jannhorn@googlemail.com>.
21896 2012-07-30  Jim Meyering  <meyering@redhat.com>
21898         maint.mk: avoid a sub-shell
21899         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21901 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21903         maint.mk: use silent-rules support from Automake
21904         * top/maint.mk (news-check, vc-diff-check, announcement)
21905         (no-submodule-changes, alpha beta stable, release-prep)
21906         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21908 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21910         maint.mk: provide a web-manual-update target
21911         * top/maint.mk: here.
21912         * top/README-release: Use it to simplify the web manual update step.
21914 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21916         README-release: shorten the circuit to post a news
21917         * top/README-release: Point directly to the news submission form.
21919 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21921         gnu-web-doc-update: fix --help
21922         * build-aux/gnu-web-doc-update: The information "top level" was written
21923         twice.
21925 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21927         maint.mk: absolute VPATH issue
21928         * top/maint.mk (release-prep): Help Git find .git/.
21929         From Jim Meyering.
21931 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21933         gitlog-to-changelog: fix previous change
21934         * build-aux/gitlog-to-changelog: Fix condition.
21935         Add missing ";".
21937 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21939         gitlog-to-changelog: don't expect .git to be in $srcdir
21940         Reported by Bruno Haible.
21941         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21942         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21943         Use it.
21945 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21947         maint.mk: absolute VPATH build fix
21948         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21949         $(srcdir) is not a parent of $(builddir).
21951 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21953         clean-temp: Fix memory leak.
21954         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21955         'files' members of tmpdir.
21957 2012-07-27  Jim Meyering  <meyering@redhat.com>
21959         maint.mk: new rule: refresh-gnulib-patches
21960         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21961         Use this rule to refresh them.
21962         * top/maint.mk (refresh-gnulib-patches): New rule.
21964 2012-07-24  Bruno Haible  <bruno@clisp.org>
21966         gnulib-tool: Fix handling of inctests variable.
21967         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21968         Reported by Nick Bowler <nbowler@elliptictech.com>.
21970 2012-07-22  Bruno Haible  <bruno@clisp.org>
21972         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21973         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21974         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21975         Remove exemption for getpass.h.
21976         Suggested by Eric Blake.
21978 2012-07-20  Eric Blake  <eblake@redhat.com>
21980         verify: document conflict with -Wnested-externs
21981         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21983         maint.mk: forbid exit(-1)
21984         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21986 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21988         fsusage: port back to Solaris
21989         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21990         error (fsd not declared) on Solaris 10.  Reported privately by
21991         Andrew Borodin.
21993 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21995         gnu-web-doc-update: fix error messages
21996         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21998         gnu-web-doc-update: check the requirements.
21999         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
22000         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
22001         * build-aux/bootstrap (find_tool): Comment change.
22003 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
22005         maint.mk: minor simplication.
22006         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22007         for default values.
22009 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
22011         gitlog-to-changelog: VPATH build issues
22012         If builddir is not a subdirectory of srcdir, running git from it will
22013         fail.
22014         * build-aux/gitlog-to-changelog (--srcdir): New option.
22016 2012-07-15  Bruno Haible  <bruno@clisp.org>
22018         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
22019         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
22020         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
22021         Remove exemption for fpending.h.
22022         Suggested by Eric Blake.
22024 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22026         pthread_sigmask: fix bug on FreeBSD 9
22027         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
22028         Include string.h.
22029         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
22030         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
22031         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
22032         but pthread_sigmask (1729, NULL, NULL) returns zero.
22033         See <http://bugs.gnu.org/11884>.
22034         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
22035         by inspecting whether the main call changed the old mask.
22037 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
22039         README-release: make it more legible
22040         * top/README-release: Improve typography slightly.
22042 2012-07-15  Jim Meyering  <meyering@redhat.com>
22044         maint: require that each sc_... command start with "@"
22045         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
22046         "make sc_maint" helps us avoid this nit.
22048 2012-07-15  Jim Meyering  <meyering@redhat.com>
22050         maint.mk: add leading "@" to quiet new "make syntax-check" rule
22051         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
22053 2012-07-13  Eric Blake  <eblake@redhat.com>
22055         maint.mk: new syntax check for HAVE_DECL checks
22056         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
22057         * cfg.mk
22058         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22059         Exempt some false positives.
22060         Based on a report by Karel Zak.
22062         argp: make HAVE_DECL usage consistent
22063         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
22064         macros, not whether they are defined.
22065         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
22066         convention with other declaration checks.
22067         Reported by Karel Zak, with suggestions from Paul Eggert.
22069         stat-time: relax license to LGPLv2+
22070         * modules/stat-time (License): Relax, with consent of all authors.
22072         strndup: fix m4 usage error
22073         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
22074         defined, to either 0 or 1.
22075         Reported by Karel Zak.
22077 2012-07-11  Jim Meyering  <meyering@redhat.com>
22079         maint: enable the sc_avoid_if_before_free syntax-check rule
22080         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
22081         (if_before_free_offenders_): Define.
22082         (if_before_free_basename_re_): Define.
22083         Exempt current files with useless if-before-free.
22085 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22087         gettext: do not assume '#define ... defined ...' behavior
22088         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
22089         Do not use '#define FOO ... defined BAR ...', as the C standard says
22090         it's not portable to expect that this works after macro expansion.
22091         Problem reported for gzip by Steven M. Schweda in
22092         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
22094 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22096         getloadavg: clean out old Emacs and Autoconf cruft
22097         See Glenn Morris in <http://bugs.gnu.org/11905>.
22098         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
22099         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
22100         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
22101         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
22103 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
22105         bootstrap: let warn be like tests/init.sh's warn_
22106         Reported by Jim Meyering.
22107         * build-aux/bootstrap (warn): Remove, replaced by...
22108         (warnf_, warn_): these.
22109         Adjust callers.
22110         Shorten messages that no longer fit in 80 columns.
22112 2012-07-09  Bruno Haible  <bruno@clisp.org>
22114         getopt: Simplify after Emacs changed.
22115         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22116         (gl_GETOPT_IFELSE): Remove macro.
22118 2012-07-09  Jim Meyering  <meyering@redhat.com>
22120         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22121         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22123         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22124         Bugs in both of those conspired to make the
22125         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22126         _sc_search_regexp's handling of non-empty $in_files would filter
22127         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22128         choice of in_files value meant there would be no match in most
22129         projects, due to the presence of two or more Makefile.in files.
22130         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22131         Fix a bug in how a non-empty $$in_files was processed:
22132         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22133         in spite of the name, it's a regexp, not a list of file names.
22135 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22137         getloadavg, getopt: fix commentary re configure.in
22138         Autoconf is deprecating the name 'configure.in', so change it to
22139         to the new name 'configure.ac' in a couple of places.
22140         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22141         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22142         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22143         Emacs has renamed it to configure.ac, and it no longer refers
22144         to these macros anyway.
22146         timespec: mark functions with const attributes
22147         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22148         Mark with _GL_ATTRIBUTE_CONST.
22150 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22152         canonicalize[-lgpl]: handle "guessing" values when cross-building
22153         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22154         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22155         matches "*yes" instead of just "yes".  Regression introduced in commit
22156         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22158 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22159             Bruno Haible  <bruno@clisp.org>
22161         canonicalize: make the right guess when cross-compiling to GNU
22162         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22163         determine whether cross-compiling to glibc systems, so as to
22164         include GNU/Hurd.
22166 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22168         timespec-sub: avoid duplicate include
22169         * lib/timespec-sub.c: Do not include <config.h> twice.
22170         Reported by Juanma Barranquero.
22172 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22174         bootstrap: use a more consistent error reporting scheme
22175         * build-aux/bootstrap (warn, die): New.
22176         Use them.
22178 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22180         sys_time: allow too-wide tv_sec
22181         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22182         timeval even if tv_sec is wider than time_t.  This allows
22183         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22184         as without this patch gnulib replaces struct timeval
22185         and OpenBSD futimes therefore has a type mismatch.
22186         * doc/posix-headers/sys_time.texi: Mention this.
22188         pthread: check for both pthread_create and pthread_join
22189         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22190         alter the check so that it tests for both pthread_create and
22191         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22192         Suggested by Bruno Haible and Richard Yao in
22193         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22195         parse-datetime: doc tuneup
22196         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22197         spacing issues.
22199 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22201         do-release-commit-and-tag: fix the previous commit
22202         * build-aux/do-release-commit-and-tag: Actually the test was right,
22203         but the comment and the error message were misleading.
22204         Fix comment, and improve error message.
22205         Perform check first, so that NEWS is not modified uselessly.
22207         do-release-commit-and-tag: fix typo
22208         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22209         _not_ start with a stub.
22211 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22213         pthread: check for pthread_create, not pthread_join
22214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22215         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22216         pthread_join in libc.  I hope this removes the need for all the
22217         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22218         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22220 2012-07-04  Jim Meyering  <meyering@redhat.com>
22222         parse-datetime: fix failure to diagnose invalid input
22223         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22224         rather than diagnosing the invalid input.  Now it reports this:
22225         date: invalid date '\260'
22226         * lib/parse-datetime.y (to_uchar): Define.
22227         (yylex): Don't sign-extend "other" bytes.
22228         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22229         Thanks to Bruno Haible for the patch to this file.
22230         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22231         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22233 2012-07-03  Jim Meyering  <meyering@redhat.com>
22235         bootstrap: do not require now-removed build-aux/missing
22236         Now that build-aux/missing is, er, missing, bootstrap would
22237         silently fail.
22238         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22239         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22240         no longer part of gnulib.
22241         Diagnose the failure.
22243 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22245         alloca: add support for HP NonStop TNS/E native
22246         * lib/alloca.in.h (alloca): Support the new host.
22247         From a suggestion by Joachim Schmitz in
22248         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22250 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22252         fsusage: remove code not needed on non GNU/Linux systems.
22254         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22255         Don't include headers no longer needed in this case.
22256         * lib/fsusage.c [STAT_STATVFS &&
22257         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22258         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22260 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22262         fsusage: include files needed for glibc 2.6 fallback
22263         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22264         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22265         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22266         Problem reported by Ludovic Courtès in
22267         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22269         fsusage: avoid needless check on GNU/Linux
22270         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22271         on GNU/Linux systems, since it can't possibly work.
22273 2012-07-01  Bruno Haible  <bruno@clisp.org>
22275         log: Fix an autoconf >= 2.64 warning.
22276         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22277         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22279 2012-06-28  Bruno Haible  <bruno@clisp.org>
22281         log10f: Fix possible configuration problem.
22282         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22283         $LOGF_LIBM.
22284         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22286 2012-06-28  Bruno Haible  <bruno@clisp.org>
22288         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22289         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22290         not gl_cv_func_unlink_works.
22291         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22293 2012-06-27  Eric Blake  <eblake@redhat.com>
22295         config: drop scripts that automake says are not independent
22296         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22297         * build-aux/elisp-comp: Delete.
22298         * build-aux/missing: Likewise.
22299         * build-aux/ylwrap: Likewise.
22300         * modules/elisp-comp: Likewise.
22301         * MODULES.html.sh: Drop mention of elisp-comp.
22302         * NEWS: Mention this.
22304 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22306         root-uid: new module
22307         This is for portability to Tandem's NonStop Kernel.
22308         * lib/root-uid.h, modules/root-uid: New files.
22309         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22310         * lib/write-any-file.c, tests/test-sethostname2.c:
22311         Include "root-uid.h".
22312         * lib/euidaccess.c (euidaccess):
22313         * lib/pt_chown.c (main):
22314         * lib/unlinkdir.c (cannot_unlink_dir):
22315         * lib/write-any-file.c (can_write_any_file):
22316         * m4/mknod.m4 (gl_FUNC_MKNOD):
22317         * tests/test-sethostname2.c (geteuid, main):
22318         Don't assume ROOT_UID == 0.
22319         * modules/euidaccess (Depends-on):
22320         * modules/pt_chown (Depends-on):
22321         * modules/sethostname-tests (Depends-on):
22322         * modules/unlinkdir (Depends-on):
22323         * modules/write-any-file (Depends-on):
22324         Add root-uid.
22326         regex: use locale-independent comparison for codeset name
22327         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22328         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22329         for codeset name.
22330         * lib/regex_internal.h: Do not include <strings.h>, since we
22331         no longer use strcasecmp.
22332         * modules/regex (Depends-on): Remove strcase.
22334 2012-06-23  Bruno Haible  <bruno@clisp.org>
22336         getopt-posix: No longer guarantee that option processing is resettable.
22337         * doc/posix-functions/getopt.texi: Drop description of problem with
22338         internal state. Fix info about mingw and msvc9.
22339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22340         option processing by getopt(). Run three test programs instead of one.
22341         Simplify cross-compilation guess.
22342         * NEWS: Mention the change.
22343         Reported by Rich Felker <dalias@aerifal.cx>.
22345 2012-06-26  Bruno Haible  <bruno@clisp.org>
22347         argp, regex: Ensure strcasecmp gets declared.
22348         * lib/argp-help.c: Include <strings.h>.
22349         * lib/regex_internal.h: Likewise.
22350         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22352 2012-06-24  Bruno Haible  <bruno@clisp.org>
22354         ptsname_r: Make it consistent with ptsname on AIX.
22355         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22356         implementation as for OSF/1.
22357         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22358         a pty master.
22360         ptsname_r: Make it consistent with ptsname on OSF/1.
22361         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22362         OSF/1.
22364 2012-06-24  Bruno Haible  <bruno@clisp.org>
22366         ttyname_r: Fix result on OSF/1, Solaris.
22367         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22369 2012-06-24  Bruno Haible  <bruno@clisp.org>
22371         ptsname_r: Add support for Solaris.
22372         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22373         Solaris.
22375         ptsname_r: Fix test failure on native Windows.
22376         * modules/ptsname_r (Depends-on): Add isatty.
22378         ptsname_r: Fix test failures on IRIX, Solaris.
22379         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22380         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22381         accordingly.
22382         * lib/ptsname_r.c: Include <fcntl.h>.
22383         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22384         set errno if fd is invalid.
22385         * tests/test-isatty.c (main): Update comments.
22387 2012-06-24  Bruno Haible  <bruno@clisp.org>
22389         ptsname test: Extend test.
22390         * tests/test-ptsname.c: Include <errno.h>.
22391         (main): Test behaviour with invalid file descriptor.
22393 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22395         time: fix obsolete comment
22396         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22397         reference to HAVE_STRUCT_TIMESPEC in comment.
22399 2012-06-23  Bruno Haible  <bruno@clisp.org>
22401         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22403         does not handle abbreviated long options with equivalent
22404         disambiguations, set gl_replace_getopt to yes.
22405         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22407 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22409         time_r: fix typo that always overrode localtime_r decl
22410         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22411         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22412         not in a standard include.
22414 2012-06-22  Bruno Haible  <bruno@clisp.org>
22416         Write "Mac OS X" instead of "MacOS X".
22417         * README: Write "Mac OS X" instead of "MacOS X".
22418         * build-aux/bootstrap: Likewise.
22419         * build-aux/install-reloc: Likewise.
22420         * lib/acl-internal.h: Likewise.
22421         * lib/acl_entries.c: Likewise.
22422         * lib/argp-ba.c: Likewise.
22423         * lib/argp-pv.c: Likewise.
22424         * lib/config.charset: Likewise.
22425         * lib/copy-acl.c: Likewise.
22426         * lib/csharpexec.c: Likewise.
22427         * lib/euidaccess.c: Likewise.
22428         * lib/fbufmode.c: Likewise.
22429         * lib/fflush.c: Likewise.
22430         * lib/file-has-acl.c: Likewise.
22431         * lib/filemode.h: Likewise.
22432         * lib/fpurge.c: Likewise.
22433         * lib/freadable.c: Likewise.
22434         * lib/freadahead.c: Likewise.
22435         * lib/freading.c: Likewise.
22436         * lib/freadptr.c: Likewise.
22437         * lib/freadseek.c: Likewise.
22438         * lib/fseeko.c: Likewise.
22439         * lib/fseterr.c: Likewise.
22440         * lib/fsusage.c: Likewise.
22441         * lib/fwritable.c: Likewise.
22442         * lib/fwriting.c: Likewise.
22443         * lib/get-rusage-as.c: Likewise.
22444         * lib/get-rusage-data.c: Likewise.
22445         * lib/getdomainname.c: Likewise.
22446         * lib/idpriv-drop.c: Likewise.
22447         * lib/idpriv-droptemp.c: Likewise.
22448         * lib/localcharset.c: Likewise.
22449         * lib/locale.in.h: Likewise.
22450         * lib/localename.c: Likewise.
22451         * lib/mbsrtowcs-state.c: Likewise.
22452         * lib/nproc.c: Likewise.
22453         * lib/passfd.c: Likewise.
22454         * lib/posix_openpt.c: Likewise.
22455         * lib/printf-parse.c: Likewise.
22456         * lib/progreloc.c: Likewise.
22457         * lib/safe-read.h: Likewise.
22458         * lib/safe-write.h: Likewise.
22459         * lib/sched.in.h: Likewise.
22460         * lib/set-mode-acl.c: Likewise.
22461         * lib/signal.in.h: Likewise.
22462         * lib/stdint.in.h: Likewise.
22463         * lib/stdio-impl.h: Likewise.
22464         * lib/stdlib.in.h: Likewise.
22465         * lib/strtod.c: Likewise.
22466         * lib/sys_select.in.h: Likewise.
22467         * lib/tcgetsid.c: Likewise.
22468         * lib/unistd.in.h: Likewise.
22469         * lib/unlockpt.c: Likewise.
22470         * lib/vasnprintf.c: Likewise.
22471         * lib/vma-iter.c: Likewise.
22472         * lib/wcsrtombs-state.c: Likewise.
22473         * m4/acl.m4: Likewise.
22474         * m4/acosl.m4: Likewise.
22475         * m4/asinl.m4: Likewise.
22476         * m4/atanl.m4: Likewise.
22477         * m4/c-stack.m4: Likewise.
22478         * m4/cosl.m4: Likewise.
22479         * m4/expl.m4: Likewise.
22480         * m4/extensions.m4: Likewise.
22481         * m4/fdatasync.m4: Likewise.
22482         * m4/fmal.m4: Likewise.
22483         * m4/frexp.m4: Likewise.
22484         * m4/frexpf.m4: Likewise.
22485         * m4/frexpl.m4: Likewise.
22486         * m4/fsusage.m4: Likewise.
22487         * m4/getdomainname.m4: Likewise.
22488         * m4/getloadavg.m4: Likewise.
22489         * m4/getopt.m4: Likewise.
22490         * m4/gettext.m4: Likewise.
22491         * m4/gnulib-common.m4: Likewise.
22492         * m4/intdiv0.m4: Likewise.
22493         * m4/intlmacosx.m4: Likewise.
22494         * m4/largefile.m4: Likewise.
22495         * m4/ldexpl.m4: Likewise.
22496         * m4/link-follow.m4: Likewise.
22497         * m4/locale-ar.m4: Likewise.
22498         * m4/locale-fr.m4: Likewise.
22499         * m4/locale-ja.m4: Likewise.
22500         * m4/locale-tr.m4: Likewise.
22501         * m4/locale-zh.m4: Likewise.
22502         * m4/locale_h.m4: Likewise.
22503         * m4/lock.m4: Likewise.
22504         * m4/logl.m4: Likewise.
22505         * m4/mathfunc.m4: Likewise.
22506         * m4/minus-zero.m4: Likewise.
22507         * m4/mktime.m4: Likewise.
22508         * m4/mmap-anon.m4: Likewise.
22509         * m4/multiarch.m4: Likewise.
22510         * m4/nanosleep.m4: Likewise.
22511         * m4/nocrash.m4: Likewise.
22512         * m4/poll.m4: Likewise.
22513         * m4/printf-frexpl.m4: Likewise.
22514         * m4/printf.m4: Likewise.
22515         * m4/signbit.m4: Likewise.
22516         * m4/sinl.m4: Likewise.
22517         * m4/sqrtl.m4: Likewise.
22518         * m4/strerror_r.m4: Likewise.
22519         * m4/tanl.m4: Likewise.
22520         * m4/threadlib.m4: Likewise.
22521         * m4/ttyname_r.m4: Likewise.
22522         * m4/unlink.m4: Likewise.
22523         * m4/visibility.m4: Likewise.
22524         * m4/wcwidth.m4: Likewise.
22525         * tests/minus-zero.h: Likewise.
22526         * tests/test-alloca-opt.c: Likewise.
22527         * tests/test-copy-acl.sh: Likewise.
22528         * tests/test-copy-file.sh: Likewise.
22529         * tests/test-fdatasync.c: Likewise.
22530         * tests/test-file-has-acl.sh: Likewise.
22531         * tests/test-flock.c: Likewise.
22532         * tests/test-fsync.c: Likewise.
22533         * tests/test-localename.c: Likewise.
22534         * tests/test-malloca.c: Likewise.
22535         * tests/test-nonblocking-pipe.h: Likewise.
22536         * tests/test-nonblocking-socket.h: Likewise.
22537         * tests/test-openpty.c: Likewise.
22538         * tests/test-posix_openpt.c: Likewise.
22539         * tests/test-ptsname.c: Likewise.
22540         * tests/test-ptsname_r.c: Likewise.
22541         * tests/test-sameacls.c: Likewise.
22542         * tests/test-select.h: Likewise.
22543         * tests/test-set-mode-acl.sh: Likewise.
22544         * tests/test-snprintf-posix.h: Likewise.
22545         * tests/test-sprintf-posix.h: Likewise.
22546         * tests/test-strtod.c: Likewise.
22547         * tests/test-time.c: Likewise.
22548         * tests/test-vasnprintf-posix.c: Likewise.
22549         * tests/test-vasprintf-posix.c: Likewise.
22550         * doc/acl-resources.txt: Likewise.
22551         * doc/**/*.texi: Likewise.
22552         Reported by Max Horn <max@quendi.de>.
22554 2012-06-22  Bruno Haible  <bruno@clisp.org>
22556         grantpt: Relax requirement regarding invalid file descriptors.
22557         * lib/grantpt.c: Don't include <fcntl.h>.
22558         (grantpt): Don't verify the validity of the file descriptor.
22559         * modules/grantpt (Depends-on): Remove fcntl-h.
22560         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22561         file descriptors.
22562         * doc/posix-functions/grantpt.texi: Document more platforms on which
22563         grantpt succeeds for invalid file descriptors.
22564         Reported by Rich Felker <dalias@aerifal.cx>.
22566 2012-06-22  Bruno Haible  <bruno@clisp.org>
22568         fbufmode test: Don't test unportable behaviour.
22569         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22570         (main): Invoke it three times.
22571         Reported by Szabolcs Nagy <nsz@port70.net>
22572         and Rich Felker <dalias@aerifal.cx>.
22574 2012-06-21  Bruno Haible  <bruno@clisp.org>
22576         gnulib-tool: Refactor inctests variable.
22577         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22578         (func_modules_transitive_closure,
22579         func_modules_transitive_closure_separately,
22580         func_import, func_create_testdir): Update.
22582         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22583         * gnulib-tool: Accept option --without-tests.
22584         (func_usage): Document --without-tests option. Rearrange.
22585         (inctests): Normalize according to the mode.
22586         * NEWS: Mention the change.
22587         Suggested by Simon Josefsson.
22589 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22591         parse-duration test: Avoid spurious output.
22592         * tests/test-parse-duration.sh: Reindent with leading tabs.
22594 2012-06-21  Jim Meyering  <meyering@redhat.com>
22596         maint: disable the strncpy prohibition
22597         * cfg.mk: Do not prohibit strncpy here.
22599 2012-06-21  Bruno Haible  <bruno@clisp.org>
22601         nonblocking: Avoid compilation error on mingw64.
22602         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22603         fscanf.
22604         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22605         * modules/vfscanf (configure.ac): Likewise.
22606         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22607         definition only if stdio.h has prepared it.
22608         Reported by Daniel P. Berrange <berrange@redhat.com>.
22610 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22612         gnulib-tool: Use readlink if it is available.
22613         * gnulib-tool (func_readlink): Choose function more appropriately.
22615 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22617         posixtm-tests: port to buggy compiler
22618         Problem reported by Simon Josefsson in
22619         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22620         * modules/posixtm-tests (Depends-on): Add stdint.
22621         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22622         Now of type int_least64_t, not int64_t, both because that's
22623         what INT64_C returns and because int_least64_t works even
22624         on 72-bit hosts.
22625         (T): Use INT64_C on constants outside the traditional int range,
22626         to work around compiler bug noted by Simon.
22628         mktime: fix integer overflow in 'configure'-time test
22629         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22630         after integer overflow.  Problem reported by Rich Felker in
22631         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22632         Also, don't look for further instances of a bug if we've already
22633         found one instance; this helps 'configure' run faster.
22635 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22637         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22638         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22639         GetVersionEx correctly.
22640         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22642 2012-06-20  Bruno Haible  <bruno@clisp.org>
22644         fdopen: Allow implementations that don't reject invalid fd arguments.
22645         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22646         succeeds.
22647         Reported by Rich Felker <dalias@aerifal.cx>.
22649 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22651         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22652         bring in LIBINTL.
22654 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22656         init.sh: do not rely on autoupated PWD
22657         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22658         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22659         Although Nelson's bug was not necessarily fixed by this patch,
22660         it seems wise to make the change for safety.
22661         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22662         automagically after 'cd'; this is not reliable on older shells.
22663         (setup_): Fail if we cannot cd to temporary directory.
22665 2012-06-19  Bruno Haible  <bruno@clisp.org>
22667         stat, fstat: Avoid warnings on mingw64.
22668         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22669         redefining.
22670         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22671         Reported by Daniel P. Berrange <berrange@redhat.com>.
22673 2012-06-19  Bruno Haible  <bruno@clisp.org>
22675         stdioext: Add support for musl libc.
22677         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22678         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22680         * m4/fseterr.m4: New file.
22681         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22682         function exists.
22683         * modules/fseterr (Files): Add m4/fseterr.m4.
22684         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22685         __fseterr does not exist.
22686         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22688         * lib/freadable.h: Update comment.
22690         * lib/fwritable.h: Update comment.
22692         * lib/freading.h: Update comment.
22694         * lib/fwriting.h: Update comment.
22696         * m4/freadahead.m4: New file.
22697         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22698         that function exists.
22699         * modules/freadahead (Files): Add m4/freadahead.m4.
22700         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22701         __freadahead does not exist.
22702         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22704         * m4/freadptr.m4: New file.
22705         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22706         function exists.
22707         * modules/freadptr (Files): Add m4/freadptr.m4.
22708         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22709         __freadptr does not exist.
22710         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22712         * m4/freadseek.m4: New file.
22713         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22714         exists.
22715         * modules/freadseek (Files): Add m4/freadseek.m4.
22716         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22718         * lib/fpurge.c (fpurge): Update comment.
22720         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22722 2012-06-19  Bruno Haible  <bruno@clisp.org>
22724         *printf-posix: Put more info into config.log.
22725         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22726         exit code into config.log.
22728 2012-06-19  Bruno Haible  <bruno@clisp.org>
22730         getopt-gnu: Fix exit code overflow in autoconf test.
22731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22732         to keep them below < 128.
22734 2012-06-17  Jim Meyering  <meyering@redhat.com>
22736         maint.mk: fix typo in code to derive GPG key at release time
22737         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22739 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22741         regex: avoid warning when pointers are not long
22742         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22743         and uintptr_t, not long, for portability to hosts where pointers and
22744         long have different sizes.  Issue noted by Daniel P. Berrange in
22745         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22746         and fix suggested by Bruno Haible in
22747         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22749 2012-06-17  Bruno Haible  <bruno@clisp.org>
22751         dummy: Relicense into the public domain.
22752         * modules/dummy (License): Set to "public domain".
22753         Suggested by Reuben Thomas.
22755 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22757         announce-gen: VPATH issues
22758         * build-aux/announce-gen (--srcdir): New option, used to trim the
22759         $srcdir part of the path from $builddir to NEWS.
22760         * top/maint.mk (announcement): Adjust.
22762 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22764         gnu-web-doc-update: VPATH builds
22765         * build-aux/gnu-web-doc-update (--builddir): New option.
22766         Revamp the handling of options.
22767         Prefer $(...) to `...`.
22768         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22769         the template, and it is GNU mktemp specific.
22770         Prefer set -e to long series of &&.
22771         Restore the initial git branch, not "master".
22772         Properly initialize submodules (don't rely only on bootstrap).
22773         Do not reconfigure blindly, use config.status.
22774         * top/README-release: Update instructions for gnu-web-doc-update.
22776 2012-06-11  Jim Meyering  <meyering@redhat.com>
22778         maint.mk: revert most of the previous change re "all these"
22779         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22780         For rationale, see the discussion at
22781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22783 2012-06-10  Karl Berry  <karl@gnu.org>
22785         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22787         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22789 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22791         parse-duration: Relicense under LGPLv2+.
22792         * modules/parse-duration (License): Change to LGPLv2+.
22794 2012-06-10  Jim Meyering  <meyering@redhat.com>
22796         maint.mk: prohibit common grammar error: "all these"
22797         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22798         the list of prohibited word sequences.  It should be "all of these".
22799         * lib/tempname.c (__gen_tempname): Fix one of them.
22801 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22803         do-release-commit-and-tag: support VPATH builds
22804         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22805         (noteworthy): Defined earlier to factor its value.
22806         (noteworthy_stub): New.
22807         Use it to factor.
22808         (help_version): Split into...
22809         (help, version): these.
22810         Adjust the option processing part.
22811         Support "--option=value" in addition to "--option value".
22812         (builddir): New.
22813         (--builddir): New option.
22814         * top/README-release: Document this.
22815         Reword slightly so that the reader cannot understand that he
22816         has to do these steps before calling do-release-commit-and-tag.
22818 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22820         readme-release: also require announce-gen and maintainer-makefile
22821         * modules/readme-release (Depends-on): here.
22822         * modules/announce-gen, modules/do-release-commit-and-tag,
22823         modules/gnu-web-doc-update, modules/maintainer-makefile
22824         (Description): Point to readme-release.
22826 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22828         maint.mk: fix VPATH issues.
22829         * top/maint.mk (news-check): GNU Make understand $< very well.
22830         (release-prep): NEWS is in $(srcdir).
22832 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22834         readme-release: require the promoted modules.
22835         * modules/readme-release (Depends-on): Add
22836         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22837         in this text.
22839 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22840             Bruno Haible  <bruno@clisp.org>
22842         error, strerror-override: Support mingw64 from Fedora 17.
22843         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22844         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22845         EINPROGRESS.
22846         * lib/strerror-override.h (strerror_override): Test it.
22847         * lib/strerror-override.c (strerror_override): Likewise.
22848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22850 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22851             Bruno Haible  <bruno@clisp.org>
22853         error, strerror-override: Support mingw64 from Fedora 17.
22854         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22855         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22856         * lib/strerror-override.h (strerror_override): Test it.
22857         * lib/strerror-override.c (strerror_override): Likewise.
22859 2012-06-03  Bruno Haible  <bruno@clisp.org>
22861         error, strerror-override: Support new errno values from POSIX:2008.
22862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22863         ENOTRECOVERABLE.
22864         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22865         platforms.
22866         * lib/strerror-override.c (strerror_override): Conditionalize the
22867         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22868         * lib/strerror-override.h (strerror_override): Declare also if
22869         GNULIB_defined_EOWNERDEAD is defined.
22870         * tests/test-errno.c (e130, e131): New variables.
22871         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22872         ENOTRECOVERABLE.
22873         Reported by Paolo Bonzini.
22875 2012-05-31  Jim Meyering  <meyering@redhat.com>
22877         savewd: add missing dependency on sys_wait module
22878         * modules/savewd (Depends-on): Add sys_wait, needed at least
22879         for MSVC.  Report and suggested change by Michael Goffioul.
22881 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22883         system-quote-tests: port to CentOS 5
22884         Problem reported by Tom G. Christensen in
22885         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22886         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22888 2012-05-29  Jim Meyering  <meyering@redhat.com>
22890         maint: fix typos in comments and ChangeLog
22891         Culprits identified and fixed mostly automatically using these commands:
22892         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22893         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22894         using http://github.com/lyda/misspell-check
22895         * ChangeLog: Fix typos.
22896         * doc/solaris-versions: Likewise.
22897         * lib/regexec.c (re_search_stub): Likewise.
22898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22900 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22902         manywarnings: remove duplicate -Wmultichar entry
22903         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22904         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22905         so keep the entry marked as documented.
22907 2012-05-27  Karl Berry  <karl@gnu.org>
22909         * config/srclist.txt (mktime.c): remove last libc sync,
22910         perhaps just temporarily.
22912 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22914         regex: don't assume uint64_t or uint32_t
22915         * lib/regcomp.c (init_word_char): Don't assume that the types
22916         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22917         them, and on some 32-bit compilers there is no uint64_t.
22918         Problem reported by Gianluigi Tiesi in
22919         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22921 2012-05-25  Jim Meyering  <meyering@redhat.com>
22923         maint.mk: add strncpy-prohibiting syntax-check rule
22924         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22926 2012-05-24  Jim Meyering  <meyering@redhat.com>
22928         maint.mk: compute $(gpg_key_ID) more portably
22929         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22930         That use of sed is not portable to some fringe systems.
22931         Reported by Paul Eggert in
22932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22934 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22936         mktime: sync from glibc
22937         * config/srclist.txt: Uncomment mktime.c.
22938         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22939         First, indent with tabs, since glibc uses tabs and doesn't want to
22940         change and we'd rather be identical to glibc.  Also, two small
22941         coding changes:
22942         (isdst_differ): Use &&, not &, as && is the usual style.
22943         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22944         for clarity.
22946 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22948         announce-gen: du -h is more portable than du --human
22949         * build-aux/announce-gen (sizes): Invoke du with -h instead
22950         of --human.  Accept leading white space in its output.
22952 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22954         announce-gen: Improve diagnostics.
22955         * build-aux/announce-gen: When parsing command line options,
22956         prefer "announce-gen: option --release-type requires an argument"
22957         to "Option release-type requires an argument".
22959 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22961         maint.mk: gpg_key_ID: use sed more portably
22962         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22963         the closing brace.
22964         (refresh-po): Fuse two sed invocations into one.
22966 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22968         gitlog-to-changelog: support the log message format used in Bison.
22969         * build-aux/gitlog-to-changelog: Support --strip-tab and
22970         --strip-cherry-picked.
22972 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22974         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22975         the rest of the current time slice to another thread in the current
22976         process. So if the thread that feeds the file decscriptor we're
22977         polling is not in the current process, we get busy-waiting.
22978         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22979         Patch from Theodore Leblond.
22980         * lib/select.c: Split polling out of the loop that sets the output
22981         fd_sets.  Check for zero result and loop if the wait timeout is
22982         infinite.
22984 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22986         select: Fix build error on IRIX 6.5.
22987         * lib/select.c: Include stddef.h for NULL.
22989 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22991         gc: fix libgcrypt detection on older machines.
22992         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22993         copyright years because the file has been distributed every year
22994         since it was created.
22996 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22998         crypto: fix bug in large buffer handling
22999         Problem reported by Serge Belyshev for glibc in
23000         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
23001         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
23002         * lib/md4.c (md4_process_block):
23003         * lib/md5.c (md5_process_block):
23004         * lib/sha1.c (sha1_process_block):
23005         * lib/sha256.c (sha256_process_block):
23006         Don't assume the buffer length is less than 2**32.
23007         * lib/sha512.c (sha512_process_block): Likewise.
23008         Here, the bug is present only in the rare case where the host does
23009         not support uint64_t or where size_t is wider than 64 bits.
23010         Use u64size to work around the problems.
23011         * lib/u64.h (u64size): New macro.
23013 2012-05-15  Pádraig Brady  <P@draigBrady.com>
23015         fsusage: fix block size returned on older Linux 2.6
23017         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
23018         which is available since Linux 2.6.
23019         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
23020         when the member is available so it can be used as a fallback.
23021         * doc/posix-functions/statvfs.texi: Mention the hang issue
23022         on Linux < 2.6.36.
23024 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23026         bootstrap: suppress stderr chatter
23027         * build-aux/bootstrap (insert_sorted_if_absent, main program):
23028         Omit unnecessary chatter to stderr.  The main program chatter
23029         was there only inadvertantly.
23031         bootstrap: .gitignore files created by autopoint, libtool
23032         I ran into this problem when bootstrapping the latest diffutils.
23033         After './bootstrap', 'git status' reported lots of untracked files
23034         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
23035         autopoint and do not need to be version-controlled.
23036         * build-aux/bootstrap: Put into .gitignore the files that
23037         autopoint and libtool create, by keeping track of files that exist
23038         after but not before these programs are run.
23039         (version_controlled_file): Move up.  2nd arg is now full file
23040         name, not base name; this is more convenient.  Put CVS at the end,
23041         as it's now somewhat deprecated.
23043 2012-05-14  Jim Meyering  <meyering@redhat.com>
23045         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
23046         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
23047         definition.  Reported by Bruno Haible.
23049 2012-05-13  Bruno Haible  <bruno@clisp.org>
23050             Paul Eggert  <eggert@cs.ucla.edu>
23052         binary-io: Define set_binary_mode function.
23053         * lib/binary-io.h (set_binary_mode): New function.
23054         (SET_BINARY): Define in terms of set_binary_mode.
23055         * modules/binary-io (configure.ac): Require AC_C_INLINE.
23056         * tests/test-binary-io.c (main): Accept an argument, and test either
23057         set_binary_mode or SET_BINARY depending on the argument.
23058         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
23059         argument. Clean up also t-bin-out0.tmp.
23061 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
23063         bootstrap: take advantage of POSIX shell features
23065         The 'bootstrap' script offered by Gnulib script already uses POSIX
23066         shell features (like $((...)) arithmetic expansions) that are not
23067         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
23068         means that bootstrap must already be run using a proper POSIX shell,
23069         which will thus provide more features, like ${var#pattern} parameter
23070         expansion or inversion of a command exit status with '!'.  We can
23071         thus use these features to improve the clarity and the performances
23072         of the bootstrap script.
23074         Suggested by Eric Blake.
23076         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
23077         of sed/expr plus command substitutions, to save some forks.  While
23078         we are at it, prefer the POSIX $(...) form of command substitution,
23079         rather than the legacy form `...` (since the former is visually
23080         clearer and interacts better with quoting), and prefer the idiom:
23081           "if ! CMD; then ACTION ..."
23082         over the idiom:
23083           "if CMD; then :; else ACTION ..."
23084         which was required by legacy Bourne shells not supporting '!'.
23086 2012-05-12  Bruno Haible  <bruno@clisp.org>
23088         system-quote: Add more comments.
23089         * lib/system-quote.h: Add more comments about wilcards and limitations.
23090         Suggested by Eli Zaretskii <eliz@gnu.org>.
23092         sh-quote, system-quote: Add comments about wildcards.
23093         * lib/sh-quote.h: Clarify what happens with wildcard characters.
23094         * lib/system-quote.h: Likewise.
23095         Reported by Eli Zaretskii <eliz@gnu.org>.
23097 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23099         fsusage: check for GNU/Linux statvfs problem dynamically
23100         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
23101         Define STAT_STATFS2_BSIZE too, since in this case the code now
23102         checks dynamically whether statvfs is reliable, falling back on
23103         Linux-style statfs otherwise.
23104         (statvfs_works): New function, for dynamically testing statvfs.
23105         (get_fs_usage) [STAT_STATVFS]: Use it.
23106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23107         statvfs on GNU/Linux hosts, since it's now done dynamically.
23109 2012-05-10  Bruno Haible  <bruno@clisp.org>
23111         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23112         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23113         '?' character.
23114         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23115         * tests/test-system-quote-main.c (check_all): Check also strings like
23116         "??????????".
23117         Reported by Eli Zaretskii <eliz@gnu.org>.
23119 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23121         _Noreturn: port config.h to gcc -Wundef
23122         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23123         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23124         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23126 2012-05-10  Bruno Haible  <bruno@clisp.org>
23128         system-quote: Refactor.
23129         * lib/system-quote.h (system_quote_copy): Fix comment.
23130         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23131         New functions, extracted from system_quote_copy.
23132         (system_quote_length, system_quote_copy): Use these functions.
23133         Reported by Paul Eggert.
23135 2012-05-08  Bruno Haible  <bruno@clisp.org>
23137         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23138         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23140 2012-05-08  Bruno Haible  <bruno@clisp.org>
23142         Tests for module 'system-quote'.
23143         * modules/system-quote-tests: New file.
23144         * tests/test-system-quote.sh: New file.
23145         * tests/test-system-quote-main.c: New file.
23146         * tests/test-system-quote-child.c: New file.
23148         New module 'system-quote'.
23149         * lib/system-quote.h: New file.
23150         * lib/system-quote.c: New file.
23151         * modules/system-quote: New file.
23153 2012-05-08  Bruno Haible  <bruno@clisp.org>
23155         sh-quote: Make C++ safe and allow multiple inclusion.
23156         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23157         declarations in extern "C".
23159 2012-05-08  Bruno Haible  <bruno@clisp.org>
23161         sh-quote tests: Make tests stricter.
23162         * tests/test-sh-quote.c (check_one): Check the return value of
23163         shell_quote_copy.
23164         (main): Check a string with a CR character. Check a string that
23165         contains UCHAR_MAX.
23167 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23169         warnings.m4: provide a means to specify the program to compile.
23170         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23171         (gl_WARN_ADD): here.
23172         Use gl_AS_VAR_APPEND.
23173         Support an argument to specify the program to compile.
23174         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23175         AC_SUBST the WARN_CFLAGS when they are used.
23176         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23177         leave this to gl_WARN_ADD.
23179 2012-05-08  Eric Blake  <eblake@redhat.com>
23181         doc: recommendations on gettext version
23182         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23183         choice between versions.
23184         * DEPENDENCIES (gettext): Cover both approaches.
23186 2012-05-08  Jim Meyering  <meyering@redhat.com>
23188         init.sh: explain why EXEEXT support uses aliases rather than functions
23189         * tests/init.sh: Add a comment.
23191         init.sh: don't let bash aliases interfere with tests
23192         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23193         is bash.  This avoids problems for those who alias standard commands to
23194         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23195         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23197 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23199         stdint: be more consistent with glibc, SunOS libc
23200         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23201         (gl_int_fast16_t, gl_uint_fast16_t)
23202         (gl_int_fast32_t, gl_uint_fast32_t)
23203         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23204         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23205         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23206         Be consistent with glibc by default, and with SunOS 5.10 and later
23207         if __sun is defined.  This lessens the likelihood of clashes if
23208         code compiled for older hosts is combined with code compiled for
23209         newer ones.  Problem reported by Niels Möller in
23210         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23212 2012-05-07  Eric Blake  <eblake@redhat.com>
23214         isatty: relax license to LGPLv2+
23215         * modules/isatty (License): Relax license.
23217 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23219         stat-size: comment fix
23220         * lib/stat-size.h: Remove obsolete comment about indenting.
23222 2012-05-06  Bruno Haible  <bruno@clisp.org>
23224         Tests for module 'sh-quote'.
23225         * modules/sh-quote-tests: New file.
23226         * tests/test-sh-quote.c: New file.
23228 2012-05-06  Bruno Haible  <bruno@clisp.org>
23230         sh-quote: Improve shell_quote_argv's signature.
23231         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23232         * lib/sh-quote.c (shell_quote_argv): Likewise.
23234 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23236         stdint: document issues with int_fast8_t etc.
23237         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23238         stdint.h substitutes may define these types differently.  See
23239         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23241 2012-05-05  Bruno Haible  <bruno@clisp.org>
23243         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23245         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23246         or 'guessing no (mishandles large arguments)'.
23248 2012-05-05  Bruno Haible  <bruno@clisp.org>
23250         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23252         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23253         set gl_cv_func_link_follows_symlink to "guessing no".
23255 2012-05-05  Bruno Haible  <bruno@clisp.org>
23257         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23258         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23259         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23260         "guessing no".
23261         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23263 2012-05-05  Bruno Haible  <bruno@clisp.org>
23265         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23267         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23268         set gl_cv_struct_dirent_d_ino to "guessing yes".
23270 2012-05-05  Bruno Haible  <bruno@clisp.org>
23272         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23273         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23274         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23275         "guessing yes".
23277 2012-05-05  Bruno Haible  <bruno@clisp.org>
23279         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23280         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23281         compiling to a glibc system, set gl_cv_func_signbit and
23282         gl_cv_func_signbit_gcc to "guessing yes".
23284 2012-05-05  Bruno Haible  <bruno@clisp.org>
23286         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23287         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23288         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23289         to "guessing yes".
23290         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23291         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23293 2012-05-05  Bruno Haible  <bruno@clisp.org>
23295         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23296         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23297         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23298         gl_cv_func_realpath_works to "guessing yes".
23300 2012-05-05  Bruno Haible  <bruno@clisp.org>
23302         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23304         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23306 2012-05-04  Bruno Haible  <bruno@clisp.org>
23308         Tweak last commit.
23309         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23310         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23312 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23314         unistd_h: make it easier to avoid sys_types_h
23315         This is useful for Emacs, which has its own method of porting to
23316         Windows, and which therefore does not need the sys_types_h module.
23317         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23318         code moved here from gl_SYS_TYPES_H.
23319         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23320         using the code directly.
23321         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23322         gl_SYS_TYPES_H.
23323         * modules/sys_types (Files):
23324         * modules/unistd (Files): Add m4/off_t.m4.
23326 2012-05-03  Bruno Haible  <bruno@clisp.org>
23328         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23329         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23330         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23331         "guessing yes" or "guessing no".
23332         (gl_FUNC_LSTAT): Update.
23333         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23334         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23335         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23337 2012-05-03  Bruno Haible  <bruno@clisp.org>
23339         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23340         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23341         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23342         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23343         cross-compiling, choose the first alternative on glibc systems.
23344         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23346 2012-05-03  Bruno Haible  <bruno@clisp.org>
23348         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23349         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23350         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23352 2012-05-03  Bruno Haible  <bruno@clisp.org>
23354         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23355         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23357 2012-05-03  Bruno Haible  <bruno@clisp.org>
23359         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23360         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23361         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23362         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23363         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23364         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23365         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23366         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23367         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23368         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23369         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23370         gl_cv_func_chown_ctime_works to "guessing yes".
23371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23372         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23373         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23374         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23375         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23377         compiling to glibc systems, set gl_cv_func_open_directory_works to
23378         "guessing yes".
23379         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23380         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23381         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23382         "guessing yes".
23383         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23384         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23385         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23386         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23387         "guessing yes".
23388         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23389         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23390         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23391         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23392         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23393         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23394         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23395         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23396         "guessing yes".
23397         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23398         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23399         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23400         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23401         "guessing yes".
23402         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23403         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23404         "guessing yes".
23405         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23406         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23407         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23408         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23409         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23410         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23411         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23412         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23413         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23414         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23415         "guessing yes".
23416         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23417         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23418         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23419         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23420         "guessing yes".
23421         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23422         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23423         "guessing yes".
23424         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23425         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23426         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23427         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23428         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23429         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23430         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23431         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23432         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23433         "guessing yes".
23434         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23435         compiling to glibc systems, set gl_cv_func_mknod_works to
23436         "guessing yes".
23437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23438         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23439         "guessing yes".
23440         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23441         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23442         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23443         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23444         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23445         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23446         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23447         compiling to glibc systems, set gl_cv_func_svid_putenv to
23448         "guessing yes".
23449         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23450         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23451         "guessing yes".
23452         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23453         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23454         "guessing yes".
23455         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23456         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23457         to "guessing yes".
23458         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23459         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23460         to "guessing yes".
23461         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23462         compiling to glibc systems, set gl_cv_func_rmdir_works to
23463         "guessing yes".
23464         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23465         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23466         gl_cv_func_unlink_parent_fails to "guessing yes".
23467         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23468         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23469         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23470         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23471         gl_cv_func_rename_dest_works to "guessing yes".
23472         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23473         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23475         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23476         "guessing yes".
23477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23478         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23479         "guessing yes".
23480         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23481         compiling to glibc systems, set gl_cv_func_setenv_works to
23482         "guessing yes".
23483         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23484         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23485         "guessing yes".
23486         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23487         compiling to glibc systems, set gl_cv_func_sleep_works to
23488         "guessing yes".
23489         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23490         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23491         "guessing yes".
23492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23493         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23494         "guessing yes".
23495         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23496         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23497         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23498         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23499         "guessing yes".
23500         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23501         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23502         "guessing yes".
23503         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23504         compiling to glibc systems, set gl_cv_func_usleep_works to
23505         "guessing yes".
23506         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23507         compiling to glibc systems, set gl_cv_func_futimesat_works to
23508         "guessing yes".
23510 2012-05-03  Bruno Haible  <bruno@clisp.org>
23512         Say "guessing yes" or "guessing no" when cross-compiling.
23513         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23514         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23515         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23516         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23517         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23518         am_cv_func_working_getline to "guessing yes" or "guessing no".
23519         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23520         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23521         (gl_FUNC_MEMMEM): When cross-compiling, set
23522         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23524         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23526         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23527         "guessing no".
23528         (gl_FUNC_STRCASESTR): When cross-compiling, set
23529         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23530         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23531         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23532         (gl_FUNC_STRSTR): When cross-compiling, set
23533         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23534         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23535         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23536         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23537         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23539 2012-05-01  Bruno Haible  <bruno@clisp.org>
23541         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23542         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23543         * build-aux/reloc-ldflags: Likewise.
23544         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23546 2012-05-01  Bruno Haible  <bruno@clisp.org>
23548         gnulib-tool: Remove transitional code.
23549         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23550         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23552 2012-05-01  Bruno Haible  <bruno@clisp.org>
23554         getcwd: Fix misindentation.
23555         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23557 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23559         exclude: process exclude and include directives in order
23560         This restores the pre-2009 behavior, and is part of a fix of a
23561         grep bug reported by Quentin Arce in
23562         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23563         * lib/exclude.c (struct exclude): Remove 'tail' member.
23564         (new_exclude_segment): Prepend the new segment instead of appending.
23565         Return void, since that's now more convenient.
23566         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23567         (file_name_matches): Renamed from excluded_file_name_p.
23568         (file_pattern_matches, file_name_matches):
23569         Return true if the pattern matches, not if it excludes.
23570         All callers changed.
23571         (excluded_file_name): Process the list in reverse order;
23572         since the list is now reversed this restores the pre-2009 behavior.
23573         (add_exclude): Adjust to new reversed-order list.  Use local var
23574         rather than macro, for clarity.
23575         * tests/test-exclude7.sh: Adjust to corrected behavior.
23577         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23578         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23579         it's not possible here.  Handle the case of \ at end of pattern
23580         without dumping core.
23581         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23583         _Noreturn: future-proof non-GNU and non-MSVC compilers
23584         * build-aux/snippet/_Noreturn.h (_Noreturn):
23585         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23586         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23587         C11 or later.  This is more likely to work with random future C
23588         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23589         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23591         exclude: handle wildcards with FNM_EXTMATCH
23592         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23593         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23594         comment that "has wildcards" really means "has or may have
23595         wildcards".  Simplify by avoiding the need to call strcspn.
23597 2012-04-29  Bruno Haible  <bruno@clisp.org>
23599         gnulib-tool: Fix list of authors.
23600         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23602 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23604         bootstrap: support Automake-NG in $buildreq
23605         * bootstrap (check_versions): Handle automake and aclocal from
23606         Automake-NG specially.  They can be specified as respectively
23607         the "automake-ng" and "aclocal-ng" requirements.
23609 2012-04-25  Eric Blake  <eblake@redhat.com>
23611         bootstrap: only force latest Makefile.in.in for gettext module
23612         * build-aux/bootstrap (with_gettext): Only install latest
23613         Makefile.in.in for projects requesting bleeding edge gettext.
23615 2012-04-22  Bruno Haible  <bruno@clisp.org>
23617         doc: Mention reason for replacement on glibc/Linux systems.
23618         * doc/posix-functions/dprintf.texi: Mention the problem with special
23619         'long double' values.
23620         * doc/posix-functions/fprintf.texi: Likewise.
23621         * doc/posix-functions/printf.texi: Likewise.
23622         * doc/posix-functions/snprintf.texi: Likewise.
23623         * doc/posix-functions/sprintf.texi: Likewise.
23624         * doc/posix-functions/vdprintf.texi: Likewise.
23625         * doc/posix-functions/vfprintf.texi: Likewise.
23626         * doc/posix-functions/vprintf.texi: Likewise.
23627         * doc/posix-functions/vsnprintf.texi: Likewise.
23628         * doc/posix-functions/vsprintf.texi: Likewise.
23629         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23630         platforms with F_DUPFD_CLOEXEC problems.
23631         * doc/posix-functions/glob.texi: Mention which platforms are affected
23632         by the problem with symbolic links.
23633         * doc/posix-functions/linkat.texi: Mention the problem with
23634         AT_SYMLINK_FOLLOW on Linux.
23636 2012-04-22  Bruno Haible  <bruno@clisp.org>
23638         pwrite: Don't replace on all platforms.
23639         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23641 2012-04-22  Bruno Haible  <bruno@clisp.org>
23643         rint* tests: Avoid gcc warnings.
23644         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23645         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23646         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23648 2012-04-21  Bruno Haible  <bruno@clisp.org>
23650         users.txt: Update.
23651         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23652         switched from CVS to git, bzr, or svn.
23654 2012-04-21  Bruno Haible  <bruno@clisp.org>
23656         Large File Support for native Windows platforms.
23658         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23659         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23661         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23662         type.
23663         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23664         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23665         * doc/posix-headers/sys_types.texi: Mention the effect of the
23666         'largefile' module.
23668         * lib/fcntl.in.h: Add comments about off_t.
23669         * modules/fcntl-h (Depends-on): Add sys_types.
23671         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23672         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23673         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23674         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23675         * modules/unistd (Depends-on): Add sys_types.
23676         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23678         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23679         instead of lseek.
23680         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23681         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23682         * modules/lseek (Depends-on): Add sys_types.
23684         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23685         msvc-nothrow.h.
23686         (SetFileSize): New function.
23687         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23688         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23689         if Large File Support is requested.
23690         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23691         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23693         * lib/stdio.in.h: Add comments about off_t.
23694         * modules/stdio (Depends-on): Add sys_types.
23696         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23697         instead of ftello.
23698         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23699         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23700         (gl_PREREQ_FTELLO): New macro.
23701         * modules/ftello (Depends-on): Add sys_types.
23702         (configure.ac): Incoke gl_PREREQ_FTELLO.
23704         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23705         instead of fseeko.
23706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23707         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23708         (gl_PREREQ_FSEEKO): New macro.
23709         * modules/fseeko (Depends-on): Add sys_types.
23710         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23712         * lib/sys_stat.in.h: Add comments about off_t.
23713         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23714         64-bit integer for st_size in 'struct stat'.
23715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23716         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23717         * modules/sys_stat (Depends-on): Add sys_types.
23718         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23720         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23721         instead of stat or _stat.
23723         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23724         'struct _stati64' instead of fstat and 'struct stat'.
23725         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23726         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23728         Reported by Ray Satiro <raysatiro@yahoo.com>.
23730 2012-04-19  Eric Blake  <eblake@redhat.com>
23732         bootstrap: accommodate older libtool
23733         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23734         Reported by Daniel P. Berrange.
23736 2012-04-19  Jim Meyering  <meyering@redhat.com>
23738         announce-gen: avoid failure due to lack of Digest::SHA1
23739         Even with the preferred Digest::SHA available, this script
23740         would fail when the backup module, Digest::SHA1, was not installed.
23741         * build-aux/announce-gen: Quote the conditional use of "use".
23742         Reported by Reuben Thomas in:
23743         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23745         bootstrap: don't let a user's CDPATH setting affect this script
23746         When CDPATH is set, cd will sometimes generate output.
23747         When "cd" is run in a subshell whose output matters, that
23748         surprising-to-some output can cause malfunction.
23749         Unsetting CDPATH turns off this shell "feature."
23750         * build-aux/bootstrap (CDPATH): Unset.
23751         Reported by Reuben Thomas in:
23752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23753         and inspired by his patch here:
23754         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23756 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23757         and Jim Meyering  <meyering@redhat.com>
23759         maint.mk: catch "see @xref{}" and similar
23760         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23761         prohibit "See also @xref{", "Also see @pxref{", and similar.
23763 2012-04-16  Jim Meyering  <meyering@redhat.com>
23765         bootstrap: really use gnulib's po/Makefile.in.in
23766         * build-aux/bootstrap: Correct the source file name in previous change.
23767         Reported by Akim Demaille.
23769         configmake: correct minor inconsistency in Makefile rule
23770         * modules/configmake (Makefile.am): All other rules like this one
23771         run the final "mv -f ..." in the same backslash-continued command
23772         as the one that does everything else.  This one put the mv -f ...
23773         command on a separate, non-backslash-continued line.
23774         Make it like the others.
23776         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23777         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23778         the one from gettext.  Reported by Akim Demaille.
23780 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23782         Fix recursion of install-* into po directories.
23783         Bison's install-pdf bug reported by Hans Aberg at
23784         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23785         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23786         (install-info, install-pdf, install-ps): New targets.
23788 2012-04-16  Jim Meyering  <meyering@redhat.com>
23790         maint: avoid spurious "make sc_maint" failure
23791         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23792         exempt all *.class file names, for lib/javaversion.class.
23794 2012-04-15  Bruno Haible  <bruno@clisp.org>
23796         lseek: Make configure test independent of environment.
23797         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23798         Windows, we know that lseek() on pipes is broken; skip the runtime
23799         test.
23801 2012-04-14  Bruno Haible  <bruno@clisp.org>
23803         stat: Bypass buggy override in mingw64.
23804         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23805         * lib/stat.c (stat) [mingw64]: Define to _stat.
23806         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23808 2012-04-14  Bruno Haible  <bruno@clisp.org>
23810         pathmax: Fix compilation error on MSVC 9.
23811         * modules/pathmax (Depends-on): Add unistd.
23813 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23815         README: document pointer comparison assumption
23816         * README (Portability guidelines): Document assumption about
23817         pointer comparisons, in response to a recent bug-gnulib comment by
23818         Jeffrey Kegler.
23820 2012-04-12  Bruno Haible  <bruno@clisp.org>
23822         Tests for module 'getrusage'.
23823         * modules/getrusage-tests: New file.
23824         * tests/test-getrusage.c: New file.
23826         New module 'getrusage'.
23827         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23828         warn-on-use.h.
23829         (getrusage): New declaration.
23830         * lib/getrusage.c: New file.
23831         * m4/getrusage.m4: New file.
23832         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23833         is declared.
23834         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23835         HAVE_GETRUSAGE.
23836         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23837         snippet/c++defs, snippet/warn-on-use.
23838         (Makefile.am): Update generation of sys/resource.h. Substitute
23839         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23840         * modules/getrusage: New file.
23841         * doc/posix-functions/getrusage.texi: Mention the new module.
23843 2012-04-12  Bruno Haible  <bruno@clisp.org>
23845         Tests for module 'sys_resource'.
23846         * modules/sys_resource-tests: New file.
23847         * tests/test-sys_resource.c: New file.
23849         New module 'sys_resource'.
23850         * lib/sys_resource.in.h: New file.
23851         * m4/sys_resource_h.m4: New file.
23852         * modules/sys_resource: New file.
23853         * doc/posix-headers/sys_resource.texi: Mention the new module.
23855 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23857         ioctl: Fix compilation error on mingw.
23858         * lib/ioctl.c: Include <windows.h>.
23859         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23861 2012-04-04  Jim Meyering  <meyering@redhat.com>
23863         regex: correct #pragma guard expression
23864         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23865         not 4.3.  Correct its cpp guard expression.
23867 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23869         regex: remove unnecessary type punning
23870         Problem reported by Vladimir Serbinenko in
23871         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23872         * lib/regex.h (struct re_pattern_buffer): Change the type of
23873         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23874         Fix comment to match code.
23875         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23876         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23877         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23878         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23879         (set_regs):
23880         Omit no-longer-necessary casts.
23882 2012-04-03  Bruno Haible  <bruno@clisp.org>
23884         Tests for module 'ilogbl'.
23885         * modules/ilogbl-tests: New file.
23886         * tests/test-ilogbl.c: New file.
23888         New module 'ilogbl'.
23889         * lib/math.in.h (ilogbl): New declaration.
23890         * lib/ilogbl.c: New file.
23891         * m4/ilogbl.m4: New file.
23892         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23894         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23895         Split sed invocation, to avoid the limit of 100 substitutions of
23896         HP-UX 'sed'.
23897         * modules/ilogbl: New file.
23898         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23899         * doc/posix-functions/ilogbl.texi: Mention the new module.
23901 2012-04-03  Bruno Haible  <bruno@clisp.org>
23903         Tests for module 'ilogbf'.
23904         * modules/ilogbf-tests: New file.
23905         * tests/test-ilogbf.c: New file.
23907         New module 'ilogbf'.
23908         * lib/math.in.h (ilogbf): New declaration.
23909         * lib/ilogbf.c: New file.
23910         * m4/ilogbf.m4: New file.
23911         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23913         REPLACE_ILOGBF.
23914         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23915         REPLACE_ILOGBF.
23916         * modules/ilogbf: New file.
23917         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23918         * doc/posix-functions/ilogbf.texi: Mention the new module.
23920 2012-04-03  Bruno Haible  <bruno@clisp.org>
23922         Tests for module 'ilogb'.
23923         * modules/ilogb-tests: New file.
23924         * tests/test-ilogb.c: New file.
23925         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23926         tests/test-logb-ieee.h.
23928         New module 'ilogb'.
23929         * lib/math.in.h (ilogb): New declaration.
23930         * lib/ilogb.c: New file.
23931         * m4/ilogb.m4: New file.
23932         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23934         REPLACE_ILOGB.
23935         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23936         REPLACE_ILOGB.
23937         * modules/ilogb: New file.
23938         * tests/test-math-c++.cc: Check the declaration of ilogb.
23939         * doc/posix-functions/ilogb.texi: Mention the new module.
23941 2012-04-03  Bruno Haible  <bruno@clisp.org>
23943         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23944         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23945         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23946         (main): Check their values.
23947         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23948         problem.
23950 2012-04-03  Bruno Haible  <bruno@clisp.org>
23952         Tests for module 'logbl-ieee'.
23953         * modules/logbl-ieee-tests: New file.
23954         * tests/test-logbl-ieee.c: New file.
23956         New module 'logbl-ieee'.
23957         * modules/logbl-ieee: New file.
23959         Tests for module 'logb-ieee'.
23960         * modules/logb-ieee-tests: New file.
23961         * tests/test-logb-ieee.c: New file.
23963         New module 'logb-ieee'.
23964         * modules/logb-ieee: New file.
23966         Tests for module 'logbf-ieee'.
23967         * modules/logbf-ieee-tests: New file.
23968         * tests/test-logbf-ieee.c: New file.
23969         * tests/test-logb-ieee.h: New file.
23971         New module 'logbf-ieee'.
23972         * modules/logbf-ieee: New file.
23974 2012-04-03  Bruno Haible  <bruno@clisp.org>
23976         Tests for module 'logbl'.
23977         * modules/logbl-tests: New file.
23978         * tests/test-logbl.c: New file.
23980         New module 'logbl'.
23981         * lib/math.in.h (logbl): New declaration.
23982         * lib/logbl.c: New file.
23983         * m4/logbl.m4: New file.
23984         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23986         REPLACE_LOGBL.
23987         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23988         REPLACE_LOGBL.
23989         * modules/logbl: New file.
23990         * tests/test-math-c++.cc: Check the declaration of logbl.
23991         * doc/posix-functions/logbl.texi: Mention the new module.
23993 2012-04-02  Bruno Haible  <bruno@clisp.org>
23995         Tests for module 'logbf'.
23996         * modules/logbf-tests: New file.
23997         * tests/test-logbf.c: New file.
23999         New module 'logbf'.
24000         * lib/math.in.h (logbf): New declaration.
24001         * lib/logbf.c: New file.
24002         * m4/logbf.m4: New file.
24003         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
24004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
24005         REPLACE_LOGBF.
24006         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
24007         REPLACE_LOGBF.
24008         * modules/logbf: New file.
24009         * tests/test-math-c++.cc: Check the declaration of logbf.
24010         * doc/posix-functions/logbf.texi: Mention the new module.
24012 2012-04-02  Bruno Haible  <bruno@clisp.org>
24014         logb tests: More tests.
24015         * tests/test-logb.h: New file, based on tests/test-logb.c and
24016         tests/test-frexp.h.
24017         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
24018         (main): Just invoke test_function.
24019         * modules/logb-tests (Files): Add tests/test-logb.h,
24020         tests/minus-zero.h, tests/randomd.c.
24021         (Makefile.am): Add randomd.c to test_logb_SOURCES.
24023         logb: Provide replacement and workarounds.
24024         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
24025         is 1.
24026         * lib/logb.c: New file.
24027         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
24028         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
24029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
24030         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
24031         * modules/logb (Files): Add lib/logb.c.
24032         (Depends-on): Add isfinite, frexp, isnand.
24033         (configure.ac): Compile the replacement code logb.c if needed.
24034         * tests/test-math-c++.cc: Check the declaration of logb.
24035         * doc/posix-functions/logb.texi: Mention the replacement and the bug
24036         with subnormal numbers.
24038 2012-04-02  Bruno Haible  <bruno@clisp.org>
24040         log10* tests: Speed up.
24041         * tests/test-log10.h (test_function): Reduce amount of random numbers
24042         to test.
24044 2012-04-01  Bruno Haible  <bruno@clisp.org>
24046         logf-ieee: Fix test whether logf works.
24047         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
24049 2012-04-01  Bruno Haible  <bruno@clisp.org>
24051         log10l: Work around log10l-ieee test failure on IRIX 6.5.
24052         * lib/log10l.c: Include <float.h>
24053         (log10l): On IRIX, normalize the +Infinity value.
24054         * modules/log10l (Depends-on): Add 'float'.
24055         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
24056         +Infinity.
24058         log10f-ieee: Work around test failure on NetBSD 5.1.
24059         * m4/log10f-ieee.m4: New file.
24060         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
24061         test whether log10f works with a negative argument. Replace it if not.
24062         * lib/log10f.c (log10f): For negative arguments, return NaN.
24063         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
24064         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
24065         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
24067         log10f-ieee: Work around test failure on Solaris 9.
24068         * modules/log10f-ieee (Depends-on): Add log10-ieee.
24069         (configure.ac): Require gl_FUNC_LOG10F.
24071         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24072         * m4/log10-ieee.m4: New file.
24073         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
24074         whether log10 works with a negative argument. Replace it if not.
24075         * lib/log10.c (log10): For negative arguments, return NaN.
24076         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
24077         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
24078         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
24080         Tests for module 'log10l-ieee'.
24081         * modules/log10l-ieee-tests: New file.
24082         * tests/test-log10l-ieee.c: New file.
24084         New module 'log10l-ieee'.
24085         * modules/log10l-ieee: New file.
24087         Tests for module 'log10-ieee'.
24088         * modules/log10-ieee-tests: New file.
24089         * tests/test-log10-ieee.c: New file.
24091         New module 'log10-ieee'.
24092         * modules/log10-ieee: New file.
24094         Tests for module 'log10f-ieee'.
24095         * modules/log10f-ieee-tests: New file.
24096         * tests/test-log10f-ieee.c: New file.
24097         * tests/test-log10-ieee.h: New file.
24099         New module 'log10f-ieee'.
24100         * modules/log10f-ieee: New file.
24102 2012-04-01  Bruno Haible  <bruno@clisp.org>
24104         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
24105         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24106         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24107         workaround.
24108         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24109         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24111         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24112         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24113         (Depends-on): Update conditions.
24114         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24115         IRIX 6.5, OSF/1 5.1 problems.
24117 2012-04-01  Bruno Haible  <bruno@clisp.org>
24119         log10f: Work around OSF/1 5.1 bug.
24120         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24121         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24122         workaround.
24123         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24124         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24126         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24127         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24128         (Depends-on): Update conditions.
24129         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24131 2012-04-01  Bruno Haible  <bruno@clisp.org>
24133         log10: Work around OSF/1 5.1 bug.
24134         * lib/math.in.h (log10): New declaration.
24135         * lib/log10.c: New file.
24136         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24137         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24138         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24140         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24141         * modules/log10 (Files): Add lib/log10.c.
24142         (Depends-on): Add math.
24143         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24144         * tests/test-math-c++.cc: Check the declaration of log10.
24145         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24147 2012-03-31  Bruno Haible  <bruno@clisp.org>
24149         log10l tests: More tests.
24150         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24151         tests/minus-zero.h, tests/randoml.c.
24152         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24153         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24154         (main): Invoke test_function.
24156         log10f tests: More tests.
24157         * modules/log10f-tests (Files): Add tests/test-log10.h,
24158         tests/minus-zero.h, tests/randomf.c.
24159         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24160         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24161         (main): Invoke test_function.
24163         log10 tests: More tests.
24164         * tests/test-log10.h: New file.
24165         * modules/log10-tests (Files): Add tests/test-log10.h,
24166         tests/minus-zero.h, tests/randomd.c.
24167         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24168         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24169         (main): Invoke test_function.
24171 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24173         fflush: Fix syntax error.
24174         * lib/fflush.c: Include unused-parameter.h, needed for
24175         _GL_UNUSED_PARAMETER.
24176         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24178 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24180         regex: pacify GCC when compiling GRUB
24181         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24182         a diagnostic.  Reported by Vladimir Serbinenko in
24183         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24185 2012-03-29  Eric Blake  <eblake@redhat.com>
24187         stdio: don't assume gets any more
24188         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24189         support.
24190         * modules/stdio (Makefile.am): Likewise.
24191         * lib/stdio-read.c (gets): Likewise.
24192         * tests/test-stdio-c++.cc: Likewise.
24193         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24194         * lib/stdio.in.h (gets): Make warning occur in more places.
24195         * doc/posix-functions/gets.texi (gets): Update documentation.
24196         Reported by Christer Solskogen.
24198         maint.mk: fix syntax checks without exclusions
24199         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24200         Reported by Daniel P. Berrange.
24202         strerror_r: avoid compiler warning
24203         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24204         level.
24206         fflush: avoid compiler warning
24207         * lib/fflush.c (update_fpos_cache): Mark variables that are
24208         potentially unused.
24210 2012-03-25  Bruno Haible  <bruno@clisp.org>
24212         Tests for module 'localeconv'.
24213         * modules/localeconv-tests: New file.
24214         * tests/test-localeconv.c: New file.
24216         New module 'localeconv'.
24217         * lib/locale.in.h (localeconv): New declaration.
24218         * lib/localeconv.c: New file.
24219         * m4/localeconv.m4: New file.
24220         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24221         REPLACE_LOCALECONV.
24222         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24223         REPLACE_LOCALECONV.
24224         * modules/localeconv: New file.
24225         * modules/nl_langinfo (Depends-on): Add localeconv.
24226         * modules/human (Depends-on): Likewise.
24227         * doc/posix-functions/localeconv.texi: Mention the new module.
24229 2012-03-25  Bruno Haible  <bruno@clisp.org>
24231         locale: Provide a complete 'struct lconv'.
24232         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24233         'struct lconv' does not contain int_p_cs_precedes.
24234         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24235         * doc/posix-headers/locale.texi: Update.
24237         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24238         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24239         * doc/posix-headers/locale.texi: Update.
24241         locale: Provide a working 'struct lconv'.
24242         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24243         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24244         'struct lconv' does not even contain decimal_point.
24245         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24246         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24247         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24248         * doc/posix-headers/locale.texi: Mention the problems with
24249         'struct lconv'.
24250         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24252 2012-03-24  Bruno Haible  <bruno@clisp.org>
24254         Enable common subexpression optimization in GCC.
24255         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24256         macros.
24257         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24258         GCC attribute 'const'.
24259         (uc_locale_language): Declare with GCC attribute 'pure'.
24260         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24261         with GCC attribute 'const'.
24262         * lib/unictype.in.h (uc_is_general_category_withtable,
24263         uc_combining_class, uc_combining_class_name,
24264         uc_combining_class_long_name, uc_bidi_class_name,
24265         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24266         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24267         uc_decimal_value, uc_digit_value, uc_numeric_value,
24268         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24269         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24270         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24271         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24272         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24273         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24274         Declare with GCC attribute 'const'.
24275         (uc_general_category_name, uc_general_category_long_name,
24276         uc_general_category_byname, uc_general_category,
24277         uc_is_general_category, uc_combining_class_byname,
24278         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24279         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24280         Declare with GCC attribute 'pure'.
24281         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24282         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24283         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24284         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24285         with GCC attribute 'pure'.
24286         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24287         'const'.
24288         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24289         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24290         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24291         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24292         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24293         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24294         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24295         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24296         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24297         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24298         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24299         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24300         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24301         GCC attribute 'pure'.
24302         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24303         'const'.
24304         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24305         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24306         u32_strwidth): Declare with GCC attribute 'pure'.
24308         Enable common subexpression optimization in GCC.
24309         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24310         (alphasort): Declare with GCC attribute 'pure'.
24311         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24312         (atoll): Declare with GCC attribute 'pure'.
24313         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24314         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24315         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24316         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24317         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24318         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24319         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24321 2012-03-24  Bruno Haible  <bruno@clisp.org>
24323         gnulib-tool: Avoid unintended error output from 'cmp'.
24324         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24325         "cmp -s", not "cmp > /dev/null".
24327 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24329         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24331         It's not just Automake versions < 1.9b that creates an empty
24332         pkgdatadir at installation time if pkgdata_DATA is specified
24333         to empty; modern automake versions do this as well, at least
24334         until automake 1.11.4 (not yet released at the moment of writing,
24335         but soon to appear).  That behaviour was generally considered a
24336         feature rather than a bug, at least until this discussion:
24337         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24339         See also automake bugs #10997 and #11030.
24341         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24342         reference to relevant automake bug numbers.
24343         (func_emit_tests_Makefile_am): Likewise.
24345 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24347         announce-gen: use Digest::SHA when possible
24348         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24349         back to Digest::SHA1 if necessary.
24351 2012-03-20  Jim Meyering  <meyering@redhat.com>
24353         tests: avoid gcc warnings about argv vs. const initializers
24354         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24355         warnings about discarding 'const' qualifier from pointer target type.
24356         * tests/test-posix_spawn2.c (main): Likewise.
24358 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24360         README-release: simplify slightly
24361         * top/README-release: Run "git checkout master" only once.
24363 2012-03-15  Mark Wielaard  <mark@klomp.org>
24365         git-merge-changelog: add specific example on how to use with hg.
24366         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24368 2012-03-18  Mark Wielaard  <mark@klomp.org>
24370         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24372 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24374         git-version-gen: don't let "prefix" envvar cause trouble
24375         * build-aux/git-version-gen (prefix): Initialize properly,
24376         so as not to use a value specified via the environment.
24377         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24379 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24381         regex: diagnose too-large repeat counts in EREs
24382         Previously, the code did not diagnose the too-large repeat count
24383         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24384         as if it were 'b\{1000000000}', which is unexpected.
24385         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24386         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24387         is a reasonable one for this problem.  Another option would be to
24388         create a new REG_OVERFLOW error for repeat counts that are too large.
24389         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24390         count is too large, so that the caller can distinguish the two cases.
24391         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24392         "Too large" return code, and that repeat counts are one example of this.
24394 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24396         doc: some glibc x32 integer width issues
24397         * doc/posix-headers/sys_types.texi (sys/types.h):
24398         * doc/posix-headers/time.texi (time.h):
24399         Mention that glibc x32 does not conform to POSIX in a couple of
24400         areas related to integer widths.
24402 2012-03-15  Bruno Haible  <bruno@clisp.org>
24404         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24405         * lib/fma.c (VOLATILE): New macro.
24406         (FUNC): Use it to work around a GCC compiler bug.
24408 2012-03-13  Bruno Haible  <bruno@clisp.org>
24410         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24411         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24412         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24413         REPLACE_HYPOTL to 1.
24414         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24416 2012-03-13  Bruno Haible  <bruno@clisp.org>
24418         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24419         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24420         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24421         REPLACE_REMAINDERL to 1.
24422         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24423         bug.
24425 2012-03-13  Bruno Haible  <bruno@clisp.org>
24427         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24428         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24429         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24430         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24431         too big rounding errors.
24432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24433         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24434         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24435         (Depends-on): Update conditions.
24436         * tests/test-sqrtl.c (my_ldexpl): New function.
24437         (main): Add test of a particular value.
24438         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24440 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24442         doc: Update timer_* platform portability notes.
24443         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24444         that always return ENOSYS.
24445         * doc/posix-functions/timer_delete.texi: Likewise.
24446         * doc/posix-functions/timer_gettime.texi: Likewise.
24447         * doc/posix-functions/timer_settime.texi: Likewise.
24449 2012-03-13  Bruno Haible  <bruno@clisp.org>
24451         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24452         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24453         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24454         REPLACE_CBRTL to 1.
24455         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24457 2012-03-13  Bruno Haible  <bruno@clisp.org>
24459         remainderl: Avoid compilation error on AIX >= 5.2.
24460         * lib/math.in.h (remainderl): Undefine macro from the system header.
24462 2012-03-13  Bruno Haible  <bruno@clisp.org>
24464         Avoid compilation errors with MSVC option -fp:strict.
24465         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24466         * lib/cbrtf.c: Likewise.
24467         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24469 2012-03-12  Bruno Haible  <bruno@clisp.org>
24471         uninorm: Don't crash in out-of-memory conditions.
24472         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24473         gracefully.
24474         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24475         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24477 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24479         quote: fix syntax-check
24480         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24481         also exports quote_quoting_options.
24483 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24485         Collapse list of copyright years to ranges.  See
24486         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24487         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24488         build-aux/csharpexec.sh.in, build-aux/gnupload,
24489         build-aux/install-reloc, build-aux/javacomp.sh.in,
24490         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24491         build-aux/move-if-change, build-aux/reloc-ldflags,
24492         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24494 2012-03-11  Bruno Haible  <bruno@clisp.org>
24496         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24497         * m4/log2f-ieee.m4: New file.
24498         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24499         whether log2f works with a minus zero argument. Replace it if not.
24500         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24501         (Depends-on): Add log2-ieee.
24502         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24503         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24505         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24506         * m4/log2-ieee.m4: New file.
24507         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24508         whether log2 works with a minus zero argument. Replace it if not.
24509         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24510         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24511         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24513         Tests for module 'log2l-ieee'.
24514         * modules/log2l-ieee-tests: New file.
24515         * tests/test-log2l-ieee.c: New file.
24517         New module 'log2l-ieee'.
24518         * modules/log2l-ieee: New file.
24520         Tests for module 'log2-ieee'.
24521         * modules/log2-ieee-tests: New file.
24522         * tests/test-log2-ieee.c: New file.
24524         New module 'log2-ieee'.
24525         * modules/log2-ieee: New file.
24527         Tests for module 'log2f-ieee'.
24528         * modules/log2f-ieee-tests: New file.
24529         * tests/test-log2f-ieee.c: New file.
24530         * tests/test-log2-ieee.h: New file.
24532         New module 'log2f-ieee'.
24533         * modules/log2f-ieee: New file.
24535 2012-03-11  Bruno Haible  <bruno@clisp.org>
24537         Tests for module 'log2l'.
24538         * modules/log2l-tests: New file.
24539         * tests/test-log2l.c: New file.
24541         New module 'log2l'.
24542         * lib/math.in.h (log2l): New declaration.
24543         * lib/log2l.c: New file.
24544         * m4/log2l.m4: New file.
24545         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24547         REPLACE_LOG2L.
24548         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24549         REPLACE_LOG2L.
24550         * modules/log2l: New file.
24551         * tests/test-math-c++.cc: Check the declaration of log2l.
24552         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24553         and OSF/1 problems.
24555 2012-03-11  Bruno Haible  <bruno@clisp.org>
24557         Tests for module 'log2f'.
24558         * modules/log2f-tests: New file.
24559         * tests/test-log2f.c: New file.
24561         New module 'log2f'.
24562         * lib/math.in.h (log2f): New declaration.
24563         * lib/log2f.c: New file.
24564         * m4/log2f.m4: New file.
24565         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24567         REPLACE_LOG2F.
24568         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24569         REPLACE_LOG2F.
24570         * modules/log2f: New file.
24571         * tests/test-math-c++.cc: Check the declaration of log2f.
24572         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24573         and OSF/1 and Cygwin problems.
24575 2012-03-11  Bruno Haible  <bruno@clisp.org>
24577         Tests for module 'log2'.
24578         * modules/log2-tests: New file.
24579         * tests/test-log2.c: New file.
24580         * tests/test-log2.h: New file.
24582         New module 'log2'.
24583         * lib/math.in.h (log2): New declaration.
24584         * lib/log2.c: New file.
24585         * m4/log2.m4: New file.
24586         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24588         REPLACE_LOG2.
24589         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24590         REPLACE_LOG2.
24591         * modules/log2: New file.
24592         * tests/test-math-c++.cc: Check the declaration of log2.
24593         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24594         and OSF/1 and Cygwin problems.
24596 2012-03-11  Bruno Haible  <bruno@clisp.org>
24598         exp2* tests: More tests.
24599         * tests/test-exp2.h (test_function): Test all integral arguments that
24600         don't need to overflow or denormalized numbers.
24601         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24602         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24603         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24605 2012-03-10  Bruno Haible  <bruno@clisp.org>
24607         log1pl-ieee: Work around test failure on AIX 7.1.
24608         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24610         log1pl-ieee: Work around test failure on IRIX 6.5.
24611         * m4/log1pl-ieee.m4: New file.
24612         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24613         test whether log1pl works with a minus zero argument. Replace it if
24614         not.
24615         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24617         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24618         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24619         (Depends-on): Update conditions.
24620         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24621         m4/signbit.m4.
24622         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24623         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24625         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24626         * m4/log1pf-ieee.m4: New file.
24627         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24628         test whether log1pf works with a minus zero argument. Replace it if
24629         not.
24630         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24631         m4/signbit.m4.
24632         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24633         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24635         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24636         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24637         (configure.ac): Require gl_FUNC_LOG1PF.
24639         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24640         * m4/log1p-ieee.m4: New file.
24641         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24642         whether log1p works with a minus zero argument. Replace it if not.
24643         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24645         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24646         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24647         (Depends-on): Update conditions.
24648         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24649         m4/signbit.m4.
24650         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24651         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24653         Tests for module 'log1pl-ieee'.
24654         * modules/log1pl-ieee-tests: New file.
24655         * tests/test-log1pl-ieee.c: New file.
24657         New module 'log1pl-ieee'.
24658         * modules/log1pl-ieee: New file.
24660         Tests for module 'log1p-ieee'.
24661         * modules/log1p-ieee-tests: New file.
24662         * tests/test-log1p-ieee.c: New file.
24664         New module 'log1p-ieee'.
24665         * modules/log1p-ieee: New file.
24667         Tests for module 'log1pf-ieee'.
24668         * modules/log1pf-ieee-tests: New file.
24669         * tests/test-log1pf-ieee.c: New file.
24670         * tests/test-log1p-ieee.h: New file.
24672         New module 'log1pf-ieee'.
24673         * modules/log1pf-ieee: New file.
24675 2012-03-10  Bruno Haible  <bruno@clisp.org>
24677         Tests for module 'log1pl'.
24678         * modules/log1pl-tests: New file.
24679         * tests/test-log1pl.c: New file.
24681         New module 'log1pl'.
24682         * lib/math.in.h (log1pl): New declaration.
24683         * lib/log1pl.c: New file.
24684         * m4/log1pl.m4: New file.
24685         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24687         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24688         * modules/log1pl: New file.
24689         * tests/test-math-c++.cc: Check the declaration of log1pl.
24690         * doc/posix-functions/log1pl.texi: Mention the new module.
24692 2012-03-10  Bruno Haible  <bruno@clisp.org>
24694         Tests for module 'log1pf'.
24695         * modules/log1pf-tests: New file.
24696         * tests/test-log1pf.c: New file.
24698         New module 'log1pf'.
24699         * lib/math.in.h (log1pf): New declaration.
24700         * lib/log1pf.c: New file.
24701         * m4/log1pf.m4: New file.
24702         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24704         REPLACE_LOG1PF.
24705         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24706         REPLACE_LOG1PF.
24707         * modules/log1pf: New file.
24708         * tests/test-math-c++.cc: Check the declaration of log1pf.
24709         * doc/posix-functions/log1pf.texi: Mention the new module.
24711 2012-03-10  Bruno Haible  <bruno@clisp.org>
24713         log1p tests: More tests.
24714         * tests/test-log1p.h: New file.
24715         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24716         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24717         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24718         (main): Invoke test_function.
24720         log1p: Provide replacement for Minix and MSVC.
24721         * lib/math.in.h (log1p): New declaration.
24722         * lib/log1p.c: New file.
24723         * m4/log1p.m4: New file.
24724         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24726         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24727         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24728         (Depends-on): Add math, isnand, log, round.
24729         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24730         HAVE_LOG1P is 0.
24731         * tests/test-math-c++.cc: Check the declaration of log1p.
24732         * doc/posix-functions/log1p.texi: Mention the replacement.
24734 2012-03-10  Bruno Haible  <bruno@clisp.org>
24736         math tests: Small simplification.
24737         * tests/test-exp.h (test_function): Use the same err_bound for
24738         'double' on platforms with sizeof (long double) == sizeof (double)
24739         than on platforms with sizeof (long double) > sizeof (double).
24740         * tests/test-exp2.h (test_function): Likewise.
24741         * tests/test-expm1.h (test_function): Likewise.
24742         * tests/test-log.h (test_function): Likewise.
24744 2012-03-10  Bruno Haible  <bruno@clisp.org>
24746         Fix some comments.
24747         * lib/expl.c: Fix an ambiguous comment.
24748         * lib/expm1.c: Likewise.
24749         * lib/expm1l.c: Likewise.
24750         * lib/exp2.c: Likewise.
24751         * lib/exp2l.c: Likewise.
24753 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24755         regex: allow inclusion of <regex.h> before <limits.h>
24756         Without this patch, portable programs had to include <limits.h> before
24757         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24758         I ran into this problem with a test version of GNU grep on Solaris 8.
24759         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24760         This is done conditionally so that this change can be merged
24761         back to glibc.
24762         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24763         using the included regex.
24765         fts: depend on fdopendir
24766         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24767         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24768         problem was introduced when fdopendir was split out.
24770 2012-03-10  Bruno Haible  <bruno@clisp.org>
24772         Remove unused variables.
24773         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24774         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24776 2012-03-10  Bruno Haible  <bruno@clisp.org>
24778         isnanf-nolibm: Fix last commit.
24779         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24781         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24782         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24784 2012-03-10  Bruno Haible  <bruno@clisp.org>
24786         logf-ieee: Work around test failure on NetBSD 5.1.
24787         * m4/logf-ieee.m4: New file.
24788         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24789         whether logf works with a negative argument. Replace it if not.
24790         * lib/logf.c (logf): For negative arguments, return NaN.
24791         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24792         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24793         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24795         logf-ieee: Work around test failure on Solaris 9.
24796         * modules/logf-ieee (Depends-on): Add log-ieee.
24797         (configure.ac): Require gl_FUNC_LOGF.
24799         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24800         * m4/log-ieee.m4: New file.
24801         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24802         log works with a negative argument. Replace it if not.
24803         * lib/log.c (log): For negative arguments, return NaN.
24804         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24805         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24806         * doc/posix-functions/log.texi: Mention the log-ieee module.
24808         Tests for module 'logl-ieee'.
24809         * modules/logl-ieee-tests: New file.
24810         * tests/test-logl-ieee.c: New file.
24812         New module 'logl-ieee'.
24813         * modules/logl-ieee: New file.
24815         Tests for module 'log-ieee'.
24816         * modules/log-ieee-tests: New file.
24817         * tests/test-log-ieee.c: New file.
24819         New module 'log-ieee'.
24820         * modules/log-ieee: New file.
24822         Tests for module 'logf-ieee'.
24823         * modules/logf-ieee-tests: New file.
24824         * tests/test-logf-ieee.c: New file.
24825         * tests/test-log-ieee.h: New file.
24827         New module 'logf-ieee'.
24828         * modules/logf-ieee: New file.
24830 2012-03-10  Bruno Haible  <bruno@clisp.org>
24832         log: Fix bug introduced on 2012-03-09.
24833         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24835 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24837         timer-time: link explicitly with pthreads on glibc
24838         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24839         to support static linking, when newer glibc is
24840         detected, as that contains pthread emulation of
24841         POSIX timer functions where required.
24842         * modules/timer-time: Depend on threadlib to
24843         pull in the appropriate library to link.
24845 2012-03-10  Bruno Haible  <bruno@clisp.org>
24847         log* tests: More tests.
24848         * tests/test-log.h: New file.
24849         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24850         (main): Invoke test_function.
24851         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24852         (main): Invoke test_function.
24853         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24854         (main): Invoke test_function.
24855         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24856         tests/randomd.c.
24857         (Makefile.am): Add randomd.c to test_log_SOURCES.
24858         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24859         tests/randomf.c.
24860         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24861         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24862         tests/randoml.c.
24863         (Depends-on): Add 'float'.
24864         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24866 2012-03-09  Bruno Haible  <bruno@clisp.org>
24868         logl: Work around OSF/1 5.1 bug.
24869         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24870         * lib/logl.c (logl): If logl exists, use it and provide just the
24871         workaround.
24872         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24873         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24875         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24876         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24877         (Depends-on): Update conditions.
24878         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24880 2012-03-09  Bruno Haible  <bruno@clisp.org>
24882         logf: Work around OSF/1 5.1 bug.
24883         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24884         * lib/logf.c (logf): If logf exists, use it and provide just the
24885         workaround.
24886         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24887         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24889         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24890         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24891         (Depends-on): Update conditions.
24892         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24894 2012-03-09  Bruno Haible  <bruno@clisp.org>
24896         log: Work around OSF/1 5.1 bug.
24897         * lib/math.in.h (log): New declaration.
24898         * lib/log.c: New file.
24899         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24900         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24901         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24903         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24904         * modules/log (Files): Add lib/log.c.
24905         (Depends-on): Add math.
24906         (configure.ac): If REPLACE_LOG is 1, compile an override.
24907         * tests/test-math-c++.cc: Check the declaration of log.
24908         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24910 2012-03-09  Jim Meyering  <meyering@redhat.com>
24912         readtokens.c: adjust wording in a comment
24913         * lib/readtokens.c: Insert omitted "that" in a comment.
24915 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24917         modechange: add notations +40, 00440, etc.
24918         * lib/modechange.c (mode_compile): Support new notations
24919         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24921 2012-03-08  Bruno Haible  <bruno@clisp.org>
24923         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24924         * m4/exp2l-ieee.m4: New file.
24925         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24926         test whether exp2l works with a NaN argument and with a negative
24927         infinity argument. Replace it if not.
24928         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24930         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24931         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24932         (Depends-on): Update conditions.
24933         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24934         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24935         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24937         Tests for module 'exp2l-ieee'.
24938         * modules/exp2l-ieee-tests: New file.
24939         * tests/test-exp2l-ieee.c: New file.
24941         New module 'exp2l-ieee'.
24942         * modules/exp2l-ieee: New file.
24944         Tests for module 'exp2-ieee'.
24945         * modules/exp2-ieee-tests: New file.
24946         * tests/test-exp2-ieee.c: New file.
24948         New module 'exp2-ieee'.
24949         * modules/exp2-ieee: New file.
24951         Tests for module 'exp2f-ieee'.
24952         * modules/exp2f-ieee-tests: New file.
24953         * tests/test-exp2f-ieee.c: New file.
24954         * tests/test-exp2-ieee.h: New file.
24956         New module 'exp2f-ieee'.
24957         * modules/exp2f-ieee: New file.
24959 2012-03-08  Bruno Haible  <bruno@clisp.org>
24961         Tests for module 'exp2l'.
24962         * modules/exp2l-tests: New file.
24963         * tests/test-exp2l.c: New file.
24965         New module 'exp2l'.
24966         * lib/math.in.h (exp2l): New declaration.
24967         * lib/exp2l.c: New file.
24968         * lib/expl-table.c: New file, extracted from lib/expl.c.
24969         * lib/expl.c (gl_expl_table): New declaration.
24970         (expl): Remove expl_table. Update reference.
24971         * m4/exp2l.m4: New file.
24972         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24974         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24975         * modules/exp2l: New file.
24976         * modules/expl (Files): Add lib/expl-table.c.
24977         (configure.ac): Compile also expl-table.c.
24978         * tests/test-math-c++.cc: Check the declaration of exp2l.
24979         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24980         problem.
24982 2012-03-08  Bruno Haible  <bruno@clisp.org>
24984         Tests for module 'exp2f'.
24985         * modules/exp2f-tests: New file.
24986         * tests/test-exp2f.c: New file.
24988         New module 'exp2f'.
24989         * lib/math.in.h (exp2f): New declaration.
24990         * lib/exp2f.c: New file.
24991         * m4/exp2f.m4: New file.
24992         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24994         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24995         * modules/exp2f: New file.
24996         * tests/test-math-c++.cc: Check the declaration of exp2f.
24997         * doc/posix-functions/exp2f.texi: Mention the new module and the
24998         IRIX problem.
25000 2012-03-08  Bruno Haible  <bruno@clisp.org>
25002         Tests for module 'exp2'.
25003         * modules/exp2-tests: New file.
25004         * tests/test-exp2.c: New file.
25005         * tests/test-exp2.h: New file.
25007         New module 'exp2'.
25008         * lib/math.in.h (exp2): New declaration.
25009         * lib/exp2.c: New file.
25010         * m4/exp2.m4: New file.
25011         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
25012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
25013         REPLACE_EXP2.
25014         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
25015         REPLACE_EXP2.
25016         * modules/exp2: New file.
25017         * tests/test-math-c++.cc: Check the declaration of exp2.
25018         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
25019         and OpenBSD problems.
25021 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25023         savedir: fix comment typo
25024         * lib/savedir.c (savedirstream): Fix typo in comment.
25026 2012-03-08  Bruno Haible  <bruno@clisp.org>
25028         test-readtokens.c: use const; remove unwarranted cast
25029         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
25031 2012-03-08  Bruno Haible  <bruno@clisp.org>
25033         fmal: Avoid compilation error on AIX.
25034         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
25035         AIX 5.2..7.1.
25037 2012-03-08  Bruno Haible  <bruno@clisp.org>
25039         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
25040         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
25041         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
25042         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
25043         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
25044         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
25045         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
25047 2012-03-08  Bruno Haible  <bruno@clisp.org>
25049         remainderf: Override buggy system function on IRIX 6.5.
25050         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
25051         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
25052         when it exists.
25053         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
25055 2012-03-08  Jim Meyering  <meyering@redhat.com>
25057         test-readtokens.c: avoid const-related compilation warnings
25058         * tests/test-readtokens.c: Avoid const-related compilation warnings.
25060 2012-03-07  Jim Meyering  <meyering@redhat.com>
25061             Bruno Haible  <bruno@clisp.org>
25063         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
25064         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
25065         tests/randomd.c.
25066         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
25067         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
25068         tests/randoml.c.
25069         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
25071 2012-03-07  Bruno Haible  <bruno@clisp.org>
25073         expm1l: Avoid compilation error on AIX.
25074         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
25075         AIX 5.2..7.1.
25077 2012-03-07  Bruno Haible  <bruno@clisp.org>
25079         expm1l: Don't override undeclared system function on IRIX 6.5.
25080         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
25081         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
25082         it exists. Set HAVE_DECL_EXPM1L.
25083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
25084         HAVE_EXPM1L.
25085         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
25086         HAVE_EXPM1L.
25087         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
25089 2012-03-07  Bruno Haible  <bruno@clisp.org>
25091         remainderl: Don't override undeclared system function on IRIX 6.5.
25092         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
25093         HAVE_REMAINDERL.
25094         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
25095         declared when it exists. Set HAVE_DECL_REMAINDERL.
25096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
25097         not HAVE_REMAINDERL.
25098         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
25099         HAVE_REMAINDERL.
25100         * doc/posix-functions/remainderl.texi: Mention missing declaration
25101         problem.
25103 2012-03-07  Bruno Haible  <bruno@clisp.org>
25105         rintf: Don't override undeclared system function on IRIX 6.5.
25106         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25107         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25108         exists. Set HAVE_DECL_RINTF.
25109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25110         HAVE_RINTF.
25111         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25112         HAVE_RINTF.
25113         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25115 2012-03-07  Bruno Haible  <bruno@clisp.org>
25117         roundl: Avoid compilation error on AIX.
25118         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25119         AIX 5.2..7.1.
25121 2012-03-07  Bruno Haible  <bruno@clisp.org>
25123         roundl: Don't override undeclared system function on IRIX 6.5.
25124         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25125         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25126         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25127         * modules/roundl (configure.ac): For replacement code, test
25128         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25129         (Depends-on): Update conditions.
25130         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25132 2012-03-07  Bruno Haible  <bruno@clisp.org>
25134         roundf: Don't override undeclared system function on IRIX 6.5.
25135         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25136         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25137         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25138         * modules/roundf (configure.ac): For replacement code, test
25139         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25140         (Depends-on): Update conditions.
25141         * modules/roundf-ieee (Depends-on): Update conditions.
25142         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25144 2012-03-07  Bruno Haible  <bruno@clisp.org>
25146         round: Don't override undeclared system function on IRIX 6.5.
25147         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25148         argument.
25149         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25150         also when it is not declared. Set HAVE_ROUND. For replacement code,
25151         test HAVE_ROUND, not HAVE_DECL_ROUND.
25152         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25153         not HAVE_DECL_ROUND.
25154         (Depends-on): Update conditions.
25155         * modules/round-ieee (Depends-on): Update conditions.
25156         * doc/posix-functions/round.texi: Mention the IRIX problem.
25158 2012-03-07  Bruno Haible  <bruno@clisp.org>
25160         copysignf: Don't override undeclared system function on IRIX 6.5.
25161         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25162         HAVE_COPYSIGNF.
25163         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25164         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25166         not HAVE_COPYSIGNF.
25167         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25168         HAVE_COPYSIGNF.
25169         * doc/posix-functions/copysignf.texi: Mention missing declaration
25170         problem.
25172 2012-03-07  Jim Meyering  <meyering@redhat.com>
25174         readtokens: add tests
25175         * modules/readtokens-tests: New file.
25176         * tests/test-readtokens.c: New file.
25178 2012-03-07  Jim Meyering  <meyering@redhat.com>
25180         quotearg: the module must now include quote.h
25181         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25182         So must the module.
25183         * modules/quotearg (Files): Add quote.h.
25185 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25187         readtokens: avoid core dumps with unusual calling patterns
25188         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25189         * lib/readtokens.c: Include limits.h.
25190         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25191         (readtoken): Don't cache the delimiters; the cache code was buggy
25192         if !delim && saved_delim, or if the new n_delim differs from the old.
25193         Also, it wasn't thread-safe.
25195 2012-03-07  Bruno Haible  <bruno@clisp.org>
25197         quote: Adhere to common module description layout.
25198         * modules/quote (Makefile.am): Add back empty section.
25200 2012-03-06  Akim Demaille  <demaille@gostai.com>
25202         quote: fuse into quotearg
25203         This patch is made for the benefit of Bison.
25204         quote does not leave the choice of the quoting style to the user.
25205         quoting_style provides poor customizability, yet quoting_options,
25206         which is very rich, is hidden inside quotearg.c.  So in order to
25207         allow quote customization, move its implementation to quotearg.c.
25208         * lib/quote.c: Remove.
25209         * modules/quote: Adjust.
25210         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25211         warning: provide all the members of literal structs.
25212         (quote_quoting_options): New.
25213         (quote, quote_n): Import implementation from quote.c.
25214         * lib/quote.h: Import the comments from quote.c.
25215         (quote_quoting_options): New.
25217 2012-03-06  Bruno Haible  <bruno@clisp.org>
25219         Tests for module 'expm1l-ieee'.
25220         * modules/expm1l-ieee-tests: New file.
25221         * tests/test-expm1l-ieee.c: New file.
25223         New module 'expm1l-ieee'.
25224         * modules/expm1l-ieee: New file.
25226         Tests for module 'expm1f-ieee'.
25227         * modules/expm1f-ieee-tests: New file.
25228         * tests/test-expm1f-ieee.c: New file.
25230         New module 'expm1f-ieee'.
25231         * modules/expm1f-ieee: New file.
25233         Tests for module 'expm1-ieee'.
25234         * modules/expm1-ieee-tests: New file.
25235         * tests/test-expm1-ieee.c: New file.
25236         * tests/test-expm1-ieee.h: New file.
25238         New module 'expm1-ieee'.
25239         * modules/expm1-ieee: New file.
25240         * m4/expm1-ieee.m4: New file.
25241         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25242         whether expm1 works with a minus zero argument. Replace it if not.
25243         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25245         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25246         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25247         (Depends-on): Update conditions.
25248         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25249         AIX problem.
25251 2012-03-06  Bruno Haible  <bruno@clisp.org>
25253         Work around expm1f bug on IRIX 6.5.
25254         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25255         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25256         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25257         not work.
25258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25259         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25260         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25261         (Depends-on): Update conditions.
25262         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25264 2012-03-06  Bruno Haible  <bruno@clisp.org>
25266         Tests for module 'expm1l'.
25267         * modules/expm1l-tests: New file.
25268         * tests/test-expm1l.c: New file.
25270         New module 'expm1l'.
25271         * lib/math.in.h (expm1l): New declaration.
25272         * lib/expm1l.c: New file.
25273         * m4/expm1l.m4: New file.
25274         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25276         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25277         * modules/expm1l: New file.
25278         * tests/test-math-c++.cc: Check the declaration of expm1l.
25279         * doc/posix-functions/expm1l.texi: Mention the new module.
25281 2012-03-06  Bruno Haible  <bruno@clisp.org>
25283         Tests for module 'expm1f'.
25284         * modules/expm1f-tests: New file.
25285         * tests/test-expm1f.c: New file.
25287         New module 'expm1f'.
25288         * lib/math.in.h (expm1f): New declaration.
25289         * lib/expm1f.c: New file.
25290         * m4/expm1f.m4: New file.
25291         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25293         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25294         * modules/expm1f: New file.
25295         * tests/test-math-c++.cc: Check the declaration of expm1f.
25296         * doc/posix-functions/expm1f.texi: Mention the new module.
25298 2012-03-06  Bruno Haible  <bruno@clisp.org>
25300         Tests for module 'expm1'.
25301         * modules/expm1-tests: New file.
25302         * tests/test-expm1.c: New file.
25303         * tests/test-expm1.h: New file.
25305         New module 'expm1'.
25306         * lib/math.in.h (expm1): New declaration.
25307         * lib/expm1.c: New file.
25308         * m4/expm1.m4: New file.
25309         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25311         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25312         * modules/expm1: New file.
25313         * tests/test-math-c++.cc: Check the declaration of expm1.
25314         * doc/posix-functions/expm1.texi: Mention the new module.
25316 2012-03-06  Bruno Haible  <bruno@clisp.org>
25318         math: Ensure declarations of math functions.
25319         * modules/acosf (Depends-on): Add 'extensions'.
25320         * modules/asinf (Depends-on): Likewise.
25321         * modules/atan2f (Depends-on): Likewise.
25322         * modules/atanf (Depends-on): Likewise.
25323         * modules/cbrt (Depends-on): Likewise.
25324         * modules/cbrtf (Depends-on): Likewise.
25325         * modules/cbrtl (Depends-on): Likewise.
25326         * modules/copysignf (Depends-on): Likewise.
25327         * modules/copysignl (Depends-on): Likewise.
25328         * modules/cosf (Depends-on): Likewise.
25329         * modules/coshf (Depends-on): Likewise.
25330         * modules/expf (Depends-on): Likewise.
25331         * modules/fabsf (Depends-on): Likewise.
25332         * modules/fabsl (Depends-on): Likewise.
25333         * modules/fmaf (Depends-on): Likewise.
25334         * modules/fmal (Depends-on): Likewise.
25335         * modules/fmodf (Depends-on): Likewise.
25336         * modules/fmodl (Depends-on): Likewise.
25337         * modules/frexpf (Depends-on): Likewise.
25338         * modules/frexpl (Depends-on): Likewise.
25339         * modules/hypot (Depends-on): Likewise.
25340         * modules/hypotf (Depends-on): Likewise.
25341         * modules/hypotl (Depends-on): Likewise.
25342         * modules/ldexpf (Depends-on): Likewise.
25343         * modules/ldexpl (Depends-on): Likewise.
25344         * modules/log10f (Depends-on): Likewise.
25345         * modules/log10l (Depends-on): Likewise.
25346         * modules/log1p (Depends-on): Likewise.
25347         * modules/logb (Depends-on): Likewise.
25348         * modules/logf (Depends-on): Likewise.
25349         * modules/modff (Depends-on): Likewise.
25350         * modules/modfl (Depends-on): Likewise.
25351         * modules/powf (Depends-on): Likewise.
25352         * modules/remainderf (Depends-on): Likewise.
25353         * modules/remainderl (Depends-on): Likewise.
25354         * modules/rintf (Depends-on): Likewise.
25355         * modules/rintl (Depends-on): Likewise.
25356         * modules/sinf (Depends-on): Likewise.
25357         * modules/sinhf (Depends-on): Likewise.
25358         * modules/sqrtf (Depends-on): Likewise.
25359         * modules/tanf (Depends-on): Likewise.
25360         * modules/tanhf (Depends-on): Likewise.
25361         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25362         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25363         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25364         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25365         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25366         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25367         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25368         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25369         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25370         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25371         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25372         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25373         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25374         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25375         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25376         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25377         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25378         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25379         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25380         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25381         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25382         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25383         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25384         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25386         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25387         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25388         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25389         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25390         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25391         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25392         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25393         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25394         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25395         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25396         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25397         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25398         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25399         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25400         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25401         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25403 2012-03-06  Bruno Haible  <bruno@clisp.org>
25405         math: Update module names in warnings.
25406         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25407         tanl): Use specific module name in warn-on-use warning.
25409 2012-03-06  Bruno Haible  <bruno@clisp.org>
25411         expl: Simplify computation.
25412         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25414 2012-03-05  Bruno Haible  <bruno@clisp.org>
25416         exp* tests: More tests.
25417         * tests/test-exp.h: New file.
25418         * tests/test-exp.c: Include <float.h> and test-exp.h.
25419         (main): Invoke test_function.
25420         * tests/test-expf.c: Include <float.h> and test-exp.h.
25421         (main): Invoke test_function.
25422         * tests/test-expl.c: Include <float.h> and test-exp.h.
25423         (main): Invoke test_function.
25424         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25425         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25426         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25427         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25428         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25429         (Depends-on): Add 'float'.
25430         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25432         expl: Fix precision of computed result.
25433         * lib/expl.c: Completely rewritten.
25434         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25435         (Maintainer): Add me.
25436         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25438 2012-03-05  Bruno Haible  <bruno@clisp.org>
25440         cbrt* tests: More tests.
25441         * tests/test-cbrt.h: New file.
25442         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25443         (main): Invoke test_function.
25444         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25445         (main): Invoke test_function.
25446         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25447         (main): Invoke test_function.
25448         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25449         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25450         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25451         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25452         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25453         (Depends-on): Add 'float'.
25454         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25456 2012-03-05  Bruno Haible  <bruno@clisp.org>
25458         hypot* tests: More tests.
25459         * tests/test-hypot.h: New file, partially extracted from
25460         tests/test-hypotl.c.
25461         * tests/test-hypot.c: Include test-hypot.h.
25462         (main): Invoke test_function.
25463         * tests/test-hypotf.c: Include test-hypot.h.
25464         (main): Invoke test_function.
25465         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25466         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25467         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25468         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25469         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25470         tests/randomf.c.
25471         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25472         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25473         tests/randoml.c.
25474         (Depends-on): Add 'fpucw', 'float'.
25475         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25477 2012-03-05  Bruno Haible  <bruno@clisp.org>
25479         fpucw: Doc about FreeBSD.
25480         * lib/fpucw.h: Mention FreeBSD in comments.
25482 2012-03-04  Bruno Haible  <bruno@clisp.org>
25484         sqrt* tests: More tests.
25485         * tests/test-sqrt.h: New file.
25486         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25487         (main): Invoke test_function.
25488         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25489         (main): Invoke test_function.
25490         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25491         (main): Invoke test_function.
25492         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25493         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25494         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25495         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25496         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25497         (Depends-on): Add 'float'.
25498         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25500 2012-03-04  Bruno Haible  <bruno@clisp.org>
25502         remainder* tests: More tests.
25503         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25504         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25505         (main): Invoke test_function.
25506         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25507         (main): Invoke test_function.
25508         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25509         (main): Invoke test_function.
25510         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25511         tests/randomd.c.
25512         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25513         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25514         tests/randomf.c.
25515         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25516         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25517         tests/randoml.c.
25518         (Depends-on): Add 'float'.
25519         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25521 2012-03-04  Bruno Haible  <bruno@clisp.org>
25523         remainder, remainderf, remainderl: Fix computation for large quotients.
25524         * lib/remainder.c: Completely rewritten.
25525         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25526         USE_FLOAT.
25527         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25528         USE_LONG_DOUBLE.
25529         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25530         isnand, isinf. Remove round, fma.
25531         * modules/remainderf (Files): Add lib/remainder.c.
25532         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25533         Remove roundf, fmaf.
25534         * modules/remainderl (Files): Add lib/remainder.c.
25535         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25536         isinf. Remove roundl, fmal.
25537         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25538         REMAINDER_LIBM.
25539         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25540         REMAINDERF_LIBM.
25541         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25542         REMAINDERL_LIBM.
25544 2012-03-04  Bruno Haible  <bruno@clisp.org>
25546         fmod* tests: More tests.
25547         * tests/test-fmod.h (my_ldexp): New function.
25548         (test_function): Reduce amount of random numbers to test. Add tests
25549         of very large quotients x / y.
25550         * tests/test-fmod.c (MAX_EXP): New macro.
25551         * tests/test-fmodf.c (MAX_EXP): Likewise.
25552         * tests/test-fmodl.c (MAX_EXP): Likewise.
25554 2012-03-04  Bruno Haible  <bruno@clisp.org>
25556         fmod, fmodl: Fix computation for large quotients x / y.
25557         * lib/fmod.c: Completely rewritten.
25558         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25559         USE_LONG_DOUBLE.
25560         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25561         isnand. Remove fma.
25562         * modules/fmodl (Files): Add lib/fmod.c.
25563         (Depends-on): Add float, isfinite, signbit, fabsl,
25564         frexpl, ldexpl, isnanl. Remove fma.
25565         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25566         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25568 2012-03-03  Bruno Haible  <bruno@clisp.org>
25570         fmod* tests: More tests.
25571         * tests/test-fmod.h: New file.
25572         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25573         (main): Invoke test_function.
25574         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25575         (main): Invoke test_function.
25576         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25577         (main): Invoke test_function.
25578         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25579         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25580         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25581         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25582         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25583         (Depends-on): Add 'float'.
25584         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25586 2012-03-03  Bruno Haible  <bruno@clisp.org>
25588         rint* tests: More tests.
25589         * tests/test-rint.h: New file, partially extracted from
25590         tests/test-rintl.c.
25591         * tests/test-rint.c: Include test-rint.h.
25592         (main): Invoke test_function.
25593         * tests/test-rintf.c: Include test-rint.h.
25594         (main): Invoke test_function.
25595         * tests/test-rintl.c: Include test-rint.h.
25596         (main): Invoke test_function.
25597         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25598         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25599         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25600         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25601         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25602         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25604 2012-03-03  Bruno Haible  <bruno@clisp.org>
25606         modf* tests: More tests.
25607         * tests/test-modf.h: New file.
25608         * tests/test-modf.c: Include <float.h> and test-modf.h.
25609         (main): Invoke test_function.
25610         * tests/test-modff.c: Include <float.h> and test-modf.h.
25611         (main): Invoke test_function.
25612         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25613         (main): Invoke test_function.
25614         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25615         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25616         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25617         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25618         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25619         (Depends-on): Add 'float'.
25620         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25622 2012-03-03  Bruno Haible  <bruno@clisp.org>
25624         fabs* tests: More tests.
25625         * tests/test-fabs.h: New file, partially extracted from
25626         tests/test-fabsl.c.
25627         * tests/test-fabs.c (RANDOM): New macro.
25628         * tests/test-fabsf.c (RANDOM): New macro.
25629         * tests/test-fabsl.c (RANDOM): New macro.
25630         * modules/fabs-tests (Files): Add tests/randomd.c.
25631         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25632         * modules/fabsf-tests (Files): Add tests/randomf.c.
25633         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25634         * modules/fabsl-tests (Files): Add tests/randoml.c.
25635         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25637 2012-03-03  Bruno Haible  <bruno@clisp.org>
25639         ldexp* tests: More tests.
25640         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25641         * tests/test-ldexp.c (RANDOM): New macro.
25642         * tests/test-ldexpf.c (RANDOM): New macro.
25643         * tests/test-ldexpl.c (RANDOM): New macro.
25644         * modules/ldexp-tests (Files): Add tests/randomd.c.
25645         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25646         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25647         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25648         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25649         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25651 2012-03-03  Bruno Haible  <bruno@clisp.org>
25653         frexp* tests: More tests.
25654         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25655         * tests/test-frexp.c (RANDOM): New macro.
25656         * tests/test-frexpf.c (RANDOM): New macro.
25657         * tests/test-frexpl.c (RANDOM): New macro.
25658         * modules/frexp-tests (Files): Add tests/randomd.c.
25659         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25660         * modules/frexpf-tests (Files): Add tests/randomf.c.
25661         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25662         * modules/frexpl-tests (Files): Add tests/randoml.c.
25663         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25665 2012-03-03  Bruno Haible  <bruno@clisp.org>
25667         Support for pseudo-random numbers in tests.
25668         * tests/randomf.c: New file.
25669         * tests/randomd.c: New file.
25670         * tests/randoml.c: New file.
25671         * tests/macros.h (randomf, randomd, randoml): New declarations.
25673 2012-03-03  Bruno Haible  <bruno@clisp.org>
25675         frexp* tests: Refactor.
25676         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25677         * tests/test-frexp.c: Include and use it.
25678         * tests/test-frexpf.c: Likewise.
25679         * tests/test-frexpl.c: Likewise.
25680         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25681         * modules/frexpf-tests (Files): Likewise.
25682         * modules/frexpl-tests (Files): Likewise.
25684 2012-03-02  Jim Meyering  <meyering@redhat.com>
25686         maint: don't specify XZ_OPT=-9ev in dist-related rule
25687         Using xz's -9 option is warranted only if you have a very large
25688         tarball (see xz's documentation for the sizes vs. presets), and
25689         requires 64MiB of memory at decompression time.
25690         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25691         Automake's default of just "-e" is fine.  Override on a
25692         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25694 2012-03-01  Eric Blake  <eblake@redhat.com>
25696         maint.mk: allow announcement for non-gnulib project
25697         * maint.mk (announcement): Skip gnulib version if not used.
25699 2012-03-01  Jim Meyering  <meyering@redhat.com>
25701         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25702         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25703         envvar settings cannot interfere.  Otherwise, setting envvars like
25704         prohibit=foo require=bar, etc. would cause spurious test failures.
25706 2012-03-01  Eric Blake  <eblake@redhat.com>
25708         maint.mk: add per-line exclusions to prohibitions
25709         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25710         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25711         (sc_const_long_option): Use it.
25713 2012-03-01  Bruno Haible  <bruno@clisp.org>
25715         Tests for module 'expl-ieee'.
25716         * modules/expl-ieee-tests: New file.
25717         * tests/test-expl-ieee.c: New file.
25719         New module 'expl-ieee'.
25720         * modules/expl-ieee: New file.
25722         Tests for module 'exp-ieee'.
25723         * modules/exp-ieee-tests: New file.
25724         * tests/test-exp-ieee.c: New file.
25726         New module 'exp-ieee'.
25727         * modules/exp-ieee: New file.
25729         Tests for module 'expf-ieee'.
25730         * modules/expf-ieee-tests: New file.
25731         * tests/test-expf-ieee.c: New file.
25732         * tests/test-exp-ieee.h: New file.
25734         New module 'expf-ieee'.
25735         * modules/expf-ieee: New file.
25737 2012-02-29  Bruno Haible  <bruno@clisp.org>
25739         cbrtl-ieee: Work around test failure on IRIX 6.5.
25740         * m4/cbrtl-ieee.m4: New file.
25741         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25742         test whether cbrtl works with a minus zero argument. Replace it if not.
25743         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25745         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25746         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25747         (Depends-on): Update conditions.
25748         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25749         m4/signbit.m4.
25750         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25751         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25752         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25754         Tests for module 'cbrtl-ieee'.
25755         * modules/cbrtl-ieee-tests: New file.
25756         * tests/test-cbrtl-ieee.c: New file.
25758         New module 'cbrtl-ieee'.
25759         * modules/cbrtl-ieee: New file.
25761         Tests for module 'cbrt-ieee'.
25762         * modules/cbrt-ieee-tests: New file.
25763         * tests/test-cbrt-ieee.c: New file.
25765         New module 'cbrt-ieee'.
25766         * modules/cbrt-ieee: New file.
25768         Tests for module 'cbrtf-ieee'.
25769         * modules/cbrtf-ieee-tests: New file.
25770         * tests/test-cbrtf-ieee.c: New file.
25771         * tests/test-cbrt-ieee.h: New file.
25773         New module 'cbrtf-ieee'.
25774         * modules/cbrtf-ieee: New file.
25776 2012-02-29  Bruno Haible  <bruno@clisp.org>
25778         cbrtf: Work around bug in IRIX 6.5 system function.
25779         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25780         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25781         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25782         work.
25783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25784         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25785         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25786         (Depends-on): Update conditions.
25787         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25789 2012-02-29  Bruno Haible  <bruno@clisp.org>
25791         Tests for module 'cbrtl'.
25792         * modules/cbrtl-tests: New file.
25793         * tests/test-cbrtl.c: New file.
25795         New module 'cbrtl'.
25796         * lib/math.in.h (cbrtl): New declaration.
25797         * lib/cbrtl.c: New file.
25798         * m4/cbrtl.m4: New file.
25799         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25801         HAVE_DECL_CBRTL.
25802         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25803         HAVE_DECL_CBRTL.
25804         * modules/cbrtl: New file.
25805         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25806         * doc/posix-functions/cbrtl.texi: Mention the new module.
25808 2012-02-29  Bruno Haible  <bruno@clisp.org>
25810         Tests for module 'cbrtf'.
25811         * modules/cbrtf-tests: New file.
25812         * tests/test-cbrtf.c: New file.
25814         New module 'cbrtf'.
25815         * lib/math.in.h (cbrtf): New declaration.
25816         * lib/cbrtf.c: New file.
25817         * m4/cbrtf.m4: New file.
25818         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25820         HAVE_DECL_CBRTF.
25821         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25822         HAVE_DECL_CBRTF.
25823         * modules/cbrtf: New file.
25824         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25825         * doc/posix-functions/cbrtf.texi: Mention the new module.
25827 2012-02-29  Bruno Haible  <bruno@clisp.org>
25829         cbrt: Provide replacement on MSVC and Minix.
25830         * lib/math.in.h (cbrt): New declaration.
25831         * lib/cbrt.c: New file.
25832         * m4/cbrt.m4: New file.
25833         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25835         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25836         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25837         (Depends-on): Add dependencies.
25838         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25839         * tests/test-math-c++.cc: Check the declaration of cbrt.
25840         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25841         replacement.
25843 2012-02-29  Bruno Haible  <bruno@clisp.org>
25845         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25846         * m4/hypotl-ieee.m4: New file.
25847         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25848         test whether hypotl works with mixed NaN and Infinity arguments.
25849         Replace it if not.
25850         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25852         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25853         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25854         (Depends-on): Update conditions.
25855         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25856         (Depends-on): Add hypot-ieee.
25857         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25858         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25860         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25861         * m4/hypotf-ieee.m4: New file.
25862         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25863         test whether hypotf works with mixed NaN and Infinity arguments.
25864         Replace it if not.
25865         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25866         (Depends-on): Add hypot-ieee.
25867         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25868         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25870         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25871         * lib/math.in.h (hypot): New declaration.
25872         * lib/hypot.c: New file.
25873         * m4/hypot-ieee.m4: New file.
25874         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25875         whether hypot works with mixed NaN and Infinity arguments. Replace it
25876         if not.
25877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25878         REPLACE_HYPOT.
25879         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25880         * modules/hypot (Files): Add lib/hypot.c.
25881         (Depends-on): Add dependencies.
25882         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25883         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25884         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25885         * tests/test-math-c++.cc: Check the declaration of hypot.
25886         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25888         Tests for module 'hypotl-ieee'.
25889         * modules/hypotl-ieee-tests: New file.
25890         * tests/test-hypotl-ieee.c: New file.
25892         New module 'hypotl-ieee'.
25893         * modules/hypotl-ieee: New file.
25895         Tests for module 'hypot-ieee'.
25896         * modules/hypot-ieee-tests: New file.
25897         * tests/test-hypot-ieee.c: New file.
25899         New module 'hypot-ieee'.
25900         * modules/hypot-ieee: New file.
25902         Tests for module 'hypotf-ieee'.
25903         * modules/hypotf-ieee-tests: New file.
25904         * tests/test-hypotf-ieee.c: New file.
25905         * tests/test-hypot-ieee.h: New file.
25907         New module 'hypotf-ieee'.
25908         * modules/hypotf-ieee: New file.
25910 2012-02-29  Bruno Haible  <bruno@clisp.org>
25912         Remove unused variables.
25913         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25914         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25915         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25916         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25918 2012-02-29  Eric Blake  <eblake@redhat.com>
25920         termios: fix pid_t always, not just for tcgetsid
25921         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25922         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25923         just when building tcgetsid.
25925 2012-02-29  Bruno Haible  <bruno@clisp.org>
25927         Tests for module 'hypotl'.
25928         * modules/hypotl-tests: New file.
25929         * tests/test-hypotl.c: New file.
25931         New module 'hypotl'.
25932         * lib/math.in.h (hypotl): New declaration.
25933         * lib/hypotl.c: New file.
25934         * m4/hypotl.m4: New file.
25935         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25937         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25938         * modules/hypotl: New file.
25939         * tests/test-math-c++.cc: Check the hypotl declaration.
25940         * doc/posix-functions/hypotl.texi: Mention the new module.
25942 2012-02-29  Eric Blake  <eblake@redhat.com>
25944         tcgetsid: fix cygwin header bug
25945         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25947         docs: update cygwin progress
25948         * doc/posix-functions/llround.texi (llround): Added in cygwin
25949         1.7.8.
25950         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25951         * doc/glibc-functions/program_invocation_name.texi
25952         (program_invocation_name): Likewise.
25953         * doc/glibc-functions/program_invocation_short_name.texi
25954         (program_invocation_short_name): Likewise.
25955         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25956         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25957         Likewise.
25958         * doc/posix-functions/pthread_spin_destroy.texi
25959         (pthread_spin_destroy): Added in cygwin 1.7.10.
25960         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25961         Likewise.
25962         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25963         Likewise.
25964         * doc/posix-functions/pthread_spin_trylock.texi
25965         (pthread_spin_trylock): Likewise.
25966         * doc/posix-functions/pthread_spin_unlock.texi
25967         (pthread_spin_unlock): Likewise.
25968         * doc/posix-functions/pthread_setschedprio.texi
25969         (pthread_setschedprio): Likewise.
25970         * doc/posix-functions/pthread_attr_getstack.texi
25971         (pthread_attr_getstack): Likewise.
25972         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25973         (pthread_attr_getstackaddr): Likewise.
25974         * doc/glibc-functions/pthread_getattr_np.texi
25975         (pthread_getattr_np): Likewise.
25976         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25977         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25978         * doc/posix-functions/clock_settime.texi (clock_settime):
25979         Likewise.
25980         * doc/posix-functions/pthread_attr_getguardsize.texi
25981         (pthread_attr_getguardsize): Likewise.
25982         * doc/posix-functions/pthread_attr_setguardsize.texi
25983         (pthread_attr_setguardsize): Likewise.
25984         * doc/posix-functions/pthread_attr_setstack.texi
25985         (pthread_attr_setstack): Likewise.
25986         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25987         (pthread_attr_setstackaddr): Likewise.
25988         * doc/posix-functions/clock_getcpuclockid.texi
25989         (clock_getcpuclockid): Likewise.
25990         * doc/posix-functions/pthread_getcpuclockid.texi
25991         (pthread_getcpuclockid): Likewise.
25992         * doc/glibc-functions/error.texi (error): Likewise.
25993         * doc/glibc-functions/error_at_line.texi (error_at_line):
25994         Likewise.
25995         * doc/glibc-functions/error_message_count.texi
25996         (error_message_count): Likewise.
25997         * doc/glibc-functions/error_one_per_line.texi
25998         (error_one_per_line): Likewise.
25999         * doc/glibc-functions/error_print_progname.texi
26000         (error_print_progname): Likewise.
26001         * doc/posix-functions/pthread_condattr_getclock.texi
26002         (pthread_condattr_getclock): Likewise.
26003         * doc/posix-functions/pthread_condattr_setclock.texi
26004         (pthread_condattr_setclock): Likewise.
26005         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
26006         Likewise.
26007         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
26008         * doc/glibc-functions/getpt.texi (getpt): Likewise.
26009         * doc/glibc-functions/get_current_dir_name.texi
26010         (get_current_dir_name): Likewise.
26011         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
26012         Likewise.
26013         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
26014         wrong return type.
26015         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
26016         1.7.11.
26018 2012-02-29  Bruno Haible  <bruno@clisp.org>
26020         Tests for module 'hypotf'.
26021         * modules/hypotf-tests: New file.
26022         * tests/test-hypotf.c: New file.
26024         New module 'hypotf'.
26025         * lib/math.in.h (hypotf): New declaration.
26026         * lib/hypotf.c: New file.
26027         * m4/hypotf.m4: New file.
26028         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
26030         REPLACE_HYPOTF.
26031         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
26032         REPLACE_HYPOTF.
26033         * modules/hypotf: New file.
26034         * tests/test-math-c++.cc: Check the hypotf declaration.
26035         * doc/posix-functions/hypotf.texi: Mention the new module.
26037         hypot: Prepare for hypotf module.
26038         * m4/hypot.m4: New file.
26039         * modules/hypot (Files): Add m4/hypot.m4.
26040         (configure.ac): Invoke gl_FUNC_HYPOT.
26042 2012-02-29  Bruno Haible  <bruno@clisp.org>
26044         hypot tests: More tests.
26045         * tests/test-hypot.c: Include <float.h>.
26046         (main): Add tests about overflow and underflow.
26048 2012-02-29  Bruno Haible  <bruno@clisp.org>
26050         math code: Add comments.
26051         * lib/acosl.c: Add comment about related glibc source files.
26052         * lib/asinl.c: Likewise.
26053         * lib/atanl.c: Likewise.
26054         * lib/expl.c: Likewise.
26055         * lib/logl.c: Likewise.
26056         * lib/sincosl.c: Likewise.
26057         * lib/sinl.c: Likewise.
26058         * lib/tanl.c: Likewise.
26059         * lib/trigl.c: Likewise.
26060         * lib/cosl.c: Likewise. Fix comments.
26062 2012-02-28  Bruno Haible  <bruno@clisp.org>
26064         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
26065         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
26066         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
26067         HUGE_VALL are defined.
26068         (numeric_equald): Renamed from numeric_equal.
26069         (numeric_equalf, numeric_equall): New functions.
26070         (main): Check also HUGE_VALF, HUGE_VALL.
26071         * modules/math-tests (Files): Add tests/macros.h.
26072         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
26073         HUGE_VALL.
26075 2012-02-28  Bruno Haible  <bruno@clisp.org>
26077         doc: Move ISO C11 feature notes into POSIX chapters.
26078         * doc/posix-functions/aligned_alloc.texi: Renamed from
26079         doc/glibc-functions/aligned_alloc.texi.
26080         * doc/posix-functions/quick_exit.texi: Renamed from
26081         doc/glibc-functions/quick_exit.texi.
26082         * doc/posix-headers/uchar.texi: Renamed from
26083         doc/glibc-headers/uchar.texi.
26084         * doc/posix-functions/c16rtomb.texi: Renamed from
26085         doc/glibc-functions/c16rtomb.texi.
26086         * doc/posix-functions/c32rtomb.texi: Renamed from
26087         doc/glibc-functions/c32rtomb.texi.
26088         * doc/posix-functions/mbrtoc16.texi: Renamed from
26089         doc/glibc-functions/mbrtoc16.texi.
26090         * doc/posix-functions/mbrtoc32.texi: Renamed from
26091         doc/glibc-functions/mbrtoc32.texi.
26092         * doc/gnulib.texi: Update.
26093         (Glibc uchar.h): Remove section.
26094         Suggested by Eric Blake.
26096 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
26098         stdnoreturn: port to MSVC better
26099         MSVC standard headers use __declspec(noreturn), so #define noreturn
26100         to empty on that platform.  Reported by Bruno Haible in
26101         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
26102         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
26103         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
26105 2012-02-28  Bruno Haible  <bruno@clisp.org>
26107         doc: Mention new glibc headers and functions.
26108         * doc/glibc-headers/uchar.texi: New file.
26109         * doc/glibc-functions/aligned_alloc.texi: New file.
26110         * doc/glibc-functions/c16rtomb.texi: New file.
26111         * doc/glibc-functions/c32rtomb.texi: New file.
26112         * doc/glibc-functions/clock_adjtime.texi: New file.
26113         * doc/glibc-functions/fanotify_init.texi: New file.
26114         * doc/glibc-functions/fanotify_mark.texi: New file.
26115         * doc/glibc-functions/inet6_opt_append.texi: New file.
26116         * doc/glibc-functions/inet6_opt_find.texi: New file.
26117         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26118         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26119         * doc/glibc-functions/inet6_opt_init.texi: New file.
26120         * doc/glibc-functions/inet6_opt_next.texi: New file.
26121         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26122         * doc/glibc-functions/inet6_rth_add.texi: New file.
26123         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26124         * doc/glibc-functions/inet6_rth_init.texi: New file.
26125         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26126         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26127         * doc/glibc-functions/inet6_rth_space.texi: New file.
26128         * doc/glibc-functions/login.texi: New file.
26129         * doc/glibc-functions/mbrtoc16.texi: New file.
26130         * doc/glibc-functions/mbrtoc32.texi: New file.
26131         * doc/glibc-functions/name_to_handle_at.texi: New file.
26132         * doc/glibc-functions/ntp_gettimex.texi: New file.
26133         * doc/glibc-functions/open_by_handle_at.texi: New file.
26134         * doc/glibc-functions/prlimit.texi: New file.
26135         * doc/glibc-functions/process_vm_readv.texi: New file.
26136         * doc/glibc-functions/process_vm_writev.texi: New file.
26137         * doc/glibc-functions/recvmmsg.texi: New file.
26138         * doc/glibc-functions/scandirat.texi: New file.
26139         * doc/glibc-functions/sendmmsg.texi: New file.
26140         * doc/glibc-functions/setns.texi: New file.
26141         * doc/glibc-functions/timespec_get.texi: New file.
26142         * doc/gnulib.texi: Include them.
26143         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26144         sections.
26145         Reported by Eric Blake.
26147 2012-02-28  Bruno Haible  <bruno@clisp.org>
26149         Avoid compilation errors with MSVC option -fp:strict.
26150         * lib/floor.c: Use MSVC specific pragma fenv_access.
26151         * lib/ceil.c: Likewise.
26152         * lib/trunc.c: Likewise.
26153         * lib/round.c: Likewise.
26154         * lib/rint.c: Likewise.
26155         * lib/fma.c: Likewise.
26156         * lib/integer_length.c: Likewise.
26157         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26158         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26159         * tests/test-floor2.c: Likewise.
26160         * tests/test-floorf2.c: Likewise.
26161         * tests/test-ceil2.c: Likewise.
26162         * tests/test-ceilf2.c: Likewise.
26163         * tests/test-trunc2.c: Likewise.
26164         * tests/test-truncf2.c: Likewise.
26165         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26167 2012-02-27  Bruno Haible  <bruno@clisp.org>
26169         Tests for module 'sqrtl-ieee'.
26170         * modules/sqrtl-ieee-tests: New file.
26171         * tests/test-sqrtl-ieee.c: New file.
26173         New module 'sqrtl-ieee'.
26174         * modules/sqrtl-ieee: New file.
26176         Tests for module 'sqrt-ieee'.
26177         * modules/sqrt-ieee-tests: New file.
26178         * tests/test-sqrt-ieee.c: New file.
26180         New module 'sqrt-ieee'.
26181         * modules/sqrt-ieee: New file.
26183         Tests for module 'sqrtf-ieee'.
26184         * modules/sqrtf-ieee-tests: New file.
26185         * tests/test-sqrtf-ieee.c: New file.
26186         * tests/test-sqrt-ieee.h: New file.
26188         New module 'sqrtf-ieee'.
26189         * modules/sqrtf-ieee: New file.
26191 2012-02-27  Bruno Haible  <bruno@clisp.org>
26193         remainderl-ieee: Work around test failure on OSF/1.
26194         * m4/remainderl-ieee.m4: New file.
26195         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26196         present, test whether remainderl works with a zero second argument.
26197         Replace it if not.
26198         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26200         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26201         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26202         (Depends-on): Update conditions.
26203         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26204         (Depends-on): Add remainder-ieee.
26205         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26206         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26207         module.
26209         remainderf-ieee: Work around test failure on OSF/1.
26210         * m4/remainderf-ieee.m4: New file.
26211         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26212         present, test whether remainderf works with a zero second argument.
26213         Replace it if not.
26214         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26216         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26217         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26218         (Depends-on): Update conditions.
26219         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26220         (Depends-on): Add remainder-ieee.
26221         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26222         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26223         module.
26225         remainder-ieee: Work around test failure on OSF/1.
26226         * m4/remainder-ieee.m4: New file.
26227         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26228         present, test whether remainder works with a zero second argument.
26229         Replace it if not.
26230         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26232         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26233         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26234         (Depends-on): Update dependencies.
26235         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26236         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26237         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26239         Tests for module 'remainderl-ieee'.
26240         * modules/remainderl-ieee-tests: New file.
26241         * tests/test-remainderl-ieee.c: New file.
26243         New module 'remainderl-ieee'.
26244         * modules/remainderl-ieee: New file.
26246         Tests for module 'remainder-ieee'.
26247         * modules/remainder-ieee-tests: New file.
26248         * tests/test-remainder-ieee.c: New file.
26250         New module 'remainder-ieee'.
26251         * modules/remainder-ieee: New file.
26253         Tests for module 'remainderf-ieee'.
26254         * modules/remainderf-ieee-tests: New file.
26255         * tests/test-remainderf-ieee.c: New file.
26256         * tests/test-remainder-ieee.h: New file.
26258         New module 'remainderf-ieee'.
26259         * modules/remainderf-ieee: New file.
26261 2012-02-27  Bruno Haible  <bruno@clisp.org>
26263         modff, modfl: Fix configure syntax error.
26264         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26265         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26267 2012-02-27  Bruno Haible  <bruno@clisp.org>
26269         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26270         * m4/fmodl-ieee.m4: New file.
26271         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26272         whether fmodl works with zero arguments. Replace it if not.
26273         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26274         (Depends-on): Add fmod-ieee.
26275         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26276         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26278         fmodf-ieee: Work around test failure on OSF/1.
26279         * m4/fmodf-ieee.m4: New file.
26280         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26281         whether fmodf works with zero arguments. Replace it if not.
26282         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26284         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26285         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26286         (Depends-on): Update dependencies.
26287         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26288         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26289         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26291         fmodf-ieee: Work around test failure on MSVC 9.
26292         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26293         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26295         fmod-ieee: Work around test failures on OSF/1, mingw.
26296         * m4/fmod-ieee.m4: New file.
26297         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26298         whether fmod works with zero arguments. Replace it if not.
26299         * lib/math.in.h (fmod): New declaration.
26300         * lib/fmod.c: New file.
26301         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26303         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26304         * modules/fmod (Files): Add lib/fmod.c.
26305         (Depends-on): Add math, isinf, trunc, fma.
26306         (configure.ac): Arrange to compile lib/fmod.c if needed.
26307         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26308         m4/signbit.m4.
26309         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26310         * tests/test-math-c++.cc: Check the declaration of fmod.
26311         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26313         fmodl-ieee: Fix test failures.
26314         * lib/fmodl.c (fmodl): Treat Inf specially.
26315         * modules/fmodl (Depends-on): Add isinf.
26317         Tests for module 'fmodl-ieee'.
26318         * modules/fmodl-ieee-tests: New file.
26319         * tests/test-fmodl-ieee.c: New file.
26321         New module 'fmodl-ieee'.
26322         * modules/fmodl-ieee: New file.
26324         Tests for module 'fmod-ieee'.
26325         * modules/fmod-ieee-tests: New file.
26326         * tests/test-fmod-ieee.c: New file.
26328         New module 'fmod-ieee'.
26329         * modules/fmod-ieee: New file.
26331         Tests for module 'fmodf-ieee'.
26332         * modules/fmodf-ieee-tests: New file.
26333         * tests/test-fmodf-ieee.c: New file.
26334         * tests/test-fmod-ieee.h: New file.
26336         New module 'fmodf-ieee'.
26337         * modules/fmodf-ieee: New file.
26339 2012-02-27  Bruno Haible  <bruno@clisp.org>
26341         Tests for module 'rintl-ieee'.
26342         * modules/rintl-ieee-tests: New file.
26343         * tests/test-rintl-ieee.c: New file.
26345         New module 'rintl-ieee'.
26346         * modules/rintl-ieee: New file.
26348         Tests for module 'rint-ieee'.
26349         * modules/rint-ieee-tests: New file.
26350         * tests/test-rint-ieee.c: New file.
26352         New module 'rint-ieee'.
26353         * modules/rint-ieee: New file.
26355         Tests for module 'rintf-ieee'.
26356         * modules/rintf-ieee-tests: New file.
26357         * tests/test-rintf-ieee.c: New file.
26358         * tests/test-rint-ieee.h: New file.
26360         New module 'rintf-ieee'.
26361         * modules/rintf-ieee: New file.
26363 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26365         regex: re_search etc. should return -2 when memory exhausted
26366         This bug was uncovered when testing 'grep'.  Without the fix,
26367         re_search and friends return -1 when memory is exhausted, but -1
26368         means no match, and this causes grep to falsely report no-match
26369         instead of memory-exhaustion.  See
26370         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26371         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26372         trouble; this can occur if re_search_internal ran out of memory.
26374 2012-02-26  Bruno Haible  <bruno@clisp.org>
26376         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26377         * m4/modfl-ieee.m4: New file.
26378         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26379         whether modfl works with Inf. Replace it if not.
26380         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26382         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26383         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26384         (Depends-on): Update dependencies.
26385         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26386         m4/signbit.m4.
26387         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26388         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26390         modfl-ieee: Fix dependencies.
26391         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26393         modfl-ieee: Fix test failures.
26394         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26395         * modules/modfl (Depends-on): Add isfinite, isinf.
26397         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26398         * m4/modff-ieee.m4: New file.
26399         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26400         whether modff works with NaN and Inf. Replace it if not.
26401         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26403         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26404         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26405         (Depends-on): Update dependencies.
26406         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26407         m4/signbit.m4.
26408         (Depends-on): Add modf-ieee.
26409         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26410         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26412         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26413         * m4/modf-ieee.m4: New file.
26414         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26415         whether modf works with NaN and Inf. Replace it if not.
26416         * lib/math.in.h (modf): New declaration.
26417         * lib/modf.c: New file.
26418         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26420         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26421         * modules/modf (Files): Add lib/modf.c.
26422         (Depends-on): Add math, isfinite, trunc, isinf.
26423         (configure.ac): Addrange to compile lib/modf.c if needed.
26424         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26425         m4/signbit.m4.
26426         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26427         * tests/test-math-c++.cc: Check the declaration of modf.
26428         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26430         Tests for module 'modfl-ieee'.
26431         * modules/modfl-ieee-tests: New file.
26432         * tests/test-modfl-ieee.c: New file.
26434         New module 'modfl-ieee'.
26435         * modules/modfl-ieee: New file.
26437         Tests for module 'modf-ieee'.
26438         * modules/modf-ieee-tests: New file.
26439         * tests/test-modf-ieee.c: New file.
26441         New module 'modf-ieee'.
26442         * modules/modf-ieee: New file.
26444         Tests for module 'modff-ieee'.
26445         * modules/modff-ieee-tests: New file.
26446         * tests/test-modff-ieee.c: New file.
26447         * tests/test-modf-ieee.h: New file.
26449         New module 'modff-ieee'.
26450         * modules/modff-ieee: New file.
26452 2012-02-26  Bruno Haible  <bruno@clisp.org>
26454         Tests for module 'fabsl-ieee'.
26455         * modules/fabsl-ieee-tests: New file.
26456         * tests/test-fabsl-ieee.c: New file.
26458         New module 'fabsl-ieee'.
26459         * modules/fabsl-ieee: New file.
26461         Tests for module 'fabs-ieee'.
26462         * modules/fabs-ieee-tests: New file.
26463         * tests/test-fabs-ieee.c: New file.
26465         New module 'fabs-ieee'.
26466         * modules/fabs-ieee: New file.
26468         Tests for module 'fabsf-ieee'.
26469         * modules/fabsf-ieee-tests: New file.
26470         * tests/test-fabsf-ieee.c: New file.
26471         * tests/test-fabs-ieee.h: New file.
26473         New module 'fabsf-ieee'.
26474         * modules/fabsf-ieee: New file.
26476 2012-02-26  Bruno Haible  <bruno@clisp.org>
26478         Tests for module 'fmal-ieee'.
26479         * modules/fmal-ieee-tests: New file.
26480         * tests/test-fmal-ieee.c: New file.
26482         New module 'fmal-ieee'.
26483         * modules/fmal-ieee: New file.
26485         Tests for module 'fma-ieee'.
26486         * modules/fma-ieee-tests: New file.
26487         * tests/test-fma-ieee.c: New file.
26489         New module 'fma-ieee'.
26490         * modules/fma-ieee: New file.
26492         Tests for module 'fmaf-ieee'.
26493         * modules/fmaf-ieee-tests: New file.
26494         * tests/test-fmaf-ieee.c: New file.
26495         * tests/test-fma-ieee.h: New file.
26497         New module 'fmaf-ieee'.
26498         * modules/fmaf-ieee: New file.
26500 2012-02-26  Bruno Haible  <bruno@clisp.org>
26502         Tests for module 'ldexpl-ieee'.
26503         * modules/ldexpl-ieee-tests: New file.
26504         * tests/test-ldexpl-ieee.c: New file.
26506         New module 'ldexpl-ieee'.
26507         * modules/ldexpl-ieee: New file.
26509         Tests for module 'ldexp-ieee'.
26510         * modules/ldexp-ieee-tests: New file.
26511         * tests/test-ldexp-ieee.c: New file.
26513         New module 'ldexp-ieee'.
26514         * modules/ldexp-ieee: New file.
26516         Tests for module 'ldexpf-ieee'.
26517         * modules/ldexpf-ieee-tests: New file.
26518         * tests/test-ldexpf-ieee.c: New file.
26519         * tests/test-ldexp-ieee.h: New file.
26521         New module 'ldexpf-ieee'.
26522         * modules/ldexpf-ieee: New file.
26524 2012-02-26  Bruno Haible  <bruno@clisp.org>
26526         Refactor frexp*-ieee tests.
26527         * tests/test-frexp-ieee.h: New file.
26528         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26529         (main): Just call test_function.
26530         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26531         (main): Just call test_function.
26532         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26533         (main): Just call test_function.
26534         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26535         * modules/frexp-ieee-tests (Files): Likewise.
26536         * modules/frexpl-ieee-tests (Files): Likewise.
26538         Tests for module 'frexpl-ieee'.
26539         * modules/frexpl-ieee-tests: New file.
26540         * tests/test-frexpl-ieee.c: New file.
26542         New module 'frexpl-ieee'.
26543         * modules/frexpl-ieee: New file.
26545         Tests for module 'frexp-ieee'.
26546         * modules/frexp-ieee-tests: New file.
26547         * tests/test-frexp-ieee.c: New file.
26549         New module 'frexp-ieee'.
26550         * modules/frexp-ieee: New file.
26552         Tests for module 'frexpf-ieee'.
26553         * modules/frexpf-ieee-tests: New file.
26554         * tests/test-frexpf-ieee.c: New file.
26556         New module 'frexpf-ieee'.
26557         * modules/frexpf-ieee: New file.
26559 2012-02-26  Bruno Haible  <bruno@clisp.org>
26561         roundl-ieee tests: More tests.
26562         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26563         (main): Add tests for [MX] shaded specification in POSIX.
26564         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26565         (Depends-on): Add isnanl-nolibm.
26567         round-ieee tests: More tests.
26568         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26569         (main): Add tests for [MX] shaded specification in POSIX.
26570         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26571         (Depends-on): Add isnand-nolibm.
26573         roundf-ieee tests: More tests.
26574         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26575         (main): Add tests for [MX] shaded specification in POSIX.
26576         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26577         (Depends-on): Add isnanf-nolibm.
26579         truncl-ieee tests: More tests.
26580         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26581         (main): Add tests for [MX] shaded specification in POSIX.
26582         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26583         (Depends-on): Add isnanl-nolibm.
26585         trunc-ieee tests: More tests.
26586         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26587         (main): Add tests for [MX] shaded specification in POSIX.
26588         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26589         (Depends-on): Add isnand-nolibm.
26591         truncf-ieee tests: More tests.
26592         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26593         (main): Add tests for [MX] shaded specification in POSIX.
26594         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26595         (Depends-on): Add isnanf-nolibm.
26597         ceill-ieee tests: More tests.
26598         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26599         (main): Add tests for [MX] shaded specification in POSIX.
26600         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26601         (Depends-on): Add isnanl-nolibm.
26603         ceil-ieee tests: More tests.
26604         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26605         (main): Add tests for [MX] shaded specification in POSIX.
26606         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26607         (Depends-on): Add isnand-nolibm.
26609         ceilf-ieee tests: More tests.
26610         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26611         (main): Add tests for [MX] shaded specification in POSIX.
26612         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26613         (Depends-on): Add isnanf-nolibm.
26615         floorl-ieee tests: More tests.
26616         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26617         (main): Add tests for [MX] shaded specification in POSIX.
26618         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26619         (Depends-on): Add isnanl-nolibm.
26621         floor-ieee tests: More tests.
26622         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26623         (main): Add tests for [MX] shaded specification in POSIX.
26624         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26625         (Depends-on): Add isnand-nolibm.
26627         floorf-ieee tests: More tests.
26628         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26629         (main): Add tests for [MX] shaded specification in POSIX.
26630         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26631         (Depends-on): Add isnanf-nolibm.
26633 2012-02-26  Bruno Haible  <bruno@clisp.org>
26635         fpieee: More comments.
26636         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26638 2012-02-25  Bruno Haible  <bruno@clisp.org>
26640         Tests for module 'log10l'.
26641         * modules/log10l-tests: New file.
26642         * tests/test-log10l.c: New file.
26643         * tests/test-math-c++.cc: Check the declaration of log10l.
26645         New module 'log10l'.
26646         * lib/math.in.h (log10l): New declaration.
26647         * lib/log10l.c: New file.
26648         * m4/log10l.m4: New file.
26649         * modules/log10l: New file.
26650         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26652         HAVE_DECL_LOG10L.
26653         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26654         HAVE_DECL_LOG10L.
26655         * doc/posix-functions/log10l.texi: Mention the new module.
26657 2012-02-25  Bruno Haible  <bruno@clisp.org>
26659         fmodl, remainder*: Avoid wrong results due to rounding errors.
26660         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26661         expected bounds.
26662         * lib/remainderf.c (remainderf): Likewise.
26663         * lib/remainder.c (remainder): Likewise.
26664         * lib/remainderl.c (remainderl): Likewise.
26666 2012-02-25  Bruno Haible  <bruno@clisp.org>
26668         Tests for module 'remainderl'.
26669         * modules/remainderl-tests: New file.
26670         * tests/test-remainderl.c: New file.
26671         * tests/test-math-c++.cc: Check the declaration of remainderl.
26673         New module 'remainderl'.
26674         * lib/math.in.h (remainderl): New declaration.
26675         * lib/remainderl.c: New file.
26676         * m4/remainderl.m4: New file.
26677         * modules/remainderl: New file.
26678         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26680         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26681         HAVE_REMAINDERL.
26682         * doc/posix-functions/remainderl.texi: Mention the new module.
26684 2012-02-25  Bruno Haible  <bruno@clisp.org>
26686         Tests for module 'remainderf'.
26687         * modules/remainderf-tests: New file.
26688         * tests/test-remainderf.c: New file.
26689         * tests/test-math-c++.cc: Check the declaration of remainderf.
26691         New module 'remainderf'.
26692         * lib/math.in.h (remainderf): New declaration.
26693         * lib/remainderf.c: New file.
26694         * m4/remainderf.m4: New file.
26695         * modules/remainderf: New file.
26696         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26698         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26699         HAVE_REMAINDERF.
26700         * doc/posix-functions/remainderf.texi: Mention the new module.
26702 2012-02-25  Bruno Haible  <bruno@clisp.org>
26704         remainder: Support for MSVC.
26705         * lib/math.in.h (remainder): New declaration.
26706         * lib/remainder.c: New file.
26707         * m4/remainder.m4: New file.
26708         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26709         (Depends-on): Add math, round, fma.
26710         (configure.ac): Use results of gl_FUNC_REMAINDER.
26711         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26713         HAVE_DECL_REMAINDER.
26714         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26715         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26716         * tests/test-math-c++.cc: Check the declaration of remainder.
26717         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26718         problems are fixed.
26720 2012-02-25  Bruno Haible  <bruno@clisp.org>
26722         Tests for module 'fmodl'.
26723         * modules/fmodl-tests: New file.
26724         * tests/test-fmodl.c: New file.
26725         * tests/test-math-c++.cc: Check the declaration of fmodl.
26727         New module 'fmodl'.
26728         * lib/math.in.h (fmodl): New declaration.
26729         * lib/fmodl.c: New file.
26730         * m4/fmodl.m4: New file.
26731         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26733         REPLACE_FMODL.
26734         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26735         REPLACE_FMODL.
26736         * modules/fmodl: New file.
26737         * doc/posix-functions/fmodl.texi: Mention the new module.
26739 2012-02-25  Bruno Haible  <bruno@clisp.org>
26741         Tests for module 'modfl'.
26742         * modules/modfl-tests: New file.
26743         * tests/test-modfl.c: New file.
26744         * tests/test-math-c++.cc: Check the declaration of modfl.
26746         New module 'modfl'.
26747         * lib/math.in.h (modfl): New declaration.
26748         * lib/modfl.c: New file.
26749         * m4/modfl.m4: New file.
26750         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26752         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26753         * modules/modfl: New file.
26754         * doc/posix-functions/modfl.texi: Mention the new module.
26756 2012-02-25  Bruno Haible  <bruno@clisp.org>
26758         Tests for module 'fabsl'.
26759         * modules/fabsl-tests: New file.
26760         * tests/test-fabsl.c: New file.
26761         * tests/test-math-c++.cc: Check the declaration of fabsl.
26763         New module 'fabsl'.
26764         * lib/math.in.h (fabsl): New declaration.
26765         * lib/fabsl.c: New file.
26766         * m4/fabsl.m4: New file.
26767         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26769         REPLACE_FABSL.
26770         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26771         REPLACE_FABSL.
26772         * modules/fabsl: New file.
26773         * doc/posix-functions/fabsl.texi: Mention the new module.
26775 2012-02-25  Bruno Haible  <bruno@clisp.org>
26777         fabs tests: More tests.
26778         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26779         (zero): New variable.
26780         (main): Add tests for signed zero.
26781         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26783         fabsf tests: More tests.
26784         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26785         (zero): New variable.
26786         (main): Add tests for signed zero.
26787         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26789 2012-02-24  Bruno Haible  <bruno@clisp.org>
26791         atanl: Provide function definition on MSVC.
26792         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26793         function pointer.
26794         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26796 2012-02-24  Bruno Haible  <bruno@clisp.org>
26798         acosl: Provide function definition on MSVC.
26799         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26800         function pointer.
26801         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26803 2012-02-24  Bruno Haible  <bruno@clisp.org>
26805         asinl: Provide function definition on MSVC.
26806         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26807         function pointer.
26808         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26810 2012-02-24  Bruno Haible  <bruno@clisp.org>
26812         tanl: Provide function definition on MSVC.
26813         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26814         function pointer.
26815         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26817 2012-02-24  Bruno Haible  <bruno@clisp.org>
26819         cosl: Provide function definition on MSVC.
26820         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26821         function pointer.
26822         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26824 2012-02-24  Bruno Haible  <bruno@clisp.org>
26826         sinl: Provide function definition on MSVC.
26827         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26828         function pointer.
26829         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26831 2012-02-24  Bruno Haible  <bruno@clisp.org>
26833         logl: Provide function definition on MSVC.
26834         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26835         function pointer.
26836         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26838 2012-02-24  Bruno Haible  <bruno@clisp.org>
26840         expl: Provide function definition on MSVC.
26841         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26842         function pointer.
26843         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26845 2012-02-24  Bruno Haible  <bruno@clisp.org>
26847         sqrtl: Provide function definition on MSVC.
26848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26849         a function pointer.
26850         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26852 2012-02-24  Bruno Haible  <bruno@clisp.org>
26854         ceill: Provide function definition on MSVC.
26855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26856         used as a function pointer.
26857         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26859 2012-02-24  Bruno Haible  <bruno@clisp.org>
26861         floorl: Provide function definition on MSVC.
26862         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26863         used as a function pointer.
26864         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26866 2012-02-24  Bruno Haible  <bruno@clisp.org>
26868         ceilf: Provide function definition on MSVC.
26869         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26870         used as a function pointer.
26871         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26873 2012-02-24  Bruno Haible  <bruno@clisp.org>
26875         floorf: Provide function definition on MSVC.
26876         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26877         used as a function pointer.
26878         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26880 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26882         stdnoreturn: new module
26883         This implements a replacement for C11's <stdnoreturn.h>.
26884         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26885         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26886         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26887         * tests/test-stdnoreturn.c: New files.
26889 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26891         regex: fix false multibyte matches in some regular expressions
26892         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26893         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26894         * lib/regex_internal.c (re_string_skip_chars):
26895         Fix miscomputation of remain_len that may cause incomplete
26896         multi-byte character and false match.
26898 2012-02-24  Jim Meyering  <meyering@redhat.com>
26900         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26901         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26902         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26903         Remove now-unnecessary str''cmp obfuscation.
26904         Suggested by Akim Demaille.
26906 2012-02-24  Bruno Haible  <bruno@clisp.org>
26908         streq: Rename macro.
26909         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26910         * NEWS: Mention the change.
26911         * lib/mbrtowc.c (mbrtowc): Update.
26912         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26913         * lib/wcwidth.c (wcwidth): Update.
26914         Suggested by Akim Demaille and Jim Meyering.
26916 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26918         regex: fix typo in definition of MIN
26919         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26920         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26922 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26923             Bruno Haible  <bruno@clisp.org>
26925         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26926         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26927         entries into a stack-allocated buffer directly.
26928         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26930 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26931             Bruno Haible  <bruno@clisp.org>
26933         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26935          - There were several instances of this pattern:
26937              for (;;) {
26938                n = acl (f, GETACLCNT, 0, NULL);
26939                [ allocate an array A of size N ]
26940                if (acl (f, GETACL, n, a) == n)
26941                  break;
26942              }
26944            This loop might never terminate if some other process is constantly
26945            manipulating the file's ACL.  The loop should be rewritten to
26946            terminate.
26948          - The acl (... GETACLNT ...) call is merely an optimization; its value
26949            is merely a hint as to how big to make the array.  A better
26950            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26951            and just guess a reasonably-big size, growing the size and trying
26952            again if it's not large enough.  This guarantees termination, and
26953            saves a system call.
26955         * lib/acl-internal.h: Include <limits.h>.
26956         (MIN, SIZE_MAX): New macros.
26957         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26958         a stack-allocated buffer, and use malloc if it does not fit. Don't
26959         use GETACLCNT.
26960         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26962 2012-02-19  Bruno Haible  <bruno@clisp.org>
26964         acl: Fix endless loop on Solaris with vxfs.
26965         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26966         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26967         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26968         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26969         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26970         Reported by Bill Jones in
26971         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26973 2012-02-19  Bruno Haible  <bruno@clisp.org>
26975         acl: Fix copy-acl test failure on Solaris 11.0.
26976         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26977         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26978         that this function returns 0 in some more cases.
26980 2012-02-19  Bruno Haible  <bruno@clisp.org>
26982         acl: Update doc references.
26983         * doc/acl-resources.txt: Update links to Solaris documentation.
26985 2012-02-19  Bruno Haible  <bruno@clisp.org>
26987         Fix test failure in many locales on Solaris 11.
26988         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26989         'tr' arguments.
26990         * tests/test-pipe-filter-ii1.c (main): Likewise.
26991         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26992         expressions in the C locale.
26993         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26994         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26996 2012-02-19  Bruno Haible  <bruno@clisp.org>
26998         gnulib-tool: Improve usage message.
26999         * gnulib-tool (func_usage): Move doc of --help and --version to the
27000         section "Operation modes".
27002 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
27004         README-release: make it easier to execute commands
27005         * top/README-release: break commands out on to separate lines.
27007 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
27009         GNUmakefile: simplify detection of unconfigured trees
27010         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
27011         whether the tree make is being run from is already configured or
27012         not.  Related simplifications.
27014 2012-02-13  Simon Josefsson  <simon@josefsson.org>
27016         * gnulib-tool (func_usage): Document --help and --version.
27018 2012-02-11  Jim Meyering  <meyering@redhat.com>
27020         bootstrap: don't exit 0 upon gnulib-tool failure
27021         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
27022         its exit status, not 0.
27024 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
27026         README-release: various improvements
27027         * top/README-release: Give a command to push changes for the
27028         release.  Add "distcheck" to list of other pre-release checks.
27029         Fix instance of "make stable" which should be "make TYPE".
27031 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27033         maint: replace FSF snail-mail addresses with URLs
27034         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
27035         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
27036         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
27037         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
27038         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
27039         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
27040         * lib/check-version.c, lib/check-version.h, lib/config.charset:
27041         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
27042         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
27043         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
27044         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
27045         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
27046         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
27047         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
27048         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
27049         * lib/glthread/thread.c, lib/glthread/thread.h:
27050         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
27051         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
27052         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
27053         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
27054         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
27055         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
27056         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
27057         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
27058         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
27059         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
27060         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
27061         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
27062         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
27063         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
27064         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
27065         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
27066         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
27067         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
27068         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
27069         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
27070         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
27071         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
27072         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
27073         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
27074         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
27075         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
27076         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
27077         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
27078         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
27079         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
27080         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
27081         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
27082         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
27083         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
27084         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
27085         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
27086         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
27087         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
27088         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
27089         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
27090         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
27091         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
27092         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
27093         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
27094         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
27095         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
27096         * tests/test-poll.c, tests/test-quotearg-simple.c:
27097         * tests/test-quotearg.c, tests/test-quotearg.h:
27098         * tests/test-round-ieee.c, tests/test-round1.c:
27099         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
27100         * tests/test-roundl-ieee.c, tests/test-roundl.c:
27101         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
27102         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
27103         * tests/test-strerror.c, tests/test-strerror_r.c:
27104         * tests/test-strsignal.c, tests/test-strverscmp.c:
27105         * tests/test-xmemdup0.c:
27106         Replace FSF snail mail addresses with URLs, as per GNU coding
27107         standards.  See glibc bug
27108         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27110 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27112         README-release: capitalize a word and split a line
27113         * top/README-release: Fix punctuation and spacing.
27115 2012-02-08  Akim Demaille  <demaille@gostai.com>
27117         fatal-signal: use C prototypes (with explicit void).
27118         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27119         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27121 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27123         regex: spelling fix
27124         * lib/regexec.c: spelling fix
27126         regex: rely on stdint.h for SIZE_MAX
27127         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27129 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27131         regex: merge glibc changes
27133         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27134         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27135         (init_word_char): Work even if bitset words are not exactly 32 or
27136         64 bits wide.  Don't assume there are no padding bits.
27137         * lib/regex.c [_LIBC]: Do not include <config.h>.
27138         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27139         and -Wtype-limits.
27140         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27141         needless disagreement with glibc.  All uses changed.  Define it to
27142         1 only if _GNU_SOURCE, to match glibc.
27143         (_REG_RM_NAME): Remove; no longer needed, since the names in
27144         question are now all protected by __USE_GNU.
27145         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27146         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27147         * lib/regex_internal.h (MIN): New macro.
27149         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27150         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27152         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27153         * lib/regex_internal.c (re_string_fetch_byte_case):
27154         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27155         is miscompiled, and it turns out it is because of an incorrect
27156         attribute on re_string_fetch_byte_case.  Unlike
27157         re_string_peek_byte_case, this one is really not pure, it modifies
27158         memory (increments pstr->cur_idx), and with the pure attribute GCC
27159         assumed it doesn't and it cached the presumed value of
27160         regexp->cur_idx in a variable across the
27161          for (;; ++i)
27162            {
27163              if (i >= BRACKET_NAME_BUF_SIZE)
27164                return REG_EBRACK;
27165              if (token->type == OP_OPEN_CHAR_CLASS)
27166                ch = re_string_fetch_byte_case (regexp);
27167              else
27168                ch = re_string_fetch_byte (regexp);
27169              if (re_string_eoi(regexp))
27170                return REG_EBRACK;
27171              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27172                break;
27173              elem->opr.name[i] = ch;
27174            }
27176         2011-11-29 Andreas Schwab <schwab@redhat.com>
27177         * lib/regcomp.c (build_equiv_class):
27178         Fix access after end of search string in regex matcher.
27180         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27181         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27183         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27184         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27186         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27187         * lib/regcomp.c (parse_branch, parse_sub_exp):
27188         More regex memory leak fixes and tests.
27189         (parse_sub_exp, parse_bracket_exp):
27190         Fix memory leak for some invalid regular expressions.
27192         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27193         * lib/regex_internal.c, lib/regexec.c:
27194         Fix unnecessary overallocation due to incomplete character.  When
27195         incomplete characters are found at the end of a string the code
27196         ran amok and allocated lots of memory.  Stricter limits are now in
27197         place.
27199         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27200         * lib/regex.h: Update documentation.
27202         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27203         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27205         2010-05-05 Andreas Schwab <schwab@redhat.com>
27206         * lib/regexec.c (find_collation_sequence_value):
27207         Fix lookup of collation sequence value during regexp matching.
27209         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27210         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27212         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27213         * lib/regex.h: Cleanup namespace.
27215         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27216         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27218         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27219         * lib/regex_internal.h: Prevent some declarations and definitions
27220         to be seen when used in tests.
27222         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27223         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27224         __libc_lock_* macros if not _LIBC.
27225         (struct re_dfa_t): Add lock.
27227 2012-02-07  Eric Blake  <eblake@redhat.com>
27229         maint.mk: also prohibit lower-case @var@
27230         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27231         lower case, like @top_srcdir@.
27233 2012-02-04  Eric Blake  <eblake@redhat.com>
27235         canonicalize: avoid uninitialized memory use
27236         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27237         random '/' left in dest.
27238         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27240 2012-02-04  Bruno Haible  <bruno@clisp.org>
27242         isatty: Fix test failure of ptsname_r on native Windows.
27243         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27244         and don't set errno.
27245         (isatty): Test first whether fd is valid. Set errno when returning 0.
27247 2012-02-04  Bruno Haible  <bruno@clisp.org>
27249         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27250         * tests/test-spawn-pipe-main.c: Include progname.h.
27251         (main): Invoke set_program_name.
27252         * modules/spawn-pipe-tests (Depends-on): Add progname.
27254         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27255         * tests/test-nonblocking-socket-main.c: Include progname.h.
27256         (main): Invoke set_program_name.
27257         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27259         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27260         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27261         (main): Invoke set_program_name.
27262         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27264 2012-02-04  Eric Blake  <eblake@redhat.com>
27266         canonicalize-lgpl: fix // handling
27267         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27269         canonicalize: fix // handling
27270         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27271         /// to //, since only // is special.
27273 2012-02-04  Bruno Haible  <bruno@clisp.org>
27275         ioctl: Fix test failure on native Windows.
27276         * lib/ioctl.c: Include msvc-nothrow.h.
27277         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27279 2012-02-04  Bruno Haible  <bruno@clisp.org>
27281         fsync: Avoid test failure on native Windows.
27282         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27283         read-only.
27285 2012-02-04  Bruno Haible  <bruno@clisp.org>
27287         sys_select: Avoid syntax error on OpenBSD 5.0.
27288         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27289         currently being included, just include the system's <sys/select.h>.
27291 2012-02-04  Bruno Haible  <bruno@clisp.org>
27293         sys_select: Avoid syntax error on OpenBSD 5.0.
27294         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27295         <sys/select.h>, not before.
27296         Reported by Jiri B <jirib@devio.us>.
27298 2012-02-04  Bruno Haible  <bruno@clisp.org>
27300         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27301         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27302         global variables.
27303         * tests/test-get-rusage-data.c (main): Likewise.
27304         Reported by Jim Meyering.
27306 2012-02-04  Bruno Haible  <bruno@clisp.org>
27308         stdioext: Fix last commit.
27309         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27311 2012-02-03  Bruno Haible  <bruno@clisp.org>
27313         stdioext: Add tentative support for Plan9.
27314         * lib/stdio-impl.h: Include <errno.h>.
27315         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27316         * lib/freadable.c (freadable): Likewise.
27317         * lib/fwritable.c (fwritable): Likewise.
27318         * lib/fbufmode.c (fbufmode): Likewise.
27319         * lib/freading.c (freading): Likewise.
27320         * lib/fwriting.c (fwriting): Likewise.
27321         * lib/freadptr.c (freadptr): Likewise.
27322         * lib/freadseek.c (freadptrinc): Likewise.
27323         * lib/freadahead.c (freadahead): Likewise.
27324         * lib/fpurge.c (fpurge): Likewise.
27325         * lib/fseeko.c (rpl_fseeko): Likewise.
27326         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27327         Reported by Jens Staal <staal1978@gmail.com>.
27329 2012-02-02  Jim Meyering  <meyering@redhat.com>
27331         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27332         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27333         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27334         not even to try to add the attribute.  Instead, add a pragma to suppress
27335         the suggestion/warning.
27337 2012-01-31  Karl Berry  <karl@gnu.org>
27339         setstate doc: typo.
27340         * doc/posix-functions/setstate.texi (setstate): { not (.
27342 2012-01-31  Bruno Haible  <bruno@clisp.org>
27344         popen: Make more robust on Windows.
27345         * lib/popen.c: On native Windows, use the _popen based code even if
27346         HAVE_POPEN is set.
27347         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27348         environment variable on native Windows.
27350 2012-01-30  Bruno Haible  <bruno@clisp.org>
27352         pclose: Fix typo.
27353         * lib/stdio.in.h (pclose): Fix typo in warning message.
27355 2012-01-30  Bruno Haible  <bruno@clisp.org>
27357         doc about getlogin_r, setstate.
27358         * doc/posix-functions/getlogin_r.texi: List the incompatible
27359         declaration problem under "not fixed by gnulib".
27360         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27361         problem on Solaris 11 and other platforms.
27363 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27364             Bruno Haible  <bruno@clisp.org>
27366         poll tests: Make test more robust.
27367         * tests/test-poll.c: Include macros.h.
27368         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27369         return value of various I/O operations.
27370         * modules/poll-tests (Files): Add tests/macros.h.
27372 2012-01-30  Bruno Haible  <bruno@clisp.org>
27374         sys_stat: Fix support for mingw64 and MSVC.
27375         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27376         header files already do it.
27377         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27378         stat itself.
27379         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27381 2012-01-30  Bruno Haible  <bruno@clisp.org>
27383         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27385         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27387 2012-01-29  Bruno Haible  <bruno@clisp.org>
27389         quotearg: Fix test failure on MacOS X 10.5.
27390         * tests/test-quotearg-simple.c: Include localcharset.h.
27391         (main): If the locale encoding is not ASCII, bypass the tests of
27392         locale_quoting_style and clocale_quoting_style.
27393         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27395 2012-01-29  Jim Meyering  <meyering@redhat.com>
27397         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27398         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27399         detect uses of canonicalize_file_name.
27401 2012-01-28  Bruno Haible  <bruno@clisp.org>
27403         test-framework-sh: Fix test failure with AIX 7.1 diff.
27404         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27405         in column 1, like 'diff -c' does.
27406         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27407         whether 'diff -u' is used. Instead, test whether the output contains
27408         some '@' character.
27410 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27412         strtoimax: eliminate need for stdint.h, inttypes.h checks
27413         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27414         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27415         the prerequisites for a recently-introduced strtoimax test.
27416         I guess this might cause strtoimax to be replaced when not
27417         strictly necessary on older hosts, but this shouldn't introduce
27418         any bugs and it should make Emacs 'configure' faster on typical
27419         modern hosts.  Problem discovered when importing the latest gnulib
27420         to an Emacs test version.
27421         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27423 2012-01-28  Bruno Haible  <bruno@clisp.org>
27425         sys_time: Override 'struct timeval' on some native Windows platforms.
27426         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27427         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27428         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27429         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27430         needs to be overridden.
27431         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27432         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27433         * tests/test-sys_select.c: Check that the tv_sec member has the same
27434         size as a 'time_t'.
27435         * tests/test-sys_time.c: Likewise.
27436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27437         is set, set also REPLACE_GETTIMEOFDAY.
27438         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27439         convert the resulting 'struct timeval' before returning.
27440         * lib/select.c: Include <sys/time.h>.
27441         (select, timeval): Undefine at the right place.
27442         * modules/select (Depends-on): Add sys_time.
27443         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27444         some Windows platforms.
27445         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27447 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27449         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27450         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27451         an integer.
27452         * lib/fcntl.c (dupfd): Likewise.
27453         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27455 2012-01-28  Bruno Haible  <bruno@clisp.org>
27457         fcntl: Avoid compilation error on native Windows.
27458         * modules/fcntl (Depends-on): Add 'close'.
27460 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27462         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27463         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27464         pointer to an integer.
27465         * lib/poll.c (IsConsoleHandle): Likewise.
27466         * lib/isatty.c (IsConsoleHandle): Likewise.
27468 2012-01-28  Jim Meyering  <meyering@redhat.com>
27470         doc: clarify README-release
27471         * top/README-release: Clarify: you should make a point to have
27472         the latest stable versions of build tools in your PATH, and the
27473         reference to buildreq is solely for its list of tool names, not
27474         for its minimal-functional version numbers.
27475         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27477         maint.mk: use more readable (yet functionally equivalent) quoting
27478         It is common to quote a single quote in a single quoted string like
27479         this:  '...'\''...'.  Unless you know the idiom, that looks like
27480         gibberish, so prefer to double-quote the string when possible.
27481         Then you can use a more readable, lone single quote: "...'..."
27482         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27483         "don't" is more readable than the equivalent 'don'\''t'.
27484         (sc_cast_of_x_alloc_return_value): Likewise.
27485         (sc_cast_of_alloca_return_value): Likewise.
27486         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27487         rather than '\'':'\''.
27489 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27491         stdalign: relax _Alignof and tighten _Alignas test
27492         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27493         as it was too strict: alignof must divide offsetof, but it need
27494         not equal offsetof.  Inspired by Joseph S. Myers's comment
27495         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27496         Conversely, tighten the _Alignas test a bit, as the resulting
27497         alignment must be exactly 8.
27499 2012-01-27  Bruno Haible  <bruno@clisp.org>
27501         stdalign: Document the last change.
27502         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27504 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27506         stdalign: check that alignof and offsetof are consistent
27507         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27508         Problem reported for gnulib by Richard W.M. Jones in
27509         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27511 2012-01-27  Jim Meyering  <meyering@redhat.com>
27513         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27514         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27515         convert a sequence with gaps to the minimal containing range.
27516         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27517         * tests/test-update-copyright.sh: Test for this.
27518         The FSF confirmed it is ok to do this, assuming there is at
27519         least one significant change per year in the affected range:
27520         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27522 2012-01-26  Bruno Haible  <bruno@clisp.org>
27524         pipe2: refine doc about thread-safety
27525         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27526         multithread-safety problem.
27527         * doc/glibc-functions/accept4.texi: Likewise.
27529 2012-01-26  Bruno Haible  <bruno@clisp.org>
27531         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27532         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27533         In the test program, include <fcntl.h>, for O_RDONLY.
27535 2012-01-26  Eric Blake  <eblake@redhat.com>
27537         pipe2: document lack of thread-safety in replacement
27538         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27539         issue in replacement.
27540         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27541         Based on a report by Eric Wong.
27543 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27544             Bruno Haible  <bruno@clisp.org>
27546         malloca: Avoid warnings on x86_64 mingw64.
27547         * lib/malloca.c: Include <stdint.h>.
27548         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27549         * modules/malloca (Depends-on): Add stdint.
27550         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27552 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27554         obstack: remove __STDC__ conditionals
27555         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27556         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27557         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27558         m4/include_next.m4 as the only gnulib-maintained places that still
27559         refer to __STDC__.
27561 2012-01-24  Bruno Haible  <bruno@clisp.org>
27563         havelib: Modern quoting.
27564         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27565         the recent change to the GNU coding standards.
27567 2012-01-24  Bruno Haible  <bruno@clisp.org>
27569         stdint: Improve support for Android.
27570         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27571         Reported by Simon Josefsson <simon@josefsson.org>.
27573 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27575         doc: omit trailing empty lines from INSTALL etc.
27576         * doc/Makefile (INSTALL): Omit trailing empty lines.
27577         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27578         omit trailing empty lines.  This simplifies the build procedure.
27580 2012-01-23  Jim Meyering  <meyering@redhat.com>
27582         tests: avoid spurious warnings about gl_sockets_startup
27583         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27584         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27585         reporting a "statement with no effect".
27586         * tests/test-accept.c (main): Mark as "(void)".
27587         * tests/test-accept4.c (main): Likewise.
27588         * tests/test-bind.c (main): Likewise.
27589         * tests/test-connect.c (main): Likewise.
27590         * tests/test-getpeername.c (main): Likewise.
27591         * tests/test-getsockname.c (main): Likewise.
27592         * tests/test-getsockopt.c (main): Likewise.
27593         * tests/test-listen.c (main): Likewise.
27594         * tests/test-recv.c (main): Likewise.
27595         * tests/test-recvfrom.c (main): Likewise.
27596         * tests/test-send.c (main): Likewise.
27597         * tests/test-sendto.c (main): Likewise.
27598         * tests/test-setsockopt.c (main): Likewise.
27599         * tests/test-shutdown.c (main): Likewise.
27601 2012-01-21  Bruno Haible  <bruno@clisp.org>
27603         locale-fr.m4: Fix for Android.
27604         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27605         failure of the test program on Bionic libc.
27607 2012-01-21  Jim Meyering  <meyering@redhat.com>
27609         bootstrap: fail when bootstrap_post_import_hook fails
27610         Otherwise, it's far too easy to miss diagnostics emitted
27611         between gnulib-tool's output and that of running configure.
27612         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27614 2012-01-17  Jim Meyering  <meyering@redhat.com>
27616         maint: enable sc_trailing_blank
27617         * build-aux/pmccabe.css: Remove trailing blanks.
27618         * doc/acl-cygwin.txt: Likewise.
27619         * doc/gnu-oids.texi: Likewise
27620         * cfg.mk: Enable sc_trailing_blank.
27621         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27623 2012-01-17  Jim Meyering  <meyering@redhat.com>
27625         maint: enable sc_prohibit_openat_without_use
27626         * cfg.mk: Enable sc_prohibit_openat_without_use.
27627         Exempt lib/selinux-at.c.
27629 2012-01-17  Jim Meyering  <meyering@redhat.com>
27631         maint: enable sc_prohibit_cloexec_without_use
27632         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27633         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27635 2012-01-17  Jim Meyering  <meyering@redhat.com>
27637         maint: enable sc_prohibit_intprops_without_use
27638         * cfg.mk: Enable sc_prohibit_intprops_without_use
27639         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27641 2012-01-17  Jim Meyering  <meyering@redhat.com>
27643         maint: enable sc_prohibit_hash_pjw_without_use
27644         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27645         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27646         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27647         following " (".
27649 2012-01-17  Jim Meyering  <meyering@redhat.com>
27651         maint: enable double-word-prohibiting rule
27652         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27653         Exempt three files.
27655 2012-01-17  Jim Meyering  <meyering@redhat.com>
27657         maint: remove empty lines at EOF, but excluding modules/*
27658         Apply syntax rules at home as well as abroad.  Most changes
27659         were induced by running this:
27660           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27661             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27662             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27663         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27664         Exempt modules/* and two binary files.
27665         Also exempt doc/INSTALL*, per request from Bruno Haible.
27666         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27667         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27668         * doc/Copyright/request-assign.future: Likewise.
27669         * doc/Copyright/request-disclaim.changes: Likewise.
27670         * doc/INSTALL: Likewise.
27671         * doc/INSTALL.ISO: Likewise.
27672         * doc/INSTALL.UTF-8: Likewise.
27673         * doc/acl-cygwin.txt: Likewise.
27674         * doc/acl-resources.txt: Likewise.
27675         * doc/fdl-1.2.texi: Likewise.
27676         * doc/fdl-1.3.texi: Likewise.
27677         * doc/fdl.texi: Likewise.
27678         * lib/argp-pin.c: Likewise.
27679         * lib/round.c: Likewise.
27680         * lib/unicase/u16-totitle.c: Likewise.
27681         * lib/unictype/block_test.c: Likewise.
27682         * lib/uninorm/canonical-decomposition.c: Likewise.
27683         * m4/README: Likewise.
27684         * m4/relocatable-lib.m4: Likewise.
27685         * tests/test-isnand-nolibm.c: Likewise.
27686         * tests/test-isnand.c: Likewise.
27687         * tests/uninorm/NormalizationTest.txt: Likewise.
27689 2012-01-17  Jim Meyering  <meyering@redhat.com>
27691         maint: add framework to run syntax-check rules against gnulib sources
27692         * cfg.mk: New file, to disable all currently-failing tests.
27693         We'll enable them one by one, as they are made to pass.
27694         * Makefile (sc_maint): New rule.
27696 2012-01-21  Bruno Haible  <bruno@clisp.org>
27698         stdint: Add support for Android.
27699         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27700         include the system's <stdint.h>.
27701         Reported by Simon Josefsson <simon@josefsson.org>.
27703 2012-01-19  Jim Meyering  <meyering@redhat.com>
27705         bootstrap: add bootstrap_post_import_hook
27706         Bison does still need something like the gnulib_mk_hook whose
27707         invocation I had to remove along with slurp in commit 767ccd40.
27708         Technically, we could get along without it, but doing so would
27709         have required living with a warning and a mandatory post-bootstrap
27710         automake rerun.
27711         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27712         (bootstrap_post_import_hook): New function.
27713         Invoke it after gnulib-tool --import and before autoreconf.
27715 2012-01-18  Jim Meyering  <meyering@redhat.com>
27717         gitlog-to-changelog: don't use "no_"-prefixed variable name
27718         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27719         to enable both --cluster and --no-cluster.  Change variable name,
27720         s/\$no_cluster/$cluster/, and reverse usage to match.
27722         gitlog-to-changelog: use "||", not "or" in expressions
27723         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27724         expressions.
27726 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27728         gitlog-to-changelog: new option --no-cluster
27729         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27730         clustering of adjacent commit messages.
27732 2012-01-17  Jim Meyering  <meyering@redhat.com>
27734         maint: spell file systems with two words, not one
27735         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27736         two words, not one.
27738 2012-01-16  Jim Meyering  <meyering@redhat.com>
27740         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27741         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27743 2012-01-16  Eric Blake  <eblake@redhat.com>
27745         bootstrap: cater to autoconf 2.59
27746         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27747         is not available.
27749         bootstrap: properly check for libtool
27750         * build-aux/bootstrap (libtoolize): Also run libtool when older
27751         usage is detected.
27753 2012-01-15  Bruno Haible  <bruno@clisp.org>
27755         Improve support for MSVC 9.
27756         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27757         clashes on MSVC.
27758         * lib/fcntl.in.h: Likewise.
27759         * lib/stdlib.in.h: Likewise.
27760         * lib/sys_stat.in.h: Likewise.
27762 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27764         gnupload: we hold the master copy of this script now
27765         For motivation and more information, see:
27766         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27767         * build-aux/gnupload: Make it clear in the heading comments that the
27768         master copy of this file is maintained by gnulib.  Since we are at
27769         it, bump its copyright year and ...
27770         ($scriptversion): ... the date in its version.
27771         ($usage): Patches and bug reports should be sent to the gnulib list,
27772         not the automake one.
27773         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27774         anymore.
27776 2012-01-15  Bruno Haible  <bruno@clisp.org>
27778         Fix module 'random'.
27779         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27780         initstate, setstate are declared.
27782 2012-01-14  Bruno Haible  <bruno@clisp.org>
27784         Tests for module 'random'.
27785         * modules/random-tests: New file.
27786         * tests/test-random.c: New file, based on tests/test-random_r.c.
27788         New module 'random'.
27789         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27790         declarations.
27791         * lib/random.c: New file, based on glibc/stdlib/random.c.
27792         * m4/random.m4: New file.
27793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27794         HAVE_RANDOM.
27795         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27796         * modules/random: New file.
27797         * config/srclist.txt: Add an entry for random.c.
27798         * doc/posix-functions/random.texi: Mention the 'random' module.
27799         * doc/posix-functions/initstate.texi: Likewise.
27800         * doc/posix-functions/setstate.texi: Likewise.
27801         * doc/posix-functions/srandom.texi: Likewise.
27803 2012-01-12  Bruno Haible  <bruno@clisp.org>
27805         random_r: Use common idioms.
27806         * lib/random_r.c: Include <stdlib.h> first.
27808         random_r: Override incompatible API on AIX, OSF/1.
27809         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27810         Override the system function if REPLACE_RANDOM_R is 1.
27811         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27812         and OSF/1, set REPLACE_RANDOM_R.
27813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27814         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27815         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27816         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27817         * doc/glibc-functions/random_r.texi: Likewise.
27818         * doc/glibc-functions/setstate_r.texi: Likewise.
27820         random_r: Support for MSVC 9.
27821         * lib/random_r.c: Include stdint.h, not inttypes.h.
27823 2012-01-12  Eric Blake  <eblake@redhat.com>
27825         inet_ntop: guard extra work by IF_LINT
27826         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27827         better code generation when not checking for warnings.
27828         Suggested by Paul Eggert and Jim Meyering.
27830         strptime: fix regression on mingw
27831         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27832         Fix regression.  Reported by Bruno Haible.
27834 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27835             Bruno Haible  <bruno@clisp.org>
27837         copy-file: add error-code-returning variant.
27838         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27839         (qcopy_file_preserving): New declaration.
27840         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27841         copy_file_preserving. Change return type to 'int'. Don't emit an error
27842         message here.
27843         (copy_file_preserving): New function.
27844         * tests/test-copy-file.c: Include <stdlib.h>.
27845         (main): Test qcopy_file_preserving if the environment variable
27846         NO_STDERR_OUTPUT is set.
27847         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27848         with NO_STDERR_OUTPUT
27849         * tests/test-copy-file-2.sh: Likewise.
27851 2012-01-10  Bruno Haible  <bruno@clisp.org>
27853         copy-file: Use 'quote' module consistently.
27854         * lib/copy-file.c (copy_file_preserving): Use quote().
27856         copy-file: Refactor.
27857         * lib/copy-file.c: Include quote.h.
27858         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27859         message here.
27860         * modules/copy-file (Depends-on): Add quote.
27862         acl: Export qcopy_acl.
27863         * lib/acl.h (qcopy_acl): New declaration.
27864         * lib/copy-acl.c (qcopy_acl): Make non-static.
27866         acl: Rename a local variable.
27867         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27869         acl: Align return values of copy_acl and qcopy_acl.
27870         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27871         maybe < -1.
27873 2012-01-11  Eric Blake  <eblake@redhat.com>
27875         strptime: silence gcc warnings
27876         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27877         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27878         Reported by Daniel P. Berrange.
27880         inet_ntop: silence gcc warning
27881         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27882         Reported by Daniel P. Berrange.
27884 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27886         getloadavg test: skip the test on GNU/Linux without /proc mounted
27887         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27888         file.  When /proc is not mounted, it always fails with ENOENT.
27889         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27890         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27892 2012-01-10  Bruno Haible  <bruno@clisp.org>
27894         regex: Avoid link error on MSVC 9.
27895         * modules/regex (Depends-on): Add wctype.
27897 2012-01-10  Bruno Haible  <bruno@clisp.org>
27899         doc: Mention --with-tests option.
27900         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27901         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27902         --with-tests.
27903         Reported by Reuben Thomas.
27905 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27907         users.txt: order package names lexicographically.
27908         * users.txt: Order package names lexicographically.
27910 2012-01-10  Jim Meyering  <meyering@redhat.com>
27912         maint.mk: fix description in comment
27913         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27915         ignore-value: remove deprecated ignore_ptr function
27916         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27917         * NEWS: Note this.
27919 2012-01-09  Jim Meyering  <meyering@redhat.com>
27921         test-init.sh: avoid a subshell
27922         * tests/test-init.sh: Remove protective subshell.
27923         Suggested by Bernhard Voelker.  While a subshell is normally
27924         required to protect against older shells (Solaris, FreeBSD) that
27925         warn about a missing program before performing redirection, the
27926         shell-selection tests performed by init.sh probably exclude any
27927         offending shell.
27929 2012-01-08  Bruno Haible  <bruno@clisp.org>
27931         setlocale tests: Avoid test failure on Solaris 11.0.
27932         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27933         variable.
27935 2012-01-08  Bruno Haible  <bruno@clisp.org>
27937         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27938         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27939         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27940         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27941         macro.
27942         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27943         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27944         * lib/spawn_faction_addopen.c: Add workaround implementation if
27945         HAVE_WORKING_POSIX_SPAWN.
27946         * modules/spawn (Makefile): Substitute
27947         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27948         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27949         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27950         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27951         (Depends-on): Update conditions.
27952         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27953         the Solaris 11 bug.
27955 2012-01-08  Bruno Haible  <bruno@clisp.org>
27957         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27958         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27960         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27961         macro.
27962         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27963         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27964         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27965         HAVE_WORKING_POSIX_SPAWN.
27966         * modules/spawn (Makefile): Substitute
27967         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27968         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27969         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27971         (Depends-on): Update conditions.
27972         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27973         the Solaris 11 bug.
27975 2012-01-08  Bruno Haible  <bruno@clisp.org>
27977         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27978         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27979         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27981         HAVE_WORKING_POSIX_SPAWN.
27982         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27983         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27985         * lib/spawn_faction_addclose.c: Add workaround implementation if
27986         HAVE_WORKING_POSIX_SPAWN.
27987         * modules/spawn (Makefile): Substitute
27988         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27989         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27990         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27992         (Depends-on): Update conditions.
27993         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27994         the Solaris 11 bug.
27996 2012-01-08  Bruno Haible  <bruno@clisp.org>
27998         doc: Update for Solaris 11.0.
27999         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
28000         * m4/printf.m4: Update comments.
28002 2012-01-08  Bruno Haible  <bruno@clisp.org>
28004         mktime: Avoid compilation error on Solaris 11.
28005         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
28007 2012-01-08  Bruno Haible  <bruno@clisp.org>
28009         doc: Small fix.
28010         * doc/posix-headers/nl_types.texi: Correct platforms list.
28012 2012-01-08  Simon Josefsson  <simon@josefsson.org>
28014         Add lgpl-3.0 module.
28015         * MODULES.html.sh (Support for building documentation): Add
28016         lgpl-3.0.
28017         * modules/lgpl-3.0: New file.
28019 2012-01-08  Jim Meyering  <meyering@redhat.com>
28021         select.c: indent with spaces, not TABs
28022         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
28024 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28026         quotearg: do not use grave accent for left quote
28027         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
28028         locale_quoting_style.
28029         (quotearg_buffer_restyled): Fix example.
28030         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
28032 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28034         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
28035         Most programs do not have translation catalogs for English and much
28036         less separate catalogs for British and American English.  Drop the
28037         suggestion to translators about these two, and provide it
28038         automatically for Unicode locales.  Like most programs, even those
28039         using American English, we use single quotation marks.  This conflicts
28040         with the American typographic convention, but works better when you
28041         cite the entire error message within double quotes.  It also tries not
28042         to clash with established practice and with what non-gnulib programs
28043         will usually do.
28044         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
28045         using an UTF-8 or GB-18030 locale.  The list of other locales with
28046         quotes was provided by Bruno Haible.
28047         (quotearg_buffer_restyled): Adjust instructions to translators.
28048         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
28049         text, since this would be wrong when using Unicode.
28050         * modules/quotearg: Depend on c-strcaseeq.
28052 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28054         quotearg: fix Wikipedia link
28055         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
28057 2012-01-07  Simon Josefsson  <simon@josefsson.org>
28059         Fix for mingw with MSVC9.
28060         * m4/ld-version-script.m4: Check that compiler rejects version
28061         scripts with syntax errors.  Reported by Bruno Haible
28062         <bruno@clisp.org>.
28064 2012-01-06  Bruno Haible  <bruno@clisp.org>
28066         Talk about "native Windows API", not "Woe32".
28067         * lib/accept4.c: Update comments to mention native Windows.
28068         * lib/execute.c: Likewise.
28069         * lib/fatal-signal.c: Likewise.
28070         * lib/localcharset.c: Likewise.
28071         * lib/nanosleep.c: Likewise.
28072         * lib/nl_langinfo.c: Likewise.
28073         * lib/pclose.c: Likewise.
28074         * lib/pipe-filter-gi.c: Likewise.
28075         * lib/pipe-filter-ii.c: Likewise.
28076         * lib/pipe.c: Likewise.
28077         * lib/pipe2.c: Likewise.
28078         * lib/popen.c: Likewise.
28079         * lib/progreloc.c: Likewise.
28080         * lib/relocatable.c: Likewise.
28081         * lib/sigaction.c: Likewise.
28082         * lib/sigprocmask.c: Likewise.
28083         * lib/spawn-pipe.h: Likewise.
28084         * lib/spawn-pipe.c: Likewise.
28085         * lib/spawni.c: Likewise.
28086         * lib/stat-time.h: Likewise.
28087         * lib/w32spawn.h: Likewise.
28088         * tests/test-isatty.c: Likewise.
28089         * lib/config.charset: More comments.
28090         * doc/gnulib-intro.texi: Mention native Windows.
28091         * doc/posix-functions/_Exit_C99.texi: Likewise.
28092         * doc/posix-headers/fcntl.texi: Likewise.
28094 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
28096         argp: Avoid crash if translator uses % characters in a translation.
28097         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
28098         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28100 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28102         doc: C11 and C++11 are now official
28103         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
28104         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
28105         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28106         * modules/stdalign:
28107         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28109 2012-01-06  Bruno Haible  <bruno@clisp.org>
28111         uc-is-grapheme-break tests: Tweak.
28112         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28113         message.
28115 2012-01-06  Bruno Haible  <bruno@clisp.org>
28117         test-init.sh: correct the test for diff -u
28118         * tests/test-init.sh: Also redirect stdout to /dev/null.
28120 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28122         Use ', not `, for quoting output.
28123         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28124         (print_changelog_deltas, get_tool_versions, main program):
28125         * build-aux/git-version-gen:
28126         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28127         * build-aux/move-if-change (help):
28128         * build-aux/useless-if-before-free (usage, main program):
28129         * check-module (parse_module_file, usage)
28130         (find_included_lib_files, check_module):
28131         * lib/argmatch.c (main) [TEST]:
28132         * lib/argp-help.c (_help):
28133         * lib/getopt1.c (main) [TEST]:
28134         * lib/git-merge-changelog.c (usage):
28135         * lib/xstrtol-error.c (xstrtol_error):
28136         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28137         * m4/argz.m4 (gl_FUNC_ARGZ):
28138         * m4/bison.m4 (gl_BISON):
28139         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28140         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28141         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28142         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28143         * m4/gc-random.m4 (gl_GC_RANDOM):
28144         * m4/intl.m4 (gt_CHECK_DECL):
28145         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28146         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28147         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28149         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28150         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28151         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28152         * tests/test-dirname.c (main):
28153         * tests/test-getpass.c (main):
28154         * tests/test-iconvme.c (main):
28155         * tests/test-parse-datetime.c (LOG):
28156         * tests/test-xstrtoimax.sh:
28157         * tests/test-xstrtol.sh:
28158         * tests/test-xstrtoll.sh:
28159         * tests/test-xstrtoumax.sh:
28160         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28161         * top/GNUmakefile (abort-due-to-no-makefile):
28162         Quote 'like this', not `like this', as per the recent change to
28163         the GNU coding standards.
28165 2012-01-05  Bruno Haible  <bruno@clisp.org>
28167         strtoimax: Don't force a replacement on systems where intmax_t is int.
28168         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28169         'intmax_t' is not larger than 'int'.
28170         Reported by Pádraig Brady <P@draigBrady.com>.
28172 2012-01-05  Bruno Haible  <bruno@clisp.org>
28174         doc: Mention NetBSD bugs.
28175         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28176         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28178 2012-01-05  Bruno Haible  <bruno@clisp.org>
28180         strtoumax tests: Enhance tests.
28181         * tests/test-strtoumax.c (main): Add tests for large values.
28183 2012-01-05  Bruno Haible  <bruno@clisp.org>
28185         strtoimax: Work around AIX 5.1 bug.
28186         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28187         definition.
28188         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28189         Set HAVE_STRTOIMAX.
28190         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28191         REPLACE_STRTOIMAX.
28192         * modules/inttypes-incomplete (Makefile.am): Substitute
28193         REPLACE_STRTOIMAX.
28194         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28195         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28196         (Depends-on): Update conditions.
28197         * tests/test-strtoimax.c (main): Add tests for large values.
28198         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28200 2012-01-05  Bruno Haible  <bruno@clisp.org>
28202         inttypes: Modernize.
28203         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28204         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28205         (Makefile.am): Update inttypes.h rule.
28207 2012-01-05  Jim Meyering  <meyering@redhat.com>
28209         init.sh: don't waste a subshell just to redirect stderr
28210         * tests/init.sh: In testing for diff -u and diff -c, use a
28211         stderr-redirecting exec inside `...` rather than a subshell.
28213         test-init.sh: avoid failure on HP-UX 11.00
28214         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28215         resolves to diff -c or cmp.  Reported by Bruno Haible.
28217 2012-01-05  Bruno Haible  <bruno@clisp.org>
28219         Tests for module 'strtoull'.
28220         * modules/strtoull-tests: New file.
28221         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28223 2012-01-05  Bruno Haible  <bruno@clisp.org>
28225         Tests for module 'strtoll'.
28226         * modules/strtoll-tests: New file.
28227         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28229 2012-01-05  Bruno Haible  <bruno@clisp.org>
28231         Tests for module 'strtoul'.
28232         * modules/strtoul-tests: New file.
28233         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28235 2012-01-05  Bruno Haible  <bruno@clisp.org>
28237         Tests for module 'strtol'.
28238         * modules/strtol-tests: New file.
28239         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28241 2012-01-04  Jim Meyering  <meyering@redhat.com>
28243         test-init.sh: accommodate Solaris 5.10's different diff -u output
28244         * tests/test-init.sh: Also exempt @@ lines from the comparison
28245         of diff output, since Solaris 5.10 and GNU diff formats differ.
28246         Reported by Stefano Lattarini.
28248 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28250         test-posixtm: don't assume signed integer wraparound
28251         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28252         after signed integer overflow.  Inspired by (though it may not
28253         fix) Bruno Haible's bug report in
28254         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28256         Spell out "Windows 9x" and "Windows XP".
28257         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28258         "Windows 9x" and "WinXP" with "Windows XP".
28260 2012-01-04  Jim Meyering  <meyering@redhat.com>
28262         test-vc-list-files-cvs.sh: remove obsolete comment
28263         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28264         double exit.  Now that's all encapsulated via skip_ and Exit.
28266 2012-01-04  Bruno Haible  <bruno@clisp.org>
28268         Talk about "native Windows API", not "Win32".
28269         * lib/classpath.c: Update comments to mention native Windows.
28270         * lib/csharpexec.c: Likewise.
28271         * lib/dup2.c: Likewise.
28272         * lib/error.c: Likewise.
28273         * lib/fcntl.c: Likewise.
28274         * lib/filename.h: Likewise.
28275         * lib/findprog.c: Likewise.
28276         * lib/get-rusage-as.c: Likewise.
28277         * lib/get-rusage-data.c: Likewise.
28278         * lib/getpagesize.c: Likewise.
28279         * lib/javaexec.c: Likewise.
28280         * lib/msvc-inval.c: Likewise.
28281         * lib/msvc-nothrow.c: Likewise.
28282         * lib/nanosleep.c: Likewise.
28283         * lib/nonblocking.c: Likewise.
28284         * lib/printf-parse.c: Likewise.
28285         * lib/setlocale.c: Likewise.
28286         * lib/sigaction.c: Likewise.
28287         * lib/strerror_r.c: Likewise.
28288         * lib/tmpdir.c: Likewise.
28289         * lib/vasnprintf.c: Likewise.
28290         * lib/w32spawn.h: Likewise.
28291         * lib/waitpid.c: Likewise.
28292         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28293         * m4/locale-ar.m4: Likewise.
28294         * m4/locale-fr.m4: Likewise.
28295         * m4/locale-ja.m4: Likewise.
28296         * m4/locale-tr.m4: Likewise.
28297         * m4/locale-zh.m4: Likewise.
28298         * m4/printf.m4: Likewise.
28299         * tests/test-cloexec.c: Likewise.
28300         * tests/test-copy-acl.sh: Likewise.
28301         * tests/test-copy-file.sh: Likewise.
28302         * tests/test-file-has-acl.sh: Likewise.
28303         * tests/test-set-mode-acl.sh: Likewise.
28304         * tests/test-dup-safer.c: Likewise.
28305         * tests/test-dup2.c: Likewise.
28306         * tests/test-dup3.c: Likewise.
28307         * tests/test-fcntl.c: Likewise.
28308         * tests/test-nonblocking-pipe.h: Likewise.
28309         * tests/test-nonblocking-socket.h: Likewise.
28310         * tests/test-pipe.c: Likewise.
28311         * tests/test-pipe2.c: Likewise.
28312         * tests/test-spawn-pipe-child.c: Likewise.
28313         * doc/acl-resources.txt: Likewise.
28314         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28315         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28316         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28317         * lib/localcharset.c: Update comments to mention native Windows.
28318         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28319         * lib/localename.c: Likewise.
28320         * lib/progreloc.c: Likewise.
28321         * lib/relocatable.c: Likewise.
28322         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28323         (windows_compute_revents): Renamed from win32_compute_revents.
28324         (windows_compute_revents_socket): Renamed from
28325         win32_compute_revents_socket.
28326         * lib/select.c: Update comments to mention native Windows.
28327         (windows_poll_handle): Renamed from win32_poll_handle.
28328         * m4/threadlib.m4: Update comments to mention native Windows.
28329         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28330         --enable-threads=windows instead of --enable-threads=win32. Set
28331         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28332         * lib/glthread/lock.h: Update comments to mention native Windows.
28333         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28334         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28335         USE_WIN32_THREADS.
28336         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28337         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28338         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28339         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28340         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28341         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28342         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28343         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28344         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28345         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28346         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28347         * tests/test-tls.c: Likewise.
28348         Rationale:
28349         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28350         on both 32-bit and 64-bit Windows systems.
28351         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28352         line of distinction is between "native Windows" on one side and Unix/
28353         POSIX systems on the other side. More details in
28354         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28355         Suggested by Paul Eggert.
28357 2012-01-03  Bruno Haible  <bruno@clisp.org>
28359         isatty: Support for MSVC 9.
28360         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28361         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28362         (_isatty_nothrow): New function.
28363         (isatty): Use it instead of _isatty.
28364         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28365         * lib/poll.c (IsConsoleHandle): Likewise.
28366         * lib/select.c (IsConsoleHandle): Likewise.
28367         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28368         (gl_PREREQ_ISATTY): New macro.
28369         * modules/isatty (Depends-on): Add msvc-inval.
28370         (configure.ac): Invoke gl_PREREQ_ISATTY.
28372 2012-01-03  Jim Meyering  <meyering@redhat.com>
28374         maint.mk: remove temporary transition aid from over 1.5 years ago
28375         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28376         purpose was to aid in the transition (avoiding silent malfunction)
28377         from that old name to the new _sc_search_regexp.  This shim was
28378         added by commit 219c504b.
28380         init.sh: do not try to accommodate compare arguments starting with "-"
28381         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28382         compare arguments that start with "-".  Besides, we do not worry
28383         about this when invoking diff or cmp; why start now with sed?
28384         Using "--" to separate options from argument would trigger sed
28385         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28386         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28388 2012-01-02  Bruno Haible  <bruno@clisp.org>
28390         Enhance tests for module 'isatty'.
28391         * modules/isatty-tests (Depends-on): Add pipe-posix.
28392         * tests/test-isatty.c: Include <fcntl.h>.
28393         (DEV_NULL): New macro.
28394         (main): Test the resut of isatty() also on regular files, pipes, and
28395         /dev/null.
28397         New module 'isatty'.
28398         * lib/unistd.in.h (isatty): New declaration.
28399         * lib/isatty.c: New file, based on an idea of
28400         Bastien Roucariès <roucaries.bastien@gmail.com>.
28401         * m4/isatty.m4: New file.
28402         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28403         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28404         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28405         REPLACE_ISATTY.
28406         * modules/isatty: New file.
28407         * doc/posix-functions/isatty.texi: Mention the new module.
28408         Suggested by Paolo Bonzini.
28410 2012-01-02  Bruno Haible  <bruno@clisp.org>
28412         canonicalize: Tweak 2011-12-29 commit.
28413         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28414         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28416 2012-01-02  Jim Meyering  <meyering@redhat.com>
28418         gitlog-to-changelog: describe input syntax in --help output
28419         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28421         gitlog-to-changelog: fix typo in --help: show backslash before email @
28422         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28423         in sources, but not in actual output.
28425 2011-12-30  Jim Meyering  <meyering@redhat.com>
28427         gitlog-to-changelog: don't malfunction when name contains %-directive
28428         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28429         in a name string cause trouble.  E.g., with a user name of "%s",
28430         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28432 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28434         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28435         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28436         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28437         the "  (tiny change)" notation that is appended to the standard
28438         ChangeLog "date  name  email" header line.
28440 2012-01-01  Jim Meyering  <meyering@redhat.com>
28442         test-framework-sh: init.sh: fix "make dist" failure
28443         When using gnulib-tool's --with-tests option and any module that
28444         depends on test-framework-sh, "make dist" would fail due to the
28445         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28446         in the gltests directory, and not in the gllib/ directory.
28447         One way to work around that is to move the EXTRA_DIST += init.sh
28448         from the primary module to the -tests one:
28449         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28450         * modules/test-framework-sh (Makefile.am): ...not here.
28451         Reported by Tom G. Christensen in
28452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28454         version-etc: update copyright year reported by --version
28455         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28457 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28459         canonicalize: only stat() if required
28460         * lib/canonicalize.c (canonicalize_filename_mode):
28461         Avoid calling l?stat() when both CAN_MISSING,
28462         and CAN_NOLINKS are set, as we neither need
28463         to resolve symlinks or test component existence.
28465 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28467         doc: cover st_ino issues once; add OpenVMS etc.
28468         * doc/posix-functions/stat.texi (stat):
28469         * doc/posix-functions/lstat.texi (lstat):
28470         * doc/posix-functions/fstatat.texi (fstatat):
28471         * doc/posix-functions/fstat.texi (fstat):
28472         Move general 'struct stat' stuff to sys_stat.texi,
28473         leaving behind a pointer.
28474         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28475         Merge duplicate info about 'struct stat' problems into here.
28476         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28477         and suggest partial workarounds.
28479         same-inode: port to OpenVMS
28480         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28481         three st_ino values.
28483 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28485         canonicalize: fix references to stat() and lstat()
28486         * lib/canonicalize.c (canonicalize_filename_mode):
28487         Ensure references always resolve to a replacement
28488         function if required (even via a macro).
28490 2011-12-30  Jim Meyering  <meyering@redhat.com>
28492         gitlog-to-changelog: remove a little duplication
28493         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28494         rather than twice.
28496 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28498         canonicalize: add support for not resolving symlinks
28499         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28500         indicate we don't want to follow symlinks.  Also
28501         provide CAN_MODE_MASK to aid setting these existing
28502         mutually exclusive values.
28503         * lib/canonicalize.c (canonicalize_filename_mode):
28504         Extract the flags from can_mode parameter, which
28505         are currently just used to select between stat()
28506         and lstat().  Also ensure that mutually exclusive
28507         values are flagged immediately as invalid.
28508         * tests/test-canonicalize.c: Verify symlinks are
28509         not followed, and that invalid flag combinations
28510         are diagnosed.
28512 2011-12-25  Jim Meyering  <meyering@redhat.com>
28514         gitlog-to-changelog: do not clump multi-paragraph entries
28515         Identical header lines (date,name,email+coauthors) are suppressed,
28516         thus putting all entries with those same characteristics under
28517         a single header.  However, when a log entry consists of two or
28518         more paragraphs, it may not be clear where it starts and ends.
28519         This change makes it so that such an entry is always separated
28520         from others by a header line, even when that header would
28521         otherwise be suppressed.
28522         * build-aux/gitlog-to-changelog: Implement the above.
28523         Inspired by a related request from Stefano Lattarini in
28524         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28526 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28528         announce-gen: fix `cmd' typo in diagnostic
28529         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28530         diagnostic: a missing '$' meant that the command was not output.
28532 2011-12-23  Jim Meyering  <meyering@redhat.com>
28534         test-framework-sh: distribute init.sh
28535         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28536         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28537         fail due to the lack of init.sh.
28539         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28540         * modules/atexit-tests: Rather than listing tests/init.sh,
28541         now that there's a module for it, simply depend on that new module.
28542         * modules/closein-tests: Likewise.
28543         * modules/exclude-tests: Likewise.
28544         * modules/getcwd-tests: Likewise.
28545         * modules/perror-tests: Likewise.
28546         * modules/pread-tests: Likewise.
28547         * modules/pwrite-tests: Likewise.
28548         * modules/vc-list-files-tests: Likewise.
28549         * modules/verify-tests: Likewise.
28550         * modules/xalloc-die-tests: Likewise.
28551         * modules/xstrtoimax-tests: Likewise.
28552         * modules/xstrtol-tests: Likewise.
28553         * modules/xstrtoll-tests: Likewise.
28554         * modules/xstrtoumax-tests: Likewise.
28555         * modules/yesno-tests: Likewise.
28557 2011-12-22  Jim Meyering  <meyering@redhat.com>
28559         test-framework-sh: add minimal tests of init.sh's compare function
28560         * modules/test-framework-sh-tests: New file.
28561         * tests/test-init.sh: New file.
28563         test-framework-sh: new module
28564         * modules/test-framework-sh: New file.
28565         * MODULES.html.sh (Support for maintaining and releasing projects):
28566         List it.
28568         init.sh: do not emit simulated diff output to stderr
28569         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28571 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28573         .gitignore: ignore gnulib.dvi and regex.info
28574         * doc/.gitignore:add gnulib.dvi and regex.info
28576 2011-12-22  Jim Meyering  <meyering@redhat.com>
28578         init.sh: correct previous change
28579         * tests/init.sh (compare): My previous change was wrong.
28580         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28582         init.sh: avoid unwarranted test failure when using "set -e"
28583         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28584         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28585         a use like "compare exp out" would get evoke an unconditional failure.
28587 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28589         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28590         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28591         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28592         autoreconf that did not.
28593         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28594         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28596 2011-12-17  Jim Meyering  <meyering@redhat.com>
28598         bootstrap: remove some now-unneeded code
28599         This script arose back when gnulib-tool was young.
28600         Since then, it has seen improvements that render much of this
28601         script unnecessary.  In particular, it can now make symlinks
28602         to the files it uses.  Also, I no longer see as much value in
28603         marking files as read-only via comments.
28604         If you relied on the symlink-creation feature of the preceding
28605         version of this script, you can get most of that functionality
28606         by adding the --symlink option to the definition of
28607         gnulib_tool_option_extras in your bootstrap.conf file.
28608         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28609         Run autopoint and libtoolize *before* gnulib-tool.
28610         After it, run an abbreviated autoreconf, rather than a loop around
28611         all tools.
28612         (slirp, bt_mark_as_generated): Remove functions.
28614 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28616         ftoastr: fix typo
28617         * lib/ftoastr.h: Fix misspelling in comment.
28619 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28621         * top/README-release: fix punctuation.
28623 2011-12-17  Jim Meyering  <meyering@redhat.com>
28625         bootstrap: correct the recent buildreq change
28626         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28627         had no effect.
28628         * build-aux/bootstrap (buildreq): Bracket each search term with
28629         "*...*", so that the shell "case" statement works as intended.
28630         Add comments.
28632 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28634         build: let bootstrap resort to wget when downloading .po files
28635         * build-aux/bootstrap (download_po_files): Fallback to wget when
28636         downloading the .po files via rsync fails.  This is necessary to
28637         bootstrap from behind a strict firewall.
28639 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28641         stdint: don't assume C++11 when compiling with g++
28642         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28643         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28644         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28645         work also in C++ before C++11, as that improperly inhibits
28646         generating a substitute stdint.h for that case.
28648 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28650         alloca: protect comment from gnulib-tool
28651         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28652         that gnulib-tool doesn't think it's a license, and munge it to
28653         say "GCC version 3".
28655 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28657         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28658         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28659         $(abs_top_builddir) instead of $(top_builddir).
28661 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28663         strftime-tests: also test nanoseconds
28664         * tests/test-strftime.c (T): Add a test of %N.
28666 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28668         inttypes, stdint: add C++11 support
28669         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28670         when including inttypes.h and stdint.h.  Support this change to
28671         the standard.
28672         * doc/posix-headers/inttypes.texi (inttypes.h):
28673         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28674         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28675         Define if not defined already, for the benefit of pre-C++11 hosts.
28676         Define the standard format macros (e.g., PRId8) always.
28677         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28678         Likewise, if __cpluspus.  Define the standard constant and limit
28679         macros (e.g., INT8_C, INT8_MAX) always.
28680         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28681         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28682         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28683         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28684         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28685         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28686         Likewise.
28688 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28690         nonblocking tests: Fix test failure on Linux/PPC.
28691         Suggested by Prerna Saxena in
28692         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28693         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28694         Set to 1100000.
28696 2011-12-12  Jim Meyering  <meyering@redhat.com>
28698         argmatch: don't hard-code `' when listing valid option arguments
28699         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28700         use the quote function to add quotes.  Use fputs rather than
28701         fprintf for the format string with no format directive.
28703 2011-12-07  Eric Blake  <eblake@redhat.com>
28705         bootstrap: detect tools required by gnulib-tool
28706         * build-aux/bootstrap (buildreq): Provide minimum implicit
28707         dependencies.
28708         * DEPENDENCIES: Mention patch as a prereq.
28710 2011-12-04  Bruno Haible  <bruno@clisp.org>
28712         sethostname: Port to Windows platforms.
28713         * lib/sethostname.c: Provide an alternate implementation for Windows
28714         platforms.
28715         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28716         (main): Skip the test if sethostname() fails with EPERM. On Windows
28717         platforms, don't check the result of gethostname().
28719 2011-12-04  Bruno Haible  <bruno@clisp.org>
28720             Jim Meyering  <meyering@redhat.com>
28722         tests: Avoid spurious error message on platforms without mktemp program.
28723         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28725 2011-12-04  Bruno Haible  <bruno@clisp.org>
28727         sethostname: Fix documentation.
28728         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28729         "not fixed" section.
28731 2011-12-03  Bruno Haible  <bruno@clisp.org>
28733         gnulib-tool: Verify that the License field is present and non-empty.
28734         * gnulib-tool (func_get_license_raw): New function, extracted from
28735         func_get_license.
28736         (func_get_license): Use it. Warn if the module is not a test module and
28737         has no license.
28738         Suggested by Jim Meyering.
28740 2011-12-03  Bruno Haible  <bruno@clisp.org>
28742         sethostname tests: Fix link error on mingw.
28743         * tests/test-sethostname1.c: New file, extracted from
28744         tests/test-sethostname.c.
28745         * tests/test-sethostname2.c: New file, extracted from
28746         tests/test-sethostname.c.
28747         * tests/test-sethostname.c: Remove file.
28748         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28749         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28750         (Depends-on): Add gethostname.
28751         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28752         Link the latter with $(GETHOSTNAME_LIB).
28754         sethostname tests: Fix compilation error on mingw.
28755         * tests/test-sethostname.c: Don't include <sys/types.h>.
28756         (geteuid): Use a dummy value without uid_t.
28757         * modules/sethostname-tests (Depends-on): Remove sys_types.
28759         sethostname tests: Avoid a gcc warning.
28760         * tests/test-sethostname.c (main): Remove an unused variable.
28762         Tweak last commit.
28763         * modules/sethostname-tests (Files): Sort by decreasing importance.
28764         (configure.ac): Check for geteuid.
28765         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28766         the test when there's nothing to test. Drop an unnecessary cast.
28767         Improve an error message. Verify that the final sethostname() call
28768         succeeds.
28770 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28772         Add a test suite for the sethostname module.
28773         * modules/sethostname-tests: New file.  A test program
28774         for the sethostname module.
28775         * tests/test-sethostname.c: Likewise.
28777 2011-12-03  Bruno Haible  <bruno@clisp.org>
28779         Tweak last commit.
28780         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28781         Fix preprocessor directives indentation. Fix typos.
28782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28783         * modules/unistd (Makefile): Likewise.
28785 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28787         Integrate the sethostname module into unistd.
28788         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28789         into the unistd.h header.
28790         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28791         preprocessor directives.
28792         * modules/unistd: Setup the Makefile substitutions of the
28793         SETHOSTNAME preprocessor directives.
28795 2011-12-03  Bruno Haible  <bruno@clisp.org>
28797         Tweak last commit.
28798         * lib/sethostname.c: Don't include <string.h>.
28799         (sethostname): No need to copy the argument string to the stack. Don't
28800         call clearerr. Preserve errno when fprintf failed.
28801         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28802         Don't invoke AC_REPLACE_FUNCS.
28803         * modules/sethostname (Link): Remove empty section.
28804         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28805         failure problem.
28807 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28809         New module 'sethostname'.
28810         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28811         for systems that lack it.
28812         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28813         sethostname declaration and function.
28814         * modules/sethostname: New file.  Define the sethostname module.
28816 2011-12-03  Bruno Haible  <bruno@clisp.org>
28818         Tweak last commit.
28819         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28821 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28823         Split the HOST_NAME_MAX detection into a separate m4 macro.
28824         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28825         macro so it can be used by the pending sethostname module.
28827 2011-12-03  Bruno Haible  <bruno@clisp.org>
28829         Fix module descriptions syntax.
28830         * modules/argv-iter (License): Fix syntax.
28831         * modules/di-set (License): Likewise.
28832         * modules/ino-map (License): Likewise.
28833         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28835 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28837         stdalign: port to Clang 3.0
28838         Problem reported by Simon Josefsson in
28839         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28840         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28841         which has <stdalign.h> but which does not define alignof.
28842         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28844 2011-12-01  Eric Blake  <eblake@redhat.com>
28846         mktempd: silence dd usage
28847         * build-aux/mktempd (rand_bytes): Silence dd.
28849 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28851         manywarnings: Don't mention gcc version in docstring.
28852         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28853         Jim Meyering <meyering@redhat.com>.
28855 2011-11-30  Jim Meyering  <meyering@redhat.com>
28857         hash: mark a few floating point constants with "f" suffix
28858         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28859         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28860         floating point constants with "f", since they're destined to be
28861         saved/used as "float"s.
28863 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28865         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28866         * tests/test-float.c (test_long_double): Correct and re-enable the
28867         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28869 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28871         Avoid subtracting two pointers that don't point into the same block.
28872         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28873         only pointers into the same memory block are subtracted. We cannot
28874         assume that sizeof (ptrdiff_t) == sizeof (void *).
28876 2011-11-29  Eric Blake  <eblake@redhat.com>
28878         maint.mk: add syntax check for use of compare from init.sh
28879         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28880         moved here from coreutils.
28882         manywarnings: drop -Wunsuffixed-float-constants
28883         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28884         '1.0D', which is the only way to silence this warning for 'double'.
28886 2011-11-29  Jim Meyering  <meyering@redhat.com>
28888         hash: mark compute_bucket_size with the pure attribute
28889         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28891         quotearg, propername: correct pragma guard expression
28892         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28893         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28895 2011-11-28  Jim Meyering  <meyering@redhat.com>
28897         propername: do not mark proper_name with the const attribute
28898         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28899         since it examines data pointed to by its parameter.
28900         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28901         the suggestion from -Wsuggest-attribute=const.
28903         propername: mark one more function as const
28904         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28906 2011-11-27  Jim Meyering  <meyering@redhat.com>
28908         mark functions with const and pure attributes
28910         Mark functions per suggestions from gcc-4.6 when using these options:
28911         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28912         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28913         Follow these guidelines: when possible, apply the attribute to
28914         an extern declaration, not to its definition.  Apply it to the
28915         definition only when the definition is static.
28916         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28917         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28918         * lib/base64.h (isbase64): Likewise.
28919         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28920         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28921         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28922         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28923         (c_tolower, c_toupper): Likewise.
28924         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28925         * lib/chdir-long.c (find_non_slash): Likewise.
28926         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28927         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28928         * lib/file-type.h (file_type): Likewise.
28929         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28930         * lib/filevercmp.c (verrevcmp): Likewise.
28931         * lib/freadahead.h (freadahead): Likewise.
28932         * lib/fts.c (fts_maxarglen): Likewise.
28933         * lib/hash-pjw.h (hash_pjw): Likewise.
28934         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28935         * lib/hash.c (is_prime, next_prime): Likewise.
28936         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28937         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28938         (hash_table_ok, hash_get_first, hash_string): Likewise.
28939         (compute_bucket_size): Likewise.
28940         * lib/i-ring.h (i_ring_empty): Likewise.
28941         * lib/isnan.c (isnanl): Likewise.
28942         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28943         * lib/memcasecmp.h (memcasecmp): Likewise.
28944         * lib/memchr2.h (memchr2): Likewise.
28945         * lib/memcmp2.h (memcmp2): Likewise.
28946         * lib/parse-datetime.y (lookup_zone): Likewise.
28947         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28948         [!WINDOWS_SOCKETS]: Likewise.
28949         * lib/strnlen1.h (strnlen1): Likewise.
28950         * lib/uniwidth.in.h (uc_width): Likewise.
28951         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28952         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28953         (quoting_options_from_style): Add a comment.
28954         * lib/propername.h (proper_name): Add a comment.
28956 2011-11-27  Bruno Haible  <bruno@clisp.org>
28958         Remove unused macros from !_LIBC code in glibc-borrowed files.
28959         * lib/fnmatch.c (STRCOLL): Remove macro.
28960         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28961         * lib/glob.c (__stat, __readdir64): Remove macros.
28962         * lib/tempname.c (__open64, __xstat64): Remove macros.
28963         Suggested by Paul Eggert.
28965 2011-11-27  Bruno Haible  <bruno@clisp.org>
28967         getcwd: Fix link error on MSVC 9.
28968         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28970 2011-11-27  Bruno Haible  <bruno@clisp.org>
28972         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28973         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28974         HAVE_OPENDIR is 0.
28975         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28976         HAVE_CLOSEDIR is 0.
28977         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28978         is 0.
28979         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28981 2011-11-27  Bruno Haible  <bruno@clisp.org>
28983         getcwd: Fix bug from 2011-08-17.
28984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28985         platforms that need it.
28986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28987         code of 4 to be a failure, not a success. This ensures that
28988         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28990 2011-11-27  Bruno Haible  <bruno@clisp.org>
28992         binary-io tests: Avoid test failure on mingw when libtool is used.
28993         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28994         Don't verify the size of t-bin-out1.tmp here.
28995         * tests/test-binary-io.sh: Verify it here.
28996         Reported by Simon Josefsson.
28998 2011-11-26  Bruno Haible  <bruno@clisp.org>
29000         Fix conflict between two instantiations of module 'unistd'.
29001         * gnulib-tool (func_emit_autoconf_snippet): Substitute
29002         ${include_guard_prefix} also in the autoconf snippet.
29003         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
29004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
29005         GNULIB_UNISTD_H_GETOPT.
29006         * modules/getopt-posix (configure.ac): Set the
29007         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
29008         * modules/getopt-gnu (configure.ac): Likewise.
29009         * modules/unistd (Makefile.am): Change the substitution value of
29010         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
29011         Reported by Simon Josefsson.
29013 2011-11-25  Bruno Haible  <bruno@clisp.org>
29015         pagealign_alloc: Doc and comments.
29016         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
29017         module.
29018         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
29020 2011-11-25  Jim Meyering  <meyering@redhat.com>
29022         test-update-copyright.sh: avoid false-positive failure
29023         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
29024         around false positive failure on Cygwin/Windows.  The latter was
29025         matching erroneously-created files with names like
29026         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
29028 2011-11-25  Simon Josefsson  <simon@josefsson.org>
29030         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
29031         * m4/valgrind-tests.m4: Check that the parameters that will be
29032         used works, not just a subset of them.  Reported by Bruno Haible
29033         <bruno@clisp.org>.
29035 2011-11-24  Jim Meyering  <meyering@redhat.com>
29037         test-stdalign.c: comment out long double tests
29038         * tests/test-stdalign.c: Don't try to reduce alignment of long double
29039         variables.  That provokes errors like this from gcc-4.7.0 20111124:
29040         error: '_Alignas' specifiers cannot reduce alignment of \
29041         'static_longdouble_alignas'.
29043 2011-11-22  Jim Meyering  <meyering@redhat.com>
29045         init.sh: make "compare /dev/null FILE" output more readable
29046         * tests/init.sh (compare_): Document the preferred order of arguments.
29047         (emit_diff_u_header_): New function.
29048         (compare_dev_null_): Emit a simulated diff, rather than just the
29049         contents of the unexpected file.  Suggestion from Bruno Haible.
29051 2011-11-21  Jim Meyering  <meyering@redhat.com>
29052             Eric Blake  <eblake@redhat.com>
29054         init.sh: work around OSF/1 5.1's mishandling of /dev/null
29055         * tests/init.sh: Make our compare function slightly more portable.
29056         Reported by Bruno Haible in
29057         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
29059 2011-11-21  Simon Josefsson  <simon@josefsson.org>
29061         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
29062         before using it, in code that ends up in config.h.
29064 2011-11-20  Bruno Haible  <bruno@clisp.org>
29066         getcwd: Work around getcwd bug on AIX 5..7.
29067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
29068         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
29069         Use a different value for gl_cv_func_getcwd_path_max. Move the
29070         definition of HAVE_PARTLY_WORKING_GETCWD from here...
29071         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
29072         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
29073         Define HAVE_MINIMALLY_WORKING_GETCWD.
29074         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
29075         where it is not even minimally working, that is, on AIX.
29076         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
29077         m4/getcwd-path-max.m4.
29078         (main): Update exit code computation.
29079         * doc/posix-functions/getcwd.texi: Mention list of platforms where
29080         getcwd does not handle long file names.
29082 2011-11-20  Bruno Haible  <bruno@clisp.org>
29084         getcwd: Fix bug from 2009-09-10.
29085         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
29086         like "no".
29088 2011-11-20  Simon Josefsson  <simon@josefsson.org>
29090         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
29092 2011-11-20  Bruno Haible  <bruno@clisp.org>
29094         fma tests: Avoid shadowing local variables.
29095         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
29096         expected.
29098 2011-11-20  Bruno Haible  <bruno@clisp.org>
29100         copysignf tests: Fix.
29101         * tests/test-copysignf.c: Fix signature check.
29103 2011-11-20  Bruno Haible  <bruno@clisp.org>
29105         fma: Remove unused code.
29106         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29107         unused macros.
29109 2011-11-20  Bruno Haible  <bruno@clisp.org>
29111         sethostname: Fix doc about AIX.
29112         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29113         sethostname; it has it.
29115         sethostname: Mention more portability problems.
29116         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29117         problem.
29118         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29120 2011-11-19  Bruno Haible  <bruno@clisp.org>
29122         Depend on module fcntl-h when AT_FDCWD is used.
29123         * modules/utimens (Depends-on): Add fcntl-h.
29124         * modules/areadlinkat (Depends-on): Likewise.
29125         * modules/areadlinkat-with-size (Depends-on): Likewise.
29126         * modules/faccessat (Depends-on): Likewise.
29127         * modules/fchmodat (Depends-on): Likewise.
29128         * modules/fchownat (Depends-on): Likewise.
29129         * modules/getcwd (Depends-on): Likewise.
29130         * modules/mkdirat (Depends-on): Likewise.
29131         * modules/mkfifoat (Depends-on): Likewise.
29132         * modules/readlinkat (Depends-on): Likewise.
29133         * modules/symlinkat (Depends-on): Likewise.
29134         * modules/dup2-tests (Depends-on): Likewise.
29135         * modules/fdutimensat-tests (Depends-on): Likewise.
29136         * modules/futimens-tests (Depends-on): Likewise.
29138 2011-11-19  Bruno Haible  <bruno@clisp.org>
29140         euidaccess: Update a comment.
29141         * lib/euidaccess.c: Update comment about platforms with faccessat.
29143 2011-11-19  Bruno Haible  <bruno@clisp.org>
29145         openat: Fix file list.
29146         * modules/openat (Files): Remove lib/at-func.c.
29148 2011-11-19  Bruno Haible  <bruno@clisp.org>
29150         fstatat: Simplify.
29151         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29152         gnulib should define rpl_fstatat, there is a
29153         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29155 2011-11-19  Bruno Haible  <bruno@clisp.org>
29157         Ensure 'inline' can be used in tests/test-utimens-common.h.
29158         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29159         * modules/futimens-tests (configure.ac): Likewise.
29160         * modules/utimens-tests (configure.ac): Likewise.
29161         * modules/utimensat-tests (configure.ac): Likewise.
29163 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29165         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29166         not hash_insert0.
29167         (hash_insert_if_absent): Doc fix.
29169 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29171         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29173 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29175         test-getcwd: disambiguate exit status
29176         * tests/test-getcwd.c (test_long_name): Return 0..7.
29177         (main): Exit with an unambiguous exit status.  The old
29178         code yielded a mysterious mixture of two failure codes.
29180         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29181         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29182         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29183         rpl_fstatat or fstatat.  This should fix the other problem
29184         reported by Kai Habel in
29185         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29186         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29187         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29188         and I reproduced it on a Solaris 8 host we still have in production.
29190 2011-11-18  Jim Meyering  <meyering@redhat.com>
29192         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29193         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29194         Add a sentence to the comment.
29195         (hash_insert0): New function that simply calls hash_insert_if_absent.
29196         * lib/hash.h (hash_insert_if_absent): Declare it.
29197         (hash_insert0): Add deprecation attribute.
29198         (_GL_ATTRIBUTE_DEPRECATED): Define.
29199         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29200         not hash_insert0.
29201         * NEWS: Mention it, even though it's not really an incompatible change.
29203 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29205         openat: avoid compilation failure due to lack of <errno.h> inclusion
29206         * lib/openat.c: Include <errno.h>.
29208 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29210         * modules/getcwd (Depends-on): Add fdopendir.
29211         This fixes one of the two problems reported by Kai Habel in
29212         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29214         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29215         stdalign problem reported by Ian Beckwith in
29216         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29217         * modules/crypto/gc-arcfour (Depends-on):
29218         Depend conditionally on crypto/arcfour.
29219         * modules/crypto/gc-arctwo (Depends-on):
29220         Depend conditionally on crypto/arctwo.
29221         * modules/crypto/gc-des (Depends-on):
29222         Depend conditionally on crypto/des.
29223         * modules/crypto/gc-hmac-md5 (Depends-on):
29224         Depend conditionally on crypto/hmac-md5.
29225         * modules/crypto/gc-hmac-sha1 (Depends-on):
29226         Depend conditionally on crypto/hmac-sha1.
29227         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29228         * modules/crypto/gc-md4 (Depends-on):
29229         Depend conditionally on crypto/md4.
29230         * modules/crypto/gc-md5 (Depends-on):
29231         Depend conditionally on crypto/md5.
29232         * modules/crypto/gc-rijndael (Depends-on):
29233         Depend conditionally on crypto/rijndael.
29234         * modules/crypto/gc-sha1 (Depends-on):
29235         Depend conditionally on crypto/sha1.
29236         * modules/crypto/gc-arcfour:
29237         * modules/crypto/gc-arctwo:
29238         * modules/crypto/gc-des:
29239         * modules/crypto/gc-hmac-md5:
29240         * modules/crypto/gc-hmac-sha1:
29241         * modules/crypto/gc-md2:
29242         * modules/crypto/gc-md4:
29243         * modules/crypto/gc-md5:
29244         * modules/crypto/gc-rijndael:
29245         * modules/crypto/gc-sha1:
29246         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29247         now that the conditional dependencies do the work for us.
29249 2011-11-17  Jim Meyering  <meyering@redhat.com>
29251         tests: factor st_ctime-comparison out of two headers
29252         * tests/test-utimens-common.h (ctime_compare): Define.
29253         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29254         * tests/test-lutimens.h (test_lutimens): Likewise.
29255         * tests/test-utimens.h (test_utimens): Likewise.
29257         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29258         Invoke the test program via an init.sh-using wrapper.
29259         * tests/test-getcwd.sh: New file.
29260         * modules/getcwd-tests (Files): Add it.
29261         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29263 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29265         gitlog-to-changelog: support multi-author commits.
29266         The FSF cares about keeping track of all authors of patches to its
29267         projects, but Git doesn't provide obvious support for multi-author
29268         changesets. Consensus seems to be forming around the use of extra
29269         Signed-off-by inspired lines in the log message formatted as
29270         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29271         multi-author commits between version control systems.
29272         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29273         log message and output in standard ChangeLog multi-author format.
29274         Reported by Peter Rosin <peda@lysator.liu.se>
29276 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29277             Bruno Haible  <bruno@clisp.org>
29279         Fix some modules' file list.
29280         * modules/fstatat (Files): Add m4/lstat.m4.
29281         * modules/openat (Files): Likewise.
29282         * modules/unlinkat (Files): Likewise.
29284 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29286         maint.mk: fix tight-scope.mk generation in VPATH builds.
29287         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29288         reference with $(srcdir) so that the file is found correctly even
29289         when running `make syntax-check' in a VPATH build.
29291 2011-11-13  Bruno Haible  <bruno@clisp.org>
29292             Jim Meyering  <meyering@redhat.com>
29294         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29295         * tests/init.sh (compare): Remove "No differences encountered" or
29296         synonymous output from the 'diff' program.
29298 2011-11-13  Bruno Haible  <bruno@clisp.org>
29300         Makefile: Tweak indentation.
29301         * Makefile: Use tab as first character in every line that contains rule
29302         commands.
29304 2011-11-13  Bruno Haible  <bruno@clisp.org>
29306         Syntax check for copyright statements.
29307         * check-copyright: New file.
29308         * Makefile (sc_check_copyright): New rule.
29310 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29312         * build-aux/git-version-gen: Add --prefix to configure the tag
29313         match string.
29315 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29317         * build-aux/git-version-gen: Add --help and --version.
29319 2011-11-12  Jim Meyering  <meyering@redhat.com>
29321         revamp the other test-exclude?.sh scripts to use init.sh, too
29322         * tests/test-exclude1.sh: Use init.sh.
29323         * tests/test-exclude2.sh: Likewise.
29324         * tests/test-exclude3.sh: Likewise.
29325         * tests/test-exclude4.sh: Likewise.
29326         * tests/test-exclude5.sh: Likewise.
29327         * tests/test-exclude6.sh: Likewise.
29328         * tests/test-exclude7.sh: Likewise.
29329         * tests/test-exclude8.sh: Likewise.
29330         * modules/exclude-tests (Files): List init.sh.
29332         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29333         These shell scripts ignored failure of the binary test-exclude,
29334         so making the latter return 77 didn't cause them to be skipped.
29335         * tests/test-exclude5.sh: Exit with test-exclude's error status
29336         when that program fails.  Revamp to use init.sh.
29337         * tests/test-exclude2.sh: Likewise.
29339         test-exclude: fix a typo
29340         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29342 2011-11-11  Bruno Haible  <bruno@clisp.org>
29344         obstack: Fix compilation error on MSVC 9.
29345         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29347 2011-11-11  Jim Meyering  <meyering@redhat.com>
29349         test-exclude: skip tests rather than failing on deficient systems
29350         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29351         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29352         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29353         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29355 2011-11-10  Bruno Haible  <bruno@clisp.org>
29357         ptsname_r test: Avoid gcc warning on glibc systems.
29358         * tests/test-ptsname_r.c (null_ptr): New function.
29359         (test_errors): Use it.
29361 2011-11-10  Bruno Haible  <bruno@clisp.org>
29363         ptsname_r: Avoid compilation error on OSF/1 5.1.
29364         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29366         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29367         function is not declared or incompatibly declared.
29368         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29369         * modules/ptsname_r (Depends-on, configure.ac): Update.
29370         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29372 2011-11-10  Bruno Haible  <bruno@clisp.org>
29374         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29375         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29376         When cross-compiling, guess yes on all platforms except AIX.
29377         Reported by Ludovic Courtès <ludo@gnu.org>.
29379 2011-11-09  Bruno Haible  <bruno@clisp.org>
29381         ptsname_r tests: Fix bugs.
29382         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29383         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29385 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29387         fstatat: work with cross-compilation
29388         Problem reported by Ludovic Courtès in
29389         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29390         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29391         "cross-compiling" and assume the bug is present.  Replace
29392         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29393         an inverted sense, to be more conservative about our assumptions.
29394         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29396 2011-11-09  Bruno Haible  <bruno@clisp.org>
29398         Improve MODULES.html output.
29399         * modules/mkfifoat (Description): Use the word "function".
29400         * modules/readlinkat (Description): Likewise.
29401         * modules/symlinkat (Description): Likewise.
29403 2011-11-09  Eric Blake  <eblake@redhat.com>
29405         ptsname_r-tests: new test module
29406         * modules/ptsname_r-tests: New module.
29407         * tests/test-ptsname_r.c: New file.
29409         ptsname_r: new module
29410         * modules/ptsname_r: New module.
29411         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29412         * lib/ptsname.c (__ptsname_r): Split...
29413         * lib/ptsname_r.c: ...into new file.
29414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29415         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29416         * modules/stdlib (Makefile.am): Substitute witnesses.
29417         * lib/stdlib.in.h (ptsname_r): Declare it.
29418         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29419         * MODULES.html.sh (Misc): Likewise.
29420         * modules/ptsname (Depends-on): Alter dependency.
29421         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29423 2011-11-09  Jim Meyering  <meyering@redhat.com>
29425         announce-gen: be more concise when there's only one URL+tarball
29426         * build-aux/announce-gen (get_tool_versions): When you distribute
29427         only one type of tarball, combine the first two "Here are..."
29428         sections and make the key-checking grammar independent of
29429         how many tarballs there are.
29431 2011-11-09  Eric Blake  <eblake@redhat.com>
29433         openpty: provide a stub on mingw
29434         * lib/pty.in.h (includes): Provide forward declarations.
29435         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29437         raise: fix mingw handling of SIGPIPE
29438         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29440 2011-11-08  Bruno Haible  <bruno@clisp.org>
29442         More conditional dependencies.
29443         * modules/faccessat (Depends-on): Add conditions.
29444         * modules/fchmodat (Depends-on): Likewise.
29445         * modules/fchownat (Depends-on): Likewise.
29446         * modules/fstatat (Depends-on): Likewise.
29447         * modules/mkfifoat (Depends-on): Likewise.
29448         * modules/readlinkat (Depends-on): Likewise.
29449         * modules/symlinkat (Depends-on): Likewise.
29450         * modules/unlinkat (Depends-on): Likewise.
29451         * modules/utimensat (Depends-on): Likewise.
29452         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29453         * modules/linkat (Depends-on): Refine the conditions.
29454         * modules/renameat (Depends-on): Likewise.
29456 2011-11-08  Bruno Haible  <bruno@clisp.org>
29458         faccessat: Move AC_LIBOBJ invocation to module description.
29459         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29460         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29461         invocation from here...
29462         * modules/faccessat (configure.ac): ... to here. Invoke
29463         gl_PREREQ_FACCESSAT.
29465 2011-11-08  Bruno Haible  <bruno@clisp.org>
29467         faccessat: Simplify autoconf macro.
29468         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29469         gl_FUNC_EUIDACCESS.
29471 2011-11-08  Bruno Haible  <bruno@clisp.org>
29473         renameat: Fix dependencies.
29474         * modules/renameat (Depends-on): Add stdbool.
29476 2011-11-08  Bruno Haible  <bruno@clisp.org>
29478         mkfifoat: Fix module description.
29479         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29480         not gl_UNISTD_MODULE_INDICATOR.
29482 2011-11-08  Bruno Haible  <bruno@clisp.org>
29484         fstatat: Remove unused dependency.
29485         * modules/fstatat (Depends-on): Remove fstat.
29487 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29489         GNUmakefile: behave when Makefile is missing.
29490         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29492 2011-11-08  Bruno Haible  <bruno@clisp.org>
29494         openat: Conditionalize dependencies.
29495         * lib/openat.c: Reduce the scope of some #includes.
29496         * modules/openat (Depends-on): Add conditions.
29498 2011-11-07  Jim Meyering  <meyering@redhat.com>
29500         maint.mk: extract GPG key ID without using a temporary file
29501         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29502         without using a temporary file.  Based on a suggestion from Werner Koch
29503         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29505 2011-11-07  Eric Blake  <eblake@redhat.com>
29507         grantpt: fix typo
29508         * lib/stdlib.in.h (grantpt): Check correct function.
29510         maint.mk: silence new syntax check
29511         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29513 2011-11-06  Bruno Haible  <bruno@clisp.org>
29515         Doc about floating-point and math API.
29516         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29517         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29519 2011-11-06  Bruno Haible  <bruno@clisp.org>
29521         stdalign tests: Skip the test when compiled by Sun C.
29522         * tests/test-stdalign.c (main): Skip the test on Sun C.
29524 2011-11-06  Bruno Haible  <bruno@clisp.org>
29526         ansi-c++-opt: Complete the 2011-06-05 change.
29527         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29528         does not support namespaces, set the variable to "no", not to ":".
29530 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29532         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29534 2011-11-06  Bruno Haible  <bruno@clisp.org>
29536         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29537         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29538         (minus_zerol) [HP-UX]: New macro.
29539         (unary_minus) [HP-UX]: New function.
29540         (copysignl) [HP-UX]: Use unary_minus function.
29542 2011-11-06  Bruno Haible  <bruno@clisp.org>
29544         ldexp, ldexpf, ldexpl: Enhance tests.
29545         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29546         and tests/test-ldexpl.c.
29547         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29548         LDEXP, MIN_EXP, MAX_EXP): New macros.
29549         Include test-ldexp.h.
29550         (main): Just call test_function.
29551         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29552         infinity.h, nan.h.
29553         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29554         MAX_EXP): New macros.
29555         Include test-ldexp.h.
29556         (x, y): Remove variables.
29557         (main): Just call test_function.
29558         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29559         infinity.h, nan.h.
29560         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29561         MAX_EXP): New macros.
29562         Include test-ldexp.h.
29563         (x, y): Remove variables.
29564         (main): Just call test_function.
29565         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29566         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29567         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29568         (Depends-on): Add isnand-nolibm, signbit, float.
29569         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29570         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29571         (Depends-on): Add isnanf-nolibm, signbit, float.
29573 2011-11-06  Bruno Haible  <bruno@clisp.org>
29575         math tests: Cosmetics.
29576         * tests/test-math-c++.cc: Reorder declarations.
29578 2011-11-05  Bruno Haible  <bruno@clisp.org>
29580         fma*: Simplify test.
29581         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29582         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29584         Tests for module 'fmal'.
29585         * modules/fmal-tests: New file.
29586         * tests/test-fmal1.c: New file.
29587         * tests/test-fmal2.c: New file.
29589         New module 'fmal'.
29590         * lib/math.in.h (fmal): New declaration.
29591         * lib/fmal.c: New file.
29592         * m4/fmal.m4: New file.
29593         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29595         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29596         REPLACE_FMAL.
29597         * modules/fmal: New file.
29598         * doc/posix-functions/fmal.texi: Mention the new module and the various
29599         bugs.
29601         Tests for module 'fmaf'.
29602         * modules/fmaf-tests: New file.
29603         * tests/test-fmaf1.c: New file.
29604         * tests/test-fmaf2.c: New file.
29606         New module 'fmaf'.
29607         * lib/math.in.h (fmaf): New declaration.
29608         * lib/fmaf.c: New file.
29609         * m4/fmaf.m4: New file.
29610         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29612         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29613         REPLACE_FMAF.
29614         * modules/fmaf: New file.
29615         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29616         bugs.
29618         Tests for module 'fma'.
29619         * modules/fma-tests: New file.
29620         * tests/test-fma1.c: New file.
29621         * tests/test-fma1.h: New file.
29622         * tests/test-fma2.c: New file.
29623         * tests/test-fma2.h: New file.
29625         New module 'fma'.
29626         * lib/math.in.h (fma): New declaration.
29627         * lib/fma.c: New file.
29628         * m4/fma.m4: New file.
29629         * m4/fegetround.m4: New file.
29630         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29632         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29633         REPLACE_FMA.
29634         * modules/fma: New file.
29635         * doc/posix-functions/fma.texi: Mention the new module and the various
29636         bugs.
29638         Extend gl_MATHFUNC.
29639         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29640         Support 'void' as argument type.
29641         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29643 2011-11-05  Jim Meyering  <meyering@redhat.com>
29645         maint.mk: also prohibit inclusion of dirent.h without use
29646         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29648 2011-11-05  Bruno Haible  <bruno@clisp.org>
29650         ldexpl tests: Avoid test failure on MSVC 9.
29651         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29652         value. Needed in order to enforce the conversion from a value greater
29653         than LDBL_MAX to Infinity.
29655 2011-11-05  Bruno Haible  <bruno@clisp.org>
29657         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29658         * modules/at-internal: New file, extracted from modules/openat.
29659         * modules/openat-h: New file.
29660         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29661         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29662         * modules/openat (Description): Add reference to POSIX function.
29663         (Files): Remove lib/openat.h, lib/openat-proc.c.
29664         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29665         intprops, unistd.
29666         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29667         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29668         gl_FCNTL_MODULE_INDICATOR.
29669         (Include): Remove unistd.h, openat.h.
29670         * modules/areadlinkat (Files): Add lib/at-func.c.
29671         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29672         openat-die, openat-h, save-cwd.
29673         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29674         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29675         openat-die, openat-h, save-cwd, unistd.
29676         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29677         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29678         openat-h, save-cwd. Remove fcntl-h, openat.
29679         * modules/fchmodat (Files): Remove lib/openat.h.
29680         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29681         openat, stdbool, unistd.
29682         * modules/fchownat (Files): Remove lib/openat.h.
29683         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29684         openat, stdbool, sys_stat.
29685         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29686         lib/openat-proc.c.
29687         (Depends-on): Add at-internal.
29688         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29689         * modules/fstatat (Files): Remove lib/openat.h.
29690         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29691         stdbool, unistd.
29692         * modules/fts (Depends-on): Add openat-h.
29693         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29694         openat.
29695         * modules/mkdirat (Files): Remove lib/openat.h.
29696         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29697         openat, stdbool, sys_stat.
29698         * modules/mkfifoat (Files): Add lib/at-func.c.
29699         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29700         openat-h, save-cwd. Remove fcntl-h, openat.
29701         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29702         * modules/readlinkat (Files): Add lib/at-func.c.
29703         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29704         openat-h, save-cwd. Remove fcntl-h, openat.
29705         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29706         openat.
29707         * modules/selinux-at (Files): Add lib/at-func.c.
29708         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29709         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29710         * modules/symlinkat (Files): Add lib/at-func.c.
29711         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29712         openat-h, save-cwd. Remove fcntl-h, openat.
29713         * modules/unlinkat (Files): Remove lib/openat.h.
29714         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29715         stdbool.
29716         * modules/utimensat (Files): Add lib/at-func.c.
29717         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29718         openat-die, openat-h, save-cwd.
29719         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29720         * modules/fdutimensat-tests (Depends-on): Add openat.
29721         * modules/fstatat-tests (Depends-on): Add openat-h.
29722         * modules/readlinkat-tests (Depends-on): Add openat.
29723         * modules/symlinkat-tests (Depends-on): Add openat.
29725 2011-11-05  Bruno Haible  <bruno@clisp.org>
29727         openat: Include <stdbool.h>.
29728         * lib/openat.c: Include <stdbool.h>.
29730 2011-11-04  Bruno Haible  <bruno@clisp.org>
29732         fchownat, renameat, unlinkat: Fix dependencies.
29733         * modules/fchownat (Depends-on): Add fstatat.
29734         * modules/renameat (Depends-on): Likewise.
29735         * modules/unlinkat (Depends-on): Likewise.
29737 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29739         openat: remove direct dependency on dirent
29740         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29741         and hasn't been needed ever since fdopendir was split into its own
29742         module on 2009-08-31.
29743         * modules/openat (Depends-on): Remove dirent.
29745 2011-11-04  Bruno Haible  <bruno@clisp.org>
29747         renameat: Optimize code size.
29748         * modules/renameat (configure.ac): Don't compile at-func2.c if
29749         REPLACE_RENAMEAT is 1.
29751 2011-11-04  Bruno Haible  <bruno@clisp.org>
29753         openat tests: Fix file list.
29754         * modules/openat-tests (Files): Add tests/test-open.h.
29756 2011-11-04  Bruno Haible  <bruno@clisp.org>
29758         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29759         * modules/fchmodat (Depends-on): Add openat-die.
29760         * modules/fchownat (Depends-on): Likewise.
29761         * modules/linkat (Depends-on): Likewise.
29762         * modules/renameat (Depends-on): Likewise.
29763         * modules/openat (Depends-on): Add dirent.
29765 2011-11-04  Jim Meyering  <meyering@redhat.com>
29767         at-func*.c: fix comments
29768         * lib/at-func2.c: Correct/improve first-line comment.
29769         * lib/at-func.c: Correct grammar in first-line comment.
29771 2011-11-04  Bruno Haible  <bruno@clisp.org>
29773         New module 'mkdirat', split off from module 'openat'.
29774         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29775         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29776         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29777         * modules/mkdirat: New file, extracted from modules/openat.
29778         * modules/openat (Files): Remove lib/mkdirat.c.
29779         (Depends-on): Remove mkdir.
29780         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29781         (Include): Remove <sys/stat.h>.
29782         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29783         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29784         tests/test-mkdir.h.
29785         (Depends-on): Remove ignore-value.
29786         (Makefile.am): Remove rules for test-mkdirat.
29787         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29788         of module 'openat'.
29789         * NEWS: Mention the change.
29791 2011-11-04  Bruno Haible  <bruno@clisp.org>
29793         closedir: Avoid warning on mingw.
29794         * lib/closedir.c: Include <unistd.h>.
29796 2011-11-04  Bruno Haible  <bruno@clisp.org>
29798         New module 'fstatat', split off from module 'openat'.
29799         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29800         defined.
29801         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29802         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29803         gl_FUNC_FSTATAT.
29804         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29805         * modules/fstatat: New file, extracted from modules/openat.
29806         * modules/openat (Files): Remove lib/fstatat.c.
29807         (Depends-on): Remove lstat.
29808         (configure.ac): Remove AC_LIBOBJ of fstatat.
29809         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29810         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29811         tests/test-lstat.h, tests/test-stat.h.
29812         (Depends-on): Remove getcwd-lgpl.
29813         (Makefile.am): Remove rules for test-fstatat.
29814         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29815         of module 'openat'.
29816         * NEWS: Mention the change.
29817         * modules/getcwd (Depends-on): Add fstatat.
29818         * modules/linkat (Depends-on): Likewise.
29819         * modules/mkfifoat-tests (Depends-on): Likewise.
29820         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29822 2011-11-03  Bruno Haible  <bruno@clisp.org>
29824         New module 'unlinkat', split off from module 'openat'.
29825         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29826         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29827         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29828         * modules/unlinkat: New file, extracted from modules/openat. Correct
29829         the dependency conditions.
29830         * modules/openat (Files): Remove lib/unlinkat.c.
29831         (Depends-on): Remove rmdir, unlink.
29832         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29833         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29834         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29835         tests/test-rmdir.h, tests/test-unlink.h.
29836         (Depends-on): Remove unlinkdir.
29837         (Makefile.am): Remove rules for test-unlinkat.
29838         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29839         of module 'openat'.
29840         * NEWS: Mention the change.
29841         * modules/linkat-tests (Depends-on): Add unlinkat.
29842         * modules/mkfifoat-tests (Depends-on): Likewise.
29843         * modules/readlinkat-tests (Depends-on): Likewise.
29845 2011-11-02  Bruno Haible  <bruno@clisp.org>
29847         New module 'fchmodat', split off from module 'openat'.
29848         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29849         defined.
29850         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29851         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29852         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29853         * modules/fchmodat: New file, extracted from modules/openat.
29854         * modules/openat (Files): Remove lib/fchmodat.c.
29855         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29856         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29857         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29858         (Makefile.am): Remove rules for test-fchmodat.
29859         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29860         of module 'openat'.
29861         * NEWS: Mention the change.
29863 2011-11-02  Jim Meyering  <meyering@redhat.com>
29865         putenv: indent #definition of "environ" to placate cppi
29866         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29868         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29869         Git logs are often treated as immutable, because editing them
29870         changes the SHA1 checksums of all descendants.  Thus, errors in
29871         git logs tend to stay there forever.  However, when we generate
29872         a ChangeLog file -- typically for distribution -- from that git log,
29873         we can actually make corrections in the generated file.  The key
29874         lies in recording in machine-readable/applicable form the desired
29875         corrections.  See --help for description and an example.
29876         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29877         (usage): Describe it; alphabetize option descriptions.
29878         (main): Honor the new option, carefully.
29880 2011-11-01  Jim Meyering  <meyering@redhat.com>
29882         gitlog-to-changelog: avoid an infloop
29883         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29884         that ends up being empty.
29886 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29888         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29889         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29890         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29891         contains (possibly-quoted) backslashes.  This should avoid
29892         all-too-common shell bugs if COMPLICATED contains backslashes in
29893         the "wrong" places.  Reported by David Evans in
29894         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29895         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29896         because we want ASCII ranges.  Is there some reason we don't use
29897         the C locale everywhere in this script?
29898         (func_module, top level): Avoid unwanted pathname expansion when
29899         $repo_url_prefix or $repo_url_suffix_repl contain shell
29900         metacharacters like '?' and '*'.
29902 2011-11-01  Bruno Haible  <bruno@clisp.org>
29904         fchownat: Improve description.
29905         * modules/fchownat (Description): Add link to function.
29907 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29909         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29910         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29911         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29912         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29914 2011-11-01  Bruno Haible  <bruno@clisp.org>
29916         alignof: Avoid collision with stdalign module.
29917         * lib/alignof.h (alignof): Remove macro.
29918         * NEWS: Mention the change.
29919         Reported by Paul Eggert.
29921 2011-11-01  Bruno Haible  <bruno@clisp.org>
29923         New module 'fchownat', split off from module 'openat'.
29924         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29925         defined.
29926         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29927         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29928         invoke gl_FUNC_FCHOWNAT.
29929         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29930         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29931         * modules/fchownat: New file, extracted from modules/openat.
29932         * modules/openat (Files): Remove lib/fchownat.c.
29933         (Depends-on): Remove lchown.
29934         (configure.ac): Remove AC_LIBOBJ of fchownat.
29935         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29936         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29937         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29938         (Depends-on): Remove mgetgroups, usleep, stat-time.
29939         (configure.ac): Remove test for getegid.
29940         (Makefile.am): Remove rules for test-fchownat.
29941         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29942         of module 'openat'.
29943         * NEWS: Mention the change.
29945 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29947         stdalign: port better to MSVC and to Sun C 5.11
29948         This fixes some of the problems reported by Bruno Haible in
29949         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29950         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29951         shortcomings of MSVC and of Sun C 5.11.
29952         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29953         around __declspec arg.
29954         * modules/stdalign-tests (Files): Add tests/macros.h.
29955         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29956         Include macros.h, for ASSERT.
29957         (DECLARE_ALIGNED): Remove.
29958         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29959         to catch bug), and to 1 if not (simplifies the rest of the code).
29960         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29961         (CHECK_AUTO): Remove.
29962         (CHECK_ALIGNED): Check only the alignment of the static vars,
29963         since auto var alignment isn't supported by Sun C 5.11.
29964         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29965         ASSERT failures are easier to diagnose.
29967 2011-10-31  Bruno Haible  <bruno@clisp.org>
29969         doc about some IRIX 5.3 problems.
29970         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29971         on IRIX 5.3.
29972         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29973         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29974         5.3.
29975         * doc/posix-functions/grantpt.texi: Likewise.
29976         * doc/posix-functions/unlockpt.texi: Likewise.
29977         * doc/posix-functions/lgamma.texi: Likewise.
29978         * doc/posix-functions/nextafter.texi: Likewise.
29979         * doc/posix-functions/remainder.texi: Likewise.
29980         * doc/posix-functions/select.texi: Mention misplaced declaration on
29981         IRIX 5.3.
29982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29984 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29986         gitlog-to-changelog: fix git-log invocation.
29987         git-log mishandles date strings before 1970-01-01 UTC, and there is
29988         no use to specify --since=1970-01-01 by default anyway.
29989         * build-aux/gitlog-to-changelog: By default, when no --since option
29990         was given, do not specify explicit --since option to git-log.
29992 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29994         gitlog-to-changelog: new option --append-dot.
29995         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29996         first non-blank line of each commit message terminated with a dot.
29998 2011-10-30  Bruno Haible  <bruno@clisp.org>
30000         ffsl, ffsll: Avoid compilation error due to 'restrict'.
30001         * lib/ffsl.h: Include <config.h>.
30002         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
30004 2011-10-30  Jim Meyering  <meyering@redhat.com>
30006         GNUmakefile: reenable "make syntax-check" for most projects
30007         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
30008         build-aux variable", "syntax-check" would do nothing but succeed with
30009         the "No version control files detected..." diagnostic (unless you
30010         happened to override _build-aux via cfg.mk).
30011         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
30012         to precede inclusion of maint.mk.  Otherwise, these variables would
30013         be used undefined in any project that does not override the default.
30015 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
30017         gitlog-to-changelog: treat a message with only blank lines as empty.
30018         * build-aux/gitlog-to-changelog: Move the code that removes leading and
30019         trailing blank lines before the code that issues a warning about an
30020         empty commit message.
30022 2011-10-30  Jim Meyering  <meyering@redhat.com>
30024         test-parse-datetime.c: avoid new DST-related false positive test failure
30025         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
30026         based on the time/date we'll convert, not the current time.
30027         Otherwise, the moment we cross a DST boundary like today's in
30028         Europe, (CEST to CET), that offset ends up being one hour off.
30030 2011-10-27  Bruno Haible  <bruno@clisp.org>
30032         fstat: Tweak documentation.
30033         * modules/fstat (Description): More precise description.
30035 2011-10-27  Bruno Haible  <bruno@clisp.org>
30037         Update documentation regarding 'largefile' module.
30038         * doc/posix-functions/fstat.texi: Tweak wording.
30039         * doc/posix-functions/opendir.texi: Mention that the module fixes the
30040         problems with huge directories and/or small ino_t types.
30041         * doc/posix-functions/readdir.texi: Likewise.
30042         * doc/posix-functions/rewinddir.texi: Likewise.
30044 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
30046         maint.mk: don't maintain a second build-aux variable.
30047         * maint.mk (build_aux): Removed.  The maintainer-makefile module
30048         depends on GNUmakefile, which already maintains a cfg.mk
30049         overridable $(_build-aux) for projects with a non-standard
30050         build-aux directory location, although without the $(srcdir)
30051         prefix.  Use that variable consistently instead of introducing a
30052         second one.  Adjust all call sites.
30054 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30056         Add stdalign module and use it in other modules.
30057         This is based on a previous proposal by Bruno Haible
30058         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
30060         stdalign: new module
30061         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
30062         * modules/stdalign: New files.
30063         * MODULES.html.sh (c1x_core_properties): Add stdalign.
30064         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
30066         stdalign-tests: new module
30067         * modules/stdalign-tests, tests/test-stdalign.c: New files.
30069         argp: use stdalign
30070         * lib/argp-parse.c: Include <stdalign.h>.
30071         (alignof): Remove.
30072         * modules/argp (Depends-on): Add stdalign.
30074         crypto libraries: use stdalign
30075         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
30076         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
30077         Do not include <stdlib.h> twice, in md4.c.
30078         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
30079         because we are accessing a pointer's bit-pattern, not a size.
30080         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
30081         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
30082         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
30083         * modules/crypto/sha512: Likewise.
30085         sys_socket: use stdalign, not alignof
30086         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
30087         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
30089 2011-10-27  Bruno Haible  <bruno@clisp.org>
30091         raise test: Avoid a test failure on Linux/MIPS.
30092         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
30093         because 99 is a valid signal on Linux/MIPS.
30095 2011-10-27  Bruno Haible  <bruno@clisp.org>
30097         nonblocking tests: Fix test failure on Linux/MIPS.
30098         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
30099         Set to 270000.
30101 2011-10-27  Bruno Haible  <bruno@clisp.org>
30103         utimensat: Work around problem on Linux/hppa.
30104         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
30105         values.
30106         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30108 2011-10-25  Jim Meyering  <meyering@redhat.com>
30110         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30111         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30112         after symbols like NULL, size_t, etc.
30113         Reported by Alfred M. Szmidt.
30115         maint.mk: exempt ENODATA from a syntax-check rule
30116         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30117         from the sc_prohibit_always-defined_macros syntax-check rule.
30118         Add a comment.  See this for more details:
30119         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30121 2011-10-23  Jim Meyering  <meyering@redhat.com>
30123         fts: close parent dir FD before returning from post-traversal fts_read
30124         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30125         unlink A, even though an FD open on A remained.  This is suboptimal
30126         (holding a file descriptor open longer than needed), but otherwise not
30127         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30128         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30129         that represents a real problem: it causes the removal of A to fail
30130         with e.g., "rm: cannot remove `A': Device or resource busy"
30132         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30133         directory file descriptors.  After completing the final, FTS_DP,
30134         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30135         cache, but then proceeded to add a new FD to it via the subsequent
30136         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30137         final file descriptor would be closed only via fts_close's call to
30138         fd_ring_clear.  Now, it is usually closed earlier, via the final
30139         FTS_DP-returning fts_read call.
30140         * lib/fts.c (restore_initial_cwd): New function, converted from
30141         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30142         Update callers.
30143         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30144         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30146 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30147             Bruno Haible  <bruno@clisp.org>
30148             Jim Meyering  <jim@meyering.net>
30150         readme-release: improve safety of release prep instructions.
30151         * README-release: Don't git pull all branches when only master
30152         is needed for the release process.
30153         Run make maintainer-clean before changing trees and merging.
30154         Don't try to run ./configure right after git pull in case files
30155         that influence the bootstrap process have changed, move the
30156         ./configure step to after running ./bootstrap.
30157         Don't bootstrap "one last time"... it's the first time!
30159 2011-10-22  Bruno Haible  <bruno@clisp.org>
30161         errno, strerror-override: Support for MSVC 10.
30162         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30163         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30164         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30165         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30166         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30167         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30168         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30169         Assign values compatible with MSVC 10.
30170         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30171         New macros.
30172         (GNULIB_defined_EWINSOCK): New macro.
30173         * lib/strerror-override.c (strerror_override): Update accordingly.
30174         * lib/strerror-override.h: Likewise.
30175         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30176         longer equal to the corresponding errno value.
30177         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30179 2011-10-22  Bruno Haible  <bruno@clisp.org>
30181         perror: Recognize when test program crashes.
30182         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30183         strerror, set gl_cv_func_perror_works to no.
30184         Reported by Daniel Richard G. <skunk@iskunk.org>.
30186         perror: Fix indentation.
30187         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30189 2011-10-22  Bruno Haible  <bruno@clisp.org>
30191         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30192         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30193         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30194         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30195         functions, not as a macro.
30196         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30197         macros.
30198         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30199         absence of macro.
30200         Suggested by Eric Blake.
30201         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30203 2011-10-21  Bruno Haible  <bruno@clisp.org>
30205         relocatable-prog-wrapper: Don't leave object files behind.
30206         * build-aux/install-reloc: Re-synchronize list of .o files to be
30207         removed with list of compilation units.
30209 2011-10-20  Bruno Haible  <bruno@clisp.org>
30211         openpty, posix_openpt: Remove code duplication.
30212         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30213         * lib/openpty.c: Include <stdlib.h>.
30214         (openpty): Use posix_openpt on all platforms except IRIX.
30215         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30217 2011-10-20  Bruno Haible  <bruno@clisp.org>
30219         unlockpt: Detect invalid argument.
30220         * lib/unlockpt.c: Include <fcntl.h>.
30221         (unlockpt): Check whether fd is valid, using fcntl().
30222         * modules/unlockpt (Depends-on): Add fcntl-h.
30224 2011-10-20  Bruno Haible  <bruno@clisp.org>
30226         openpty: Avoid compilation error on AIX 6.1.
30227         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30229 2011-10-20  Bruno Haible  <bruno@clisp.org>
30231         posix_openpt: Support for OpenBSD.
30232         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30233         (posix_openpt) [OpenBSD]: New code.
30234         * lib/grantpt.c: Include <fcntl.h>.
30235         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30236         * modules/grantpt (Depends-on): Add fcntl-h.
30238 2011-10-20  Bruno Haible  <bruno@clisp.org>
30240         posix_openpt test: Coding style.
30241         * tests/test-posix_openpt.c: Use GNU coding style.
30243 2011-10-20  Bruno Haible  <bruno@clisp.org>
30245         grantpt: Support --avoid=pt_chown.
30246         * modules/grantpt (Files): Add lib/pty-private.h.
30248 2011-10-20  Bruno Haible  <bruno@clisp.org>
30250         posix_openpt: Fix autoconf macro.
30251         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30252         unneeded check for _getpty.
30254 2011-10-20  Bruno Haible  <bruno@clisp.org>
30256         openpty: Update comments.
30257         * lib/openpty.c: Add comments about Minix.
30259 2011-10-19  Eric Blake  <eblake@redhat.com>
30261         openpty: relax license
30262         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30264         pt_chown: use configmake to simplify build
30265         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30267         ptsname and others: relax license
30268         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30269         * modules/unlockpt (License): Likewise.
30270         * modules/pt_chown (License): Likewise.
30271         * modules/ptsname (License): Likewise.
30272         * modules/ttyname_r (License): Likewise.
30274 2011-10-19  Jim Meyering  <meyering@redhat.com>
30276         posix_openpt: remove spurious #endif
30277         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30279 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30281         maint.mk: Respect $(build_aux) in web-manual rule.
30282         * top/maint.mk (web-manual): Find gen-announce script in user's
30283         $(build_aux) directory instead of hard-coding 'build-aux'.
30285 2011-10-19  Bruno Haible  <bruno@clisp.org>
30287         posix_openpt: Fix compilation error.
30288         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30289         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30290         Mention the openpty module as an alternative.
30292 2011-10-19  Bruno Haible  <bruno@clisp.org>
30294         Support for old NeXTstep 3.3 frexp().
30295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30296         execution time of the test to 5 seconds.
30297         Reported by Daniel Richard G. <skunk@iskunk.org>.
30299 2011-10-19  Bruno Haible  <bruno@clisp.org>
30301         Support for old NeXTstep 3.3 sed.
30302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30303         part, use /.../, not \|...|. Escape periods in the header file name.
30304         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30305         Reported by Daniel Richard G. <skunk@iskunk.org>.
30307 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30309         Support for old NeXTstep 3.3 gcc.
30310         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30311         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30312         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30313         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30314         * lib/regex.h (_Restrict_arr_): Likewise.
30315         * lib/regex_internal.h (re_token_t): Likewise.
30316         * lib/regexec.c (check_node_accept_bytes): Likewise.
30317         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30319 2011-10-18  Eric Blake  <eblake@redhat.com>
30321         posix_openpt: new module
30322         * modules/posix_openpt: New module.
30323         * m4/posix_openpt.m4: New file.
30324         * lib/posix_openpt.c: Likewise.
30325         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30326         (gl_STDLIB_H_DEFAULTS): Set defaults.
30327         * modules/stdlib (Makefile.am): Substitute macros.
30328         * lib/stdlib.in.h (posix_openpt): Declare.
30329         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30330         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30331         * modules/posix_openpt-tests: New test module.
30332         * tests/test-posix_openpt.c: New test.
30334 2011-10-15  Bruno Haible  <bruno@clisp.org>
30336         xstrtoll: Fix compilation failure.
30337         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30338         from lib/strtol.c.
30339         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30340         some platforms.
30341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30343 2011-10-15  Bruno Haible  <bruno@clisp.org>
30345         vasnprintf: Optimize bit search operation.
30346         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30348         gl_DOUBLE_EXPONENT_LOCATION.
30349         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30350         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30351         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30352         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30353         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30354         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30355         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30356         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30357         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30359 2011-10-15  Bruno Haible  <bruno@clisp.org>
30361         vasnprintf: Fix comments.
30362         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30364 2011-10-14  Bruno Haible  <bruno@clisp.org>
30366         Tests for module 'integer_length_ll'.
30367         * modules/integer_length_ll-tests: New file.
30368         * tests/test-integer_length_ll.c: New file.
30370         New module 'integer_length_ll'.
30371         * lib/integer_length_ll.c: New file.
30372         * modules/integer_length_ll: New file.
30374 2011-10-14  Bruno Haible  <bruno@clisp.org>
30376         Tests for module 'integer_length_l'.
30377         * modules/integer_length_l-tests: New file.
30378         * tests/test-integer_length_l.c: New file.
30380         New module 'integer_length_l'.
30381         * lib/integer_length_l.c: New file.
30382         * modules/integer_length_l: New file.
30384 2011-10-14  Bruno Haible  <bruno@clisp.org>
30386         Tests for module 'integer_length'.
30387         * modules/integer_length-tests: New file.
30388         * tests/test-integer_length.c: New file.
30390         New module 'integer_length'.
30391         * lib/integer_length.h: New file.
30392         * lib/integer_length.c: New file.
30393         * modules/integer_length: New file.
30395 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30397         popen: Fix dependency conditions.
30398         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30400 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30402         perror: Fix autoconf test.
30403         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30404         <stdlib.h> and <string.h>.
30406 2011-10-14  Bruno Haible  <bruno@clisp.org>
30408         ffsl: Optimize on 64-bit platforms.
30409         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30410         unrolling.
30412 2011-10-13  Bruno Haible  <bruno@clisp.org>
30414         ffsl: Optimize on 32-bit platforms.
30415         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30416         use ffs() without a loop.
30418         ffsl, ffsll: Optimize for GCC.
30419         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30420         * lib/ffsl.c (GCC_BUILTIN): New macro.
30421         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30423 2011-10-13  Bruno Haible  <bruno@clisp.org>
30425         ffs, bcopy, memset: Support symbol renaming via config.h.
30426         * lib/ffs.c: Include <config.h>.
30427         * lib/bcopy.c: Likewise.
30428         * lib/memset.c: Likewise.
30430 2011-10-10  Bruno Haible  <bruno@clisp.org>
30432         atanl: Simplify for platforms where 'long double' == 'double'.
30433         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30434         alternative implementation.
30435         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30436         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30437         * modules/atanl (Depends-on): Add atan. Update conditions.
30439 2011-10-10  Bruno Haible  <bruno@clisp.org>
30441         acosl: Simplify for platforms where 'long double' == 'double'.
30442         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30443         alternative implementation.
30444         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30445         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30446         * modules/acosl (Depends-on): Add acos. Update conditions.
30448 2011-10-10  Bruno Haible  <bruno@clisp.org>
30450         asinl: Simplify for platforms where 'long double' == 'double'.
30451         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30452         alternative implementation.
30453         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30454         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30455         * modules/asinl (Depends-on): Add asin. Update conditions.
30457 2011-10-10  Bruno Haible  <bruno@clisp.org>
30459         tanl: Simplify for platforms where 'long double' == 'double'.
30460         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30461         implementation.
30462         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30463         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30464         * modules/tanl (Depends-on): Add tan. Update conditions.
30465         (configure.ac): Don't compile trigl.c if
30466         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30468 2011-10-10  Bruno Haible  <bruno@clisp.org>
30470         cosl: Simplify for platforms where 'long double' == 'double'.
30471         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30472         implementation.
30473         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30474         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30475         * modules/cosl (Depends-on): Add cos. Update conditions.
30476         (configure.ac): Don't compile sincosl.c and trigl.c if
30477         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30479 2011-10-10  Bruno Haible  <bruno@clisp.org>
30481         sinl: Simplify for platforms where 'long double' == 'double'.
30482         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30483         implementation.
30484         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30485         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30486         * modules/sinl (Depends-on): Add sin. Update conditions.
30487         (configure.ac): Don't compile sincosl.c and trigl.c if
30488         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30490 2011-10-10  Bruno Haible  <bruno@clisp.org>
30492         logl: Simplify for platforms where 'long double' == 'double'.
30493         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30494         implementation.
30495         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30496         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30497         * modules/logl (Depends-on): Add log. Update conditions.
30499 2011-10-10  Bruno Haible  <bruno@clisp.org>
30501         expl: Simplify for platforms where 'long double' == 'double'.
30502         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30503         implementation.
30504         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30505         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30506         * modules/expl (Depends-on): Add exp. Update conditions.
30508 2011-10-10  Bruno Haible  <bruno@clisp.org>
30510         sqrtl: Simplify for platforms where 'long double' == 'double'.
30511         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30512         alternative implementation.
30513         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30514         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30515         * modules/sqrtl (Depends-on): Update conditions.
30517 2011-10-10  Bruno Haible  <bruno@clisp.org>
30519         ldexpl: Simplify for platforms where 'long double' == 'double'.
30520         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30521         alternative implementation.
30522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30523         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30524         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30526 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30528         ffsll: set correct witness
30529         * modules/ffsll (configure.ac): Fix typo.
30531 2011-10-10  Bruno Haible  <bruno@clisp.org>
30533         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30534         * lib/printf-frexpl.c: Include <config.h>.
30535         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30536         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30537         second time.
30538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30539         gl_LONG_DOUBLE_VS_DOUBLE.
30540         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30541         conditions.
30543 2011-10-10  Bruno Haible  <bruno@clisp.org>
30545         frexpl: Simplify for platforms where 'long double' == 'double'.
30546         * lib/frexpl.c: Include <config.h>.
30547         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30548         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30549         time.
30550         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30551         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30552         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30553         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30554         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30555         conditions.
30557 2011-10-10  Jim Meyering  <meyering@redhat.com>
30559         test-renameat: don't leave behind a temporary file
30560         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30561           ERROR: files left in build directory after distclean:
30562           ./gltests/test-renameat.too
30563           make[1]: *** [distcleancheck] Error 1
30564         Reported by Tom G. Christensen.
30566 2011-10-09  Bruno Haible  <bruno@clisp.org>
30568         rint: Determine RINT_LIBM correctly on AIX 7.
30569         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30570         directly, not only through a function pointer. Also accept an optional
30571         4th argument with extra code.
30572         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30573         rintf() call by gcc when optimizing.
30575         mathfunc.m4: Refactor.
30576         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30577         m4 variable.
30579 2011-10-09  Bruno Haible  <bruno@clisp.org>
30581         rintl: Simplify for platforms where 'long double' == 'double'.
30582         * lib/rintl.c: Include <config.h>.
30583         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30584         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30585         time.
30586         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30587         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30588         * modules/rintl (Depends-on): Add rint. Update conditions.
30590 2011-10-09  Bruno Haible  <bruno@clisp.org>
30592         roundl: Simplify for platforms where 'long double' == 'double'.
30593         * lib/roundl.c: Include <config.h>.
30594         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30595         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30596         time.
30597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30598         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30599         * modules/roundl (Depends-on): Add round. Update conditions.
30601 2011-10-09  Bruno Haible  <bruno@clisp.org>
30603         truncl: Simplify for platforms where 'long double' == 'double'.
30604         * lib/truncl.c: Include <config.h>.
30605         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30606         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30607         time.
30608         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30609         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30610         * modules/truncl (Depends-on): Add trunc. Update conditions.
30612 2011-10-09  Bruno Haible  <bruno@clisp.org>
30614         ceill: Simplify for platforms where 'long double' == 'double'.
30615         * lib/ceill.c: Include <config.h>.
30616         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30617         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30618         time.
30619         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30620         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30621         * modules/ceill (Depends-on): Add ceil. Update conditions.
30623 2011-10-09  Bruno Haible  <bruno@clisp.org>
30625         floorl: Simplify for platforms where 'long double' == 'double'.
30626         * lib/floorl.c: Include <config.h>.
30627         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30628         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30629         time.
30630         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30631         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30632         * modules/floorl (Depends-on): Add floor. Update conditions.
30634 2011-10-09  Bruno Haible  <bruno@clisp.org>
30636         rint: Fix ordering constraints.
30637         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30638         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30639         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30641 2011-10-09  Bruno Haible  <bruno@clisp.org>
30643         copysignl: Simplify for platforms where 'long double' == 'double'.
30644         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30645         alternative.
30646         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30647         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30648         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30650 2011-10-09  Bruno Haible  <bruno@clisp.org>
30652         Tests for module 'rintl'.
30653         * modules/rintl-tests: New file.
30654         * tests/test-rintl.c: New file.
30656         New module 'rintl'.
30657         * lib/math.in.h (rintl): New declaration.
30658         * lib/rintl.c: New file.
30659         * m4/rintl.m4: New file.
30660         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30662         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30663         * modules/rintl: New file.
30664         * tests/test-math-c++.cc: Check the declaration of rintl.
30665         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30666         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30667         * doc/posix-functions/rintl.texi: Mention the new module.
30669 2011-10-09  Bruno Haible  <bruno@clisp.org>
30671         Tests for module 'rintf'.
30672         * modules/rintf-tests: New file.
30673         * tests/test-rintf.c: New file.
30675         New module 'rintf'.
30676         * lib/math.in.h (rintf): New declaration.
30677         * lib/rintf.c: New file.
30678         * m4/rintf.m4: New file.
30679         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30681         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30682         * modules/rintf: New file.
30683         * tests/test-math-c++.cc: Check the declaration of rintf.
30684         * doc/posix-functions/rintf.texi: Mention the new module.
30686 2011-10-09  Bruno Haible  <bruno@clisp.org>
30688         rint: Support for MSVC.
30689         * lib/math.in.h (rint): New declaration.
30690         * lib/rint.c: New file.
30691         * m4/rint.m4: New file.
30692         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30694         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30695         * modules/rint (Description): Fix.
30696         (Files): Add lib/rint.c, m4/rint.m4.
30697         (Depends-on): Add math.
30698         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30699         gl_MATH_MODULE_INDICATOR.
30700         * tests/test-math-c++.cc: Check the declaration of rint.
30701         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30702         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30703         * doc/posix-functions/rint.texi: Mention the replacement provided by
30704         the module.
30706         rint tests: More tests.
30707         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30708         minus-zero.h, infinity.h, nan.h.
30709         (main): Skip the test if the current rounding mode is not standard. Add
30710         tests for negative numbers, minus zero, infinity, NaN.
30711         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30712         tests/nan.h.
30713         (Depends-on): Add isnand-nolibm.
30715 2011-10-09  Bruno Haible  <bruno@clisp.org>
30717         Tests for module 'copysignl'.
30718         * modules/copysignl-tests: New file.
30719         * tests/test-copysignl.c: New file.
30721         New module 'copysignl'.
30722         * lib/math.in.h (copysignl): New declaration.
30723         * lib/copysignl.c: New file.
30724         * m4/copysignl.m4: New file.
30725         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30727         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30728         HAVE_COPYSIGNL.
30729         * modules/copysignl: New file.
30730         * tests/test-math-c++.cc: Check the declaration of copysignl.
30731         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30732         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30733         * doc/posix-functions/copysignl.texi: Mention the new module.
30735 2011-10-09  Bruno Haible  <bruno@clisp.org>
30737         Tests for module 'copysignf'.
30738         * modules/copysignf-tests: New file.
30739         * tests/test-copysignf.c: New file.
30741         New module 'copysignf'.
30742         * lib/math.in.h (copysignf): New declaration.
30743         * lib/copysignf.c: New file.
30744         * m4/copysignf.m4: New file.
30745         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30747         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30748         HAVE_COPYSIGNF.
30749         * modules/copysignf: New file.
30750         * tests/test-math-c++.cc: Check the declaration of copysignf.
30751         * doc/posix-functions/copysignf.texi: Mention the new module.
30753 2011-10-09  Bruno Haible  <bruno@clisp.org>
30755         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30756         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30758         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30759         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30760         gl_SIGNAL_H_DEFAULTS.
30762 2011-10-09  Bruno Haible  <bruno@clisp.org>
30764         poll: Make macro safer.
30765         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30766         ac_cv_header_poll_h is not set.
30768 2011-10-09  Bruno Haible  <bruno@clisp.org>
30770         copysign: Provide replacement.
30771         * lib/math.in.h (copysign): New declaration.
30772         * lib/copysign.c: New file.
30773         * m4/copysign.m4: New file.
30774         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30776         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30777         HAVE_COPYSIGN.
30778         * modules/copysign (Description): Clarify.
30779         (Files): Add lib/copysign.c, m4/copysign.m4.
30780         (Depends-on): Add math, signbit.
30781         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30782         gl_MATH_MODULE_INDICATOR.
30783         * tests/test-math-c++.cc: Check the declaration of copysign.
30784         * doc/posix-functions/copysign.texi: Mention the effects of the module
30785         on Minix and MSVC.
30787 2011-10-09  Bruno Haible  <bruno@clisp.org>
30789         isinf: Ensure macro on AIX 5.1.
30790         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30791         macro.
30792         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30794 2011-10-09  Bruno Haible  <bruno@clisp.org>
30796         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30797         * modules/snprintf-posix-tests (configure.ac): Require
30798         gl_LONG_DOUBLE_VS_DOUBLE.
30799         * modules/sprintf-posix-tests (configure.ac): Likewise.
30800         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30801         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30802         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30803         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30804         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30805         tests on platforms where 'long double' is the same as 'double'.
30806         * tests/test-sprintf-posix.h (test_function): Likewise.
30807         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30808         * tests/test-vasprintf-posix.c (test_function): Likewise.
30810         *printf: Fix for platforms where 'long double' == 'double'.
30811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30812         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30813         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30814         * modules/fprintf-posix (Files): Likewise.
30815         * modules/obstack-printf-posix (Files): Likewise.
30816         * modules/snprintf-posix (Files): Likewise.
30817         * modules/sprintf-posix (Files): Likewise.
30818         * modules/vasnprintf (Files): Likewise.
30819         * modules/vasnprintf-posix (Files): Likewise.
30820         * modules/vasprintf-posix (Files): Likewise.
30821         * modules/vdprintf-posix (Files): Likewise.
30822         * modules/vfprintf-posix (Files): Likewise.
30823         * modules/vsnprintf-posix (Files): Likewise.
30824         * modules/vsprintf-posix (Files): Likewise.
30825         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30826         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30827         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30828         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30829         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30830         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30831         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30833         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30834         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30835         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30836         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30837         'long double'.
30838         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30840         isinf: Fix for platforms where 'long double' == 'double'.
30841         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30842         Don't blindly assume 80-bit 'long double'.
30844         isfinite: Fix for platforms where 'long double' == 'double'.
30845         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30846         Don't blindly assume 80-bit 'long double'.
30848         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30849         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30850         * modules/isfinite-tests (configure.ac): Require
30851         gl_LONG_DOUBLE_VS_DOUBLE.
30852         * modules/isinf-tests (configure.ac): Likewise.
30853         * modules/isnan-tests (configure.ac): Likewise.
30854         * modules/isnanl-tests (configure.ac): Likewise.
30855         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30856         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30857         tests on platforms where 'long double' is the same as 'double'.
30858         * tests/test-isinf.c (test_isinfl): Likewise.
30859         * tests/test-isnan.c (test_long_double): Likewise.
30860         * tests/test-isnanl.h (main): Likewise.
30862 2011-10-08  Bruno Haible  <bruno@clisp.org>
30864         Tests for module 'tanhf'.
30865         * modules/tanhf-tests: New file.
30866         * tests/test-tanhf.c: New file.
30868         New module 'tanhf'.
30869         * lib/math.in.h (tanhf): New declaration.
30870         * lib/tanhf.c: New file.
30871         * m4/tanhf.m4: New file.
30872         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30874         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30875         * modules/tanhf: New file.
30876         * tests/test-math-c++.cc: Check the declaration of tanhf.
30877         * doc/posix-functions/tanhf.texi: Mention the new module.
30879         tanh: Use a .m4 file.
30880         * m4/tanh.m4: New file.
30881         * modules/tanh (Files): Add it.
30882         (configure.ac): Just invoke gl_FUNC_TANH.
30884 2011-10-08  Bruno Haible  <bruno@clisp.org>
30886         Tests for module 'coshf'.
30887         * modules/coshf-tests: New file.
30888         * tests/test-coshf.c: New file.
30890         New module 'coshf'.
30891         * lib/math.in.h (coshf): New declaration.
30892         * lib/coshf.c: New file.
30893         * m4/coshf.m4: New file.
30894         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30896         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30897         * modules/coshf: New file.
30898         * tests/test-math-c++.cc: Check the declaration of coshf.
30899         * doc/posix-functions/coshf.texi: Mention the new module.
30901         cosh: Use a .m4 file.
30902         * m4/cosh.m4: New file.
30903         * modules/cosh (Files): Add it.
30904         (configure.ac): Just invoke gl_FUNC_COSH.
30906 2011-10-08  Bruno Haible  <bruno@clisp.org>
30908         Tests for module 'sinhf'.
30909         * modules/sinhf-tests: New file.
30910         * tests/test-sinhf.c: New file.
30912         New module 'sinhf'.
30913         * lib/math.in.h (sinhf): New declaration.
30914         * lib/sinhf.c: New file.
30915         * m4/sinhf.m4: New file.
30916         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30918         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30919         * modules/sinhf: New file.
30920         * tests/test-math-c++.cc: Check the declaration of sinhf.
30921         * doc/posix-functions/sinhf.texi: Mention the new module.
30923         sinh: Use a .m4 file.
30924         * m4/sinh.m4: New file.
30925         * modules/sinh (Files): Add it.
30926         (configure.ac): Just invoke gl_FUNC_SINH.
30928 2011-10-08  Bruno Haible  <bruno@clisp.org>
30930         Tests for module 'atan2f'.
30931         * modules/atan2f-tests: New file.
30932         * tests/test-atan2f.c: New file.
30934         New module 'atan2f'.
30935         * lib/math.in.h (atan2f): New declaration.
30936         * lib/atan2f.c: New file.
30937         * m4/atan2f.m4: New file.
30938         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30940         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30941         * modules/atan2f: New file.
30942         * tests/test-math-c++.cc: Check the declaration of atan2f.
30943         * doc/posix-functions/atan2f.texi: Mention the new module.
30945         atan2: Use a .m4 file.
30946         * m4/atan2.m4: New file.
30947         * modules/atan2 (Files): Add it.
30948         (configure.ac): Just invoke gl_FUNC_ATAN2.
30950 2011-10-08  Bruno Haible  <bruno@clisp.org>
30952         Tests for module 'atanf'.
30953         * modules/atanf-tests: New file.
30954         * tests/test-atanf.c: New file.
30956         New module 'atanf'.
30957         * lib/math.in.h (atanf): New declaration.
30958         * lib/atanf.c: New file.
30959         * m4/atanf.m4: New file.
30960         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30962         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30963         * modules/atanf: New file.
30964         * tests/test-math-c++.cc: Check the declaration of atanf.
30965         * doc/posix-functions/atanf.texi: Mention the new module.
30967         atan: Use a .m4 file.
30968         * m4/atan.m4: New file.
30969         * modules/atan (Files): Add it.
30970         (configure.ac): Just invoke gl_FUNC_ATAN.
30972 2011-10-08  Bruno Haible  <bruno@clisp.org>
30974         Tests for module 'acosf'.
30975         * modules/acosf-tests: New file.
30976         * tests/test-acosf.c: New file.
30978         New module 'acosf'.
30979         * lib/math.in.h (acosf): New declaration.
30980         * lib/acosf.c: New file.
30981         * m4/acosf.m4: New file.
30982         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30984         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30985         * modules/acosf: New file.
30986         * tests/test-math-c++.cc: Check the declaration of acosf.
30987         * doc/posix-functions/acosf.texi: Mention the new module.
30989         acos: Use a .m4 file.
30990         * m4/acos.m4: New file.
30991         * modules/acos (Files): Add it.
30992         (configure.ac): Just invoke gl_FUNC_ACOS.
30994 2011-10-08  Bruno Haible  <bruno@clisp.org>
30996         Tests for module 'asinf'.
30997         * modules/asinf-tests: New file.
30998         * tests/test-asinf.c: New file.
31000         New module 'asinf'.
31001         * lib/math.in.h (asinf): New declaration.
31002         * lib/asinf.c: New file.
31003         * m4/asinf.m4: New file.
31004         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
31005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
31006         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
31007         * modules/asinf: New file.
31008         * tests/test-math-c++.cc: Check the declaration of asinf.
31009         * doc/posix-functions/asinf.texi: Mention the new module.
31011         asin: Use a .m4 file.
31012         * m4/asin.m4: New file.
31013         * modules/asin (Files): Add it.
31014         (configure.ac): Just invoke gl_FUNC_ASIN.
31016 2011-10-08  Bruno Haible  <bruno@clisp.org>
31018         Tests for module 'tanf'.
31019         * modules/tanf-tests: New file.
31020         * tests/test-tanf.c: New file.
31022         New module 'tanf'.
31023         * lib/math.in.h (tanf): New declaration.
31024         * lib/tanf.c: New file.
31025         * m4/tanf.m4: New file.
31026         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
31027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
31028         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
31029         * modules/tanf: New file.
31030         * tests/test-math-c++.cc: Check the declaration of tanf.
31031         * doc/posix-functions/tanf.texi: Mention the new module.
31033         tan: Use a .m4 file.
31034         * m4/tan.m4: New file.
31035         * modules/tan (Files): Add it.
31036         (configure.ac): Just invoke gl_FUNC_TAN.
31038 2011-10-08  Bruno Haible  <bruno@clisp.org>
31040         Tests for module 'cosf'.
31041         * modules/cosf-tests: New file.
31042         * tests/test-cosf.c: New file.
31044         New module 'cosf'.
31045         * lib/math.in.h (cosf): New declaration.
31046         * lib/cosf.c: New file.
31047         * m4/cosf.m4: New file.
31048         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
31049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
31050         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
31051         * modules/cosf: New file.
31052         * tests/test-math-c++.cc: Check the declaration of cosf.
31053         * doc/posix-functions/cosf.texi: Mention the new module.
31055         cos: Use a .m4 file.
31056         * m4/cos.m4: New file.
31057         * modules/cos (Files): Add it.
31058         (configure.ac): Just invoke gl_FUNC_COS.
31060 2011-10-08  Bruno Haible  <bruno@clisp.org>
31062         Tests for module 'sinf'.
31063         * modules/sinf-tests: New file.
31064         * tests/test-sinf.c: New file.
31066         New module 'sinf'.
31067         * lib/math.in.h (sinf): New declaration.
31068         * lib/sinf.c: New file.
31069         * m4/sinf.m4: New file.
31070         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
31071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
31072         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
31073         * modules/sinf: New file.
31074         * tests/test-math-c++.cc: Check the declaration of sinf.
31075         * doc/posix-functions/sinf.texi: Mention the new module.
31077         sin: Use a .m4 file.
31078         * m4/sin.m4: New file.
31079         * modules/sin (Files): Add it.
31080         (configure.ac): Just invoke gl_FUNC_SIN.
31082 2011-10-08  Bruno Haible  <bruno@clisp.org>
31084         Tests for module 'powf'.
31085         * modules/powf-tests: New file.
31086         * tests/test-powf.c: New file.
31088         New module 'powf'.
31089         * lib/math.in.h (powf): New declaration.
31090         * lib/powf.c: New file.
31091         * m4/powf.m4: New file.
31092         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
31093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
31094         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
31095         * modules/powf: New file.
31096         * tests/test-math-c++.cc: Check the declaration of powf.
31097         * doc/posix-functions/powf.texi: Mention the new module.
31099         pow: Use a .m4 file.
31100         * m4/pow.m4: New file.
31101         * modules/pow (Files): Add it.
31102         (configure.ac): Just invoke gl_FUNC_POW.
31104 2011-10-08  Bruno Haible  <bruno@clisp.org>
31106         Tests for module 'log10f'.
31107         * modules/log10f-tests: New file.
31108         * tests/test-log10f.c: New file.
31110         New module 'log10f'.
31111         * lib/math.in.h (log10f): New declaration.
31112         * lib/log10f.c: New file.
31113         * m4/log10f.m4: New file.
31114         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31116         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31117         * modules/log10f: New file.
31118         * tests/test-math-c++.cc: Check the declaration of log10f.
31119         * doc/posix-functions/log10f.texi: Mention the new module.
31121         log10: Use a .m4 file.
31122         * m4/log10.m4: New file.
31123         * modules/log10 (Files): Add it.
31124         (configure.ac): Just invoke gl_FUNC_LOG10.
31126 2011-10-08  Bruno Haible  <bruno@clisp.org>
31128         Tests for module 'logf'.
31129         * modules/logf-tests: New file.
31130         * tests/test-logf.c: New file.
31132         New module 'logf'.
31133         * lib/math.in.h (logf): New declaration.
31134         * lib/logf.c: New file.
31135         * m4/logf.m4: New file.
31136         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31138         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31139         * modules/logf: New file.
31140         * tests/test-math-c++.cc: Check the declaration of logf.
31141         * doc/posix-functions/logf.texi: Mention the new module.
31143         log: Use a .m4 file.
31144         * m4/log.m4: New file.
31145         * modules/log (Files): Add it.
31146         (configure.ac): Just invoke gl_FUNC_LOG.
31148 2011-10-08  Bruno Haible  <bruno@clisp.org>
31150         Tests for module 'expf'.
31151         * modules/expf-tests: New file.
31152         * tests/test-expf.c: New file.
31154         New module 'expf'.
31155         * lib/math.in.h (expf): New declaration.
31156         * lib/expf.c: New file.
31157         * m4/expf.m4: New file.
31158         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31160         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31161         * modules/expf: New file.
31162         * tests/test-math-c++.cc: Check the declaration of expf.
31163         * doc/posix-functions/expf.texi: Mention the new module.
31165         exp: Use a .m4 file.
31166         * m4/exp.m4: New file.
31167         * modules/exp (Files): Add it.
31168         (configure.ac): Just invoke gl_FUNC_EXP.
31170 2011-10-08  Bruno Haible  <bruno@clisp.org>
31172         Tests for module 'sqrtf'.
31173         * modules/sqrtf-tests: New file.
31174         * tests/test-sqrtf.c: New file.
31176         New module 'sqrtf'.
31177         * lib/math.in.h (sqrtf): New declaration.
31178         * lib/sqrtf.c: New file.
31179         * m4/sqrtf.m4: New file.
31180         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31182         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31183         * modules/sqrtf: New file.
31184         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31185         * doc/posix-functions/sqrtf.texi: Mention the new module.
31187 2011-10-08  Bruno Haible  <bruno@clisp.org>
31189         Tests: Avoid link failures w.r.t. libintl.
31190         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31191         $(LIBINTL).
31192         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31193         $(LIBINTL).
31194         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31195         against $(LIBINTL).
31196         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31197         $(LIBINTL).
31198         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31199         $(LIBINTL).
31200         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31202 2011-10-08  Bruno Haible  <bruno@clisp.org>
31204         pow tests: Defeat compiler optimizations.
31205         * tests/test-pow.c (main): Assign arguments to x and y before use.
31207 2011-10-08  Bruno Haible  <bruno@clisp.org>
31209         gnulib-tool: Improve last commit.
31210         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31211         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31212         ignore dependencies that are not among the modules list.
31214 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31216         gnulib-tool: don't follow dependencies to avoided modules
31217         This fixes a bug that is related to the previous one.
31218         * gnulib-tool (func_modules_transitive_closure)
31219         (func_emit_autoconf_snippets):
31220         Check whether a dependency is acceptable before using it.
31221         (--extract-dependencies): Report an error if --avoid is also used,
31222         since this combination of options is not yet supported.
31224         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31225         Problem reported by Peter Dyballa in
31226         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31227         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31228         when echoing "$condition".
31230 2011-10-07  Bruno Haible  <bruno@clisp.org>
31232         Fix documentation about math functions on MacOS X.
31233         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31234         MacOS X 10.5.
31235         * doc/posix-functions/fdim.texi: Likewise.
31236         * doc/posix-functions/feclearexcept.texi: Likewise.
31237         * doc/posix-functions/fegetenv.texi: Likewise.
31238         * doc/posix-functions/fegetround.texi: Likewise.
31239         * doc/posix-functions/feholdexcept.texi: Likewise.
31240         * doc/posix-functions/feraiseexcept.texi: Likewise.
31241         * doc/posix-functions/fesetenv.texi: Likewise.
31242         * doc/posix-functions/fesetround.texi: Likewise.
31243         * doc/posix-functions/fetestexcept.texi: Likewise.
31244         * doc/posix-functions/feupdateenv.texi: Likewise.
31245         * doc/posix-functions/fmax.texi: Likewise.
31246         * doc/posix-functions/fmin.texi: Likewise.
31247         * doc/posix-functions/log2.texi: Likewise.
31248         * doc/posix-functions/modff.texi: Likewise.
31249         * doc/posix-functions/nan.texi: Likewise.
31250         * doc/posix-functions/nanf.texi: Likewise.
31251         * doc/posix-functions/nextafterf.texi: Likewise.
31252         * doc/posix-functions/remquo.texi: Likewise.
31254 2011-10-07  Bruno Haible  <bruno@clisp.org>
31256         modff: Drop assumption about library that defines modff.
31257         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31258         AC_CHECK_FUNCS.
31259         * modules/modff (Files): Add m4/mathfunc.m4.
31261 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31263         raise tests: Avoid a GCC warning.
31264         * tests/test-raise.c (handler): Use _Noreturn.
31266 2011-10-07  Bruno Haible  <bruno@clisp.org>
31268         Tests for module 'ldexpf'.
31269         * modules/ldexpf-tests: New file.
31270         * tests/test-ldexpf.c: New file.
31272         New module 'ldexpf'.
31273         * lib/math.in.h (ldexpf): New declaration.
31274         * lib/ldexpf.c: New file.
31275         * m4/ldexpf.m4: New file.
31276         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31278         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31279         * modules/ldexpf: New file.
31280         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31281         * doc/posix-functions/ldexpf.texi: Mention the new module.
31283 2011-10-06  Bruno Haible  <bruno@clisp.org>
31285         frexpf: Work around problems on IRIX and mingw.
31286         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31288         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31289         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31290         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31291         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31292         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31294 2011-10-06  Bruno Haible  <bruno@clisp.org>
31296         fabsf: Drop assumption about library that defines fabsf.
31297         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31298         AC_CHECK_FUNCS.
31299         * modules/fabsf (Files): Add m4/mathfunc.m4.
31301 2011-10-06  Bruno Haible  <bruno@clisp.org>
31303         frexpf: Drop assumption about library that defines frexpf.
31304         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31305         'int *', 'float *', 'long double *', 'float', 'long double'.
31306         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31307         AC_CHECK_FUNCS.
31308         * modules/frexpf (Files): Add m4/mathfunc.m4.
31310         Tests for module 'frexpf'.
31311         * modules/frexpf-tests: New file.
31312         * tests/test-frexpf.c: New file.
31314         New module 'frexpf'.
31315         * lib/math.in.h (frexpf): New declaration.
31316         * lib/frexpf.c: New file.
31317         * m4/frexpf.m4: New file.
31318         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31320         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31321         * modules/frexpf: New file.
31322         * tests/test-math-c++.cc: Check the declaration of frexpf.
31323         * doc/posix-functions/frexpf.texi: Mention the new module.
31325 2011-10-06  Bruno Haible  <bruno@clisp.org>
31327         math: Sort function declarations of math.in.h.
31328         * lib/math.in.h (frexp, logb): Move declarations.
31330 2011-10-05  Bruno Haible  <bruno@clisp.org>
31332         Tests for module 'modff'.
31333         * modules/modff-tests: New file.
31334         * tests/test-modff.c: New file.
31336         New module 'modff'.
31337         * lib/math.in.h (modff): New declaration.
31338         * lib/modff.c: New file.
31339         * m4/modff.m4: New file.
31340         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31342         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31343         * modules/modff: New file.
31344         * tests/test-math-c++.cc: Check the declaration of modff.
31345         * doc/posix-functions/modff.texi: Mention the new module.
31347         modf tests: Make test sharper.
31348         * tests/test-modf.c (main): Strengthen upper bound.
31350         modf: Use a .m4 file.
31351         * m4/modf.m4: New file.
31352         * modules/modf (Files): Add it.
31353         (configure.ac): Just invoke gl_FUNC_MODF.
31355 2011-10-05  Bruno Haible  <bruno@clisp.org>
31357         Tests for module 'fmodf'.
31358         * modules/fmodf-tests: New file.
31359         * tests/test-fmodf.c: New file.
31361         New module 'fmodf'.
31362         * lib/math.in.h (fmodf): New declaration.
31363         * lib/fmodf.c: New file.
31364         * m4/fmodf.m4: New file.
31365         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31367         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31368         * modules/fmodf: New file.
31369         * tests/test-math-c++.cc: Check the declaration of fmodf.
31370         * doc/posix-functions/fmodf.texi: Mention the new module.
31372         fmod: Use a .m4 file.
31373         * m4/fmod.m4: New file.
31374         * modules/fmod (Files): Add it.
31375         (configure.ac): Just invoke gl_FUNC_FMOD.
31377 2011-10-05  Bruno Haible  <bruno@clisp.org>
31379         Tests for module 'fabsf'.
31380         * modules/fabsf-tests: New file.
31381         * tests/test-fabsf.c: New file.
31383         New module 'fabsf'.
31384         * lib/math.in.h (fabsf): New declaration.
31385         * lib/fabsf.c: New file.
31386         * m4/fabsf.m4: New file.
31387         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31389         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31390         * modules/fabsf: New file.
31391         * tests/test-math-c++.cc: Check the declaration of fabsf.
31392         * doc/posix-functions/fabsf.texi: Mention the new module.
31394         fabs: Use a .m4 file.
31395         * m4/fabs.m4: New file.
31396         * modules/fabs (Files): Add it.
31397         (configure.ac): Just invoke gl_FUNC_FABS.
31399 2011-10-05  Jim Meyering  <meyering@redhat.com>
31401         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31402         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31403         ls -lL regression introduced in coreutils-8.12, it does so at the
31404         cost of an additional stat call in the common case.  Besides, now
31405         that the kernel change that prompted commit 95f7c57f has been reverted
31406         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31407         we have no use for commit 95f7c57f, "file-has-acl: use
31408         acl_extended_file_nofollow if available".
31410 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31412         file-has-acl: revert unintended change in behavior of ls -L
31413         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31414         derived from...
31415         (file_has_acl): ...code here.  Call it.
31416         This problem was introduced with 2011-07-22 commit 95f7c57f,
31417         "file-has-acl: use acl_extended_file_nofollow if available".
31418         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31420 2011-10-03  Bruno Haible  <bruno@clisp.org>
31422         poll: Avoid link errors on MSVC.
31423         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31424         * modules/poll (Depends-on): Add sockets.
31425         (Link): New section.
31426         * NEWS: Mention the change.
31427         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31428         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31429         $(LIB_POLL) instead of $(LIBSOCKET).
31431 2011-10-03  Bruno Haible  <bruno@clisp.org>
31433         sys_select tests: Fix link error on MSVC 9.
31434         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31435         with $(LIB_SELECT) instead of $(LIBSOCKET).
31437 2011-10-03  Bruno Haible  <bruno@clisp.org>
31439         sys_select: Fix compilation error on mingw.
31440         * lib/sys_select.in.h: On native Windows, include <io.h>.
31442 2011-10-03  Bruno Haible  <bruno@clisp.org>
31444         wmemset: Support for MSVC.
31445         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31446         whether wmemset() exists.
31448 2011-10-03  Bruno Haible  <bruno@clisp.org>
31450         wmemmove: Support for MSVC.
31451         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31452         whether wmemmove() exists.
31454 2011-10-03  Bruno Haible  <bruno@clisp.org>
31456         wmemcpy: Support for MSVC.
31457         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31458         whether wmemcpy() exists.
31460 2011-10-03  Bruno Haible  <bruno@clisp.org>
31462         wmemcmp: Support for MSVC.
31463         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31464         whether wmemcmp() exists.
31466 2011-10-03  Bruno Haible  <bruno@clisp.org>
31468         wmemchr: Support for MSVC.
31469         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31470         whether wmemchr() exists.
31472 2011-10-03  Bruno Haible  <bruno@clisp.org>
31474         glthread/*, strsignal: Support for MSVC.
31475         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31476         including <winsock.h> on MSVC 9.
31477         * lib/glthread/lock.h: Likewise.
31478         * lib/glthread/thread.h: Likewise.
31479         * lib/glthread/tls.h: Likewise.
31480         * lib/glthread/yield.h: Likewise.
31481         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31482         if HAVE_UNISTD_H is false.
31483         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31485 2011-10-03  Bruno Haible  <bruno@clisp.org>
31487         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31488         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31489         Set to 100000.
31491 2011-10-03  Bruno Haible  <bruno@clisp.org>
31493         acl: Fix specification.
31494         * lib/file-has-acl.c (file_has_acl): Fix specification.
31496 2011-10-03  Bruno Haible  <bruno@clisp.org>
31498         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31499         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31500         (compute_curr_prefix, shared_library_fullname,
31501         find_shared_library_fullname, get_shared_library_fullname, relocate):
31502         Use it together with PIC && INSTALLDIR.
31503         Reported by <jojelino@gmail.com>
31504         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31506 2011-10-01  Jim Meyering  <meyering@redhat.com>
31508         maint.mk: adjust a release-related rule not to require use of gzip
31509         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31510         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31511         projects that build only .tar.xz files.  Also fix an erroneous test.
31513         test-linkat: don't leave behind a temporary file
31514         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31515         Otherwise, coreutils' "make distcheck" would fail with this:
31516           Only in /c/cu/tests/torture/coreutils/test/\
31517             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31518           make[2]: *** [my-distcheck] Error 1
31520         float, math: add omitted file
31521         * lib/itold.c: Add file, required for yesterday's float change.
31523 2011-10-01  Bruno Haible  <bruno@clisp.org>
31525         isinf: Fix for OpenBSD/x86.
31526         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31527         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31528         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31530 2011-10-01  Bruno Haible  <bruno@clisp.org>
31532         isfinite: Fix syntax error in configure test.
31533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31535         isfinite: Fix typo.
31536         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31537         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31539 2011-10-01  Bruno Haible  <bruno@clisp.org>
31541         nonblocking tests: Fix test failure on Linux/IA-64.
31542         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31543         Set to 270000.
31545 2011-10-01  Bruno Haible  <bruno@clisp.org>
31547         mkfifoat tests: Fix a test failure on mingw.
31548         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31549         with error ENOSYS.
31551 2011-09-30  Bruno Haible  <bruno@clisp.org>
31553         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31554         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31555         'long double'. Set REPLACE_ITOLD.
31556         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31557         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31558         * lib/itold.c: New file.
31559         * modules/float (Files): Add lib/itold.c.
31560         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31561         (Makefile.am): Substitute REPLACE_ITOLD.
31562         * modules/math (Depends-on): Add float.
31563         (Makefile.am): Substitute REPLACE_ITOLD.
31564         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31565         * doc/posix-headers/math.texi: Likewise.
31566         * doc/posix-functions/logl.texi: Likewise.
31568 2011-09-30  Bruno Haible  <bruno@clisp.org>
31570         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31571         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31572         Set to 140000.
31574 2011-09-30  Bruno Haible  <bruno@clisp.org>
31576         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31577         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31578         invocation, say "right after AC_PROG_CC_STDC", not "right after
31579         AC_PROG_CC".
31580         Reported by Gary V. Vaughan <gary@gnu.org>.
31582 2011-09-30  Bruno Haible  <bruno@clisp.org>
31584         Centralize C99 requirement.
31585         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31586         * modules/stdarg (configure.ac-early): Invoke it instead of
31587         AC_PROG_CC_STDC.
31588         Reported by Gary V. Vaughan and Paul Eggert.
31590 2011-09-29  Bruno Haible  <bruno@clisp.org>
31592         float: Fix LDBL_MAX value on Linux/PowerPC.
31593         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31594         on Linux/PowerPC.
31595         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31596         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31597         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31598         platform.
31599         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31601 2011-09-29  Bruno Haible  <bruno@clisp.org>
31603         doc: Improve doc about gl_EARLY.
31604         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31605         AC_PROG_CC_STDC invocation.
31606         Reported by Gary V. Vaughan <gary@gnu.org>.
31608 2011-09-28  Bruno Haible  <bruno@clisp.org>
31610         fgetc, fputc, fread, fwrite tests: Fix link error.
31611         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31612         on non-MSVC platforms.
31613         * tests/test-fputc.c (main): Likewise.
31614         * tests/test-fread.c (main): Likewise.
31615         * tests/test-fwrite.c (main): Likewise.
31616         Reported by Jim Meyering.
31618 2011-09-27  Bruno Haible  <bruno@clisp.org>
31620         fputc, fwrite tests: Avoid test failure on MSVC.
31621         * tests/test-fgetc.c: Include msvc-inval.h.
31622         (main): Invoke gl_msvc_inval_ensure_handler.
31623         * tests/test-fputc.c: Include msvc-inval.h.
31624         (main): Invoke gl_msvc_inval_ensure_handler.
31625         * tests/test-fread.c: Include msvc-inval.h.
31626         (main): Invoke gl_msvc_inval_ensure_handler.
31627         * tests/test-fwrite.c: Include msvc-inval.h.
31628         (main): Invoke gl_msvc_inval_ensure_handler.
31629         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31630         * modules/fputc-tests (Depends-on): Likewise.
31631         * modules/fread-tests (Depends-on): Likewise.
31632         * modules/fwrite-tests (Depends-on): Likewise.
31634 2011-09-27  Bruno Haible  <bruno@clisp.org>
31636         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31637         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31638         (raise): Remove older, duplicated declaration.
31639         (_gl_raise_SIGPIPE): New declaration.
31640         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31641         (rpl_raise): Remove function.
31642         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31643         a gnulib-defined SIGPIPE here.
31644         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31645         'sigprocmask' has detected missing signal-blocking and the module
31646         'sigpipe' is enabled.
31647         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31649 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31651         base64-tests: avoid memory leak
31652         * tests/test-base64.c (main): Plug memory leak.
31654         base32: new module
31655         * modules/base32: New module.
31656         * lib/base32.c: New file.
31657         * lib/base32.h: Likewise.
31658         * m4/base32.m4: Likewise.
31659         * modules/base32-tests: New test.
31660         * tests/test-base32.c: Likewise.
31661         * MODULES.html.sh (Misc): Mention it.
31663 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31665         gnulib: use more-standard license notice wording
31666         * gnulib-tool (func_emit_copyright_notice): When emitting a
31667         license notice into a file, use the standard wording as suggested
31668         by the current information for GNU maintainers, except say "file"
31669         rather than "program".  The new wording gives a license version
31670         number, which addresses an issue raised by Glenn Morris in
31671         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31672         * m4/onceonly.m4: Use that same wording here, too.
31674         dup2: minor simplification
31675         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31676         as lib/dup2.c no longer uses 'inline'.
31678 2011-09-25  Bruno Haible  <bruno@clisp.org>
31680         strings: Fix compilation error on MSVC.
31681         * lib/strings.in.h: Include <stddef.h> for size_t.
31683 2011-09-25  Bruno Haible  <bruno@clisp.org>
31685         fflush et al.: Document limitation on MSVC.
31686         * doc/posix-functions/fflush.texi: Document possible crash in handling
31687         mode other than DEFAULT_HANDLING.
31688         * doc/posix-functions/fgetc.texi: Likewise.
31689         * doc/posix-functions/fputc.texi: Likewise.
31690         * doc/posix-functions/fread.texi: Likewise.
31691         * doc/posix-functions/fwrite.texi: Likewise.
31693 2011-09-25  Bruno Haible  <bruno@clisp.org>
31695         msvc-inval: Allow three invalid parameter handling modes.
31696         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31697         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31698         macros.
31699         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31700         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31701         SANE_LIBRARY_HANDLING as a no-op.
31702         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31703         <stdlib.h>.
31704         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31706 2011-09-25  Bruno Haible  <bruno@clisp.org>
31708         msvc-inval: Make handler multithread-safe.
31709         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31710         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31711         declarations.
31712         (gl_msvc_inval_current): New declaration.
31713         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31714         Operate on the structure returned by gl_msvc_inval_current().
31715         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31716         Remove varaiables.
31717         (tls_index, tls_initialized): New variables.
31718         (not_per_thread): New variable.
31719         (gl_msvc_inval_current): New function.
31720         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31721         returned by gl_msvc_inval_current().
31723 2011-09-25  Bruno Haible  <bruno@clisp.org>
31725         msvc-inval: Install handler globally.
31726         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31727         !_MSC_VER.
31728         (gl_msvc_invalid_parameter_handler): Remove declaration.
31729         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31730         declarations.
31731         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31732         Install the handler globally, don't uninstall it.
31733         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31734         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31735         currently valid, call RaiseException instead.
31736         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31737         for !_MSC_VER.
31739 2011-09-25  Bruno Haible  <bruno@clisp.org>
31741         strerror_r-posix: Fix for MSVC 9.
31742         * lib/strerror_r.c (local_snprintf): New function.
31743         (snprintf): Define to local_snprintf, not to _snprintf.
31745 2011-09-25  Bruno Haible  <bruno@clisp.org>
31747         ftruncate: Support for MSVC 9.
31748         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31749         (chsize_nothrow): New function.
31750         (chsize): Redefine as a macro.
31751         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31752         * modules/ftruncate (Depends-on): Add msvc-inval.
31754 2011-09-25  Bruno Haible  <bruno@clisp.org>
31756         New module 'fstat'.
31757         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31758         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31759         * lib/fchdir.c (rpl_fstat): Remove function.
31760         * m4/fstat.m4: New file.
31761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31763         declared.
31764         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31765         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31766         * modules/fstat: New file.
31767         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31768         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31769         is set.
31770         * doc/posix-functions/fstat.texi: Mention the new module and the
31771         problem on MSVC.
31772         * NEWS: Mention the change.
31773         * modules/acl (Depends-on): Add fstat.
31774         * modules/chdir-safer (Depends-on): Likewise.
31775         * modules/chown (Depends-on): Likewise.
31776         * modules/copy-file (Depends-on): Likewise.
31777         * modules/fchdir (Depends-on): Likewise.
31778         * modules/fdopendir (Depends-on): Likewise.
31779         * modules/fopen (Depends-on): Likewise.
31780         * modules/fts (Depends-on): Likewise.
31781         * modules/getcwd (Depends-on): Likewise.
31782         * modules/isapipe (Depends-on): Likewise.
31783         * modules/linkat (Depends-on): Likewise.
31784         * modules/lseek (Depends-on): Likewise.
31785         * modules/mkdir-p (Depends-on): Likewise.
31786         * modules/open (Depends-on): Likewise.
31787         * modules/openat (Depends-on): Likewise.
31788         * modules/read-file (Depends-on): Likewise.
31789         * modules/renameat (Depends-on): Likewise.
31790         * modules/utimens (Depends-on): Likewise.
31792 2011-09-25  Bruno Haible  <bruno@clisp.org>
31794         linkat: Fix compilation on MSVC 9.
31795         * lib/linkat.c: Don't include <stdint.h>.
31797 2011-09-25  Bruno Haible  <bruno@clisp.org>
31799         fclose: Support for MSVC 9.
31800         * lib/fclose.c: Include msvc-inval.h.
31801         (fclose_nothrow): New function.
31802         (rpl_fclose): Use it.
31803         * modules/fclose (Depends-on): Add msvc-inval.
31804         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31806 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31808         dup2: minor simplifications
31809         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31810         that it's a performance win.
31811         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31812         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31814 2011-09-24  Jim Meyering  <meyering@redhat.com>
31816         test-futimens: avoid a warning from gcc -Wshadow
31817         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31818         to avoid a shadowing warning.
31820 2011-09-24  Bruno Haible  <bruno@clisp.org>
31822         fdopen: Support for MSVC 9.
31823         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31824         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31825         * lib/fdopen.c: Include msvc-inval.h.
31826         (fdopen_nothrow): New function.
31827         (rpl_fdopen): Use it.
31828         * modules/fdopen (Depends-on): Add msvc-inval.
31829         * modules/fclose-tests (Depends-on): Add fdopen.
31830         * modules/fflush-tests (Depends-on): Likewise.
31831         * modules/fgetc-tests (Depends-on): Likewise.
31832         * modules/fputc-tests (Depends-on): Likewise.
31833         * modules/fread-tests (Depends-on): Likewise.
31834         * modules/freopen-tests (Depends-on): Likewise.
31835         * modules/fseeko-tests (Depends-on): Likewise.
31836         * modules/ftello-tests (Depends-on): Likewise.
31837         * modules/fwrite-tests  (Depends-on): Likewise.
31838         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31840 2011-09-24  Bruno Haible  <bruno@clisp.org>
31842         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31843         * modules/fgetc-tests (Depends-on): Add unistd.
31844         * modules/fputc-tests (Depends-on): Likewise.
31845         * modules/fread-tests (Depends-on): Likewise.
31846         * modules/fwrite-tests (Depends-on): Likewise.
31848 2011-09-24  Bruno Haible  <bruno@clisp.org>
31850         dup: Simplify autoconf test.
31851         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31852         on gl_MSVC_INVAL's result.
31854 2011-09-24  Bruno Haible  <bruno@clisp.org>
31856         Tests for function fwrite().
31857         * modules/fwrite-tests: New file.
31858         * tests/test-fwrite.c: New file.
31859         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31861         Tests for function fread().
31862         * modules/fread-tests: New file.
31863         * tests/test-fread.c: New file.
31864         * modules/stdio-tests (Depends-on): Add fread-tests.
31866         Activate fputc tests.
31867         * modules/stdio-tests (Depends-on): Add fputc-tests.
31869         Enhance fgetc, fputc tests.
31870         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31871         * tests/test-fputc.c (main): Likewise.
31873 2011-09-24  Bruno Haible  <bruno@clisp.org>
31875         write: Support for MSVC 9.
31876         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31877         is not 1.
31878         * lib/write.c (write_nothrow): New function.
31879         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31880         not 1. Use write_nothrow.
31881         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31882         invalid parameter handler.
31883         (gl_PREREQ_WRITE): New macro.
31884         * modules/write (Depends-on): Add msvc-inval.
31885         (configure.ac): Invoke gl_PREREQ_WRITE.
31886         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31888 2011-09-24  Bruno Haible  <bruno@clisp.org>
31890         read: Fix last commit.
31891         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31893 2011-09-24  Bruno Haible  <bruno@clisp.org>
31895         dup2: Fix last commit.
31896         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31897         (rpl_dup2): Disable fcntl workaround on native Windows.
31899         sigprocmask: Make code safer.
31900         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31901         section that changes macro definitions for this compilation unit.
31903 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31905         dup2: clarify by coalescing Windows-specific material
31906         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31907         "msvc-nothrow.h"' to the Windows-specific section, so that the
31908         Emacs source need not contain these include files.
31909         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31910         Windows-specific fixes into this function rather than just the
31911         nothrow fix, as this shortens and clarifies the code.  Always
31912         define as a function, as that's a bit cleaner than having it be
31913         sometimes a function and sometimes a macro.
31914         (rpl_dup2): Move the Windows-specific stuff out of here and into
31915         ms_windows_dup2.  Don't protect the Haiku-related fix with
31916         "#if !defined __linux__", as the same code also works around
31917         a Linux kernel bug, and it doesn't add any system calls on any
31918         platform.  Add comment about FreeBSD 6.1.
31920         sigprocmask: move #include directive
31921         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31922         Windows-specific section, so that the Emacs source need not
31923         contain msvc-inval.h.
31925 2011-09-23  Bruno Haible  <bruno@clisp.org>
31927         read: Support for MSVC 9.
31928         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31929         is not 1.
31930         * lib/read.c (read_nothrow): New function.
31931         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31932         read_nothrow.
31933         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31934         invalid parameter handler.
31935         (gl_PREREQ_READ): New macro.
31936         * modules/read (Depends-on): Add msvc-inval.
31937         (configure.ac): Invoke gl_PREREQ_READ.
31938         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31940 2011-09-23  Bruno Haible  <bruno@clisp.org>
31942         close: Support for MSVC 9.
31943         * lib/close.c: Include <errno.h>, msvc-inval.h.
31944         (close_nothrow): New function.
31945         (rpl_close): Use it.
31946         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31947         invalid parameter handler.
31948         * modules/close (Depends-on): Add msvc-inval.
31949         * modules/dup2-tests (Depends-on): Add close.
31950         * modules/dup3-tests (Depends-on): Likewise.
31951         * modules/fcntl-tests (Depends-on): Likewise.
31952         * modules/spawn-pipe-tests (Depends-on): Likewise.
31953         * modules/unistd-safer-tests (Depends-on): Likewise.
31954         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31956 2011-09-23  Bruno Haible  <bruno@clisp.org>
31958         New module 'dup'.
31959         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31960         Allow replacement.
31961         * lib/dup.c: New file.
31962         * lib/fchdir.c (rpl_dup): Remove function.
31963         * m4/dup.m4: New file.
31964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31965         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31966         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31967         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31968         * modules/dup: New file.
31969         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31970         'dup' module is in use.
31971         * modules/fdopendir (Depends-on): Add dup.
31972         * modules/fdutimensat-tests (Depends-on): Likewise.
31973         * modules/fts (Depends-on): Likewise.
31974         * modules/futimens-tests (Depends-on): Likewise.
31975         * modules/posix_spawnp-tests (Depends-on): Likewise.
31976         * modules/unistd-safer-tests (Depends-on): Likewise.
31977         * modules/utimens-tests (Depends-on): Likewise.
31978         * doc/posix-functions/dup.texi: Mention the new module and the problem
31979         on MSVC.
31981 2011-09-23  Bruno Haible  <bruno@clisp.org>
31983         getdtablesize: Support for MSVC 9.
31984         * lib/getdtablesize.c: Include msvc-inval.h.
31985         (_setmaxstdio_nothrow): New function.
31986         (_setmaxstdio): Redefine it.
31987         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31988         * modules/getdtablesize (Depends-on): Add msvc-inval.
31989         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31991 2011-09-23  Bruno Haible  <bruno@clisp.org>
31993         signal-h: Rename from signal.
31994         * modules/signal-h: Renamed from modules/signal.
31995         * modules/pthread_sigmask (Depends-on): Update.
31996         * modules/raise (Depends-on): Likewise.
31997         * modules/sigaction (Depends-on): Likewise.
31998         * modules/sigpipe (Depends-on): Likewise.
31999         * modules/sigprocmask (Depends-on): Likewise.
32000         * modules/sys_select (Depends-on): Likewise.
32001         * modules/signal-h-tests: Renamed from modules/signal-tests.
32002         (Files, Depends-on, Makefile.am): Update.
32003         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
32004         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
32005         (Files, Makefile.am): Update.
32006         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
32007         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
32008         * modules/signal: New placeholder file.
32009         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
32010         * doc/posix-headers/signal.texi: Update.
32011         * NEWS: Mention the change.
32013 2011-09-23  Bruno Haible  <bruno@clisp.org>
32015         sigprocmask: Avoid crashes through signal() on MSVC 9.
32016         * lib/sigprocmask.c: Include msvc-inval.h.
32017         (signal_nothrow): New function.
32018         (signal): Redefine it.
32019         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
32020         * modules/sigprocmask (Depends-on): Add msvc-inval.
32021         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
32023 2011-09-23  Bruno Haible  <bruno@clisp.org>
32025         Tests for module 'raise'.
32026         * modules/raise-tests: New file.
32027         * tests/test-raise.c: New file.
32029         raise: Support for MSVC.
32030         * lib/signal.in.h (raise): New declaration.
32031         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
32032         for native Windows platforms.
32033         * m4/raise.m4: New file.
32034         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
32035         HAVE_RAISE, REPLACE_RAISE.
32036         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
32037         REPLACE_RAISE.
32038         * modules/raise (Status, Notice): Remove fields.
32039         (Files): Add m4/raise.m4.
32040         (Depends-on): Add signal, msvc-inval.
32041         (configure.ac): Use the common idioms.
32042         (Maintainer): Add me.
32043         * tests/test-signal-c++.cc: Check the signature of raise.
32044         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
32046 2011-09-23  Bruno Haible  <bruno@clisp.org>
32048         pipe2: Fix compilation on pre-C99 compilers.
32049         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
32051 2011-09-23  Bruno Haible  <bruno@clisp.org>
32053         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
32054         * lib/msvc-nothrow.h: New file.
32055         * lib/msvc-nothrow.c: New file.
32056         * m4/msvc-nothrow.m4: New file.
32057         * modules/msvc-nothrow: New file.
32058         * lib/dup2.c: Include msvc-nothrow.h.
32059         (rpl_dup2): No need to protect _get_osfhandle call here.
32060         * lib/accept4.c: Include msvc-nothrow.h.
32061         * lib/error.c: Likewise.
32062         * lib/fcntl.c: Likewise.
32063         * lib/lseek.c: Likewise.
32064         * lib/nonblocking.c: Likewise.
32065         * lib/poll.c: Likewise.
32066         * lib/read.c: Likewise.
32067         * lib/select.c: Likewise.
32068         * lib/sockets.h: Likewise.
32069         * lib/sockets.c: Likewise.
32070         * lib/stdio-read.c: Likewise.
32071         * lib/stdio-write.c: Likewise.
32072         * lib/write.c: Likewise.
32073         * lib/w32sock.h: Likewise.
32074         * lib/w32spawn.h: Likewise.
32075         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
32076         * lib/fsync.c: Likewise.
32077         * lib/isapipe.c: Likewise.
32078         * modules/dup2 (Depends-on): Add msvc-nothrow.
32079         * modules/accept4 (Depends-on): Likewise.
32080         * modules/error (Depends-on): Likewise.
32081         * modules/fcntl (Depends-on): Likewise.
32082         * modules/lseek (Depends-on): Likewise.
32083         * modules/nonblocking (Depends-on): Likewise.
32084         * modules/poll (Depends-on): Likewise.
32085         * modules/read (Depends-on): Likewise.
32086         * modules/select (Depends-on): Likewise.
32087         * modules/sockets (Depends-on): Likewise.
32088         * modules/sigpipe (Depends-on): Likewise.
32089         * modules/write (Depends-on): Likewise.
32090         * modules/accept (Depends-on): Likewise.
32091         * modules/bind (Depends-on): Likewise.
32092         * modules/connect (Depends-on): Likewise.
32093         * modules/gethostname (Depends-on): Likewise.
32094         * modules/getpeername (Depends-on): Likewise.
32095         * modules/getsockname (Depends-on): Likewise.
32096         * modules/getsockopt (Depends-on): Likewise.
32097         * modules/ioctl (Depends-on): Likewise.
32098         * modules/listen (Depends-on): Likewise.
32099         * modules/recv (Depends-on): Likewise.
32100         * modules/recvfrom (Depends-on): Likewise.
32101         * modules/send (Depends-on): Likewise.
32102         * modules/sendto (Depends-on): Likewise.
32103         * modules/setsockopt (Depends-on): Likewise.
32104         * modules/shutdown (Depends-on): Likewise.
32105         * modules/socket (Depends-on): Likewise.
32106         * modules/execute (Depends-on): Likewise.
32107         * modules/spawn-pipe (Depends-on): Likewise.
32108         * modules/flock (Depends-on): Likewise.
32109         * modules/fsync (Depends-on): Likewise.
32110         * modules/isapipe (Depends-on): Likewise.
32111         * tests/test-cloexec.c: Include msvc-nothrow.h.
32112         * tests/test-dup-safer.c: Likewise.
32113         * tests/test-dup2.c: Likewise.
32114         * tests/test-dup3.c: Likewise.
32115         * tests/test-fcntl.c: Likewise.
32116         * tests/test-pipe.c: Likewise.
32117         * tests/test-pipe2.c: Likewise.
32118         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32119         * modules/unistd-safer-tests (Depends-on): Likewise.
32120         * modules/dup2-tests (Depends-on): Likewise.
32121         * modules/dup3-tests (Depends-on): Likewise.
32122         * modules/fcntl-tests (Depends-on): Likewise.
32123         * modules/pipe-posix-tests (Depends-on): Likewise.
32124         * modules/pipe2-tests (Depends-on): Likewise.
32126 2011-09-23  Bruno Haible  <bruno@clisp.org>
32128         dup2: Make code more maintainable.
32129         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32130         (rpl_dup2): Use it.
32131         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32132         * modules/dup2 (configure.ac): Invoke it.
32133         Reported by Paul Eggert.
32135 2011-09-23  Bruno Haible  <bruno@clisp.org>
32137         msvc-inval: Fix compilation error.
32138         * lib/msvc-inval.h: Include <excpt.h>.
32140 2011-09-23  Bruno Haible  <bruno@clisp.org>
32142         mkdir: Tweak for MSVC 9.
32143         * lib/sys_stat.in.h: Update comments.
32144         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32146         Tests for module 'chdir'.
32147         * modules/chdir-tests: New file.
32148         * tests/test-chdir.c: New file.
32150         New module 'chdir'.
32151         * modules/chdir: New file.
32152         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32153         (chdir): New declaration.
32154         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32155         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32156         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32157         * tests/test-unistd-c++.cc: Check signature of chdir.
32158         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32159         * modules/chdir-long (Depends-on): Add chdir.
32160         * modules/fchdir (Depends-on): Likewise.
32161         * modules/rename (Depends-on): Likewise.
32162         * modules/savewd (Depends-on): Likewise.
32164         rmdir: Support for mingw, MSVC 9.
32165         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32166         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32168         getcwd: Tweak for MSVC 9.
32169         * lib/unistd.in.h: Update comments.
32170         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32172 2011-09-22  Bruno Haible  <bruno@clisp.org>
32174         strerror_r-posix: Avoid a link error on MSVC.
32175         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32176         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32178 2011-09-22  Bruno Haible  <bruno@clisp.org>
32180         select: Avoid link errors on MSVC.
32181         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32182         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32183         * modules/pselect (Link): Likewise.
32184         * NEWS: Mention the change.
32185         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32186         test-select-stdin against $(LIB_SELECT).
32187         * modules/pselect-tests (Makefile.am): Link test-pselect against
32188         $(LIB_SELECT).
32190 2011-09-22  Bruno Haible  <bruno@clisp.org>
32192         select: Avoid compilation error on MSVC.
32193         * lib/select.c: Don't include <stdbool.h>.
32195 2011-09-21  Bruno Haible  <bruno@clisp.org>
32197         Consolidate all uses of PATH_MAX in *.m4 files.
32198         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32199         macros.
32200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32201         and gl_PATHMAX_SNIPPET.
32202         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32203         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32204         * modules/chdir-long (Files): Add m4/pathmax.m4.
32205         * modules/getcwd (Files): Likewise.
32207 2011-09-21  Bruno Haible  <bruno@clisp.org>
32209         ftruncate: Un-deprecate, concentrate on Win32 support.
32210         * modules/ftruncate (Status, Notice): Remove sections.
32211         (Depends-on): Add largefile.
32212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32213         non-mingw platforms.
32214         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32215         include <io.h>.
32216         * modules/perror-tests (Depends-on): Add ftruncate.
32217         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32218         'ftruncate' module.
32220 2011-09-21  Bruno Haible  <bruno@clisp.org>
32222         Add dependencies to new dirent related modules.
32223         * modules/opendir (Depends-on): Add closedir.
32224         * modules/getcwd (Depends-on): Add opendir, closedir.
32225         * modules/dirent-safer-tests (Depends-on): Likewise.
32226         * modules/fdopendir-tests (Depends-on): Likewise.
32227         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32228         * modules/renameat-tests (Depends-on): Likewise.
32230 2011-09-21  Bruno Haible  <bruno@clisp.org>
32232         opendir: Avoid compilation error on mingw.
32233         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32234         * modules/opendir (Depends-on): Add unistd.
32236 2011-09-21  Bruno Haible  <bruno@clisp.org>
32238         ftruncate tests: Avoid a test failure on mingw.
32239         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32241 2011-09-21  Bruno Haible  <bruno@clisp.org>
32243         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32244         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32245         native Windows.
32247 2011-09-21  Bruno Haible  <bruno@clisp.org>
32249         New module 'fdopen'.
32250         * lib/stdio.in.h (fdopen): New declaration.
32251         * lib/fdopen.c: New file.
32252         * m4/fdopen.m4: New file.
32253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32254         REPLACE_FDOPEN.
32255         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32256         REPLACE_FDOPEN.
32257         * modules/fdopen: New file.
32258         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32259         * tests/test-stdio-c++.cc: Check signature of fdopen.
32260         * doc/posix-functions/fdopen.texi: Mention the new module.
32262 2011-09-21  Bruno Haible  <bruno@clisp.org>
32264         unlockpt tests: Avoid test failure on NetBSD 5.1.
32265         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32266         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32268 2011-09-21  Bruno Haible  <bruno@clisp.org>
32270         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32271         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32272         * tests/test-getlogin_r.c (main): Likewise.
32274 2011-09-20  Bruno Haible  <bruno@clisp.org>
32276         time tests: Don't require pid_t.
32277         * doc/posix-headers/time.texi: Revert last change.
32278         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32279         * tests/test-time.c: Comment out the check for pid_t.
32281 2011-09-20  Bruno Haible  <bruno@clisp.org>
32283         fsync tests: Avoid a test failure on mingw.
32284         * tests/test-fsync.c (main): Allow a failure with EIO.
32286 2011-09-20  Bruno Haible  <bruno@clisp.org>
32288         euidaccess: Update comments.
32289         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32291 2011-09-20  Bruno Haible  <bruno@clisp.org>
32293         Ensure EBADF returns for socket functions on mingw.
32294         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32295         descriptor is invalid.
32296         * lib/bind.c (rpl_bind): Likewise.
32297         * lib/connect.c (rpl_connect): Likewise.
32298         * lib/getpeername.c (rpl_getpeername): Likewise.
32299         * lib/getsockname.c (rpl_getsockname): Likewise.
32300         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32301         * lib/listen.c (rpl_listen): Likewise.
32302         * lib/recv.c (rpl_recv): Likewise.
32303         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32304         * lib/send.c (rpl_send): Likewise.
32305         * lib/sendto.c (rpl_sendto): Likewise.
32306         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32307         * lib/shutdown.c (rpl_shutdown): Likewise.
32309 2011-09-20  Bruno Haible  <bruno@clisp.org>
32311         select tests: EBADF tests.
32312         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32313         test_bad_fd): New functions.
32314         (test_function): Invoke also test_bad_fd.
32316 2011-09-20  Bruno Haible  <bruno@clisp.org>
32318         Tests for module 'posix_spawn_file_actions_addopen.
32319         * modules/posix_spawn_file_actions_addopen-tests: New file.
32320         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32322         Tests for module 'posix_spawn_file_actions_adddup2'.
32323         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32324         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32326         Tests for module 'posix_spawn_file_actions_addclose'.
32327         * modules/posix_spawn_file_actions_addclose-tests: New file.
32328         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32330 2011-09-20  Bruno Haible  <bruno@clisp.org>
32332         Tests for module 'unlockpt'.
32333         * modules/unlockpt-tests: New file.
32334         * tests/test-unlockpt.c: New file.
32335         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32337         Tests for module 'grantpt'.
32338         * modules/grantpt-tests: New file.
32339         * tests/test-grantpt.c: New file.
32340         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32342 2011-09-20  Bruno Haible  <bruno@clisp.org>
32344         freopen tests: EBADF tests.
32345         * tests/test-freopen.c: Include errno.h, unistd.h.
32346         (main): Add tests for EBADF, commented out for the moment.
32348         fclose tests: EBADF tests.
32349         * tests/test-fclose.c (main): Add tests for EBADF.
32351         fflush tests: EBADF tests.
32352         * tests/test-fflush.c: Include errno.h, macros.h.
32353         (main): Add tests for EBADF.
32355         ftello tests: EBADF tests.
32356         * tests/test-ftello4.sh: New file.
32357         * tests/test-ftello4.c: New file.
32358         * modules/ftello-tests (Files): Add them.
32359         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32361         fseeko tests: EBADF tests.
32362         * tests/test-fseeko4.sh: New file.
32363         * tests/test-fseeko4.c: New file.
32364         * modules/fseeko-tests (Files): Add them.
32365         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32367         Tests for function fputc().
32368         * modules/fputc-tests: New file.
32369         * tests/test-fputc.c: New file.
32370         * modules/stdio-tests (Depends-on): Add fputc-tests.
32372         Tests for function fgetc().
32373         * modules/fgetc-tests: New file.
32374         * tests/test-fgetc.c: New file.
32375         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32377         Tests for function fdopen().
32378         * modules/fdopen-tests: New file.
32379         * tests/test-fdopen.c: New file.
32380         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32382         Tests for module 'vdprintf'.
32383         * modules/vdprintf-tests: New file.
32384         * tests/test-vdprintf.c: New file.
32386         Tests for module 'dprintf'.
32387         * modules/dprintf-tests: New file.
32388         * tests/test-dprintf.c: New file.
32390 2011-09-20  Bruno Haible  <bruno@clisp.org>
32392         Tests for module 'ioctl'.
32393         * modules/ioctl-tests: New file.
32394         * tests/test-ioctl.c: New file.
32396 2011-09-20  Bruno Haible  <bruno@clisp.org>
32398         fcntl tests: EBADF tests.
32399         * tests/test-fcntl.c (main): Add more tests for EBADF.
32401 2011-09-20  Bruno Haible  <bruno@clisp.org>
32403         utimensat tests: EBADF tests.
32404         * tests/test-utimensat.c (main): Add tests for EBADF.
32406         renameat tests: EBADF tests.
32407         * tests/test-renameat.c (main): Add tests for EBADF.
32409         mkfifoat tests: EBADF tests.
32410         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32412         readlinkat tests: EBADF tests.
32413         * tests/test-readlinkat.c (main): Add tests for EBADF.
32415         symlinkat tests: EBADF tests.
32416         * tests/test-symlinkat.c (main): Add tests for EBADF.
32418         linkat tests: EBADF tests.
32419         * tests/test-linkat.c (main): Add tests for EBADF.
32421         Tests for module 'faccessat'.
32422         * modules/faccessat-tests: New file.
32423         * tests/test-faccessat.c: New file.
32425         fdopendir tests: EBADF tests.
32426         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32428         openat tests: EBADF tests.
32429         * tests/test-fchownat.c (main): Add tests for EBADF.
32430         * tests/test-fstatat.c (main): Likewise.
32431         * tests/test-mkdirat.c (main): Likewise.
32432         * tests/test-openat.c (main): Likewise.
32433         * tests/test-unlinkat.c (main): Likewise.
32434         * tests/test-fchmodat.c: New file.
32435         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32436         (Makefile.am): Also run 'test-fchmodat'.
32438 2011-09-20  Bruno Haible  <bruno@clisp.org>
32440         utimens, futimens, fdutimensat tests: EBADF tests.
32441         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32443         Tests for function fstat().
32444         * modules/fstat-tests: New file.
32445         * tests/test-fstat.c: New file.
32446         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32448 2011-09-20  Bruno Haible  <bruno@clisp.org>
32450         test-ttyname_r tests: EBADF tests.
32451         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32453         Tests for module 'isatty'.
32454         * modules/isatty-tests: New file.
32455         * tests/test-isatty.c: New file.
32457         Tests for module 'write'.
32458         * modules/write-tests: New file.
32459         * tests/test-write.c: New file.
32461         Tests for module 'read'.
32462         * modules/read-tests: New file.
32463         * tests/test-read.c: New file.
32465         pwrite tests: EBADF tests.
32466         * tests/test-pwrite.c (main): Add tests for EBADF.
32468         pread tests: EBADF tests.
32469         * tests/test-pread.c (main): Add tests for EBADF.
32471         lseek tests: EBADF tests.
32472         * tests/test-lseek.c (main): Add more tests for EBADF.
32474         Tests for module 'ftruncate'.
32475         * modules/ftruncate-tests: New file.
32476         * tests/test-ftruncate.sh: New file.
32477         * tests/test-ftruncate.c: New file.
32479         fsync tests: EBADF tests.
32480         * tests/test-fsync.c (main): Add more tests for EBADF.
32482         fdatasync tests: EBADF tests.
32483         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32485         Tests for module 'fchown'.
32486         * modules/fchown-tests: New file.
32487         * tests/test-fchown.c: New file.
32489         Tests for module 'fchmod'.
32490         * modules/fchmod-tests: New file.
32491         * tests/test-fchmod.c: New file.
32493         fchdir tests: EBADF tests.
32494         * tests/test-fchdir.c (main): Add more tests for EBADF.
32496         dup2 tests: EBADF tests.
32497         * tests/test-dup2.c (main): Add more tests for EBADF.
32499         Tests for module 'dup'.
32500         * modules/dup-tests: New file.
32501         * tests/test-dup.c: New file.
32503         Tests for module 'close'.
32504         * modules/close-tests: New file.
32505         * tests/test-close.c: New file.
32507 2011-09-20  Bruno Haible  <bruno@clisp.org>
32509         Tests for module 'shutdown'.
32510         * modules/shutdown-tests: New file.
32511         * tests/test-shutdown.c: New file.
32513         Tests for module 'setsockopt'.
32514         * modules/setsockopt-tests: New file.
32515         * tests/test-setsockopt.c: New file.
32517         Tests for module 'sendto'.
32518         * modules/sendto-tests: New file.
32519         * tests/test-sendto.c: New file.
32521         Tests for module 'send'.
32522         * modules/send-tests: New file.
32523         * tests/test-send.c: New file.
32525         Tests for module 'recvfrom'.
32526         * modules/recvfrom-tests: New file.
32527         * tests/test-recvfrom.c: New file.
32529         Tests for module 'recv'.
32530         * modules/recv-tests: New file.
32531         * tests/test-recv.c: New file.
32533         Tests for module 'listen'.
32534         * modules/listen-tests: New file.
32535         * tests/test-listen.c: New file.
32537         Tests for module 'getsockopt'.
32538         * modules/getsockopt-tests: New file.
32539         * tests/test-getsockopt.c: New file.
32541         Tests for module 'getsockname'.
32542         * modules/getsockname-tests: New file.
32543         * tests/test-getsockname.c: New file.
32545         Tests for module 'getpeername'.
32546         * modules/getpeername-tests: New file.
32547         * tests/test-getpeername.c: New file.
32549         Tests for module 'connect'.
32550         * modules/connect-tests: New file.
32551         * tests/test-connect.c: New file.
32553         Tests for module 'bind'.
32554         * modules/bind-tests: New file.
32555         * tests/test-bind.c: New file.
32557         accept4 tests: Fix for native Windows.
32558         * tests/test-accept4.c: Include sockets.h.
32559         (main): Invoke gl_sockets_startup.
32560         * modules/accept4-tests (Depends-on): Add sockets.
32562         accept tests: Fix for native Windows.
32563         * tests/test-accept.c: Include sockets.h.
32564         (main): Invoke gl_sockets_startup.
32565         * modules/accept-tests (Depends-on): Add sockets.
32567 2011-09-19  Bruno Haible  <bruno@clisp.org>
32569         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32570         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32571         do...while(0).
32572         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32573         Suggested by Paul Eggert.
32575 2011-09-19  Bruno Haible  <bruno@clisp.org>
32577         sched: Ensure pid_t is defined.
32578         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32579         not define pid_t.
32580         * lib/sched.in.h: Include <sys/types.h>.
32581         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32584 2011-09-19  Bruno Haible  <bruno@clisp.org>
32586         msvc-inval: Ensure the entire expansion is a single statement.
32587         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32588         of braces.
32590 2011-09-19  Jim Meyering  <meyering@redhat.com>
32592         tests: use printf, not echo in init.sh's warn_ function
32593         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32594         misbehave when given strings containing a backslash or starting
32595         with e.g., -n.  James Youngman suggested setting IFS.
32597 2011-09-19  Eric Blake  <eblake@redhat.com>
32599         futimens: enhance test
32600         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32601         closed non-negative fd.
32603         date: accept 'hence' as opposite of 'ago'
32604         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32605         * tests/test-parse-datetime.c (main): Enhance test.
32606         Suggested by Jesse Wilson.
32608 2011-09-19  Jim Meyering  <meyering@redhat.com>
32610         getcwd: don't fail in a deep directory on a system without openat
32611         Before this change, getcwd would fail when called from a directory
32612         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32613         the non-openat implementation used "..", "../..", "../../..", etc.
32614         to access ancestor directories.  With too many, that string would
32615         be longer than PATH_MAX.
32616         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32617         using gnulib's openat replacement.
32618         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32619         we're using the replacement function.
32621 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32623         maint.mk: avoid warnings from perl about missing files
32624         * top/maint.mk (def_sym_regex): Ignore files listed in
32625         $(gl_other_headers_) that do not exist, say because a project
32626         does not use a corresponding module.
32628 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32630         stat: use pathmax.h only if needed
32631         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32632         This is better for Emacs, which does not have a mingw port and
32633         therefore can avoid the pathmax module.
32635         utimens: remove dependency on dup2
32636         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32637         to work around the Linux kernel bug.
32638         * modules/utimens (Depends-on): Remove dup2.
32640 2011-09-18  Bruno Haible  <bruno@clisp.org>
32642         inet_ntop, inet_pton: Look for it also in libresolv.
32643         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32644         libnsl, search for it in libresolv.
32645         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32646         Needed on Solaris 7.
32648 2011-09-18  Bruno Haible  <bruno@clisp.org>
32650         accept, accept4 tests: Avoid link error on Solaris.
32651         * modules/accept-tests (Makefile.am): Link test-accept against
32652         $(LIBSOCKET).
32653         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32654         $(LIBSOCKET).
32656         accept4: Avoid link error on Solaris.
32657         * modules/accept4 (Link): New section.
32659         socket functions: Avoid link errors on Solaris.
32660         * modules/accept (Depends-on): Add socketlib.
32661         (Link): New section.
32662         * modules/bind (Depends-on): Add socketlib.
32663         (Link): New section.
32664         * modules/connect (Depends-on): Add socketlib.
32665         (Link): New section.
32666         * modules/getpeername (Depends-on): Add socketlib.
32667         (Link): New section.
32668         * modules/getsockname (Depends-on): Add socketlib.
32669         (Link): New section.
32670         * modules/getsockopt (Depends-on): Add socketlib.
32671         (Link): New section.
32672         * modules/listen (Depends-on): Add socketlib.
32673         (Link): New section.
32674         * modules/recv (Depends-on): Add socketlib.
32675         (Link): New section.
32676         * modules/recvfrom (Depends-on): Add socketlib.
32677         (Link): New section.
32678         * modules/send (Depends-on): Add socketlib.
32679         (Link): New section.
32680         * modules/sendto (Depends-on): Add socketlib.
32681         (Link): New section.
32682         * modules/setsockopt (Depends-on): Add socketlib.
32683         (Link): New section.
32684         * modules/shutdown (Depends-on): Add socketlib.
32685         (Link): New section.
32686         * modules/socket (Depends-on): Add socketlib.
32687         (Link): New section.
32689 2011-09-18  Bruno Haible  <bruno@clisp.org>
32691         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32692         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32693         than 5 seconds.
32694         * modules/ptsname-tests (configure.ac): Test for alarm.
32696 2011-09-18  Bruno Haible  <bruno@clisp.org>
32698         posix_spawn_file_actions_add*: Fix module dependencies.
32699         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32700         posix_spawn_file_actions_init.
32701         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32702         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32704 2011-09-18  Bruno Haible  <bruno@clisp.org>
32706         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32707         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32708         * tests/test-renameat.c (main): Likewise.
32710 2011-09-18  Bruno Haible  <bruno@clisp.org>
32712         Tests for module 'accept4'.
32713         * modules/accept4-tests: New file.
32714         * tests/test-accept4.c: New file.
32716 2011-09-18  Bruno Haible  <bruno@clisp.org>
32718         Tests for module 'accept'.
32719         * modules/accept-tests: New file.
32720         * tests/test-accept.c: New file.
32722 2011-09-18  Bruno Haible  <bruno@clisp.org>
32724         dup2: Support for MSVC.
32725         * lib/dup2.c: Include msvc-inval.h.
32726         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32727         _get_osfhandle calls.
32728         * modules/dup2 (Depends-on): Add msvc-inval.
32729         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32731         New module 'msvc-inval'.
32732         * lib/msvc-inval.h: New file.
32733         * lib/msvc-inval.c: New file.
32734         * m4/msvc-inval.m4: New file.
32735         * modules/msvc-inval: New file.
32737 2011-09-17  Bruno Haible  <bruno@clisp.org>
32739         Tests for module 'pclose'.
32740         * modules/pclose-tests: New file.
32742         New module 'pclose'.
32743         * lib/stdio.in.h (pclose): New declaration.
32744         * lib/pclose.c: New file.
32745         * m4/pclose.m4: New file.
32746         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32747         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32748         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32749         * modules/pclose: New file.
32750         * modules/popen-tests (Depends-on): Add pclose.
32751         * modules/popen-safer-tests (Depends-on): Likewise.
32752         * doc/posix-functions/pclose.texi: Mention the new module.
32754 2011-09-17  Bruno Haible  <bruno@clisp.org>
32756         popen: Support for MSVC.
32757         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32758         * lib/popen.c (popen): Provide alternate definition for native Windows.
32759         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32761         * modules/popen (Depends-on, configure.ac): Update condition.
32762         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32763         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32764         fixed.
32766 2011-09-17  Bruno Haible  <bruno@clisp.org>
32768         isnanl, isnand, isnanf: Work around MSVC bug.
32769         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32771 2011-09-17  Bruno Haible  <bruno@clisp.org>
32773         sys_socket tests: Fix recent mistake.
32774         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32776 2011-09-17  Bruno Haible  <bruno@clisp.org>
32778         putenv: Support for MSVC.
32779         * modules/putenv (Depends-on): Add environ.
32780         * lib/putenv.c (environ): Disable declaration.
32781         * lib/unistd.in.h: Update comment.
32783 2011-09-17  Bruno Haible  <bruno@clisp.org>
32785         math: Avoid macro redefinition warnings on MSVC.
32786         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32787         Undefine before redefining.
32789 2011-09-17  Bruno Haible  <bruno@clisp.org>
32791         doc: Mention functions which are declared as macros.
32792         * doc/posix-functions/*[fl].texi: Mention that some functions are
32793         defined as macros with arguments only.
32795 2011-09-17  Bruno Haible  <bruno@clisp.org>
32797         Add dependencies to new dirent related modules.
32798         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32799         * modules/fts (Depends-on): Likewise.
32800         * modules/glob (Depends-on): Likewise.
32801         * modules/savedir (Depends-on): Likewise.
32802         * modules/scandir (Depends-on): Likewise.
32803         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32804         * modules/fdopendir (Depends-on): Add opendir.
32806 2011-09-17  Bruno Haible  <bruno@clisp.org>
32808         inet_pton: Support for MSVC on Windows Vista or newer.
32809         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32810         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32811         HAVE_DECL_INET_PTON is defined.
32812         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32813         On platforms with <winsock2.h>, test whether inet_pton is declared in
32814         <ws2tcpip.h>. If so, arrange to replace it.
32815         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32816         REPLACE_INET_PTON.
32817         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32818         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32819         (Depends-on, configure.ac): Update condition.
32820         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32822 2011-09-17  Bruno Haible  <bruno@clisp.org>
32824         inet_ntop: Support for MSVC on Windows Vista or newer.
32825         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32826         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32827         HAVE_DECL_INET_NTOP is defined.
32828         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32829         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32830         <ws2tcpip.h>. If so, arrange to replace it.
32831         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32832         REPLACE_INET_NTOP.
32833         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32834         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32835         (Depends-on, configure.ac): Update condition.
32836         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32838 2011-09-16  Eric Blake  <eblake@redhat.com>
32840         test-fsync: yet another enhancement
32841         * tests/test-fsync.c (main): Also test behavior on read-only text
32842         file.
32844 2011-09-16  Bruno Haible  <bruno@clisp.org>
32846         Enhance fsync, fdatasync tests.
32847         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32848         * tests/test-fdatasync.c (main): Likewise.
32850 2011-09-16  Bruno Haible  <bruno@clisp.org>
32852         Support for MSVC compiler: Ensure mode_t gets defined.
32853         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32854         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32855         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32856         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32857         * tests/test-fcntl-h.c: Check that mode_t is defined.
32858         * tests/test-sys_stat.c: Likewise.
32859         * tests/test-sys_types.c: Likewise.
32860         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32861         * doc/posix-headers/sys_stat.texi: Likewise.
32862         * doc/posix-headers/sys_types.texi: Likewise.
32864 2011-09-16  Bruno Haible  <bruno@clisp.org>
32866         sys_stat: Support for MSVC.
32867         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32868         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32869         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32870         MSVC.
32872 2011-09-16  Bruno Haible  <bruno@clisp.org>
32874         Support for MSVC compiler: Ensure off_t gets defined.
32875         * lib/unistd.in.h: Include <sys/types.h>.
32876         * tests/test-fcntl-h.c: Check that off_t is defined.
32877         * tests/test-sys_stat.c: Likewise.
32878         * tests/test-sys_types.c: Likewise.
32880 2011-09-16  Eric Blake  <eblake@redhat.com>
32882         fdatasync: port to Solaris
32883         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32884         * modules/fdatasync (Link): Document it.
32885         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32887         fdatasync: port to MacOS X 10.7
32888         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32889         declared.
32890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32891         * modules/unistd (Makefile.am): Substitute it.
32892         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32893         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32895         fdatasync: minor improvements
32896         * modules/fdatasync (Depends-on): Add condition for fsync.
32897         * lib/fdatasync.c (fdatasync): Add comment.
32898         * tests/test-unistd-c++.cc: Test fdatasync.
32900         unistd: update refs to newer POSIX
32901         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32902         Suggested by Bruno Haible.
32904         fdatasync: new module
32905         * modules/fsync (Description): Document difference to fdatasync.
32906         * modules/fdatasync: New module.
32907         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32908         * lib/fdatasync.c (fdatasync): Likewise.
32909         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32910         defaults.
32911         * modules/unistd (Makefile.am): Set witnesses.
32912         * lib/unistd.in.h (fdatasync): Declare.
32913         * MODULES.html.sh: Document it.
32914         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32915         * modules/fdatasync-tests: New test.
32916         * tests/test-fdatasync.c: Likewise.
32918 2011-09-16  Eric Blake  <eblake@redhat.com>
32920         test-fsync: enhance tests
32921         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32922         * tests/test-fsync.c (main): Enhance test.
32924 2011-09-15  Bruno Haible  <bruno@clisp.org>
32926         Support for MSVC compiler: Ensure ssize_t gets defined.
32927         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32928         * doc/posix-headers/stdio.texi: Likewise.
32929         * modules/stdio (Depends-on): Add ssize_t.
32930         * modules/sys_socket (Depends-on): Likewise.
32931         * modules/sys_types (Depends-on): Likewise.
32932         * modules/sys_uio (Depends-on): Likewise.
32933         * modules/unistd (Depends-on): Likewise.
32934         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32935         * tests/test-sys_types.c: Check that ssize_t is defined.
32937 2011-09-14  Bruno Haible  <bruno@clisp.org>
32939         Avoid using #, the m4 comment starter character, near brackets.
32940         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32941         delimiter character in sed expressions.
32942         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32943         Suggested by Eric Blake.
32945         Properly quote AC_CHECK_DECLS' 4th argument.
32946         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32947         argument.
32948         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32949         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32951         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32952         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32953         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32955         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32956         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32957         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32958         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32959         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32960         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32961         * m4/isinf.m4 (gl_ISINF): Likewise.
32962         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32963         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32964         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32965         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32967         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32968         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32969         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32970         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32971         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32972         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32975         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32977         Reported by Eric Blake.
32979         Properly quote AC_CHECK_DECL's 4th argument.
32980         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32981         argument.
32982         * m4/argp.m4 (gl_ARGP): Likewise.
32983         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32984         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32985         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32986         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32987         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32988         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32990         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32991         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32992         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32993         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32994         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32995         Reported by Eric Blake.
32997 2011-09-14  Eric Blake  <eblake@redhat.com>
32999         opendir: avoid compile warning
33000         * lib/opendir.c (includes): Always include errno.h.
33001         Reported by Tatsuro MATSUOKA.
33003 2011-09-14  Jim Meyering  <meyering@redhat.com>
33005         maint.mk: sc_tight_scope: propagate failure from sub-make
33006         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
33007         Reported by Martin von Gagern.
33009 2011-09-13  Bruno Haible  <bruno@clisp.org>
33011         tempname: Support for MSVC.
33012         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
33013         MSVC.
33014         * modules/tempname (Depends-on): Add fcntl-h.
33016 2011-09-13  Bruno Haible  <bruno@clisp.org>
33018         sys_time: Support for MSVC.
33019         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
33020         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
33021         include <winsock2.h>.
33022         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
33023         function declarations that collide with POSIX.
33024         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
33025         (Makefile.am): Substitute HAVE_WINSOCK2_H.
33027 2011-09-13  Bruno Haible  <bruno@clisp.org>
33029         stat: Support for MSVC.
33030         * lib/stat.c: Include pathmax.h.
33031         * modules/stat (Depends-on): Add pathmax.
33033         pathmax: Support for native Windows.
33034         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
33036 2011-09-12  Bruno Haible  <bruno@clisp.org>
33038         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
33039         * lib/dirent.in.h (struct dirent): New type.
33040         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
33041         DT_WHT): New macros.
33042         (DIR): New type.
33043         (opendir, closedir): Declare only if the module 'opendir' is enabled.
33044         (readdir, rewinddir): New declarations.
33045         * lib/dirent-private.h: New file.
33046         * lib/opendir.c: New file.
33047         * lib/readdir.c: New file.
33048         * lib/rewinddir.c: New file.
33049         * lib/closedir.c: New file.
33050         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
33051         * m4/opendir.m4: New file.
33052         * m4/readdir.m4: New file.
33053         * m4/rewinddir.m4: New file.
33054         * m4/closedir.m4: New file.
33055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
33056         REPLACE_CLOSEDIR here.
33057         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
33058         readdir, rewinddir are declared.
33059         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
33060         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
33061         HAVE_REWINDDIR, HAVE_CLOSEDIR.
33062         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33063         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
33064         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
33065         * modules/opendir: New file.
33066         * modules/readdir: New file.
33067         * modules/rewinddir: New file.
33068         * modules/closedir: New file.
33069         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
33070         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
33071         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
33072         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
33073         * NEWS: Mention the 'fchdir' change.
33075 2011-09-11  Bruno Haible  <bruno@clisp.org>
33077         asm-underscore.m4: Support for MSVC.
33078         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
33079         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
33081 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
33083         Doc about crypt functions.
33084         * doc/posix-functions/crypt.texi: Expand range of glibc versions
33085         needing for _GNU_SOURCE to get crypt.
33086         * doc/posix-functions/encrypt.texi: Likewise.
33087         * doc/posix-functions/setkey.texi: Likewise.
33089 2011-09-11  Bruno Haible  <bruno@clisp.org>
33091         doc: Update regarding MSVC 9.
33092         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
33093         tested".
33094         * doc/posix-functions/*.texi: Update with info about MSVC 9.
33095         * doc/posix-headers/*.texi: Likewise.
33096         * doc/pastposix-functions/*.texi: Likewise.
33097         * doc/glibc-functions/*.texi: Likewise.
33098         * doc/glibc-headers/*.texi: Likewise.
33100 2011-09-11  Bruno Haible  <bruno@clisp.org>
33102         unistd et al.: Don't assume <unistd.h> exists.
33103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
33104         does not exist.
33105         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33106         exist. But include <stdlib.h>.
33107         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33108         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33109         symlink() does not exist.
33110         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33111         include <io.h> instead.
33112         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33114         include <direct.h> instead.
33115         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33116         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33117         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33118         <io.h> instead.
33119         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33120         correctly if the system does not have hard links.
33121         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33122         <direct.h> instead.
33123         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33124         it when looking for function declarations.
33125         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33126         <direct.h> and <io.h> instead.
33127         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33129 2011-09-11  Bruno Haible  <bruno@clisp.org>
33131         strcase: Support for MSVC.
33132         * modules/strcase (Status, Notice): Remove obsoletion mark.
33133         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33134         * doc/posix-functions/strncasecmp.texi: Likewise.
33136         strings: Don't assume <strings.h> exists.
33137         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33138         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33139         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33140         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33142 2011-09-11  Bruno Haible  <bruno@clisp.org>
33144         dirent: Don't assume <dirent.h> exists.
33145         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33146         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33147         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33148         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33150 2011-09-11  Bruno Haible  <bruno@clisp.org>
33152         Fix wint_t on MSVC.
33153         * lib/wchar.in.h (wint_t): On MSVC, override it.
33154         * lib/wctype.in.h (wint_t): Likewise.
33155         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33156         MSVC.
33157         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33158         * doc/posix-headers/wctype.texi: Likewise.
33160 2011-09-11  Bruno Haible  <bruno@clisp.org>
33162         sys_types: Fix typo.
33163         * lib/sys_types.in.h: Fix typo in comment.
33164         Reported by Paul Eggert.
33166         Support for MSVC compiler: Ensure size_t gets defined.
33167         * modules/strings (Depends-on): Add 'sys_types'.
33168         * modules/sys_uio (Depends-on): Likewise.
33169         * lib/sys_uio.in.h: Update comment.
33171         C++ tests for module 'sys_types'.
33172         * modules/sys_types-c++-tests: New file.
33173         * tests/test-sys_types-c++.cc: New file.
33175         Tests for module 'sys_types'.
33176         * modules/sys_types-tests: New file.
33177         * tests/test-sys_types.c: New file.
33179         New module 'sys_types'.
33180         * lib/sys_types.in.h: New file.
33181         * m4/sys_types_h.m4: New file.
33182         * modules/sys_types: New file.
33183         * doc/posix-headers/sys_types.texi: Mention the new module and the
33184         size_t problem on MSVC 9.
33186 2011-09-11  Bruno Haible  <bruno@clisp.org>
33188         Support for MSVC compiler: Avoid division by a literal 0.
33189         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33191         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33192         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33193         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33194         * tests/infinity.h: New file.
33195         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33196         on MSVC.
33197         * tests/test-ceilf1.c: Include infinity.h.
33198         (main): Use Infinityf.
33199         * tests/test-ceil1.c: Include infinity.h.
33200         (main): Use Infinityd.
33201         * tests/test-ceill.c: Include infinity.h.
33202         (main): Use Infinityl.
33203         * tests/test-dprintf-posix.c: Include infinity.h.
33204         (test_function): Use Infinityd.
33205         * tests/test-floorf1.c: Include infinity.h.
33206         (main): Use Infinityf.
33207         * tests/test-floor1.c: Include infinity.h.
33208         (main): Use Infinityd.
33209         * tests/test-floorl.c: Include infinity.h.
33210         (main): Use Infinityl.
33211         * tests/test-fprintf-posix.c: Include infinity.h.
33212         (test_function): Use Infinityd.
33213         * tests/test-frexp.c: Include infinity.h.
33214         (main): Use Infinityd.
33215         * tests/test-frexpl.c: Include infinity.h.
33216         (main): Use Infinityl.
33217         * tests/test-isfinite.c: Include infinity.h.
33218         (test_isfinitef): Use Infinityf.
33219         (test_isfinited): Use Infinityd.
33220         (test_isfinitel): Use Infinityl.
33221         * tests/test-isinf.c: Include infinity.h.
33222         (test_isinff): Use Infinityf.
33223         (test_isinfd): Use Infinityd.
33224         (test_isinfl): Use Infinityl.
33225         * tests/test-isnan.c: Include infinity.h.
33226         (test_float): Use Infinityf.
33227         (test_double): Use Infinityd.
33228         (test_long_double): Use Infinityl.
33229         * tests/test-isnanf.h: Include infinity.h.
33230         (main): Use Infinityf.
33231         * tests/test-isnand.h: Include infinity.h.
33232         (main): Use Infinityd.
33233         * tests/test-isnanl.h: Include infinity.h.
33234         (main): Use Infinityl.
33235         * tests/test-ldexpl.c: Include infinity.h.
33236         (main): Use Infinityl.
33237         * tests/test-printf-posix.h: Include infinity.h.
33238         (test_function): Use Infinityd.
33239         * tests/test-roundf1.c: Include infinity.h.
33240         (main): Use Infinityf.
33241         * tests/test-round1.c: Include infinity.h.
33242         (main): Use Infinityd.
33243         * tests/test-roundl.c: Include infinity.h.
33244         (main): Use Infinityl.
33245         * tests/test-signbit.c: Include infinity.h.
33246         (test_signbitf): Use Infinityf.
33247         (test_signbitd): Use Infinityd.
33248         (test_signbitl): Use Infinityl.
33249         * tests/test-snprintf-posix.h: Include infinity.h.
33250         (test_function): Use Infinityd, Infinityl.
33251         * tests/test-sprintf-posix.h: Include infinity.h.
33252         (test_function): Use Infinityd, Infinityl.
33253         * tests/test-truncf1.c: Include infinity.h.
33254         (main): Use Infinityf.
33255         * tests/test-trunc1.c: Include infinity.h.
33256         (main): Use Infinityd.
33257         * tests/test-truncl.c: Include infinity.h.
33258         (main): Use Infinityl.
33259         * tests/test-vasnprintf-posix.c: Include infinity.h.
33260         (test_function): Use Infinityd, Infinityl.
33261         * tests/test-vasprintf-posix.c: Include infinity.h.
33262         (test_function): Use Infinityd, Infinityl.
33263         * modules/ceilf-tests (Files): Add tests/infinity.h.
33264         * modules/ceil-tests (Files): Likewise.
33265         * modules/ceill-tests (Files): Likewise.
33266         * modules/dprintf-posix-tests (Files): Likewise.
33267         * modules/floorf-tests (Files): Likewise.
33268         * modules/floor-tests (Files): Likewise.
33269         * modules/floorl-tests (Files): Likewise.
33270         * modules/fprintf-posix-tests (Files): Likewise.
33271         * modules/frexp-tests (Files): Likewise.
33272         * modules/frexp-nolibm-tests (Files): Likewise.
33273         * modules/frexpl-tests (Files): Likewise.
33274         * modules/frexpl-nolibm-tests (Files): Likewise.
33275         * modules/isfinite-tests (Files): Likewise.
33276         * modules/isinf-tests (Files): Likewise.
33277         * modules/isnan-tests (Files): Likewise.
33278         * modules/isnanf-tests (Files): Likewise.
33279         * modules/isnanf-nolibm-tests (Files): Likewise.
33280         * modules/isnand-tests (Files): Likewise.
33281         * modules/isnand-nolibm-tests (Files): Likewise.
33282         * modules/isnanl-tests (Files): Likewise.
33283         * modules/isnanl-nolibm-tests (Files): Likewise.
33284         * modules/ldexpl-tests (Files): Likewise.
33285         * modules/printf-posix-tests (Files): Likewise.
33286         * modules/roundf-tests (Files): Likewise.
33287         * modules/round-tests (Files): Likewise.
33288         * modules/roundl-tests (Files): Likewise.
33289         * modules/signbit-tests (Files): Likewise.
33290         * modules/snprintf-posix-tests (Files): Likewise.
33291         * modules/sprintf-posix-tests (Files): Likewise.
33292         * modules/truncf-tests (Files): Likewise.
33293         * modules/trunc-tests (Files): Likewise.
33294         * modules/truncl-tests (Files): Likewise.
33295         * modules/vasnprintf-posix-tests (Files): Likewise.
33296         * modules/vasprintf-posix-tests (Files): Likewise.
33297         * modules/vdprintf-posix-tests (Files): Likewise.
33298         * modules/vfprintf-posix-tests (Files): Likewise.
33299         * modules/vprintf-posix-tests (Files): Likewise.
33300         * modules/vsnprintf-posix-tests (Files): Likewise.
33301         * modules/vsprintf-posix-tests (Files): Likewise.
33302         * modules/xprintf-posix-tests (Files): Likewise.
33304 2011-09-11  Bruno Haible  <bruno@clisp.org>
33306         Ensure pid_t gets defined.
33307         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33308         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33309         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33310         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33311         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33312         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33313         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33314         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33315         * tests/test-fcntl-h.c: Check that pid_t is defined.
33316         * tests/test-sched.c: Likewise.
33317         * tests/test-termios.c: Likewise.
33318         * tests/test-time.c: Likewise.
33319         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33320         * doc/posix-headers/signal.texi: Likewise.
33321         * doc/posix-headers/sys_types.texi: Likewise.
33322         * doc/posix-headers/time.texi: Likewise.
33324 2011-09-11  Bruno Haible  <bruno@clisp.org>
33326         acl: Fix compilation on Solaris 10 (older version).
33327         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33328         of ACE_EVERYONE.
33329         * lib/set-mode-acl.c (qset_acl): Likewise.
33330         Reported by Christian Jullien <eligis@orange.fr>.
33332 2011-09-10  Bruno Haible  <bruno@clisp.org>
33334         iconv, unsetenv: Add support for MSVC compiler.
33335         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33338 2011-09-10  Bruno Haible  <bruno@clisp.org>
33340         *printf: Add support for MSVC compiler.
33341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33342         handles the exception caused by the %n directive. When cross-compiling,
33343         guess no on native Windows.
33344         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33345         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33346         emulate it through vsnprintf.
33347         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33348         * doc/posix-functions/dprintf.texi: Update documentation regarding
33349         MSVC 9.
33350         * doc/posix-functions/fprintf.texi: Likewise.
33351         * doc/posix-functions/printf.texi: Likewise.
33352         * doc/posix-functions/snprintf.texi: Likewise.
33353         * doc/posix-functions/sprintf.texi: Likewise.
33354         * doc/posix-functions/swprintf.texi: Likewise.
33355         * doc/posix-functions/vdprintf.texi: Likewise.
33356         * doc/posix-functions/vfprintf.texi: Likewise.
33357         * doc/posix-functions/vprintf.texi: Likewise.
33358         * doc/posix-functions/vsnprintf.texi: Likewise.
33359         * doc/posix-functions/vsprintf.texi: Likewise.
33360         * doc/glibc-functions/asprintf.texi: Likewise.
33361         * doc/glibc-functions/obstack_printf.texi: Likewise.
33362         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33363         * doc/glibc-functions/vasprintf.texi: Likewise.
33365 2011-09-10  Bruno Haible  <bruno@clisp.org>
33367         nocrash: Add support for native Windows.
33368         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33370 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33371             Bruno Haible  <bruno@clisp.org>
33373         absolute-header, include-next: Add support for MSVC compiler.
33374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33375         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33376         directory separator in #line directives.
33377         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33378         recognize also backslash as directory separator in #line directives.
33380 2011-09-08  Jim Meyering  <meyering@redhat.com>
33382         maint.mk: mark the post-release commit log with "maint: " prefix
33383         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33384         one-line commit-log summary.
33386 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33387             Bruno Haible  <bruno@clisp.org>
33389         Doc about crypt functions.
33390         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33391         systems.
33392         * doc/posix-functions/encrypt.texi: Likewise.
33393         * doc/posix-functions/setkey.texi: Likewise.
33395 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33397         * lib/gc.h: Fix copyright header.
33399 2011-09-07  Bruno Haible  <bruno@clisp.org>
33401         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33402         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33403         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33405 2011-09-07  Bruno Haible  <bruno@clisp.org>
33407         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33408         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33409         * lib/freopen.c: Likewise.
33410         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33411         * lib/lstat.c: Likewise.
33412         * lib/stat.c: Likewise.
33413         * lib/open.c: Use different syntax for include of <fcntl.h>.
33414         * lib/openat.c: Include fcntl.h again, explicitly.
33416 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33418         parse-datetime: document the newly accepted format
33419         * doc/parse-datetime.texi (Combined date and time of day items):
33420         New section.
33422 2011-09-06  Bruno Haible  <bruno@clisp.org>
33424         acl: Fix a test failure on newer Solaris 10 with ZFS.
33425         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33426         ENOSYS as no ACL.
33427         Reported by Jim Meyering.
33429 2011-09-06  Bruno Haible  <bruno@clisp.org>
33431         acl: Update for AIX >= 5.3 with NFS.
33432         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33433         ENOSYS as no ACL.
33435         acl: Fix a test failure on AIX >= 5.3 with NFS.
33436         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33437         as no ACL.
33439 2011-09-06  Bruno Haible  <bruno@clisp.org>
33441         acl: Fix a test failure on IRIX 6.5 with NFS.
33442         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33443         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33444         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33445         * lib/copy-acl.c (qcopy_acl): Likewise.
33447 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33449         openat: port to AIX 7.1 with large files
33450         AIX 7.1 does a "#define openat open64at" if large files are in use,
33451         so we can't simply #undef openat.  Use the orig_openat trick (similar
33452         to orig_open in lib/open.c) to work around the problem.  Problem
33453         reported by Kevin Brott for GNU tar, in the thread containing
33454         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33455         * lib/openat.c (__need_system_fcntl_h): Define first.
33456         Include <fcntl.h> and <sys/types.h> before undefining.
33457         (orig_openat) [HAVE_OPENAT]: New inline function.
33458         (openat) [HAVE_OPENAT]: Do not undef.
33459         (rpl_openat): Use orig_openat, not openat.
33461 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33462             Bruno Haible  <bruno@clisp.org>
33464         acl: Avoid errors on NonStop Kernel.
33465         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33466         ENOTSUP errors.
33468 2011-09-05  Bruno Haible  <bruno@clisp.org>
33470         acl: Clean up Solaris code.
33471         * lib/acl-internal.h: Remove no-op #if.
33472         * lib/file-has-acl.c: Likewise.
33473         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33474         * lib/copy-acl.c (qcopy_acl): Likewise.
33476 2011-09-05  Bruno Haible  <bruno@clisp.org>
33478         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33479         binaries built on the original Solaris 10.
33480         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33481         trivial.
33483 2011-09-05  Bruno Haible  <bruno@clisp.org>
33485         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33486         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33487         10.
33488         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33489         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33490         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33491         instead of acl_get, facl_get, acl_set, facl_set.
33493 2011-09-05  Bruno Haible  <bruno@clisp.org>
33495         copy-file: Try unit tests on more file systems.
33496         * tests/test-copy-file-1.sh: New file.
33497         * tests/test-copy-file-2.sh: New file.
33498         * modules/copy-file-tests (Files): Add them.
33499         (Makefile.am): Add them to TESTS.
33501         acl: Try unit tests on more file systems.
33502         * tests/test-file-has-acl-1.sh: New file.
33503         * tests/test-file-has-acl-2.sh: New file.
33504         * tests/test-set-mode-acl-1.sh: New file.
33505         * tests/test-set-mode-acl-2.sh: New file.
33506         * tests/test-copy-acl-1.sh: New file.
33507         * tests/test-copy-acl-2.sh: New file.
33508         * modules/acl-tests (Files): Add them.
33509         (Makefile.am): Add them to TESTS.
33511 2011-09-04  Bruno Haible  <bruno@clisp.org>
33513         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33514         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33515         10.
33516         (OLD_ALLOW, OLD_DENY): New macros.
33517         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33518         ACE_ACCESS_ALLOWED_ACE_TYPE.
33519         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33520         ACE_ACCESS_DENIED_ACE_TYPE.
33521         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33522         (NEW_ACE_EXECUTE): Fix value.
33523         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33524         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33525         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33526         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33527         NEW_ACE_SYNCHRONIZE): New macros.
33528         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33529         instead of acl_fromtext, acl_set, facl_set.
33530         Fixes a coreutils/tests/cp/perm failure.
33532 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33534         openat: test for fstatat (..., 0) bug
33535         Further testing with tar suggests that fstatat (..., 0)
33536         does not work in general, on AIX 7.1; see
33537         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33538         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33539         replacement fstatat (which is what older AIX releases were using
33540         anyway).
33541         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33542         use is now changed to orig_fstatat.  This was probably the right
33543         thing to do anyway.
33544         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33545         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33546         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33547         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33548         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33549         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33550         if the bug is found.
33552         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33553         This tests for another fstatat bug on AIX 7.1:
33554         fstatat (AT_FDCWD, ..., 0) does not work.  See
33555         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33556         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33557         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33558         (rpl_fstatat): Adjust so that it works around either (or both)
33559         bugs if present.
33560         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33562 2011-09-03  Karl Berry  <karl@gnu.org>
33564         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33565         in index entries.
33567 2011-09-02  Bruno Haible  <bruno@clisp.org>
33569         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33570         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33571         values of AR, ARFLAGS, RANLIB.
33572         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33574 2011-09-02  Bruno Haible  <bruno@clisp.org>
33576         Find 'ar' program that fits with --host argument.
33577         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33579 2011-09-02  Bruno Haible  <bruno@clisp.org>
33581         tests: init.sh: Support any non-GNU diff.
33582         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33583         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33584         Solaris 8.
33586 2011-09-02  Bruno Haible  <bruno@clisp.org>
33588         tests: init.sh: work also with any non-GNU diff that supports -u
33589         * tests/init.sh: Relax check for diff -u support.
33590         Rather than checking for GNU diff via --version, simply check
33591         for support for -u itself.  Useful at least on OpenBSD 4.9,
33592         AIX 7.1, IRIX 6.5, and Solaris 10.
33594 2011-09-01  Bruno Haible  <bruno@clisp.org>
33596         strtoimax, strtoumax: Document problem on HP-UX 11.
33597         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33598         * doc/posix-functions/strtoumax.texi: Likewise.
33600 2011-09-01  Bruno Haible  <bruno@clisp.org>
33602         strtoumax: Avoid link error on OSF/1 with DTK cc.
33603         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33604         defined as a function.
33605         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33606         strtoumax is defined, not whether it is declared.
33608 2011-09-01  Bruno Haible  <bruno@clisp.org>
33610         strtoimax: Avoid link error on OSF/1 with DTK cc.
33611         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33612         defined as a function.
33613         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33614         strtoimax is defined, not whether it is declared.
33616 2011-09-01  Bruno Haible  <bruno@clisp.org>
33618         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33619         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33620         as a function.
33621         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33622         whether it is declared.
33624 2011-09-01  Bruno Haible  <bruno@clisp.org>
33626         imaxabs: Avoid link error on OSF/1 with DTK cc.
33627         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33628         as a function.
33629         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33630         whether it is declared.
33632 2011-09-01  Bruno Haible  <bruno@clisp.org>
33634         Tests for module 'strtoumax'.
33635         * modules/strtoumax-tests: New file.
33636         * tests/test-strtoumax.c: New file.
33638         Tests for module 'strtoimax'.
33639         * modules/strtoimax-tests: New file.
33640         * tests/test-strtoimax.c: New file.
33642         Tests for module 'imaxdiv'.
33643         * modules/imaxdiv-tests: New file.
33644         * tests/test-imaxdiv.c: New file.
33646         Tests for module 'imaxabs'.
33647         * modules/imaxabs-tests: New file.
33648         * tests/test-imaxabs.c: New file.
33650 2011-09-01  Bruno Haible  <bruno@clisp.org>
33652         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33653         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33654         pthread_create.
33656 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33658         openat: work around AIX 7.1 fstatat issue
33659         This should fix the problem that was not properly fixed
33660         in the previous change, dated 2011-08-30.
33661         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33662         __need_system_stat_h defined.
33663         (orig_fstatat) [HAVE_FSTATAT]: New function.
33664         (rpl_fstatat): Go back to the old way of doing things,
33665         except call orig_fstatat instead of fstatat.
33666         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33667         Remove unnecessary check whether fstatat fills in st_size etc.
33669 2011-09-01  Bruno Haible  <bruno@clisp.org>
33671         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33672         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33673         just include the system's header.
33675 2011-08-31  Jim Meyering  <meyering@redhat.com>
33677         tests: avoid spurious assertion failure in test-float.c on ppc64
33678         * tests/test-float.c (test_long_double): Comment out an assertion,
33679         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33680         with gcc-4.4.4.
33682         maint: indent with spaces, not TABs
33683         I need to get in the habit of running gnulib's "make check".
33684         Both of these would have been caught.
33685         * m4/largefile.m4: Indent with spaces, not TABs.
33686         * lib/parse-datetime.y (iso_8601_time): Likewise.
33687         Spotted by Pádraig Brady.
33689         test-parse-datetime.c: accommodate a relatively strict gcc warning
33690         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33691         to avoid a warning from gcc's -Werror=missing-declarations.
33692         Insert a few spaces-before-funcall-parenthesis.
33694 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33696         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33697         The parser now accepts ISO 8601 date-time strings with "T" as the
33698         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33699         with a space between the date and time strings.  Now it also parses
33700         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33701         variants like "2004-02-29T16:21:42.333-07:00"
33702         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33703         of day representation using the 'T' separator character.
33704         * doc/parse-datetime.texi (General date syntax): replace use of
33705         deprecated --iso-8601 option with --rfc-3339 in example of date
33706         command output formats that can be parsed.
33707         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33708         lib/parse-datetime.y.
33709         (gmt_offset): New function.
33710         (main): Add additional test cases to validate ISO8601 extended
33711         date and time of day parsing.
33713 2011-08-31  Bruno Haible  <bruno@clisp.org>
33715         freopen: Documentation.
33716         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33717         name.
33718         Reported by Claudio Bley <claudio.bley@gmail.com>.
33720 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33722         freopen: Don't crash if the filename argument is NULL.
33723         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33724         NULL.
33726 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33728         openat: work around AIX 7.1 fstatat bug
33729         Problem reported by Kevin Brott for GNU tar, in the thread containing
33730         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33731         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33732         FSTATAT_ST_SIZE_ETC_BROKEN.
33733         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33734         rpl_fstatat.
33735         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33736         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33737         AC_CHECK_FUNCS_ONCE for fstatat.
33738         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33739         fchmodat, mkdirat, openat and unlinkat.
33741 2011-08-30  Bruno Haible  <bruno@clisp.org>
33743         Avoid endless recursions if config.h includes some header files.
33744         * lib/fopen.c (__need_FILE): Define already before including config.h.
33745         * lib/freopen.c (__need_FILE): Likewise.
33746         * lib/open.c (__need_system_fcntl_h): Likewise.
33747         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33748         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33749         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33751 2011-08-25  Karl Berry  <karl@gnu.org>
33753         * config/srclist.txt (ylwrap): new try.
33754         * build-aux/ylwrap: new file.
33756 2011-08-23  Bruno Haible  <bruno@clisp.org>
33758         tmpdir: Use a good default directory on native Windows.
33759         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33760         (P_tmpdir): Default to _P_tmpdir on native Windows.
33761         (path_search): On native Windows, try the value returned by GetTempPath
33762         before trying P_tmpdir.
33763         * modules/tmpdir (Depends-on): Add pathmax.
33764         Suggested by John Darrington <john@darrington.wattle.id.au>.
33766 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33768         doc: fix typo in README-release
33769         * top/README-release: Capitalize first word of a sentence.
33771 2011-08-19  Jim Meyering  <meyering@redhat.com>
33773         fts: do not exhaust memory when processing million-entry directories
33774         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33775         directory would require about 256*N bytes of memory.  Thus, it was
33776         easy to construct a directory too large to be processed by any of
33777         those tools.  With this change, fts' maximum memory utilization is
33778         now limited to around 30MB.
33779         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33780         (fts_read): When we've processed the final entry (i.e., when
33781         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33782         using the parent entry to read any remaining entries.  Dispatch
33783         depending on what fts_build returns:
33784         - NULL+stop, aka failure: stop
33785         - NULL otherwise: move up in the dir hierarchy
33786         - non-NULL: handle this new entry
33787         (fts_build): Declare and use new local, continue_readdir.
33788         Prepare to be called from fts_read, when the entries
33789         from a partially-read directory have just been exhausted.
33790         In that case, we'll skip the opendir and instead use the parent's
33791         fts_dirp and derive dir_fd from that.
33792         Finally, in the readdir loop, if we read max_entries entries,
33793         exit the loop ensuring *not* to call closedir.  This is required
33794         so that fts_dirp can be reused on a subsequent call.
33795         Prompted by Ben England's report of memory exhaustion in find
33796         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33798         maint: fts: move decl of `dp' down into while loop; split a long line
33799         * lib/fts.c (fts_build): No semantic change.
33801         fts: add/use new struct member, fts_dirp
33802         We are about to use this to manage any directory with
33803         too many entries to read all of them into memory at once.
33804         To do that, we'll need to save the DIR* pointer in each
33805         affected FTSENT struct.
33806         * lib/fts_.h: Include <dirent.h>.
33807         (struct FTSENT) [fts_dirp]: New member.
33808         * lib/fts.c (closedir_and_clear): Define.
33809         Use it in place of closedir so that we are sure to
33810         clear the new fts_dirp member when done with it.
33811         (fts_alloc): Initialize the new member.
33812         (fts_lfree): Free, if needed.
33814         maint: fts: give __opendir2 a new parameter and rename
33815         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33816         than surreptitiously using sole caller's "dir_fd".
33817         (fts_opendir): Rename from __opendir2.
33819         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33820         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33822         maint: fts.c: correct off-by-one indentation
33823         * lib/fts.c (fts_build): Correct indentation, change style
33824         of a couple of block comments, and bracing style.
33826         maint: fts.c: move __opendir2 #define "up" out of function body
33827         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33829         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33830         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33831         out for a long time and besides was useful only on BSD systems.
33833 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33835         regex: port to Stratus OpenVOS
33836         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33837         define to empty, rather than attempting nonportable optimizations.
33838         Problem reported by Paul Green in:
33839         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33840         and fix suggested by Eric Blake in:
33841         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33843 2011-08-17  Eric Blake  <eblake@redhat.com>
33845         getcwd: fix test failures on mingw
33846         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33847         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33848         test if long directory cannot be created, and allow mingw errno.
33850         getcwd-lgpl: fix m4 to match relaxed test for BSD
33851         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33852         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33853         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33854         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33855         signature problem.
33857         getcwd: fix compilation on mingw64
33858         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33859         getcwd.
33860         Reported by Marc-André Lureau.
33862         pipe2: silence compiler warning
33863         * lib/pipe2.c (pipe2): Hide label if it is not used.
33865 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33867         relocatable-prog: fix link error
33868         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33869         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33870         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33871         into modules/relocatable-lib without noticing that
33872         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33873         also needs to build relocatable.c.
33875 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33877         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33879         shell code: it contained a 'break' that was not in a loop.
33880         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33881         via a shell-language loop; this may have been true in old Autoconf
33882         versions, but it's not true in Autoconf 2.68.  I found this bug
33883         when testing coreutils git on Solaris 8, whose shell complains
33884         about the syntax error.
33886 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33888         * lib/base64.c: Fix comment to reference RFC 4648.
33889         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33890         <gvtulder@gmail.com>.
33892 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33894         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33896         po/Makefile.in.in: fix make -q problem
33897         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33898         rule, since there's no file named 'check-macro-version' and its
33899         use as a file breaks make -q.
33900         (all): Don't depend on check-macro-version.
33901         (CHECK_MACRO_VERSION): New macro.
33902         (stamp-po): Use it.
33904         configmake: fix make -q problem
33905         * modules/configmake (configmake.h): Update configmake.h's time stamp
33906         even if the file does not change.  Otherwise, 'make -q' fails.
33907         Problem reported by Simon Josefsson in
33908         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33910 2011-08-11  Jim Meyering  <meyering@redhat.com>
33912         git-version-gen: correct the advice in a comment
33913         * build-aux/git-version-gen: Correct comment.
33914         Don't recommend to list .tarball-version in .gitignore.
33916 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33918         base64: fix off-by-one buffer size bug
33919         Problem and (trivial) fix reported by Gijs van Tulder in
33920         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33921         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33922         * tests/test-base64.c (main): Catch the bug.
33924 2011-08-10  Eric Blake  <eblake@redhat.com>
33926         closein: correct comments
33927         * lib/closein.c (close_stdin): Improve comments.
33929 2011-08-09  Bruno Haible  <bruno@clisp.org>
33931         More tests for 'fseeko'.
33932         * tests/test-fseeko3.c: New file, from Eric Blake.
33933         * tests/test-fseeko3.sh: New file.
33934         * modules/fseeko-tests (Files): Add them.
33935         (TESTS): Add test-fseeko3.sh.
33936         (check_PROGRAMS): Add test-fseeko3.
33938 2011-08-09  Eric Blake  <eblake@redhat.com>
33940         fseeko: remove unneeded hack
33941         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33943         fseeko: fix bug on glibc
33944         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33945         Reported by John W. Eaton.
33947 2011-08-08  Bruno Haible  <bruno@clisp.org>
33949         unictype/base: Fix interoperability with preinstalled libunistring.
33950         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33951         Reported by Simon Josefsson.
33953 2011-08-08  Bruno Haible  <bruno@clisp.org>
33955         iswblank: Detect declaration correctly.
33956         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33957         AC_CHECK_DECLS invocation.
33959 2011-08-08  Bruno Haible  <bruno@clisp.org>
33961         tcgetsid: Detect declaration correctly.
33962         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33963         AC_CHECK_DECLS invocation.
33964         Reported by Simon Josefsson.
33966 2011-08-08  Eric Blake  <eblake@redhat.com>
33968         largefile: fix typo that regressed large file support
33969         * modules/largefile (configure.ac-early): Fix section name.
33971 2011-08-06  Karl Berry  <karl@gnu.org>
33973         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33974         a separate module.
33976 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33978         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33979         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33980         get prototype for free.
33982 2011-08-04  Bruno Haible  <bruno@clisp.org>
33984         Tests for module 'pathmax'.
33985         * modules/pathmax-tests: New file.
33986         * tests/test-pathmax.c: New file.
33988         canonicalize-lgpl: Support larger filenames on the Hurd.
33989         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33990         Reported by Paul Eggert.
33992         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33993         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33994         * lib/chdir-long.h: Include pathmax.h.
33995         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33996         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33997         (PATH_MAX): Remove code that is done by pathmax.h.
33998         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33999         * lib/tmpfile.c: Add a comment.
34000         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
34001         * modules/chdir-long (Depends-on): Add pathmax.
34002         * modules/getcwd (Depends-on): Add pathmax.
34003         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
34004         is not defined.
34005         * doc/posix-headers/limits.texi: Mention the pathmax module.
34006         * NEWS: Mention the change.
34008 2011-08-02  Bruno Haible  <bruno@clisp.org>
34010         pthread_sigmask: Actually use results of gl_THREADLIB.
34011         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
34012         gl_THREADLIB, not gl_[]THREADLIB.
34013         Reported by Eric Blake.
34015 2011-08-02  Jim Meyering  <meyering@redhat.com>
34017         maint.mk: relax the default _gl_TS_function_match regexp
34018         * top/maint.mk (_gl_TS_function_match): Don't require at least one
34019         space between function name and "(" in an "extern" declaration.
34020         That would fail to match a decl with no space there: extern void foo();
34022 2011-07-31  Iain Nicol  <iain@thenicols.net>
34024         git-version-gen: document that EXTRA_DIST must include .version
34025         * build-aux/git-version-gen: In the how-to-use comment, document
34026         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
34027         will fail when run from an unpacked distribution tarball.
34029 2011-08-01  Bruno Haible  <bruno@clisp.org>
34031         wctype-h: Fix last change.
34032         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
34033         REPLACE_TOWLOWER to 0.
34034         Reported by Sam Steingold <sds@gnu.org>.
34036 2011-07-31  Bruno Haible  <bruno@clisp.org>
34038         frexpl: Update autoconf test.
34039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
34040         according to changes of 2011-06-20.
34042 2011-07-31  Bruno Haible  <bruno@clisp.org>
34044         sys_utsname: Add support for Minix.
34045         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
34046         <sys/utsname.h>.
34047         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34048         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
34050 2011-07-31  Bruno Haible  <bruno@clisp.org>
34052         strings: Add support for Minix.
34053         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
34054         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34055         * doc/posix-headers/strings.texi: Document the Minix problem.
34057 2011-07-31  Bruno Haible  <bruno@clisp.org>
34059         wctype-h: Add support for Minix.
34060         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
34061         REPLACE_TOWLOWER.
34062         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
34063         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
34064         REPLACE_ISWCNTRL.
34066 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
34068         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
34069         This is a performance improvement for 64-bit hosts: it causes the
34070         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
34072 2011-07-31  Bruno Haible  <bruno@clisp.org>
34074         stdioext: Add support for Minix.
34075         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
34076         * lib/fpurge.c (fpurge): Likewise.
34077         * lib/freadahead.c (freadahead): Likewise.
34078         * lib/freadable.c (freadable): Likewise.
34079         * lib/freading.c (freading): Likewise.
34080         * lib/freadptr.c (freadptr): Likewise.
34081         * lib/freadseek.c (freadptrinc): Likewise.
34082         * lib/fseeko.c (rpl_fseeko): Likewise.
34083         * lib/fseterr.c (fseterr): Likewise.
34084         * lib/fwritable.c (fwritable): Likewise.
34085         * lib/fwriting.c (fwriting): Likewise.
34086         * lib/fflush.c (clear_ungetc_buffer): Update comment.
34087         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
34089 2011-07-31  Bruno Haible  <bruno@clisp.org>
34091         errno: Port to Minix.
34092         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
34093         ECONNABORTED are defined.
34094         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
34095         GNULIB_defined_ECONNABORTED): New macros.
34096         * lib/strerror-override.h (strerror_override): Test also
34097         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
34098         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
34099         ECONNABORTED.
34100         * doc/posix-headers/errno.texi: Mention the Minix problem.
34102 2011-07-31  Bruno Haible  <bruno@clisp.org>
34104         Work around declaration collisions on Minix.
34105         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34106         defined, set REPLACE_MBSINIT.
34107         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34108         defined, set REPLACE_MBRTOWC.
34109         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34110         set REPLACE_MBRLEN.
34111         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34112         defined, set REPLACE_MBSRTOWCS.
34113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34114         defined, set REPLACE_WCRTOMB.
34115         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34116         defined, set REPLACE_WCSRTOMBS.
34118 2011-07-31  Bruno Haible  <bruno@clisp.org>
34120         Add support for Minix with ACK compiler.
34121         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34122         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34123         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34125 2011-07-31  Bruno Haible  <bruno@clisp.org>
34127         Documentation about Minix.
34128         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34129         * doc/glibc-headers/*.texi: Likewise.
34130         * doc/posix-functions/*.texi: Likewise.
34131         * doc/glibc-functions/*.texi: Likewise.
34133 2011-07-31  Bruno Haible  <bruno@clisp.org>
34135         snippet/warn-on-use: Fix indentation.
34136         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34138 2011-07-25  Jim Meyering  <meyering@redhat.com>
34140         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34141         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34142         commands.
34144 2011-07-27  Jim Meyering  <meyering@redhat.com>
34146         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34147         * top/maint.mk (gl_extract_significant_defines_): Now that
34148         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34149         gnulib/lib/signal.in.h, and now that we recommend to
34150         define-if-undefined those two symbols in application code,
34151         we must filter them out of the "significant" list.
34152         This avoids a "make syntax-check" failure in coreutils.
34154 2011-07-26  Eric Blake  <eblake@redhat.com>
34156         warnings: add comments about previous patch
34157         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34158         * m4/include_next.m4: Likewise.
34159         * m4/warn-on-use.m4: Likewise.
34160         * m4/warnings.m4: Likewise, and simplify use.
34161         Suggested by Stefano Lattarini.
34163         include-next, warnings: support older autoconf
34164         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34165         AS_VAR_PUSHDEF in a way that works with older autoconf.
34166         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34167         Reported by Daniel P. Berrange.
34169 2011-07-25  Bruno Haible  <bruno@clisp.org>
34171         fseek, ftell: Fix doc.
34172         * doc/posix-functions/fseek.texi: Reword statement about
34173         AC_SYS_LARGEFILE.
34174         * doc/posix-functions/ftell.texi: Likewise.
34176 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34177             Bruno Haible  <bruno@clisp.org>
34179         Add dependencies to the 'largefile' module.
34180         * modules/fopen (Depends-on): Add 'largefile'.
34181         * modules/freopen (Depends-on): Likewise.
34182         * modules/fseeko (Depends-on): Likewise.
34183         * modules/ftello (Depends-on): Likewise.
34184         * modules/glob (Depends-on): Likewise.
34185         * modules/lseek (Depends-on): Likewise.
34186         * modules/lstat (Depends-on): Likewise.
34187         * modules/mkostemp (Depends-on): Likewise.
34188         * modules/mkostemps (Depends-on): Likewise.
34189         * modules/mkstemp (Depends-on): Likewise.
34190         * modules/mkstemps (Depends-on): Likewise.
34191         * modules/open (Depends-on): Likewise.
34192         * modules/openat (Depends-on): Likewise.
34193         * modules/pread (Depends-on): Likewise.
34194         * modules/pwrite (Depends-on): Likewise.
34195         * modules/scandir (Depends-on): Likewise.
34196         * modules/stat (Depends-on): Likewise.
34197         * modules/tmpfile (Depends-on): Likewise.
34198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34199         since the containing module now depends on the largefile module.
34200         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34201         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34202         off_t is fixed by gnulib.
34203         * doc/posix-functions/freopen.texi: Likewise.
34204         * doc/posix-functions/fseeko.texi: Likewise.
34205         * doc/posix-functions/fstatat.texi: Likewise.
34206         * doc/posix-functions/ftello.texi: Likewise.
34207         * doc/posix-functions/glob.texi: Likewise.
34208         * doc/posix-functions/lseek.texi: Likewise.
34209         * doc/posix-functions/lstat.texi: Likewise.
34210         * doc/posix-functions/mkstemp.texi: Likewise.
34211         * doc/posix-functions/open.texi: Likewise.
34212         * doc/posix-functions/openat.texi: Likewise.
34213         * doc/posix-functions/pread.texi: Likewise.
34214         * doc/posix-functions/pwrite.texi: Likewise.
34215         * doc/posix-functions/scandir.texi: Likewise.
34216         * doc/posix-functions/stat.texi: Likewise.
34217         * doc/posix-functions/tmpfile.texi: Likewise.
34218         * doc/glibc-functions/mkostemp.texi: Likewise.
34219         * doc/glibc-functions/mkostemps.texi: Likewise.
34220         * doc/glibc-functions/mkstemps.texi: Likewise.
34222 2011-07-25  Bruno Haible  <bruno@clisp.org>
34224         fcntl: Move AC_LIBOBJ invocation to module description.
34225         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34226         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34228         fcntl: Remove call-in from fchdir.m4.
34229         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34232         dup3: Remove potential call-in from fchdir.m4.
34233         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34236         dup2: Move AC_LIBOBJ invocation to module description.
34237         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34238         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34239         Don't invoke AC_LIBOBJ.
34240         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34242         dup2: Remove call-in from fchdir.m4.
34243         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34246         fclose: Move AC_LIBOBJ invocation to module description.
34247         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34248         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34249         to 1.
34250         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34252         fclose: Remove call-in from close.m4.
34253         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34254         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34256         close: Move AC_LIBOBJ invocation to module description.
34257         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34258         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34259         1.
34260         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34262         close: Remove call-in from fchdir.m4.
34263         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34266         open: Move AC_LIBOBJ invocation to module description.
34267         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34268         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34269         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34271         open: Remove call-in from fchdir.m4.
34272         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34275         fchdir: Start to remove gl_REPLACE_* idiom.
34276         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34277         (gl_FUNC_FCHDIR): Invoke it.
34279 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34281         * lib/ftell.c (ftell): Comment out cast.
34283         close: use gl_REPLACE_FCLOSE only if defined
34284         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34285         is defined.  The close module doesn't depend on the fclose module
34286         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34287         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34288         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34290 2011-07-24  Jim Meyering  <meyering@redhat.com>
34292         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34293         * tests/test-select.h (test_function): Declare as "static".
34295 2011-07-24  Bruno Haible  <bruno@clisp.org>
34297         doc: Mention the effects of AC_SYS_LARGEFILE.
34298         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34299         on this function.
34300         * doc/posix-functions/aio_error.texi: Likewise.
34301         * doc/posix-functions/aio_fsync.texi: Likewise.
34302         * doc/posix-functions/aio_read.texi: Likewise.
34303         * doc/posix-functions/aio_return.texi: Likewise.
34304         * doc/posix-functions/aio_suspend.texi: Likewise.
34305         * doc/posix-functions/aio_write.texi: Likewise.
34306         * doc/posix-functions/fgetpos.texi: Likewise.
34307         * doc/posix-functions/fopen.texi: Likewise.
34308         * doc/posix-functions/freopen.texi: Likewise.
34309         * doc/posix-functions/fsetpos.texi: Likewise.
34310         * doc/posix-functions/fstatvfs.texi: Likewise.
34311         * doc/posix-functions/ftruncate.texi: Likewise.
34312         * doc/posix-functions/ftw.texi: Likewise.
34313         * doc/posix-functions/getrlimit.texi: Likewise.
34314         * doc/posix-functions/glob.texi: Likewise.
34315         * doc/posix-functions/lio_listio.texi: Likewise.
34316         * doc/posix-functions/lockf.texi: Likewise.
34317         * doc/posix-functions/mkstemp.texi: Likewise.
34318         * doc/posix-functions/mmap.texi: Likewise.
34319         * doc/posix-functions/nftw.texi: Likewise.
34320         * doc/posix-functions/openat.texi: Likewise.
34321         * doc/posix-functions/opendir.texi: Likewise.
34322         * doc/posix-functions/posix_fadvise.texi: Likewise.
34323         * doc/posix-functions/posix_fallocate.texi: Likewise.
34324         * doc/posix-functions/pread.texi: Likewise.
34325         * doc/posix-functions/pwrite.texi: Likewise.
34326         * doc/posix-functions/readdir.texi: Likewise.
34327         * doc/posix-functions/readdir_r.texi: Likewise.
34328         * doc/posix-functions/rewinddir.texi: Likewise.
34329         * doc/posix-functions/scandir.texi: Likewise.
34330         * doc/posix-functions/seekdir.texi: Likewise.
34331         * doc/posix-functions/setrlimit.texi: Likewise.
34332         * doc/posix-functions/statvfs.texi: Likewise.
34333         * doc/posix-functions/telldir.texi: Likewise.
34334         * doc/posix-functions/tmpfile.texi: Likewise.
34335         * doc/posix-functions/truncate.texi: Likewise.
34336         * doc/glibc-functions/fallocate.texi: Likewise.
34337         * doc/glibc-functions/fstatfs.texi: Likewise.
34338         * doc/glibc-functions/fts_children.texi: Likewise.
34339         * doc/glibc-functions/fts_read.texi: Likewise.
34340         * doc/glibc-functions/getdirentries.texi: Likewise.
34341         * doc/glibc-functions/mkostemp.texi: Likewise.
34342         * doc/glibc-functions/mkostemps.texi: Likewise.
34343         * doc/glibc-functions/mkstemps.texi: Likewise.
34344         * doc/glibc-functions/preadv.texi: Likewise.
34345         * doc/glibc-functions/pwritev.texi: Likewise.
34346         * doc/glibc-functions/sendfile.texi: Likewise.
34347         * doc/glibc-functions/statfs.texi: Likewise.
34349 2011-07-24  Bruno Haible  <bruno@clisp.org>
34351         doc: Fix typo.
34352         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34354 2011-07-24  Bruno Haible  <bruno@clisp.org>
34356         doc: Mention fsusage.
34357         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34359 2011-07-24  Bruno Haible  <bruno@clisp.org>
34361         doc: Mention new glibc headers and functions.
34362         * doc/glibc-headers/gshadow.texi: New file.
34363         * doc/glibc-functions/endsgent.texi: New file.
34364         * doc/glibc-functions/fgetsgent.texi: New file.
34365         * doc/glibc-functions/fgetsgent_r.texi: New file.
34366         * doc/glibc-functions/getsgent.texi: New file.
34367         * doc/glibc-functions/getsgent_r.texi: New file.
34368         * doc/glibc-functions/getsgnam.texi: New file.
34369         * doc/glibc-functions/getsgnam_r.texi: New file.
34370         * doc/glibc-functions/putsgent.texi: New file.
34371         * doc/glibc-functions/setsgent.texi: New file.
34372         * doc/glibc-functions/sgetsgent.texi: New file.
34373         * doc/glibc-functions/sgetsgent_r.texi: New file.
34374         * doc/glibc-functions/malloc_info.texi: New file.
34375         * doc/glibc-functions/preadv.texi: New file.
34376         * doc/glibc-functions/pwritev.texi: New file.
34377         * doc/glibc-functions/register_printf_modifier.texi: New file.
34378         * doc/glibc-functions/register_printf_specifier.texi: New file.
34379         * doc/glibc-functions/register_printf_type.texi: New file.
34380         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34381         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34382         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34383         * doc/glibc-functions/pthread_getname_np.texi: New file.
34384         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34385         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34386         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34387         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34388         * doc/glibc-functions/pthread_setname_np.texi: New file.
34389         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34390         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34391         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34392         * doc/glibc-functions/qsort_r.texi: New file.
34393         * doc/glibc-functions/quick_exit.texi: New file.
34394         * doc/glibc-functions/syncfs.texi: New file.
34395         * doc/gnulib.texi: Include them.
34396         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34397         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34398         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34399         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34400         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34401         * doc/glibc-functions/execvpe.texi: Likewise.
34403 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34405         ftell: don't include <unistd.h>
34406         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34407         guaranteed to define off_t, and the ftell module depends on the
34408         stdio module.
34410         ftell: do not assume wraparound signed arithmetic
34411         * lib/ftell.c: Include <limits.h>.
34412         (ftell): Don't assume wraparound signed arithmetic.
34414 2011-07-24  Bruno Haible  <bruno@clisp.org>
34416         close: No longer depend on module 'fclose'.
34417         * modules/close (Depends-on): Remove fclose.
34418         * NEWS: Mention the change.
34419         Suggested by Sam Steingold <sds@gnu.org>.
34421 2011-07-24  Bruno Haible  <bruno@clisp.org>
34423         fsusage: Enable large volume support on AIX >= 5.2.
34424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34425         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34426         instead of STAT_STATVFS.
34427         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34429         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34430         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34431         f_blocks field only on MacOS X.
34433         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34435         * modules/fsusage (Depends-on): Add largefile.
34437 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34439         * README: Modernize discussion of signed integers.
34440         Assuming overflow wraparound is no longer safe.
34441         Mention ones' complement and signed magnitude.
34443 2011-07-22  Bruno Haible  <bruno@clisp.org>
34445         select tests, pselect tests: Refactor.
34446         * tests/test-select.h: New file, extracted from tests/test-select.c.
34447         (select_fn): New type.
34448         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34449         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34450         test_pipe): Add my_select argument.
34451         (test_function): Renamed from main. Add my_select argument.
34452         * tests/test-select.c: Move most code to tests/test-select.h. Include
34453         test-select.h.
34454         * modules/select-tests (Files): Add tests/test-select.h.
34455         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34456         (my_select, main): New functions.
34457         * modules/pselect-tests (Files): Add tests/test-select.h,
34458         tests/macros.h, tests/signature.h.
34459         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34460         (configure.ac): Check for <sys/wait.h>.
34462 2011-07-22  Bruno Haible  <bruno@clisp.org>
34464         sys_select tests: Check the signature of FD_*.
34465         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34466         signature tests from here...
34467         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34468         here.
34469         * modules/sys_select-tests (Files): Add tests/signature.h.
34471 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34473         largefile: new module, replacing large-inode
34474         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34475         * MODULES.html.sh: Add largefile, remove large-inode.
34476         * modules/largefile, m4/largefile.m4: New files.
34477         * modules/large-inode, m4/large-inode.m4: Remove.
34479         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34481         implementations that use only 32 bits to count blocks.
34482         On typical hosts with 1024-byte blocks, this fails with file
34483         systems as small as 4 TiB.  Problem reported by Herb Wartens
34484         <http://debbugs.gnu.org/9140> and this should also fix a similar
34485         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34487         large-inode: New module
34488         * MODULES.html.sh: Add it.
34489         * modules/large-inode, m4/large-inode.m4: New files.
34491         extensions: Enable extensions on MacOS X 10.5 and later.
34492         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34494 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34496         file-has-acl: use acl_extended_file_nofollow if available
34497         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34498         (acl_extended_file): New macro.
34499         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34500         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34502 2011-07-21  Bruno Haible  <bruno@clisp.org>
34504         Declare system functions in a way that works with C++.
34505         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34506         declare fdopendir as extern "C".
34507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34508         declare frexpl as extern "C".
34509         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34510         declare gai_strerror as extern "C".
34511         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34512         programs, declare gai_strerror as extern "C".
34513         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34514         declare getlogin_r as extern "C".
34515         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34516         as extern "C".
34517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34518         declare ldexpl as extern "C".
34519         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34520         as extern "C".
34521         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34522         program, declare getmntinfo as extern "C".
34523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34524         stpncpy as extern "C".
34525         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34526         program, declare __xpg_strerror_r as extern "C".
34527         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34528         strndup as extern "C".
34529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34530         declare memset and bzero as extern "C".
34531         Reported by Sam Steingold <sds@gnu.org>.
34533 2011-07-12  Jim Meyering  <meyering@redhat.com>
34535         maint.mk: prohibit inclusion of "verify.h" without use
34536         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34538 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34540         timer-time: A new module to check for timer_settime()
34541         * m4/timer_time.m4: Check for the posix function.
34542         * modules/timer-time: Add the new module.
34543         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34544         Mention it.
34546 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34547             Bruno Haible  <bruno@clisp.org>
34549         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34551         not defined, assume POSIX threads and look for pthread_sigmask in
34552         $LIBS, without changing $CPPFLAGS.
34554 2011-07-19  Bruno Haible  <bruno@clisp.org>
34556         strstr: Update cross-compilation guess.
34557         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34558         CPUs, guess no, in view of glibc
34559         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34560         Suggested by Eric Blake. Reported by Reuben Thomas.
34562 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34564         getopt-gnu: suppress core dumps from detection code
34565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34566         to suppress core dumps that may well occur on glibc systems.
34567         * modules/getopt-gnu: Depend on nocrash.
34569 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34571         pthread_sigmask: ensure usleep is declared
34572         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34573         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34575 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34577         doc: Document NonStop portability issues.
34578         * doc/posix-functions/sigaction.texi (sigaction):
34579         * doc/posix-headers/signal.texi (signal.h):
34580         Document NonStop.  See Joachim Schmitz in
34581         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34583 2011-07-15  Bruno Haible  <bruno@clisp.org>
34585         ffsl, ffsll: Avoid unportable behaviour.
34586         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34588 2011-07-15  Bruno Haible  <bruno@clisp.org>
34590         ffs: More tests.
34591         * tests/test-ffs.c (NBITS): New macro.
34592         (main): Add more tests.
34593         * tests/test-ffsl.c (NBITS): New macro.
34594         (main): Add more tests.
34595         * tests/test-ffsll.c (NBITS): New macro.
34596         (main): Add more tests.
34598 2011-07-15  Eric Blake  <eblake@redhat.com>
34600         ffsl, ffsll: new modules
34601         * modules/ffsl: New file.
34602         * modules/ffsll: Likewise.
34603         * m4/ffsl.m4: Likewise.
34604         * m4/ffsll.m4: Likewise.
34605         * lib/ffsl.c: Likewise.
34606         * lib/ffsl.h: Likewise.
34607         * lib/ffsll.c: Likewise.
34608         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34609         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34610         * modules/string (Makefile.am): Substitute witnesses.
34611         * lib/strings.in.h (ffsl, ffsll): Declare.
34612         * modules/ffsl-tests: New test file.
34613         * modules/ffsll-tests: Likewise.
34614         * tests/test-ffsl.c: Likewise.
34615         * tests/test-ffsll.c: Likewise.
34616         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34617         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34618         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34620         ffs: fix m4 prerequisite
34621         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34623         ffs: avoid undefined behavior
34624         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34625         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34626         Reported by Bruno Haible.
34628 2011-07-12  Bruno Haible  <bruno@clisp.org>
34630         pthread_sigmask: Rely on module 'threadlib'.
34631         * modules/pthread_sigmask (Depends-on): Add threadlib.
34632         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34633         is defined.
34635 2011-07-12  Bruno Haible  <bruno@clisp.org>
34637         regex: Depend on module 'strcase'.
34638         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34640 2011-07-12  Jim Meyering  <meyering@redhat.com>
34642         warn-on-use: fix typo in file name
34643         * modules/snippet/warn-on-use (Files): Correct file name:
34644         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34646 2011-07-12  Bruno Haible  <bruno@clisp.org>
34648         strings: Document module.
34649         * doc/posix-headers/strings.texi: Mention module 'strings'.
34651 2011-07-12  Bruno Haible  <bruno@clisp.org>
34653         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34654         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34655         (Files, Makefile.am): Update.
34656         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34657         * modules/stdlib (Depends-on): Update.
34659 2011-07-12  Bruno Haible  <bruno@clisp.org>
34661         * NEWS: Mention the changes.
34663         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34664         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34665         (Files, Makefile.am): Update.
34666         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34667         * modules/arpa_inet (Depends-on): Update.
34668         * modules/ctype (Depends-on): Update.
34669         * modules/dirent (Depends-on): Update.
34670         * modules/fcntl-h (Depends-on): Update.
34671         * modules/glob (Depends-on): Update.
34672         * modules/iconv-h (Depends-on): Update.
34673         * modules/inttypes-incomplete (Depends-on): Update.
34674         * modules/langinfo (Depends-on): Update.
34675         * modules/locale (Depends-on): Update.
34676         * modules/math (Depends-on): Update.
34677         * modules/netdb (Depends-on): Update.
34678         * modules/poll-h (Depends-on): Update.
34679         * modules/pty (Depends-on): Update.
34680         * modules/search (Depends-on): Update.
34681         * modules/signal (Depends-on): Update.
34682         * modules/spawn (Depends-on): Update.
34683         * modules/stdio (Depends-on): Update.
34684         * modules/stdlib (Depends-on): Update.
34685         * modules/string (Depends-on): Update.
34686         * modules/strings (Depends-on): Update.
34687         * modules/sys_file (Depends-on): Update.
34688         * modules/sys_ioctl (Depends-on): Update.
34689         * modules/sys_select (Depends-on): Update.
34690         * modules/sys_socket (Depends-on): Update.
34691         * modules/sys_stat (Depends-on): Update.
34692         * modules/sys_time (Depends-on): Update.
34693         * modules/sys_times (Depends-on): Update.
34694         * modules/sys_utsname (Depends-on): Update.
34695         * modules/sys_wait (Depends-on): Update.
34696         * modules/termios (Depends-on): Update.
34697         * modules/time (Depends-on): Update.
34698         * modules/unistd (Depends-on): Update.
34699         * modules/wchar (Depends-on): Update.
34700         * modules/wctype-h (Depends-on): Update.
34701         * MODULES.html.sh (Support for building libraries and executables):
34702         Update.
34704         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34705         * modules/snippet/unused-parameter: Renamed from
34706         modules/unused-parameter.
34707         (Files, Makefile.am): Update.
34708         * build-aux/snippet/unused-parameter.h: Renamed from
34709         build-aux/unused-parameter.h.
34710         * modules/selinux-h (Depends-on): Update.
34711         * modules/unistr/base (Depends-on): Update.
34712         * MODULES.html.sh (Core language properties): Update.
34714         Rename module 'link-warning' to 'snippet/link-warning'.
34715         * modules/snippet/link-warning: Renamed from modules/link-warning.
34716         (Files, Makefile.am): Update.
34717         * build-aux/snippet/link-warning.h: Renamed from
34718         build-aux/link-warning.h.
34719         * MODULES.html.sh (Support for building libraries and executables):
34720         Update.
34722         Rename module 'c++defs' to 'snippet/c++defs'.
34723         * modules/snippet/c++defs: Renamed from modules/c++defs.
34724         (Files, Makefile.am): Update.
34725         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34726         * modules/arpa_inet (Depends-on): Update.
34727         * modules/ctype (Depends-on): Update.
34728         * modules/dirent (Depends-on): Update.
34729         * modules/fcntl-h (Depends-on): Update.
34730         * modules/glob (Depends-on): Update.
34731         * modules/iconv-h (Depends-on): Update.
34732         * modules/langinfo (Depends-on): Update.
34733         * modules/locale (Depends-on): Update.
34734         * modules/math (Depends-on): Update.
34735         * modules/netdb (Depends-on): Update.
34736         * modules/poll-h (Depends-on): Update.
34737         * modules/pty (Depends-on): Update.
34738         * modules/search (Depends-on): Update.
34739         * modules/signal (Depends-on): Update.
34740         * modules/spawn (Depends-on): Update.
34741         * modules/stdio (Depends-on): Update.
34742         * modules/stdlib (Depends-on): Update.
34743         * modules/string (Depends-on): Update.
34744         * modules/strings (Depends-on): Update.
34745         * modules/sys_ioctl (Depends-on): Update.
34746         * modules/sys_select (Depends-on): Update.
34747         * modules/sys_socket (Depends-on): Update.
34748         * modules/sys_stat (Depends-on): Update.
34749         * modules/sys_time (Depends-on): Update.
34750         * modules/sys_wait (Depends-on): Update.
34751         * modules/termios (Depends-on): Update.
34752         * modules/time (Depends-on): Update.
34753         * modules/unistd (Depends-on): Update.
34754         * modules/wchar (Depends-on): Update.
34755         * modules/wctype-h (Depends-on): Update.
34757         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34758         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34759         (Files, Makefile.am): Update.
34760         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34761         * modules/argv-iter (Depends-on): Update.
34762         * modules/arpa_inet (Depends-on): Update.
34763         * modules/dirent (Depends-on): Update.
34764         * modules/fcntl-h (Depends-on): Update.
34765         * modules/fnmatch (Depends-on): Update.
34766         * modules/getopt-posix (Depends-on): Update.
34767         * modules/glob (Depends-on): Update.
34768         * modules/iconv-h (Depends-on): Update.
34769         * modules/inttypes-incomplete (Depends-on): Update.
34770         * modules/locale (Depends-on): Update.
34771         * modules/math (Depends-on): Update.
34772         * modules/netdb (Depends-on): Update.
34773         * modules/search (Depends-on): Update.
34774         * modules/signal (Depends-on): Update.
34775         * modules/spawn (Depends-on): Update.
34776         * modules/stdio (Depends-on): Update.
34777         * modules/stdlib (Depends-on): Update.
34778         * modules/string (Depends-on): Update.
34779         * modules/strings (Depends-on): Update.
34780         * modules/sys_socket (Depends-on): Update.
34781         * modules/sys_stat (Depends-on): Update.
34782         * modules/sys_time (Depends-on): Update.
34783         * modules/sys_times (Depends-on): Update.
34784         * modules/sys_utsname (Depends-on): Update.
34785         * modules/time (Depends-on): Update.
34786         * modules/unistd (Depends-on): Update.
34787         * modules/wchar (Depends-on): Update.
34788         * MODULES.html.sh (Support for building libraries and executables):
34789         Update.
34791 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34793         Improvements on _Noreturn and related modules.
34795         modules/_Exit-tests: test _Noreturn too
34796         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34797         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34798         (main): Use them.
34800         stdnoreturn, stdnoreturn-tests: remove modules
34801         They're not needed here and a bit premature for use elsewhere.  See
34802         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34803         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34804         * tests/test-stdnoreturn.c: Remove files.
34805         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34806         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34807         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34808         and using noreturn.
34809         * modules/openat, modules/sigpipe-die, modules/xalloc:
34810         * modules/xmemdup0, modules/xstrtol:
34811         Remove dependency on stdnoreturn.
34813         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34814         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34815         Reparenthesize to avoid GCC warning.
34816         Support Microsoft's syntax.
34817         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34819         _Noreturn-tests: remove module
34820         * modules/_Noreturn-tests: Remove.
34821         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34822         * tests/test-_Noreturn.c: Remove.
34823         * tests/test-stdnoreturn.c: Merge from the old
34824         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34826 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34828         _Noreturn, stdnoreturn, and related modules.
34830         * top/maint.mk: Adjust to new noreturn support.
34831         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34832         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34834         xalloc: use stdnoreturn.h
34835         * lib/xalloc.h: Include <stdnoreturn.h>.
34836         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34837         * modules/xalloc (Depends-on): Add stdnoreturn.
34839         xstrtol: use stdnoreturn.h
34840         * lib/xstrtol.h: Include <stdnoreturn.h>.
34841         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34842         * modules/xstrtol (Depends-on): Add stdnoreturn.
34844         xmemdup0: use stdnoreturn.h
34845         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34846         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34847         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34849         sigpipe-die: use stdnoreturn.h
34850         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34851         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34852         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34854         openat: use stdnoreturn.h
34855         * lib/openat.h: Include <stdnoreturn.h>.
34856         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34857         * modules/openat (Depends-on): Add stdnoreturn.
34859         * lib/openat-die.c (openat_save_fail): Modernize comment.
34861         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34863         * lib/glthread/thread.h: Modernize comment.
34865         obstack: use _Noreturn
34866         * lib/obstack.c (__attribute__): Remove macro.
34867         (print_and_abort): Use _Noreturn.
34869         c-stack: use _Noreturn
34870         * lib/c-stack.c (die, overflow_handler, segv_handler):
34871         Use _Noreturn rather than __attribute__((noreturn)).
34873         argmatch-tests, exclude_tests: use _Noreturn
34874         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34875         Remove.
34876         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34878         stdlib: use _Noreturn
34879         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34880         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34881         * modules/stdlib (Depends-on): Add _Noreturn.
34882         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34884         stdnoreturn-tests: new module
34885         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34887         stdnoreturn: new module
34888         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34889         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34891         _Noreturn-tests: new module
34892         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34894         _Noreturn: new module
34895         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34896         New section, mentioning it.
34897         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34899         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34901 2011-07-11  Eric Blake  <eblake@redhat.com>
34903         ffs: new module
34904         * modules/ffs: New file.
34905         * m4/ffs.m4: Likewise.
34906         * lib/ffs.c: Likewise.
34907         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34908         * modules/strings (Makefile.am): Substitute witness.
34909         (Depends-on): Add c++defs.
34910         * lib/strings.in.h (ffs): Declare.
34911         * modules/ffs-tests: New test file.
34912         * tests/test-ffs.c: Test new module.
34913         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34914         * doc/posix-functions/ffs.texi (ffs): Likewise.
34916         regex: avoid compiler warning
34917         * lib/regex.c (includes): Include <strings.h>, for use of
34918         strcasecmp in regcomp.c.
34919         Reported by Joachim Schmitz.
34921 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34923         stdint: respect system's intmax_t if INTMAX_MAX
34924         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34925         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34926         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34927         long but int64_t is long long, and where we will clash with the
34928         system intmax_t if we override it.  See
34929         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34930         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34931         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34932         similarly for UINTMAX_C.
34934 2011-07-08  Bruno Haible  <bruno@clisp.org>
34936         pthread_sigmask tests: Avoid a compiler warning.
34937         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34938         non-zero.
34940         sigprocmask tests: A better way to avoid a compiler warning.
34941         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34942         (main): Complain if system() returns non-zero.
34943         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34945 2011-07-08  Bruno Haible  <bruno@clisp.org>
34947         pthread_sigmask: Work around IRIX bug.
34948         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34949         bug.
34950         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34951         there may be unblocked pending signals.
34952         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34954 2011-07-08  Bruno Haible  <bruno@clisp.org>
34956         pthread_sigmask: Work around Cygwin bug.
34957         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34958         bug.
34959         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34960         the system's pthread_sigmask function.
34961         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34963 2011-07-08  Bruno Haible  <bruno@clisp.org>
34965         pthread_sigmask: Work around bug in single-threaded implementation.
34966         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34967         FreeBSD, HP-UX, Solaris bug.
34968         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34969         * lib/pthread_sigmask.c: Include <stddef.h>.
34970         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34971         the system's pthread_sigmask function.
34972         * modules/pthread_sigmask (configure.ac): Invoke
34973         gl_PREREQ_PTHREAD_SIGMASK.
34974         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34975         HP-UX, Solaris.
34977 2011-07-08  Eric Blake  <eblake@redhat.com>
34979         test-sigprocmask: avoid compiler warning
34980         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34981         * tests/test-sigprocmask.c (main): Use it to silence warning.
34982         Reported by Jim Meyering.
34984         test-snprintf: avoid compiler warning
34985         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34986         * tests/test-vsnprintf.c (main): Likewise.
34987         Reported by Jim Meyering.
34989 2011-07-08  Bruno Haible  <bruno@clisp.org>
34991         Tests for module 'pthread_sigmask'.
34992         * modules/pthread_sigmask-tests: New file.
34993         * tests/test-pthread_sigmask1.c: New file, based on
34994         tests/test-sigprocmask.c.
34995         * tests/test-pthread_sigmask2.c: New file.
34997 2011-07-08  Jim Meyering  <meyering@redhat.com>
34999         test-getopt.h: avoid warning about an unused variable
35000         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
35002 2011-07-07  Jim Meyering  <meyering@redhat.com>
35004         maint: reduce list of files exempt from sc_prohibit_leading_TABs
35005         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
35006         now that it no longer contains leading TABs.
35007         Remove unused "url=FIXME" statement.
35009 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35011         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
35012         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35013         When gl_THREADLIB is not in use, assume that the POSIX sematics
35014         are desired.  This is better for Emacs, which uses POSIX semantics
35015         on GNUish and/or POSIXish platforms, and does not use threads at
35016         all otherwise.
35018         pthread_sigmask: fix typo when testing for libraries
35019         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35020         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
35022 2011-07-08  Eric Blake  <eblake@redhat.com>
35024         fts: introduce FTS_NOATIME
35025         * lib/fts_.h (FTS_NOATIME): New bit flag.
35026         (FTS_OPTIONMASK): Adjust.
35027         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
35028         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
35030 2011-07-08  Bruno Haible  <bruno@clisp.org>
35032         Tests for module 'thread'.
35033         * modules/thread-tests: New file.
35034         * tests/test-thread_self.c: New file.
35035         * tests/test-thread_create.cc: New file.
35037 2011-07-08  Bruno Haible  <bruno@clisp.org>
35039         thread: Avoid gcc warnings when using gl_thread_self().
35040         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
35041         'void *'.
35042         (gl_thread_self_pointer): Update.
35044 2011-07-07  Bruno Haible  <bruno@clisp.org>
35046         signal-c++-tests: Check declaration of pthread_sigmask.
35047         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
35048         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
35049         $(LIB_PTHREAD_SIGMASK).
35051 2011-07-07  Bruno Haible  <bruno@clisp.org>
35053         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
35054         * lib/signal.in.h (pthread_sigmask): Override if
35055         REPLACE_PTHREAD_SIGMASK is 1.
35056         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35057         REPLACE_PTHREAD_SIGMASK.
35058         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
35059         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
35060         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
35061         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35062         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
35064 2011-07-07  Bruno Haible  <bruno@clisp.org>
35066         pthread_sigmask: Ensure declaration in <signal.h>.
35067         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
35068         include <pthread.h>.
35069         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
35070         problem.
35072 2011-07-07  Bruno Haible  <bruno@clisp.org>
35074         pthread_sigmask: Document the module.
35075         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
35077 2011-07-07  Bruno Haible  <bruno@clisp.org>
35079         pthread_sigmask: Follow gnulib conventions.
35080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
35081         gl_PTHREAD_SIGMASK.
35082         * modules/pthread_sigmask (configure.ac): Update.
35084 2011-07-07  Bruno Haible  <bruno@clisp.org>
35086         pthread_sigmask: Make declaration C++ safe.
35087         * lib/signal.in.h: In two special conditions, just do an #include_next.
35088         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35089         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
35090         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35091         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35092         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
35093         not REPLACE_PTHREAD_MASK.
35094         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
35095         not REPLACE_PTHREAD_MASK.
35096         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35098 2011-07-07  Bruno Haible  <bruno@clisp.org>
35100         pthread_sigmask: Fix return value.
35101         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
35102         * lib/pthread_sigmask.c: New file.
35103         * modules/pthread_sigmask (Files): Add it.
35104         (configure.ac): Invoke AC_LIBOBJ.
35106 2011-07-07  Eric Blake  <eblake@redhat.com>
35108         getopt: more portable argv creation
35109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35110         const, use char arrays rather than strings.
35111         Suggested by Paul Eggert.
35113 2011-07-07  Bruno Haible  <bruno@clisp.org>
35115         Tests for module 'sigprocmask'.
35116         * modules/sigprocmask-tests: New file.
35117         * tests/test-sigprocmask.c: New file.
35119 2011-07-07  Bruno Haible  <bruno@clisp.org>
35121         float tests: Tweak.
35122         * tests/test-float.c (main): Tweak skip message.
35124 2011-07-07  Eric Blake  <eblake@redhat.com>
35126         getopt: avoid compiler warning during configure
35127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35128         assigning string literals to non-const pointer.
35130         getopt-gnu: avoid crash in glibc getopt
35131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35132         * tests/test-getopt.h (test_getopt): Enhance test.
35133         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35134         * doc/posix-functions/getopt.texi (getopt): Document it.
35135         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35136         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35137         Likewise.
35139 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35141         getopt: handle W; without long options in getopt [BZ #12922]
35142         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35143         but no long options are defined, just return 'W'.
35145 2011-07-07  Bruno Haible  <bruno@clisp.org>
35147         Avoid literal tabs.
35148         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35149         variable containing a tab instead of a literal tab.
35150         Reported by Jim Meyering.
35152 2011-07-07  Bruno Haible  <bruno@clisp.org>
35154         Comments.
35155         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35157 2011-07-06  Bruno Haible  <bruno@clisp.org>
35159         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35160         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35161         <winsock2.h>.
35162         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35163         lib/sys_socket.in.h.
35164         (close, gethostname): Hide declarations from <winsock2.h>.
35165         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35166         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35167         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35168         (select): Don't override if gnulib's <sys/select.h> was already
35169         included.
35170         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35171         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35172         setsockopt, shutdown, select): Tweak indentation.
35174 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35176         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35177         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35178         in an application that does not use the sys_select module.
35180 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35182         poll: do not return 0 on timeout=-1
35183         * lib/poll.c: Loop with yield if no events occurred.
35185 2011-07-06  Eric Blake  <eblake@redhat.com>
35187         pthread_sigmask: always replace when not using pthread
35188         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35189         replacement when using some threading other than pthread.  Fix
35190         logic bug.
35192 2011-07-06  Bruno Haible  <bruno@clisp.org>
35194         Comments.
35195         * m4/printf.m4: Update comments about mingw.
35197 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35199         sys_select: define sigset_t more portably
35200         * lib/sys_select.in.h: Always include <sys/types.h>, since
35201         we now need sigset_t and mingw defines it there.
35202         Include <signal.h> before split inclusion guard, to avoid
35203         mishaps on Solaris, whose <signal.h> eventually includes us.
35204         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35205         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35206         which come from ...
35207         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35208         gl_CHECK_TYPE_SIGSET_T.
35209         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35210         does the real work.
35211         * modules/sys_select (Depends-on): Add 'signal'.
35213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35214         Suggested by Bruno Haible.
35216         pselect: Use pthread_sigmask, not sigprocmask.
35217         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35218         multithreaded apps better than sigprocmask does.
35219         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35220         sigprocmask directly.
35222 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35224         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35225         Don't #undef,  since we don't need any underlying pselect.
35226         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35227         (Depends-on): Add select.
35228         (Link): Add $(LIBSOCKET).
35229         These changes suggested by Bruno Haible.
35231         pselect: document better
35232         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35233         * doc/posix-functions/pselect.texi (pselect): Document new module.
35235         pthread_sigmask: new module
35236         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35237         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35238         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35239         This is done only as a macro; I don't know how well that'll
35240         work for C++.  Move <sys/types.h> include before the include_next,
35241         to avoid mishap on Solaris.
35242         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35243         * modules/signal (Makefile.am): Substitute the check's results.
35244         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35246         test-pselect: new module
35247         * modules/pselect-tests, tests/test-pselect.c: New files.
35248         * tests/test-select.c, tests/test-sys_select-c++.cc:
35249         If TEST_PSELECT is defined, test pselect instead of testing select.
35251         * tests/test-sys_select.c (sigset_t): Test for it, too.
35252         Suggested by Bruno Haible.
35254 2011-07-05  Eric Blake  <eblake@redhat.com>
35256         snprintf: guarantee %1$d, for libintl
35257         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35258         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35259         * doc/posix-functions/snprintf.texi (snprintf): Update.
35260         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35261         * tests/test-snprintf.c (main): Enhance test.
35262         * tests/test-vsnprintf.c (main): Likewise.
35264 2011-07-05  Jim Meyering  <meyering@redhat.com>
35266         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35267         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35268         per Bruno's request, to accommodate this idiom (no space after "#")
35269         even when the function is inside an #if block:
35270         char *
35271         gets (char *s)
35272         #undef gets
35273         {
35274           ...
35275         }
35277 2011-07-04  Jim Meyering  <meyering@redhat.com>
35279         maint: indent with spaces, not TABs, and add a rule to check this
35280         * tests/test-userspec.c: Indent with spaces, not TABs.
35281         * tests/test-argp.c: Likewise.
35282         * tests/test-c-stack2.sh: Likewise.
35283         * tests/test-parse-duration.sh: Likewise
35284         * m4/strtod.m4: Likewise.
35285         * m4/alloca.m4: Likewise.
35286         * m4/pselect.m4: Likewise.
35287         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35289 2011-07-03  Jim Meyering  <meyering@redhat.com>
35291         maint.mk: correct omissions in prohibit_argmatch_without_use check
35292         This rule would mistakenly report that argmatch.h is included without
35293         use even when both the argmatch and invalid_arg macro were used.
35294         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35295         of argmatch and invalid_arg.
35297 2011-07-03  Bruno Haible  <bruno@clisp.org>
35299         Comments about EINTR.
35300         * lib/safe-read.h: Explain the purpose of this module.
35301         * lib/safe-write.h: Likewise.
35302         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35303         module.
35304         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35305         module.
35306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35308 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35310         xnanosleep: Rewrite to use new dtotimespec module.
35311         It has the conversion code that used to be in xnanosleep.
35312         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35313         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35314         (TIME_T_MAX): Remove.
35315         (xnanosleep): Rewrite in terms of dtotimespec.
35316         * modules/xnanosleep (Depends-on): Add dtotimespec.
35317         Remove intprops, stdbool.
35319         timespec-add, timespec-sub: new modules
35320         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35321         * lib/timespec-add.c, lib/timespec-sub.c:
35322         * modules/timespec-add, modules/timespec-sub: New files.
35324         dtotimespec: new module
35325         * lib/timespec.h (dtotimespec): New decl.
35326         * lib/dtotimespec.c, modules/dtotimespec: New files.
35328         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35330         pselect: new module
35331         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35332         (pselect): New decls.
35333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35334         since the standard pselect decl uses 'restrict'.
35335         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35336         HAVE_PSELECT, REPLACE_PSELECT.
35337         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35338         HAVE_PSELECT, REPLACE_PSELECT.
35339         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35341         sys_select: don't depend on sys_socket
35342         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35343         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35344         This fix works on GNU and GNU-like platforms, but has not been tested
35345         on native Windows.
35346         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35348         gl_HEADER_SYS_SOCKET.
35349         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35350         gl_PREREQ_SYS_H_WINSOCK2.
35352 2011-06-29  Eric Blake  <eblake@redhat.com>
35354         pipe2: fix C89 compile problem
35355         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35356         Reported by Bruno Haible.
35358         pipe, pipe2: don't corrupt fd on error
35359         * lib/pipe.c (pipe): Leave fd unchanged on error.
35360         * lib/pipe2.c (pipe2): Likewise.
35361         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35362         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35364 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35366         mmap-anon: do not use regular expressions inadvertently
35367         * m4/mmap-anon.m4: Remove trailing period from strings sought
35368         in the output.
35370 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35372         nanosleep: fix integer overflow problem
35373         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35374         arithmetic wraps around on overflow.
35376         nanosleep: simplify carrying
35377         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35378         first call to the underyling nanosleep, not for the last one.
35379         This doesn't fix any bugs, but it simplifies the computation of
35380         the remaining delay.  Found while auditing integer overflow issues.
35382         dup2: remove test for existence of fcntl
35383         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35384         "#if HAVE_FCNTL", in the configure-time test program.
35385         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35386         and therefore speeds up "configure" a bit.  Found while
35387         adding the dup2 module to Emacs.
35389 2011-06-24  Eric Blake  <eblake@redhat.com>
35391         maint.mk: enhance useless header checks
35392         * top/maint.mk (_sc_header_without_use): Check both include
35393         styles.
35394         (sc_prohibit_assert_without_use)
35395         (sc_prohibit_close_stream_without_use)
35396         (sc_prohibit_getopt_without_use)
35397         (sc_prohibit_quotearg_without_use)
35398         (sc_prohibit_quote_without_use)
35399         (sc_prohibit_long_options_without_use)
35400         (sc_prohibit_inttostr_without_use)
35401         (sc_prohibit_ignore_value_without_use)
35402         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35403         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35404         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35405         (sc_prohibit_hash_pjw_without_use)
35406         (sc_prohibit_safe_read_without_use)
35407         (sc_prohibit_argmatch_without_use)
35408         (sc_prohibit_canonicalize_without_use)
35409         (sc_prohibit_root_dev_ino_without_use)
35410         (sc_prohibit_openat_without_use)
35411         (sc_prohibit_c_ctype_without_use)
35412         (sc_prohibit_signal_without_use)
35413         (sc_prohibit_stdio--_without_use)
35414         (sc_prohibit_stdio-safer_without_use)
35415         (sc_prohibit_strings_without_use)
35416         (sc_prohibit_intprops_without_use)
35417         (sc_prohibit_stddef_without_use)
35418         (sc_prohibit_xfreopen_without_use): Update clients.
35420 2011-06-24  Jim Meyering  <meyering@redhat.com>
35422         syntax-check: keep one maint.mk rule in sync with its header
35423         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35424         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35425         I prefer to avoid temporary files here, so use <(...), but that
35426         is not supported by /bin/sh, so...
35427         (SHELL): Define to /bin/bash.
35429 2011-06-24  Eric Blake  <eblake@redhat.com>
35431         maint.mk: update sc_prohibit_intprops_without_use
35432         * top/maint.mk (_intprops_names): Match recent changes.
35434 2011-06-24  Bruno Haible  <bruno@clisp.org>
35436         strerror-override: No-op tweak.
35437         * lib/strerror-override.h (strerror_override): Reorder conditions,
35438         for consistency with lib/strerror-override.c.
35440 2011-06-23  Eric Blake  <eblake@redhat.com>
35442         maint.mk: test further PATH_MAX issues
35443         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35444         (sc_prohibit_path_max_allocation): ...and also test alloca.
35445         Suggested by Jim Meyering.
35447 2011-06-22  Eric Blake  <eblake@redhat.com>
35449         maint.mk: add syntax-check to avoid char[PATH_MAX]
35450         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35452         stat: be robust to PATH_MAX definition
35453         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35454         * modules/stat (Depends-on): Add verify.
35456         link: work around IRIX bug
35457         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35458         * lib/link.c (rpl_link): Work around it.
35459         * tests/test-link.h (test_link): Enhance test.
35460         * doc/posix-functions/link.texi (link): Document the bug.
35462         getopt: silence clang warning
35463         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35464         dereference.
35465         Reported by Gustavo Martin Domato.
35467 2011-06-22  Jim Meyering  <meyering@redhat.com>
35469         bootstrap: do not insert a blank line into each .gitignore file
35470         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35472 2011-06-21  Eric Blake  <eblake@redhat.com>
35474         perror: test for output mismatch
35475         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35476         perror on IRIX.
35478         strerror_r: fix OpenBSD behavior on out-of-range
35479         * lib/strerror_r.c (strerror_r): Always use maximal string.
35480         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35482         strerror_r: fix OpenBSD behavior on 0
35483         * lib/strerror-override.c (strerror_override): Also override 0
35484         when needed.
35485         * lib/strerror-override.h (strerror_override): Likewise.
35486         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35487         earlier.
35488         * lib/strerror_r.c (strerror_r): Likewise.
35489         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35490         behavior...
35491         (gl_FUNC_STRERROR_0): ...into new macro.
35492         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35493         is overridden.
35494         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35495         * modules/strerror-override (Files): Add strerror.m4.
35496         (configure.ac): Also provide override for 0 when needed.
35497         * doc/posix-functions/strerror.texi (strerror): Document this.
35498         * doc/posix-functions/perror.texi (perror): Likewise.
35500         perror: adjust array size
35501         * modules/perror (Depends-on): Add strerror-override.
35502         * lib/perror.c (perror): Use it to avoid magic number.
35504         strerror-override: reduce size
35505         * lib/strerror-override.c (strerror_override): Use fewer lines.
35507 2011-06-20  Bruno Haible  <bruno@clisp.org>
35509         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35510         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35512 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35514         alloca: port to compilers that can optimize like GCC 4.6.0
35515         * lib/alloca.c (find_stack_direction): New signature, taken from
35516         Autoconf git.  This works with GCC 4.6.0.  This code should never
35517         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35518         be used with other compilers that optimize as well as GCC 4.6.0 does.
35519         (alloca): Adjust to new signature.
35520         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35521         New macro, which patches Autoconf in a similar way.
35523         c-stack: stop worrying about stack direction
35524         * lib/c-stack.c (find_stack_direction): Remove.
35525         (segv_handler): Don't worry about stack direction growth, as it's
35526         too much of a pain to configure this correctly, given how compilers
35527         are optimizing-away our stack-growth detection code.  Instead, assume
35528         that any access to just before or just after the stack is OK.
35529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35530         Don't require AC_FUNC_ALLOCA; no longer needed.
35532 2011-06-20  Eric Blake  <eblake@redhat.com>
35534         test-stat: don't allocate PATH_MAX bytes
35535         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35536         PATH_MAX-sized buffer.
35537         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35538         * modules/stat-tests (Depends-on): Likewise.
35539         * tests/test-fstatat.c (includes): Drop pathmax.h.
35540         * tests/test-stat.c (includes): Likewise.
35541         Reported by Bruno Haible.
35543 2011-06-20  Bruno Haible  <bruno@clisp.org>
35545         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35546         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35547         * lib/float.c: New file.
35548         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35549         REPLACE_FLOAT_LDBL.
35550         * modules/float (Files): Add lib/float.c.
35551         (configure.ac): Invoke AC_LIBOBJ.
35552         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35554 2011-06-20  Bruno Haible  <bruno@clisp.org>
35556         Tests for module 'float'.
35557         * modules/float-tests: New file.
35558         * tests/test-float.c: New file.
35560 2011-06-19  Bruno Haible  <bruno@clisp.org>
35562         isinf: Coding style.
35563         * lib/isinf.c: Use GNU coding style.
35565 2011-06-19  Bruno Haible  <bruno@clisp.org>
35567         linkat test: Avoid test failure on AIX 7.1.
35568         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35569         * tests/test-link.h (test_link): Likewise.
35571 2011-06-19  Bruno Haible  <bruno@clisp.org>
35573         pread test: Avoid test failure on OpenBSD 4.9.
35574         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35576 2011-06-19  Bruno Haible  <bruno@clisp.org>
35578         sprintf-posix: Fix test failure on AIX 7.1.
35579         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35580         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35581         on AIX.
35582         * doc/posix-functions/fprintf.texi: Likewise.
35583         * doc/posix-functions/printf.texi: Likewise.
35584         * doc/posix-functions/snprintf.texi: Likewise.
35585         * doc/posix-functions/sprintf.texi: Likewise.
35586         * doc/posix-functions/vdprintf.texi: Likewise.
35587         * doc/posix-functions/vfprintf.texi: Likewise.
35588         * doc/posix-functions/vprintf.texi: Likewise.
35589         * doc/posix-functions/vsnprintf.texi: Likewise.
35590         * doc/posix-functions/vsprintf.texi: Likewise.
35592 2011-06-19  Bruno Haible  <bruno@clisp.org>
35594         roundl-ieee: Fix test failure on AIX 7.1.
35595         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35596         * doc/posix-functions/roundl.texi: Mention problem with negative
35597         arguments.
35599 2011-06-19  Bruno Haible  <bruno@clisp.org>
35601         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35602         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35603         * doc/posix-functions/round.texi: Mention problem with negative
35604         arguments.
35605         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35607 2011-06-19  Bruno Haible  <bruno@clisp.org>
35609         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35610         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35611         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35612         * doc/posix-functions/roundf.texi: Mention problem with negative
35613         arguments.
35614         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35616 2011-06-19  Bruno Haible  <bruno@clisp.org>
35618         ceilf-ieee: Work around bug on MacOS X 10.5.
35619         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35621         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35622         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35623         IEEE compliant, avoid compiler optimizations.
35624         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35625         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35626         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35627         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35628         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35629         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35630         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35632         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35633         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35635 2011-06-19  Bruno Haible  <bruno@clisp.org>
35637         ceilf-ieee: Work around bug on AIX 7.1.
35638         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35639         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35641 2011-06-19  Bruno Haible  <bruno@clisp.org>
35643         ceil-ieee: Work around bug on AIX 7.1.
35644         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35645         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35647 2011-06-18  Bruno Haible  <bruno@clisp.org>
35649         fsync test: Avoid test failure on MacOS X and AIX.
35650         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35651         EINVAL.
35653 2011-06-18  Bruno Haible  <bruno@clisp.org>
35655         openat, fdopendir tests: Fix link errors.
35656         * modules/openat-tests (Depends-on): Add progname.
35657         * modules/fdopendir-tests (Depends-on): Likewise.
35658         * tests/test-fchownat.c: Include progname.h.
35659         (main): Call set_program_name.
35660         * tests/test-fstatat.c: Include progname.h.
35661         (main): Call set_program_name.
35662         * tests/test-mkdirat.c: Include progname.h.
35663         (main): Call set_program_name.
35664         * tests/test-openat.c: Include progname.h.
35665         (main): Call set_program_name.
35666         * tests/test-unlinkat.c: Include progname.h.
35667         (main): Call set_program_name.
35668         * tests/test-fdopendir.c: Include progname.h.
35669         (main): Call set_program_name.
35671 2011-06-18  Bruno Haible  <bruno@clisp.org>
35673         Doc update.
35674         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35675         HP-UX.
35676         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35678 2011-06-18  Bruno Haible  <bruno@clisp.org>
35680         getcwd tests: Avoid compilation error on HP-UX 11.31.
35681         * modules/getcwd-tests (Depends-on): Add pathmax.
35682         * tests/test-getcwd.c: Include pathmax.h.
35684 2011-06-18  Bruno Haible  <bruno@clisp.org>
35686         isfinite, isinf: Fix link error on AIX 6 and 7.
35687         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35688         needed, also test the macro with a 'float' argument.
35689         * m4/isinf.m4 (gl_ISINF): Likewise.
35691 2011-06-18  Bruno Haible  <bruno@clisp.org>
35693         getloadavg: Don't clobber LIBS. Regression from previous commit.
35694         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35695         AC_CHECK_LIB from here...
35696         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35697         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35698         gl_func_getloadavg_done.
35699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35701 2011-06-18  Bruno Haible  <bruno@clisp.org>
35703         clean-temp: Improve documentation.
35704         * lib/clean-temp.h: Explain better how to use this module.
35705         Reported by John Darrington <john@darrington.wattle.id.au>.
35707 2011-06-17  Bruno Haible  <bruno@clisp.org>
35709         pread, pwrite: Avoid cc warning on AIX.
35710         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35711         (pwrite): Likewise.
35713 2011-06-17  Bruno Haible  <bruno@clisp.org>
35715         spawn-pipe tests: Fix link error.
35716         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35719 2011-06-17  Bruno Haible  <bruno@clisp.org>
35721         Tests: Remove unnecessary dependency.
35722         * modules/canonicalize-tests (Depends-on): Remove progname.
35723         * modules/chown-tests (Depends-on): Likewise.
35724         * modules/dirname-tests (Depends-on): Likewise.
35725         * modules/fdopendir-tests (Depends-on): Likewise.
35726         * modules/fdutimensat-tests (Depends-on): Likewise.
35727         * modules/hash-tests (Depends-on): Likewise.
35728         * modules/lchown-tests (Depends-on): Likewise.
35729         * modules/linkat-tests (Depends-on): Likewise.
35730         * modules/renameat-tests (Depends-on): Likewise.
35731         * modules/spawn-pipe-tests (Depends-on): Likewise.
35732         * modules/utimensat-tests (Depends-on): Likewise.
35734 2011-06-17  Bruno Haible  <bruno@clisp.org>
35736         spawn-pipe tests: Fix link error.
35737         * tests/test-spawn-pipe-child.c: Undefine fflush.
35739 2011-06-17  Bruno Haible  <bruno@clisp.org>
35741         Fix tests link errors.
35742         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35743         * modules/chown-tests (Makefile.am): Don't link test-chown with
35744         LIBINTL.
35745         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35746         LIBINTL.
35747         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35748         LIBINTL.
35749         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35750         LIBINTL.
35752 2011-06-16  Bruno Haible  <bruno@clisp.org>
35754         crypto/gc-sha1: Fix recent regression.
35755         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35756         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35758         crypto/gc-md5: Fix recent regression.
35759         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35761         crypto/gc-md4: Fix recent regression.
35762         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35763         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35765         crypto/gc-arctwo: Fix recent regression.
35766         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35767         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35769         crypto/gc-rijndael: Fix recent regression.
35770         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35771         (configure.ac): Invoke AC_LIBOBJ here.
35772         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35775         crypto/gc-hmac-sha1: Fix recent regression.
35776         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35777         (configure.ac): Invoke AC_LIBOBJ here.
35778         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35781         crypto/gc-hmac-md5: Fix recent regression.
35782         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35783         (configure.ac): Invoke AC_LIBOBJ here.
35784         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35787         crypto/gc-des: Fix recent regression.
35788         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35789         (configure.ac): Invoke AC_LIBOBJ here.
35790         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35793         crypto/gc-arcfour: Fix recent regression.
35794         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35795         (configure.ac): Invoke AC_LIBOBJ here.
35796         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35799 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35801         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35802         After the 2011-05-21 change, this macro requires
35803         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35804         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35806 2011-06-16  Bruno Haible  <bruno@clisp.org>
35808         fprintftime: Move AC_LIBOBJ invocations to module description.
35809         * m4/fprintftime.m4: Remove file.
35810         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35811         (configure.ac): Remove gl_FPRINTFTIME call.
35812         (Makefile.am): Augment lib_SOURCES.
35813         Reported by Jim Meyering.
35815 2011-06-16  Bruno Haible  <bruno@clisp.org>
35817         tmpfile-safer: Finish 2011-05-23 commit.
35818         * m4/stdio-safer.m4: Really remove file.
35819         Reported by Jim Meyering.
35821 2011-06-16  Bruno Haible  <bruno@clisp.org>
35823         syntax-check: Fix typo.
35824         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35825         printf-posix.m4.
35826         Reported by Jim Meyering.
35828 2011-06-13  Jim Meyering  <meyering@redhat.com>
35830         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35831         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35833 2011-05-23  Bruno Haible  <bruno@clisp.org>
35835         yesno: Move AC_LIBOBJ invocations to module description.
35836         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35837         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35839 2011-05-23  Bruno Haible  <bruno@clisp.org>
35841         xstrtol: Move AC_LIBOBJ invocations to module description.
35842         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35843         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35845 2011-05-23  Bruno Haible  <bruno@clisp.org>
35847         xstrtold: Move AC_LIBOBJ invocations to module description.
35848         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35849         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35851 2011-05-23  Bruno Haible  <bruno@clisp.org>
35853         xstrtod: Move AC_LIBOBJ invocations to module description.
35854         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35855         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35857 2011-05-23  Bruno Haible  <bruno@clisp.org>
35859         xnanosleep: Move AC_LIBOBJ invocations to module description.
35860         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35861         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35863 2011-05-23  Bruno Haible  <bruno@clisp.org>
35865         xgetcwd: Move AC_LIBOBJ invocations to module description.
35866         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35867         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35869 2011-05-23  Bruno Haible  <bruno@clisp.org>
35871         xalloc: Move AC_LIBOBJ invocations to module description.
35872         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35873         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35875 2011-05-23  Bruno Haible  <bruno@clisp.org>
35877         write-any-file: Move AC_LIBOBJ invocations to module description.
35878         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35879         invocation.
35880         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35882 2011-05-23  Bruno Haible  <bruno@clisp.org>
35884         utimens: Move AC_LIBOBJ invocations to module description.
35885         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35886         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35888 2011-05-23  Bruno Haible  <bruno@clisp.org>
35890         utimecmp: Move AC_LIBOBJ invocations to module description.
35891         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35892         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35894 2011-05-23  Bruno Haible  <bruno@clisp.org>
35896         userspec: Move AC_LIBOBJ invocations to module description.
35897         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35898         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35900 2011-05-23  Bruno Haible  <bruno@clisp.org>
35902         unlinkdir: Move AC_LIBOBJ invocations to module description.
35903         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35904         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35906 2011-05-23  Bruno Haible  <bruno@clisp.org>
35908         unistd-safer: Move AC_LIBOBJ invocations to module description.
35909         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35910         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35912 2011-05-23  Bruno Haible  <bruno@clisp.org>
35914         tempname: Move AC_LIBOBJ invocations to module description.
35915         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35916         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35918 2011-05-23  Bruno Haible  <bruno@clisp.org>
35920         strftime: Move AC_LIBOBJ invocations to module description.
35921         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35922         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35924 2011-05-23  Bruno Haible  <bruno@clisp.org>
35926         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35927         * m4/stdlib-safer.m4: Remove file.
35928         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35929         (configure.ac): Remove gl_STDLIB_SAFER call.
35930         (Makefile.am): Augment lib_SOURCES.
35932 2011-05-23  Bruno Haible  <bruno@clisp.org>
35934         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35935         * m4/stdio-safer.m4: Remove file.
35936         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35937         (configure.ac): Remove gl_TMPFILE_SAFER call.
35938         (Makefile.am): Augment lib_SOURCES.
35940 2011-05-23  Bruno Haible  <bruno@clisp.org>
35942         popen-safer: Move AC_LIBOBJ invocations to module description.
35943         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35944         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35945         (configure.ac): Remove gl_POPEN_SAFER call.
35946         (Makefile.am): Augment lib_SOURCES.
35948 2011-05-23  Bruno Haible  <bruno@clisp.org>
35950         freopen-safer: Move AC_LIBOBJ invocations to module description.
35951         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35952         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35953         (configure.ac): Remove gl_FREOPEN_SAFER call.
35954         (Makefile.am): Augment lib_SOURCES.
35956 2011-05-23  Bruno Haible  <bruno@clisp.org>
35958         fopen-safer: Move AC_LIBOBJ invocations to module description.
35959         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35960         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35961         (configure.ac): Remove gl_FOPEN_SAFER call.
35962         (Makefile.am): Augment lib_SOURCES.
35964 2011-05-23  Bruno Haible  <bruno@clisp.org>
35966         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35967         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35968         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35970 2011-05-23  Bruno Haible  <bruno@clisp.org>
35972         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35973         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35974         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35976 2011-05-23  Bruno Haible  <bruno@clisp.org>
35978         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35979         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35980         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35982 2011-05-23  Bruno Haible  <bruno@clisp.org>
35984         settime: Move AC_LIBOBJ invocations to module description.
35985         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35986         * modules/settime (Makefile.am): Augment lib_SOURCES.
35988 2011-05-23  Bruno Haible  <bruno@clisp.org>
35990         savedir: Move AC_LIBOBJ invocations to module description.
35991         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35992         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35994 2011-05-23  Bruno Haible  <bruno@clisp.org>
35996         save-cwd: Move AC_LIBOBJ invocations to module description.
35997         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35998         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
36000 2011-05-23  Bruno Haible  <bruno@clisp.org>
36002         same: Move AC_LIBOBJ invocations to module description.
36003         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
36004         * modules/same (Makefile.am): Augment lib_SOURCES.
36006 2011-05-23  Bruno Haible  <bruno@clisp.org>
36008         safe-write: Move AC_LIBOBJ invocations to module description.
36009         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
36010         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
36011         instead of gl_SAFE_WRITE.
36012         (Makefile.am): Augment lib_SOURCES.
36014 2011-05-23  Bruno Haible  <bruno@clisp.org>
36016         safe-read: Move AC_LIBOBJ invocations to module description.
36017         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
36018         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
36019         of gl_SAFE_READ.
36020         (Makefile.am): Augment lib_SOURCES.
36022 2011-05-23  Bruno Haible  <bruno@clisp.org>
36024         safe-alloc: Move AC_LIBOBJ invocations to module description.
36025         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
36026         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
36028 2011-05-23  Bruno Haible  <bruno@clisp.org>
36030         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
36031         * m4/rijndael.m4: Remove file.
36032         * modules/crypto/rijndael (Files): Remove it.
36033         (configure.ac): Remove gl_RIJNDAEL call.
36034         (Makefile.am): Augment lib_SOURCES.
36036 2011-05-23  Bruno Haible  <bruno@clisp.org>
36038         readtokens: Move AC_LIBOBJ invocations to module description.
36039         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
36040         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
36042 2011-05-23  Bruno Haible  <bruno@clisp.org>
36044         read-file: Move AC_LIBOBJ invocations to module description.
36045         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
36046         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
36047         of gl_FUNC_READ_FILE.
36048         (Makefile.am): Augment lib_SOURCES.
36050 2011-05-23  Bruno Haible  <bruno@clisp.org>
36052         quotearg: Move AC_LIBOBJ invocations to module description.
36053         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
36054         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
36056 2011-05-23  Bruno Haible  <bruno@clisp.org>
36058         quote: Move AC_LIBOBJ invocations to module description.
36059         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
36060         * modules/quote (Makefile.am): Augment lib_SOURCES.
36062 2011-05-23  Bruno Haible  <bruno@clisp.org>
36064         posixver: Move AC_LIBOBJ invocations to module description.
36065         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
36066         * modules/posixver (Makefile.am): Augment lib_SOURCES.
36068 2011-05-23  Bruno Haible  <bruno@clisp.org>
36070         posixtm: Move AC_LIBOBJ invocations to module description.
36071         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
36072         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
36074 2011-05-23  Bruno Haible  <bruno@clisp.org>
36076         physmem: Move AC_LIBOBJ invocations to module description.
36077         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
36078         * modules/physmem (Makefile.am): Augment lib_SOURCES.
36080 2011-05-23  Bruno Haible  <bruno@clisp.org>
36082         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
36083         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
36084         invocation.
36085         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
36087 2011-05-23  Bruno Haible  <bruno@clisp.org>
36089         mpsort: Move AC_LIBOBJ invocations to module description.
36090         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
36091         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
36093 2011-05-23  Bruno Haible  <bruno@clisp.org>
36095         modechange: Move AC_LIBOBJ invocations to module description.
36096         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
36097         * modules/modechange (Makefile.am): Augment lib_SOURCES.
36099 2011-05-23  Bruno Haible  <bruno@clisp.org>
36101         mkdir-p: Move AC_LIBOBJ invocations to module description.
36102         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
36103         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
36105 2011-05-23  Bruno Haible  <bruno@clisp.org>
36107         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36108         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36109         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36111 2011-05-23  Bruno Haible  <bruno@clisp.org>
36113         mgetgroups: Move AC_LIBOBJ invocations to module description.
36114         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36115         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36117 2011-05-23  Bruno Haible  <bruno@clisp.org>
36119         memxor: Move AC_LIBOBJ invocations to module description.
36120         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36121         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36123 2011-05-23  Bruno Haible  <bruno@clisp.org>
36125         memcoll: Move AC_LIBOBJ invocations to module description.
36126         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36127         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36129 2011-05-23  Bruno Haible  <bruno@clisp.org>
36131         memcasecmp: Move AC_LIBOBJ invocations to module description.
36132         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36133         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36135 2011-05-23  Bruno Haible  <bruno@clisp.org>
36137         crypto/md5: Move AC_LIBOBJ invocations to module description.
36138         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36139         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36141 2011-05-23  Bruno Haible  <bruno@clisp.org>
36143         crypto/md4: Move AC_LIBOBJ invocations to module description.
36144         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36145         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36147 2011-05-23  Bruno Haible  <bruno@clisp.org>
36149         crypto/md2: Move AC_LIBOBJ invocations to module description.
36150         * m4/md2.m4: Remove file.
36151         * modules/crypto/md2 (Files): Remove it.
36152         (configure.ac): Remove gl_MD2 call.
36153         (Makefile.am): Augment lib_SOURCES.
36155 2011-05-23  Bruno Haible  <bruno@clisp.org>
36157         long-options: Move AC_LIBOBJ invocations to module description.
36158         * m4/long-options.m4: Remove file.
36159         * modules/long-options (Files): Remove it.
36160         (configure.ac): Remove gl_LONG_OPTIONS call.
36161         (Makefile.am): Augment lib_SOURCES.
36163 2011-05-23  Bruno Haible  <bruno@clisp.org>
36165         i-ring: Move AC_LIBOBJ invocations to module description.
36166         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36167         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36169 2011-05-23  Bruno Haible  <bruno@clisp.org>
36171         idcache: Move AC_LIBOBJ invocations to module description.
36172         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36173         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36175 2011-05-23  Bruno Haible  <bruno@clisp.org>
36177         human: Move AC_LIBOBJ invocations to module description.
36178         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36179         * modules/human (Makefile.am): Augment lib_SOURCES.
36181 2011-05-23  Bruno Haible  <bruno@clisp.org>
36183         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36184         * m4/hmac-sha1.m4: Remove file.
36185         * modules/crypto/hmac-sha1 (Files): Remove it.
36186         (configure.ac): Remove gl_HMAC_SHA1 call.
36187         (Makefile.am): Augment lib_SOURCES.
36189 2011-05-23  Bruno Haible  <bruno@clisp.org>
36191         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36192         * m4/hmac-md5.m4: Remove file.
36193         * modules/crypto/hmac-md5 (Files): Remove it.
36194         (configure.ac): Remove gl_HMAC_MD5 call.
36195         (Makefile.am): Augment lib_SOURCES.
36197 2011-05-23  Bruno Haible  <bruno@clisp.org>
36199         hash: Move AC_LIBOBJ invocations to module description.
36200         * m4/hash.m4: Remove file.
36201         * modules/hash (Files): Remove it.
36202         (configure.ac): Remove gl_HASH call.
36203         (Makefile.am): Augment lib_SOURCES.
36205 2011-05-23  Bruno Haible  <bruno@clisp.org>
36207         hard-locale: Move AC_LIBOBJ invocations to module description.
36208         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36209         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36211 2011-05-23  Bruno Haible  <bruno@clisp.org>
36213         getugroups: Move AC_LIBOBJ invocations to module description.
36214         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36215         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36217 2011-05-23  Bruno Haible  <bruno@clisp.org>
36219         gettime: Move AC_LIBOBJ invocations to module description.
36220         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36221         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36223 2011-05-23  Bruno Haible  <bruno@clisp.org>
36225         getndelim2: Move AC_LIBOBJ invocations to module description.
36226         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36227         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36229 2011-05-23  Bruno Haible  <bruno@clisp.org>
36231         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36232         * m4/gc-pbkdf2-sha1.m4: Remove file.
36233         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36234         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36235         (Makefile.am): Augment lib_SOURCES.
36237 2011-05-23  Bruno Haible  <bruno@clisp.org>
36239         fts: Move AC_LIBOBJ invocations to module description.
36240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36241         * modules/fts (configure.ac): ... to here.
36243 2011-05-23  Bruno Haible  <bruno@clisp.org>
36245         file-type: Move AC_LIBOBJ invocations to module description.
36246         * m4/file-type.m4: Remove file.
36247         * modules/file-type (Files): Remove it.
36248         (configure.ac): Remove gl_FILE_TYPE call.
36249         (Makefile.am): Augment lib_SOURCES.
36251 2011-05-23  Bruno Haible  <bruno@clisp.org>
36253         filenamecat*: Respect rules for use of AC_LIBOBJ.
36254         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36255         Remove AC_LIBOBJ invocation.
36256         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36257         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36259 2011-05-23  Bruno Haible  <bruno@clisp.org>
36261         filemode: Move AC_LIBOBJ invocations to module description.
36262         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36263         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36265 2011-05-23  Bruno Haible  <bruno@clisp.org>
36267         openat-safer: Move AC_LIBOBJ invocations to module description.
36268         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36269         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36271 2011-05-23  Bruno Haible  <bruno@clisp.org>
36273         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36275         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36277 2011-05-23  Bruno Haible  <bruno@clisp.org>
36279         exclude: Move AC_LIBOBJ invocations to module description.
36280         * m4/exclude.m4: Remove file.
36281         * modules/exclude (Files): Remove it.
36282         (configure.ac): Remove gl_EXCLUDE call.
36283         (Makefile.am): Augment lib_SOURCES.
36285 2011-05-23  Bruno Haible  <bruno@clisp.org>
36287         dirname*: Respect rules for use of AC_LIBOBJ.
36288         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36289         invocations.
36290         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36291         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36293 2011-05-23  Bruno Haible  <bruno@clisp.org>
36295         dirent-safer: Move AC_LIBOBJ invocations to module description.
36296         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36297         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36299 2011-05-23  Bruno Haible  <bruno@clisp.org>
36301         crypto/des: Move AC_LIBOBJ invocations to module description.
36302         * m4/des.m4: Remove file.
36303         * modules/crypto/des (Files): Remove it.
36304         (configure.ac): Remove gl_DES call.
36305         (Makefile.am): Augment lib_SOURCES.
36307 2011-05-23  Bruno Haible  <bruno@clisp.org>
36309         cycle-check: Move AC_LIBOBJ invocations to module description.
36310         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36311         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36313 2011-05-23  Bruno Haible  <bruno@clisp.org>
36315         c-strtold: Move AC_LIBOBJ invocations to module description.
36316         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36317         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36319 2011-05-23  Bruno Haible  <bruno@clisp.org>
36321         c-strtod: Move AC_LIBOBJ invocations to module description.
36322         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36323         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36325 2011-05-23  Bruno Haible  <bruno@clisp.org>
36327         crc: Move AC_LIBOBJ invocations to module description.
36328         * m4/crc.m4: Remove file.
36329         * modules/crc (Files): Remove it.
36330         (configure.ac): Remove gl_CRC call.
36331         (Makefile.am): Augment lib_SOURCES.
36333 2011-05-23  Bruno Haible  <bruno@clisp.org>
36335         close-stream: Move AC_LIBOBJ invocations to module description.
36336         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36337         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36339 2011-05-23  Bruno Haible  <bruno@clisp.org>
36341         closeout: Move AC_LIBOBJ invocations to module description.
36342         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36343         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36345 2011-05-23  Bruno Haible  <bruno@clisp.org>
36347         closein: Move AC_LIBOBJ invocations to module description.
36348         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36349         * modules/closein (Makefile.am): Augment lib_SOURCES.
36351 2011-05-23  Bruno Haible  <bruno@clisp.org>
36353         cloexec: Move AC_LIBOBJ invocations to module description.
36354         * m4/cloexec.m4: Remove file.
36355         * modules/cloexec (Files): Remove it.
36356         (configure.ac): Remove gl_CLOEXEC call.
36357         (Makefile.am): Augment lib_SOURCES.
36359 2011-05-23  Bruno Haible  <bruno@clisp.org>
36361         check-version: Move AC_LIBOBJ invocations to module description.
36362         * m4/check-version.m4: Remove file.
36363         * modules/check-version (Files): Remove it.
36364         (configure.ac): Remove gl_CHECK_VERSION call.
36365         (Makefile.am): Augment lib_SOURCES.
36367 2011-05-23  Bruno Haible  <bruno@clisp.org>
36369         chdir-safer: Move AC_LIBOBJ invocations to module description.
36370         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36371         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36373 2011-05-23  Bruno Haible  <bruno@clisp.org>
36375         canonicalize: Move AC_LIBOBJ invocations to module description.
36376         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36377         AC_LIBOBJ invocation.
36378         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36380 2011-05-23  Bruno Haible  <bruno@clisp.org>
36382         canon-host: Move AC_LIBOBJ invocations to module description.
36383         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36384         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36385         instead of gl_CANON_HOST.
36386         (Makefile.am): Augment lib_SOURCES.
36388 2011-05-23  Bruno Haible  <bruno@clisp.org>
36390         backupfile: Move AC_LIBOBJ invocations to module description.
36391         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36392         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36394 2011-05-23  Bruno Haible  <bruno@clisp.org>
36396         argmatch: Move AC_LIBOBJ invocations to module description.
36397         * m4/argmatch.m4: Remove file.
36398         * modules/argmatch (Files): Remove it.
36399         (configure.ac): Remove gl_ARGMATCH call.
36400         (Makefile.am): Augment lib_SOURCES.
36402 2011-05-23  Bruno Haible  <bruno@clisp.org>
36404         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36405         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36406         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36408 2011-05-23  Bruno Haible  <bruno@clisp.org>
36410         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36411         * m4/arcfour.m4: Remove file.
36412         * modules/crypto/arcfour (Files): Remove it.
36413         (configure.ac): Remove gl_ARCFOUR call.
36414         (Makefile.am): Augment lib_SOURCES.
36416 2011-05-22  Bruno Haible  <bruno@clisp.org>
36418         write: Move AC_LIBOBJ invocations to module description.
36419         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36420         * modules/write (configure.ac): ... to here.
36422 2011-05-22  Bruno Haible  <bruno@clisp.org>
36424         wmemset: Move AC_LIBOBJ invocations to module description.
36425         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36426         here...
36427         * modules/wmemset (configure.ac): ... to here.
36429 2011-05-22  Bruno Haible  <bruno@clisp.org>
36431         wmemmove: Move AC_LIBOBJ invocations to module description.
36432         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36433         here...
36434         * modules/wmemmove (configure.ac): ... to here.
36436 2011-05-22  Bruno Haible  <bruno@clisp.org>
36438         wmemcpy: Move AC_LIBOBJ invocations to module description.
36439         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36440         here...
36441         * modules/wmemcpy (configure.ac): ... to here.
36443 2011-05-22  Bruno Haible  <bruno@clisp.org>
36445         wmemcmp: Move AC_LIBOBJ invocations to module description.
36446         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36447         here...
36448         * modules/wmemcmp (configure.ac): ... to here.
36450 2011-05-22  Bruno Haible  <bruno@clisp.org>
36452         wmemchr: Move AC_LIBOBJ invocations to module description.
36453         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36454         here...
36455         * modules/wmemchr (configure.ac): ... to here.
36457 2011-05-22  Bruno Haible  <bruno@clisp.org>
36459         wcswidth: Move AC_LIBOBJ invocations to module description.
36460         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36461         here...
36462         * modules/wcswidth (configure.ac): ... to here.
36464 2011-05-22  Bruno Haible  <bruno@clisp.org>
36466         wcwidth: Respect rules for use of AC_LIBOBJ.
36467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36468         invocation from here...
36469         * modules/wcwidth (configure.ac): ... to here.
36470         (Depends-on): Update conditions.
36472 2011-05-22  Bruno Haible  <bruno@clisp.org>
36474         wctype: Move AC_LIBOBJ invocations to module description.
36475         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36476         invocation from here...
36477         * modules/wctype (configure.ac): ... to here.
36478         (Depends-on): Update conditions.
36480 2011-05-22  Bruno Haible  <bruno@clisp.org>
36482         wctrans: Move AC_LIBOBJ invocations to module description.
36483         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36484         invocation from here...
36485         * modules/wctrans (configure.ac): ... to here.
36487 2011-05-22  Bruno Haible  <bruno@clisp.org>
36489         wctomb: Move AC_LIBOBJ invocations to module description.
36490         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36491         invocations from here...
36492         * modules/wctomb (configure.ac): ... to here.
36494 2011-05-22  Bruno Haible  <bruno@clisp.org>
36496         wctob: Move AC_LIBOBJ invocations to module description.
36497         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36498         gl_PREREQ_WCTOB invocations from here...
36499         * modules/wctob (configure.ac): ... to here.
36500         (Depends-on): Update conditions.
36502 2011-05-22  Bruno Haible  <bruno@clisp.org>
36504         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36505         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36506         here...
36507         * modules/wcsxfrm (configure.ac): ... to here.
36509 2011-05-22  Bruno Haible  <bruno@clisp.org>
36511         wcstok: Move AC_LIBOBJ invocations to module description.
36512         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36513         * modules/wcstok (configure.ac): ... to here.
36515 2011-05-22  Bruno Haible  <bruno@clisp.org>
36517         wcsstr: Move AC_LIBOBJ invocations to module description.
36518         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36519         * modules/wcsstr (configure.ac): ... to here.
36521 2011-05-22  Bruno Haible  <bruno@clisp.org>
36523         wcsspn: Move AC_LIBOBJ invocations to module description.
36524         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36525         * modules/wcsspn (configure.ac): ... to here.
36527 2011-05-22  Bruno Haible  <bruno@clisp.org>
36529         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36530         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36531         gl_PREREQ_WCSRTOMBS invocations from here...
36532         * modules/wcsrtombs (configure.ac): ... to here.
36534 2011-05-22  Bruno Haible  <bruno@clisp.org>
36536         wcsrchr: Move AC_LIBOBJ invocations to module description.
36537         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36538         here...
36539         * modules/wcsrchr (configure.ac): ... to here.
36541 2011-05-22  Bruno Haible  <bruno@clisp.org>
36543         wcspbrk: Move AC_LIBOBJ invocations to module description.
36544         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36545         here...
36546         * modules/wcspbrk (configure.ac): ... to here.
36548 2011-05-22  Bruno Haible  <bruno@clisp.org>
36550         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36551         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36552         gl_PREREQ_WCSNRTOMBS invocations from here...
36553         * modules/wcsnrtombs (configure.ac): ... to here.
36555 2011-05-22  Bruno Haible  <bruno@clisp.org>
36557         wcsnlen: Move AC_LIBOBJ invocations to module description.
36558         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36559         here...
36560         * modules/wcsnlen (configure.ac): ... to here.
36562 2011-05-22  Bruno Haible  <bruno@clisp.org>
36564         wcsncpy: Move AC_LIBOBJ invocations to module description.
36565         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36566         here...
36567         * modules/wcsncpy (configure.ac): ... to here.
36569 2011-05-22  Bruno Haible  <bruno@clisp.org>
36571         wcsncmp: Move AC_LIBOBJ invocations to module description.
36572         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36573         here...
36574         * modules/wcsncmp (configure.ac): ... to here.
36576 2011-05-22  Bruno Haible  <bruno@clisp.org>
36578         wcsncat: Move AC_LIBOBJ invocations to module description.
36579         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36580         here...
36581         * modules/wcsncat (configure.ac): ... to here.
36583 2011-05-22  Bruno Haible  <bruno@clisp.org>
36585         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36586         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36587         from here...
36588         * modules/wcsncasecmp (configure.ac): ... to here.
36590 2011-05-22  Bruno Haible  <bruno@clisp.org>
36592         wcslen: Move AC_LIBOBJ invocations to module description.
36593         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36594         * modules/wcslen (configure.ac): ... to here.
36596 2011-05-22  Bruno Haible  <bruno@clisp.org>
36598         wcsdup: Move AC_LIBOBJ invocations to module description.
36599         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36600         * modules/wcsdup (configure.ac): ... to here.
36602 2011-05-22  Bruno Haible  <bruno@clisp.org>
36604         wcscspn: Move AC_LIBOBJ invocations to module description.
36605         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36606         here...
36607         * modules/wcscspn (configure.ac): ... to here.
36609 2011-05-22  Bruno Haible  <bruno@clisp.org>
36611         wcscpy: Move AC_LIBOBJ invocations to module description.
36612         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36613         * modules/wcscpy (configure.ac): ... to here.
36615 2011-05-22  Bruno Haible  <bruno@clisp.org>
36617         wcscoll: Move AC_LIBOBJ invocations to module description.
36618         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36619         here...
36620         * modules/wcscoll (configure.ac): ... to here.
36622 2011-05-22  Bruno Haible  <bruno@clisp.org>
36624         wcscmp: Move AC_LIBOBJ invocations to module description.
36625         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36626         * modules/wcscmp (configure.ac): ... to here.
36628 2011-05-22  Bruno Haible  <bruno@clisp.org>
36630         wcschr: Move AC_LIBOBJ invocations to module description.
36631         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36632         * modules/wcschr (configure.ac): ... to here.
36634 2011-05-22  Bruno Haible  <bruno@clisp.org>
36636         wcscat: Move AC_LIBOBJ invocations to module description.
36637         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36638         * modules/wcscat (configure.ac): ... to here.
36640 2011-05-22  Bruno Haible  <bruno@clisp.org>
36642         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36643         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36644         here...
36645         * modules/wcscasecmp (configure.ac): ... to here.
36647 2011-05-22  Bruno Haible  <bruno@clisp.org>
36649         wcrtomb: Move AC_LIBOBJ invocations to module description.
36650         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36651         invocations from here...
36652         * modules/wcrtomb (configure.ac): ... to here.
36654 2011-05-22  Bruno Haible  <bruno@clisp.org>
36656         wcpncpy: Move AC_LIBOBJ invocations to module description.
36657         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36658         here...
36659         * modules/wcpncpy (configure.ac): ... to here.
36661 2011-05-22  Bruno Haible  <bruno@clisp.org>
36663         wcpcpy: Move AC_LIBOBJ invocations to module description.
36664         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36665         * modules/wcpcpy (configure.ac): ... to here.
36667 2011-05-22  Bruno Haible  <bruno@clisp.org>
36669         waitpid: Move AC_LIBOBJ invocations to module description.
36670         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36671         invocation from here...
36672         * modules/waitpid (configure.ac): ... to here.
36674 2011-05-22  Bruno Haible  <bruno@clisp.org>
36676         utimensat: Move AC_LIBOBJ invocations to module description.
36677         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36678         here...
36679         * modules/utimensat (configure.ac): ... to here.
36681 2011-05-22  Bruno Haible  <bruno@clisp.org>
36683         usleep: Move AC_LIBOBJ invocations to module description.
36684         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36685         here...
36686         * modules/usleep (configure.ac): ... to here.
36688 2011-05-22  Bruno Haible  <bruno@clisp.org>
36690         unlockpt: Move AC_LIBOBJ invocations to module description.
36691         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36692         gl_PREREQ_UNLOCKPT invocations from here...
36693         * modules/unlockpt (configure.ac): ... to here.
36695 2011-05-22  Bruno Haible  <bruno@clisp.org>
36697         unlink: Respect rules for use of AC_LIBOBJ.
36698         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36699         * modules/unlink (configure.ac): ... to here.
36701 2011-05-22  Bruno Haible  <bruno@clisp.org>
36703         uname: Move AC_LIBOBJ invocations to module description.
36704         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36705         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36706         here...
36707         * modules/uname (configure.ac): ... to here.
36709 2011-05-22  Bruno Haible  <bruno@clisp.org>
36711         ttyname_r: Move AC_LIBOBJ invocations to module description.
36712         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36713         gl_PREREQ_TTYNAME_R invocations from here...
36714         * modules/ttyname_r (configure.ac): ... to here.
36716 2011-05-22  Bruno Haible  <bruno@clisp.org>
36718         tsearch: Move AC_LIBOBJ invocations to module description.
36719         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36720         invocations from here...
36721         * modules/tsearch (configure.ac): ... to here.
36723 2011-05-22  Bruno Haible  <bruno@clisp.org>
36725         towctrans: Move AC_LIBOBJ invocations to module description.
36726         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36727         AC_LIBOBJ invocation from here...
36728         * modules/towctrans (configure.ac): ... to here.
36730 2011-05-22  Bruno Haible  <bruno@clisp.org>
36732         tmpfile: Move AC_LIBOBJ invocations to module description.
36733         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36734         invocations from here...
36735         * modules/tmpfile (configure.ac): ... to here.
36737 2011-05-22  Bruno Haible  <bruno@clisp.org>
36739         times: Move AC_LIBOBJ invocations to module description.
36740         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36741         * modules/times (configure.ac): ... to here.
36743 2011-05-22  Bruno Haible  <bruno@clisp.org>
36745         time_r: Move AC_LIBOBJ invocations to module description.
36746         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36747         invocations from here...
36748         * modules/time_r (configure.ac): ... to here.
36750 2011-05-22  Bruno Haible  <bruno@clisp.org>
36752         timegm: Move AC_LIBOBJ invocations to module description.
36753         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36754         invocations from here...
36755         * modules/timegm (configure.ac): ... to here.
36757 2011-05-22  Bruno Haible  <bruno@clisp.org>
36759         tcgetsid: Move AC_LIBOBJ invocations to module description.
36760         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36761         and gl_PREREQ_TCGETSID invocations from here...
36762         * modules/tcgetsid (configure.ac): ... to here.
36763         (Depends-on): Update conditions.
36765 2011-05-22  Bruno Haible  <bruno@clisp.org>
36767         symlinkat: Move AC_LIBOBJ invocations to module description.
36768         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36769         here...
36770         * modules/symlinkat (configure.ac): ... to here.
36772 2011-05-22  Bruno Haible  <bruno@clisp.org>
36774         symlink: Move AC_LIBOBJ invocations to module description.
36775         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36776         here...
36777         * modules/symlink (configure.ac): ... to here.
36779 2011-05-22  Bruno Haible  <bruno@clisp.org>
36781         strverscmp: Move AC_LIBOBJ invocations to module description.
36782         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36784         from here...
36785         * modules/strverscmp (configure.ac): ... to here.
36787 2011-05-22  Bruno Haible  <bruno@clisp.org>
36789         strtok_r: Move AC_LIBOBJ invocations to module description.
36790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36791         and gl_PREREQ_STRTOK_R invocations from here...
36792         * modules/strtok_r (configure.ac): ... to here.
36793         (Depends-on): Update conditions.
36795 2011-05-22  Bruno Haible  <bruno@clisp.org>
36797         strtoumax: Move AC_LIBOBJ invocations to module description.
36798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36799         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36800         from here...
36801         * modules/strtoumax (configure.ac): ... to here.
36803 2011-05-22  Bruno Haible  <bruno@clisp.org>
36805         strtoimax: Move AC_LIBOBJ invocations to module description.
36806         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36807         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36808         from here...
36809         * modules/strtoimax (configure.ac): ... to here.
36811 2011-05-22  Bruno Haible  <bruno@clisp.org>
36813         strtoull: Move AC_LIBOBJ invocations to module description.
36814         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36816         from here...
36817         * modules/strtoull (configure.ac): ... to here.
36819 2011-05-22  Bruno Haible  <bruno@clisp.org>
36821         strtoll: Move AC_LIBOBJ invocations to module description.
36822         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36823         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36824         here...
36825         * modules/strtoll (configure.ac): ... to here.
36827 2011-05-22  Bruno Haible  <bruno@clisp.org>
36829         strtoul: Move AC_LIBOBJ invocations to module description.
36830         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36831         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36832         * modules/strtoul (configure.ac): ... to here.
36834 2011-05-22  Bruno Haible  <bruno@clisp.org>
36836         strtol: Move AC_LIBOBJ invocations to module description.
36837         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36838         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36839         * modules/strtol (configure.ac): ... to here.
36841 2011-05-22  Bruno Haible  <bruno@clisp.org>
36843         strtod: Move AC_LIBOBJ invocations to module description.
36844         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36845         invocations from here...
36846         * modules/strtod (configure.ac): ... to here.
36848 2011-05-22  Bruno Haible  <bruno@clisp.org>
36850         strstr*: Move AC_LIBOBJ invocations to module description.
36851         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36852         invocations from here...
36853         * modules/strstr-simple (configure.ac): ... to here.
36854         * modules/strstr (configure.ac): ... and here.
36856 2011-05-22  Bruno Haible  <bruno@clisp.org>
36858         strsignal: Move AC_LIBOBJ invocations to module description.
36859         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36860         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36861         * modules/strsignal (configure.ac): ... to here.
36862         (Depends-on): Update conditions.
36864 2011-05-22  Bruno Haible  <bruno@clisp.org>
36866         strsep: Move AC_LIBOBJ invocations to module description.
36867         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36869         here...
36870         * modules/strsep (configure.ac): ... to here.
36872 2011-05-22  Bruno Haible  <bruno@clisp.org>
36874         strptime: Move AC_LIBOBJ invocations to module description.
36875         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36876         gl_PREREQ_STRPTIME invocations from here...
36877         * modules/strptime (configure.ac): ... to here.
36879 2011-05-22  Bruno Haible  <bruno@clisp.org>
36881         strpbrk: Move AC_LIBOBJ invocations to module description.
36882         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36884         here...
36885         * modules/strpbrk (configure.ac): ... to here.
36887 2011-05-22  Bruno Haible  <bruno@clisp.org>
36889         strnlen: Move AC_LIBOBJ invocations to module description.
36890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36891         invocations from here...
36892         * modules/strnlen (configure.ac): ... to here.
36894 2011-05-22  Bruno Haible  <bruno@clisp.org>
36896         strndup: Move AC_LIBOBJ invocations to module description.
36897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36898         invocations from here...
36899         * modules/strndup (configure.ac): ... to here.
36900         (Depends-on): Update conditions.
36902 2011-05-22  Bruno Haible  <bruno@clisp.org>
36904         strncat: Move AC_LIBOBJ invocations to module description.
36905         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36906         invocations from here...
36907         * modules/strncat (configure.ac): ... to here.
36909 2011-05-22  Bruno Haible  <bruno@clisp.org>
36911         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36912         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36913         invocations from here...
36914         * modules/strdup (configure.ac): ... to here.
36915         * modules/strdup-posix (configure.ac): ... and here.
36917 2011-05-22  Bruno Haible  <bruno@clisp.org>
36919         strcspn: Move AC_LIBOBJ invocations to module description.
36920         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36922         here...
36923         * modules/strcspn (configure.ac): ... to here.
36925 2011-05-22  Bruno Haible  <bruno@clisp.org>
36927         strchrnul: Move AC_LIBOBJ invocations to module description.
36928         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36929         gl_PREREQ_STRCHRNUL invocations from here...
36930         * modules/strchrnul (configure.ac): ... to here.
36932 2011-05-22  Bruno Haible  <bruno@clisp.org>
36934         strcasestr*: Move AC_LIBOBJ invocations to module description.
36935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36936         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36937         * modules/strcasestr-simple (configure.ac): ... to here.
36938         * modules/strcasestr (configure.ac): ... and here.
36940 2011-05-22  Bruno Haible  <bruno@clisp.org>
36942         strcase: Move AC_LIBOBJ invocations to module description.
36943         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36944         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36945         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36946         gl_PREREQ_STRNCASECMP invocations from here...
36947         * modules/strcase (configure.ac): ... to here.
36949 2011-05-22  Bruno Haible  <bruno@clisp.org>
36951         stpncpy: Move AC_LIBOBJ invocations to module description.
36952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36953         here...
36954         * modules/stpncpy (configure.ac): ... to here.
36956 2011-05-22  Bruno Haible  <bruno@clisp.org>
36958         stpcpy: Move AC_LIBOBJ invocations to module description.
36959         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36961         here...
36962         * modules/stpcpy (configure.ac): ... to here.
36964 2011-05-21  Bruno Haible  <bruno@clisp.org>
36966         stat: Move AC_LIBOBJ invocations to module description.
36967         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36968         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36969         here...
36970         * modules/stat (configure.ac): ... to here.
36972 2011-05-21  Bruno Haible  <bruno@clisp.org>
36974         sleep: Move AC_LIBOBJ invocations to module description.
36975         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36976         * modules/sleep (configure.ac): ... to here.
36978 2011-05-21  Bruno Haible  <bruno@clisp.org>
36980         signbit: Move AC_LIBOBJ invocations to module description.
36981         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36982         * modules/signbit (configure.ac): ... to here.
36984 2011-05-21  Bruno Haible  <bruno@clisp.org>
36986         sigprocmask: Move AC_LIBOBJ invocations to module description.
36987         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36988         gl_PREREQ_SIGPROMASK invocations from here...
36989         * modules/sigprocmask (configure.ac): ... to here.
36991 2011-05-21  Bruno Haible  <bruno@clisp.org>
36993         sigaction: Move AC_LIBOBJ invocations to module description.
36994         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36995         gl_PREREQ_SIGACTION invocations from here...
36996         * modules/sigaction (configure.ac): ... to here.
36998 2011-05-21  Bruno Haible  <bruno@clisp.org>
37000         sig2str: Move AC_LIBOBJ invocations to module description.
37001         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
37002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
37003         here...
37004         * modules/sig2str (configure.ac): ... to here.
37006 2011-05-21  Bruno Haible  <bruno@clisp.org>
37008         setlocale: Move AC_LIBOBJ invocations to module description.
37009         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
37010         gl_PREREQ_SETLOCALE invocations from here...
37011         * modules/setlocale (configure.ac): ... to here.
37013 2011-05-21  Bruno Haible  <bruno@clisp.org>
37015         unsetenv: Move AC_LIBOBJ invocations to module description.
37016         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
37017         and gl_PREREQ_UNSETENV invocations from here...
37018         * modules/unsetenv (configure.ac): ... to here.
37019         (Depends-on): Update.
37021 2011-05-21  Bruno Haible  <bruno@clisp.org>
37023         setenv: Move AC_LIBOBJ invocations to module description.
37024         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
37025         here...
37026         * modules/setenv (configure.ac): ... to here.
37028 2011-05-21  Bruno Haible  <bruno@clisp.org>
37030         selinux-h: Move AC_LIBOBJ invocations to module description.
37031         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
37032         AC_LIBOBJ invocation from here...
37033         * modules/selinux-h (configure.ac): ... to here.
37035 2011-05-21  Bruno Haible  <bruno@clisp.org>
37037         select: Respect rules for use of AC_LIBOBJ.
37038         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
37039         here...
37040         * modules/select (configure.ac): ... to here.
37042 2011-05-21  Bruno Haible  <bruno@clisp.org>
37044         scandir: Move AC_LIBOBJ invocations to module description.
37045         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
37046         invocations from here...
37047         * modules/scandir (configure.ac): ... to here.
37049 2011-05-21  Bruno Haible  <bruno@clisp.org>
37051         rpmatch: Move AC_LIBOBJ invocations to module description.
37052         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
37053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
37054         here...
37055         * modules/rpmatch (configure.ac): ... to here.
37057 2011-05-21  Bruno Haible  <bruno@clisp.org>
37059         rmdir: Respect rules for use of AC_LIBOBJ.
37060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
37061         * modules/rmdir (configure.ac): ... to here.
37063 2011-05-21  Bruno Haible  <bruno@clisp.org>
37065         renameat: Move AC_LIBOBJ invocations to module description.
37066         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
37067         here...
37068         * modules/renameat (configure.ac): ... to here.
37070 2011-05-21  Bruno Haible  <bruno@clisp.org>
37072         rename: Respect rules for use of AC_LIBOBJ.
37073         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
37074         here...
37075         * modules/rename (configure.ac): ... to here.
37077 2011-05-21  Bruno Haible  <bruno@clisp.org>
37079         remove: Move AC_LIBOBJ invocations to module description.
37080         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
37081         here...
37082         * modules/remove (configure.ac): ... to here.
37084 2011-05-21  Bruno Haible  <bruno@clisp.org>
37086         relocatable-lib: Move AC_LIBOBJ invocations to module description.
37087         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
37088         macro.
37089         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
37090         * modules/relocatable-lib (configure.ac): ... to here.
37091         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37092         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
37094 2011-05-21  Bruno Haible  <bruno@clisp.org>
37096         relocatable-prog: Move AC_LIBOBJ invocations to module description.
37097         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
37098         here...
37099         * modules/relocatable-prog (configure.ac): ... to here.
37101 2011-05-21  Bruno Haible  <bruno@clisp.org>
37103         regex: Move AC_LIBOBJ invocations to module description.
37104         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
37105         invocations from here...
37106         * modules/regex (configure.ac): ... to here.
37108 2011-05-21  Bruno Haible  <bruno@clisp.org>
37110         realloc-*: Move AC_LIBOBJ invocations to module description.
37111         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37112         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37113         AC_LIBOBJ invocations from here...
37114         * modules/realloc-gnu (configure.ac): ... to here.
37115         * modules/realloc-posix (configure.ac): ... and here.
37117 2011-05-21  Bruno Haible  <bruno@clisp.org>
37119         readutmp: Move AC_LIBOBJ invocations to module description.
37120         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37121         * modules/readutmp (configure.ac): ... to here.
37123 2011-05-21  Bruno Haible  <bruno@clisp.org>
37125         readlinkat: Move AC_LIBOBJ invocations to module description.
37126         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37127         here...
37128         * modules/readlinkat (configure.ac): ... to here.
37130 2011-05-21  Bruno Haible  <bruno@clisp.org>
37132         readlink: Move AC_LIBOBJ invocations to module description.
37133         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37134         gl_PREREQ_READLINK invocations from here...
37135         * modules/readlink (configure.ac): ... to here.
37137 2011-05-21  Bruno Haible  <bruno@clisp.org>
37139         readline: Move AC_LIBOBJ invocations to module description.
37140         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37141         gl_PREREQ_READLINE invocations from here...
37142         * modules/readline (configure.ac): ... to here.
37144 2011-05-21  Bruno Haible  <bruno@clisp.org>
37146         read: Move AC_LIBOBJ invocations to module description.
37147         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37148         * modules/read (configure.ac): ... to here.
37150 2011-05-21  Bruno Haible  <bruno@clisp.org>
37152         rawmemchr: Move AC_LIBOBJ invocations to module description.
37153         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37155         from here...
37156         * modules/rawmemchr (configure.ac): ... to here.
37158 2011-05-21  Bruno Haible  <bruno@clisp.org>
37160         random_r: Move AC_LIBOBJ invocations to module description.
37161         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37162         gl_PREREQ_RANDOM_R invocations from here...
37163         * modules/random_r (configure.ac): ... to here.
37165 2011-05-21  Bruno Haible  <bruno@clisp.org>
37167         pwrite: Move AC_LIBOBJ invocations to module description.
37168         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37169         * modules/pwrite (configure.ac): ... to here.
37171 2011-05-21  Bruno Haible  <bruno@clisp.org>
37173         putenv: Move AC_LIBOBJ invocations to module description.
37174         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37175         * modules/putenv (configure.ac): ... to here.
37177 2011-05-21  Bruno Haible  <bruno@clisp.org>
37179         login_tty: Move AC_LIBOBJ invocations to module description.
37180         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37181         * modules/login_tty (configure.ac): ... to here.
37183 2011-05-21  Bruno Haible  <bruno@clisp.org>
37185         openpty: Move AC_LIBOBJ invocations to module description.
37186         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37187         * modules/openpty (configure.ac): ... to here.
37189 2011-05-21  Bruno Haible  <bruno@clisp.org>
37191         forkpty: Move AC_LIBOBJ invocations to module description.
37192         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37193         * modules/forkpty (configure.ac): ... to here.
37195 2011-05-21  Bruno Haible  <bruno@clisp.org>
37197         ptsname: Move AC_LIBOBJ invocations to module description.
37198         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37199         invocations from here...
37200         * modules/ptsname (configure.ac): ... to here.
37202 2011-05-21  Bruno Haible  <bruno@clisp.org>
37204         pread: Move AC_LIBOBJ invocations to module description.
37205         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37206         * modules/pread (configure.ac): ... to here.
37208 2011-05-21  Bruno Haible  <bruno@clisp.org>
37210         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37211         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37212         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37213         * modules/posix_spawn (configure.ac): ... to here.
37214         * modules/posix_spawnp (configure.ac): ... and here.
37216 2011-05-21  Bruno Haible  <bruno@clisp.org>
37218         popen: Move AC_LIBOBJ invocations to module description.
37219         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37220         invocations from here...
37221         * modules/popen (configure.ac): ... to here.
37223 2011-05-21  Bruno Haible  <bruno@clisp.org>
37225         poll: Move AC_LIBOBJ invocations to module description.
37226         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37227         invocations from here...
37228         * modules/poll (configure.ac): ... to here.
37230 2011-05-21  Bruno Haible  <bruno@clisp.org>
37232         pipe-posix: Move AC_LIBOBJ invocations to module description.
37233         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37234         * modules/pipe-posix (configure.ac): ... to here.
37236 2011-05-21  Bruno Haible  <bruno@clisp.org>
37238         openat: Respect rules for use of AC_LIBOBJ.
37239         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37240         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37241         * modules/openat (configure.ac): ... to here.
37243 2011-05-21  Bruno Haible  <bruno@clisp.org>
37245         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37246         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37247         invocation from here...
37248         * modules/obstack-printf (configure.ac): ... to here.
37249         * modules/obstack-printf-posix (configure.ac): ... and here.
37251 2011-05-21  Bruno Haible  <bruno@clisp.org>
37253         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37254         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37255         from here...
37256         * modules/nl_langinfo (configure.ac): ... to here.
37258 2011-05-21  Bruno Haible  <bruno@clisp.org>
37260         nanosleep: Move AC_LIBOBJ invocations to module description.
37261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37262         gl_PREREQ_NANOSLEEP invocations from here...
37263         * modules/nanosleep (configure.ac): ... to here.
37265 2011-05-21  Bruno Haible  <bruno@clisp.org>
37267         mountlist: Move AC_LIBOBJ invocations to module description.
37268         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37269         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37270         * modules/mountlist (configure.ac): ... to here.
37272 2011-05-21  Bruno Haible  <bruno@clisp.org>
37274         mktime: Respect rules for use of AC_LIBOBJ.
37275         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37276         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37277         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37278         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37279         * modules/mktime (configure.ac): ... to here.
37280         * modules/mktime-internal (configure.ac): ... and here.
37281         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37283 2011-05-21  Bruno Haible  <bruno@clisp.org>
37285         mkstemps: Move AC_LIBOBJ invocations to module description.
37286         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37287         here...
37288         * modules/mkstemps (configure.ac): ... to here.
37290 2011-05-21  Bruno Haible  <bruno@clisp.org>
37292         mkstemp: Move AC_LIBOBJ invocations to module description.
37293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37294         gl_PREREQ_MKSTEMP invocations from here...
37295         * modules/mkstemp (configure.ac): ... to here.
37297 2011-05-21  Bruno Haible  <bruno@clisp.org>
37299         mkostemps: Move AC_LIBOBJ invocations to module description.
37300         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37301         here...
37302         * modules/mkostemps (configure.ac): ... to here.
37304 2011-05-21  Bruno Haible  <bruno@clisp.org>
37306         mkostemp: Move AC_LIBOBJ invocations to module description.
37307         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37308         gl_PREREQ_MKOSTEMP invocations from here...
37309         * modules/mkostemp (configure.ac): ... to here.
37311 2011-05-21  Bruno Haible  <bruno@clisp.org>
37313         mknod: Move AC_LIBOBJ invocations to module description.
37314         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37315         * modules/mknod (configure.ac): ... to here.
37317 2011-05-21  Bruno Haible  <bruno@clisp.org>
37319         mkfifoat: Move AC_LIBOBJ invocations to module description.
37320         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37321         here...
37322         * modules/mkfifoat (configure.ac): ... to here.
37324 2011-05-21  Bruno Haible  <bruno@clisp.org>
37326         mkfifo: Respect rules for use of AC_LIBOBJ.
37327         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37328         here...
37329         * modules/mkfifo (configure.ac): ... to here.
37331 2011-05-21  Bruno Haible  <bruno@clisp.org>
37333         mkdtemp: Move AC_LIBOBJ invocations to module description.
37334         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37335         invocations from here...
37336         * modules/mkdtemp (configure.ac): ... to here.
37338 2011-05-21  Bruno Haible  <bruno@clisp.org>
37340         mkdir: Move AC_LIBOBJ invocations to module description.
37341         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37342         * modules/mkdir (configure.ac): ... to here.
37344 2011-05-21  Bruno Haible  <bruno@clisp.org>
37346         memset: Move AC_LIBOBJ invocations to module description.
37347         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37349         here...
37350         * modules/memset (configure.ac): ... to here.
37352 2011-05-21  Bruno Haible  <bruno@clisp.org>
37354         memrchr: Move AC_LIBOBJ invocations to module description.
37355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37357         here...
37358         * modules/memrchr (configure.ac): ... to here.
37360 2011-05-21  Bruno Haible  <bruno@clisp.org>
37362         mempcpy: Move AC_LIBOBJ invocations to module description.
37363         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37365         here...
37366         * modules/mempcpy (configure.ac): ... to here.
37368 2011-05-21  Bruno Haible  <bruno@clisp.org>
37370         memmove: Move AC_LIBOBJ invocations to module description.
37371         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37373         here...
37374         * modules/memmove (configure.ac): ... to here.
37376 2011-05-21  Bruno Haible  <bruno@clisp.org>
37378         memmem*: Move AC_LIBOBJ invocations to module description.
37379         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37380         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37381         here...
37382         (gl_FUNC_MEMMEM): ... and here...
37383         * modules/memmem-simple (configure.ac): ... to here.
37384         * modules/memmem (configure.ac): ... and here.
37386 2011-05-21  Bruno Haible  <bruno@clisp.org>
37388         memcpy: Move AC_LIBOBJ invocations to module description.
37389         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37390         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37391         here...
37392         * modules/memcpy (configure.ac): ... to here.
37394 2011-05-21  Bruno Haible  <bruno@clisp.org>
37396         memcmp: Simplify autoconf macro.
37397         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37398         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37399         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37401 2011-05-21  Bruno Haible  <bruno@clisp.org>
37403         memcmp: Move AC_LIBOBJ invocations to module description.
37404         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37405         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37406         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37407         * modules/memcmp (configure.ac): ... to here.
37408         (Depends-on): Update conditions.
37410 2011-05-21  Bruno Haible  <bruno@clisp.org>
37412         memchr: Respect rules for use of AC_LIBOBJ.
37413         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37414         invocations from here...
37415         * modules/memchr (configure.ac): ... to here.
37417 2011-05-21  Bruno Haible  <bruno@clisp.org>
37419         mbtowc: Move AC_LIBOBJ invocations to module description.
37420         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37421         invocations from here...
37422         * modules/mbtowc (configure.ac): ... to here.
37424 2011-05-21  Bruno Haible  <bruno@clisp.org>
37426         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37427         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37428         gl_PREREQ_MBSRTOWCS invocations from here...
37429         * modules/mbsrtowcs (configure.ac): ... to here.
37431 2011-05-21  Bruno Haible  <bruno@clisp.org>
37433         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37434         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37435         gl_PREREQ_MBSNRTOWCS invocations from here...
37436         * modules/mbsnrtowcs (configure.ac): ... to here.
37438 2011-05-21  Bruno Haible  <bruno@clisp.org>
37440         mbsinit: Move AC_LIBOBJ invocations to module description.
37441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37442         invocations from here...
37443         * modules/mbsinit (configure.ac): ... to here.
37445 2011-05-21  Bruno Haible  <bruno@clisp.org>
37447         mbrlen: Move AC_LIBOBJ invocations to module description.
37448         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37449         invocations from here...
37450         * modules/mbrlen (configure.ac): ... to here.
37452 2011-05-21  Bruno Haible  <bruno@clisp.org>
37454         mbrtowc: Respect rules for use of AC_LIBOBJ.
37455         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37456         invocations from here...
37457         * modules/mbrtowc (configure.ac): ... to here.
37459 2011-05-21  Bruno Haible  <bruno@clisp.org>
37461         malloc-*: Move AC_LIBOBJ invocations to module description.
37462         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37463         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37464         AC_LIBOBJ invocations from here...
37465         * modules/malloc-gnu (configure.ac): ... to here.
37466         * modules/malloc-posix (configure.ac): ... and here.
37468 2011-05-21  Bruno Haible  <bruno@clisp.org>
37470         lstat, openat: Respect rules for use of AC_LIBOBJ.
37471         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37472         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37473         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37474         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37475         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37476         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37477         here.
37478         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37480 2011-05-21  Bruno Haible  <bruno@clisp.org>
37482         lseek: Move AC_LIBOBJ invocations to module description.
37483         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37484         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37485         * modules/lseek (configure.ac): ... to here.
37487 2011-05-21  Bruno Haible  <bruno@clisp.org>
37489         linkat: Move AC_LIBOBJ invocations to module description.
37490         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37491         here...
37492         * modules/linkat (configure.ac): ... to here.
37494 2011-05-21  Bruno Haible  <bruno@clisp.org>
37496         link: Respect rules for use of AC_LIBOBJ.
37497         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37498         * modules/link (configure.ac): ... to here.
37500 2011-05-21  Bruno Haible  <bruno@clisp.org>
37502         lchown: Move AC_LIBOBJ invocations to module description.
37503         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37504         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37505         * modules/lchown (configure.ac): ... to here.
37507 2011-05-21  Bruno Haible  <bruno@clisp.org>
37509         iswctype: Move AC_LIBOBJ invocations to module description.
37510         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37511         here...
37512         * modules/iswctype (configure.ac): ... to here.
37514 2011-05-21  Bruno Haible  <bruno@clisp.org>
37516         iswblank: Move AC_LIBOBJ invocations to module description.
37517         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37518         here...
37519         * modules/iswblank (configure.ac): ... to here.
37521 2011-05-21  Bruno Haible  <bruno@clisp.org>
37523         atanl: Move AC_LIBOBJ invocations to module description.
37524         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37525         * modules/atanl (configure.ac): ... to here.
37527 2011-05-21  Bruno Haible  <bruno@clisp.org>
37529         acosl: Move AC_LIBOBJ invocations to module description.
37530         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37531         * modules/acosl (configure.ac): ... to here.
37533 2011-05-21  Bruno Haible  <bruno@clisp.org>
37535         asinl: Respect rules for use of AC_LIBOBJ.
37536         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37537         * modules/asinl (configure.ac): ... to here.
37539 2011-05-21  Bruno Haible  <bruno@clisp.org>
37541         tanl: Move AC_LIBOBJ invocations to module description.
37542         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37543         * modules/tanl (configure.ac): ... to here.
37545 2011-05-21  Bruno Haible  <bruno@clisp.org>
37547         cosl: Move AC_LIBOBJ invocations to module description.
37548         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37549         * modules/cosl (configure.ac): ... to here.
37551 2011-05-21  Bruno Haible  <bruno@clisp.org>
37553         sinl: Move AC_LIBOBJ invocations to module description.
37554         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37555         * modules/sinl (configure.ac): ... to here.
37557 2011-05-21  Bruno Haible  <bruno@clisp.org>
37559         logl: Move AC_LIBOBJ invocations to module description.
37560         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37561         * modules/logl (configure.ac): ... to here.
37563 2011-05-21  Bruno Haible  <bruno@clisp.org>
37565         expl: Move AC_LIBOBJ invocations to module description.
37566         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37567         * modules/expl (configure.ac): ... to here.
37569 2011-05-21  Bruno Haible  <bruno@clisp.org>
37571         roundl: Move AC_LIBOBJ invocations to module description.
37572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37573         * modules/roundl (configure.ac): ... to here.
37575 2011-05-21  Bruno Haible  <bruno@clisp.org>
37577         round: Move AC_LIBOBJ invocations to module description.
37578         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37579         * modules/round (configure.ac): ... to here.
37581 2011-05-21  Bruno Haible  <bruno@clisp.org>
37583         roundf: Move AC_LIBOBJ invocations to module description.
37584         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37585         * modules/roundf (configure.ac): ... to here.
37587 2011-05-21  Bruno Haible  <bruno@clisp.org>
37589         truncl: Move AC_LIBOBJ invocations to module description.
37590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37591         * modules/truncl (configure.ac): ... to here.
37593 2011-05-21  Bruno Haible  <bruno@clisp.org>
37595         trunc: Move AC_LIBOBJ invocations to module description.
37596         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37597         * modules/trunc (configure.ac): ... to here.
37599 2011-05-21  Bruno Haible  <bruno@clisp.org>
37601         truncf: Move AC_LIBOBJ invocations to module description.
37602         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37603         * modules/truncf (configure.ac): ... to here.
37605 2011-05-21  Bruno Haible  <bruno@clisp.org>
37607         ceill: Move AC_LIBOBJ invocations to module description.
37608         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37609         * modules/ceill (configure.ac): ... to here.
37611 2011-05-21  Bruno Haible  <bruno@clisp.org>
37613         ceil: Move AC_LIBOBJ invocations to module description.
37614         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37615         * modules/ceil (configure.ac): ... to here.
37617 2011-05-21  Bruno Haible  <bruno@clisp.org>
37619         ceilf: Move AC_LIBOBJ invocations to module description.
37620         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37621         * modules/ceilf (configure.ac): ... to here.
37623 2011-05-21  Bruno Haible  <bruno@clisp.org>
37625         floorl: Respect rules for use of AC_LIBOBJ.
37626         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37627         * modules/floorl (configure.ac): ... to here.
37629 2011-05-21  Bruno Haible  <bruno@clisp.org>
37631         floor: Respect rules for use of AC_LIBOBJ.
37632         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37633         * modules/floor (configure.ac): ... to here.
37635 2011-05-21  Bruno Haible  <bruno@clisp.org>
37637         floorf: Move AC_LIBOBJ invocations to module description.
37638         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37639         * modules/floorf (configure.ac): ... to here.
37641 2011-05-20  Bruno Haible  <bruno@clisp.org>
37643         sqrtl: Respect rules for use of AC_LIBOBJ.
37644         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37645         * modules/sqrtl (configure.ac): ... to here.
37647 2011-05-20  Bruno Haible  <bruno@clisp.org>
37649         ldexpl: Respect rules for use of AC_LIBOBJ.
37650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37651         * modules/ldexpl (configure.ac): ... to here.
37653 2011-05-20  Bruno Haible  <bruno@clisp.org>
37655         frexpl*: Respect rules for use of AC_LIBOBJ.
37656         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37657         invocation from here...
37658         * modules/frexpl (configure.ac): ... to here.
37659         * modules/frexpl-nolibm (configure.ac): ... and here.
37661 2011-05-20  Bruno Haible  <bruno@clisp.org>
37663         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37664         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37665         invocation from here...
37666         * modules/frexp (configure.ac): ... to here.
37667         * modules/frexp-nolibm (configure.ac): ... and here.
37669 2011-05-20  Bruno Haible  <bruno@clisp.org>
37671         isnan: Respect rules for use of AC_LIBOBJ.
37672         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37673         invocations here.
37674         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37675         REPLACE_ISNAN.
37676         * modules/isnand (configure.ac): Likewise.
37677         * modules/isnanl (configure.ac): Likewise.
37679 2011-05-20  Bruno Haible  <bruno@clisp.org>
37681         isnanl*: Respect rules for use of AC_LIBOBJ.
37682         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37683         invocation from here...
37684         * modules/isnanl (configure.ac): ... to here.
37685         * modules/isnanl-nolibm (configure.ac): ... and here.
37687 2011-05-20  Bruno Haible  <bruno@clisp.org>
37689         isnand*: Move AC_LIBOBJ invocations to module description.
37690         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37691         invocation from here...
37692         * modules/isnand (configure.ac): ... to here.
37693         * modules/isnand-nolibm (configure.ac): ... and here.
37695 2011-05-20  Bruno Haible  <bruno@clisp.org>
37697         isnanf*: Move AC_LIBOBJ invocations to module description.
37698         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37699         invocation from here...
37700         * modules/isnanf (configure.ac): ... to here.
37701         * modules/isnanf-nolibm (configure.ac): ... and here.
37703 2011-05-20  Bruno Haible  <bruno@clisp.org>
37705         isnan*: Separate the AC_LIBOBJ invocations.
37706         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37707         AC_LIBOBJ invocation.
37708         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37709         here.
37710         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37711         AC_LIBOBJ invocation.
37712         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37713         here.
37714         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37715         AC_LIBOBJ invocation.
37716         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37717         here.
37718         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37720 2011-05-08  Bruno Haible  <bruno@clisp.org>
37722         isinf: Move AC_LIBOBJ invocations to module description.
37723         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37724         * modules/isinf (configure.ac): ... to here.
37726 2011-05-08  Bruno Haible  <bruno@clisp.org>
37728         isfinite: Move AC_LIBOBJ invocations to module description.
37729         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37730         * modules/isfinite (configure.ac): ... to here.
37732 2011-05-08  Bruno Haible  <bruno@clisp.org>
37734         isblank: Move AC_LIBOBJ invocations to module description.
37735         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37736         here...
37737         * modules/isblank (configure.ac): ... to here.
37739 2011-05-08  Bruno Haible  <bruno@clisp.org>
37741         isapipe: Move AC_LIBOBJ invocations to module description.
37742         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37743         gl_PREREQ_ISAPIPE invocations from here...
37744         * modules/isapipe (configure.ac): ... to here.
37745         (Depends-on): Update condition.
37747 2011-05-08  Bruno Haible  <bruno@clisp.org>
37749         ioctl: Move AC_LIBOBJ invocations to module description.
37750         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37751         invocations from here...
37752         * modules/ioctl (configure.ac): ... to here.
37753         (Depends-on): Update condition.
37755 2011-05-08  Bruno Haible  <bruno@clisp.org>
37757         imaxdiv: Move AC_LIBOBJ invocations to module description.
37758         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37759         invocations from here...
37760         * modules/imaxdiv (configure.ac): ... to here.
37762 2011-05-08  Bruno Haible  <bruno@clisp.org>
37764         imaxabs: Move AC_LIBOBJ invocations to module description.
37765         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37766         invocations from here...
37767         * modules/imaxabs (configure.ac): ... to here.
37769 2011-05-08  Bruno Haible  <bruno@clisp.org>
37771         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37773         AC_LIBOBJ invocations from here...
37774         * modules/getaddrinfo (configure.ac): ... to here.
37775         (Depends-on): Add conditions.
37777 2011-05-08  Bruno Haible  <bruno@clisp.org>
37779         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37780         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37781         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37782         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37783         (gl_PREREQ_INET_PTON): ... from here.
37784         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37785         gl_PREREQ_INET_PTON here.
37786         (Depends-on): Update condition.
37788 2011-05-08  Bruno Haible  <bruno@clisp.org>
37790         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37791         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37792         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37793         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37794         (gl_PREREQ_INET_NTOP): ... from here.
37795         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37796         gl_PREREQ_INET_NTOP here.
37797         (Depends-on): Update condition.
37799 2011-05-08  Bruno Haible  <bruno@clisp.org>
37801         iconv_open: Move AC_LIBOBJ invocations to module description.
37802         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37803         AC_LIBOBJ invocations from here...
37804         * modules/iconv_open (configure.ac): ... to here.
37806 2011-05-08  Bruno Haible  <bruno@clisp.org>
37808         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37809         If module 'iconv_open' is among the main modules and module
37810         'iconv_open-utf' is among the tests dependencies, then
37811         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37812         return the special iconv_t values. Therefore iconv() and iconv_close()
37813         must support these special iconv_t values, already in lib, not only in
37814         tests.
37815         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37817         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37818         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37819         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37820         (Depends-on): Add the dependencies of iconv_open-utf.
37821         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37822         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37823         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37825 2011-05-08  Bruno Haible  <bruno@clisp.org>
37827         group-member: Move AC_LIBOBJ invocations to module description.
37828         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37829         gl_PREREQ_GROUP_MEMBER invocations from here...
37830         * modules/group-member (configure.ac): ... to here.
37832 2011-05-08  Bruno Haible  <bruno@clisp.org>
37834         grantpt: Move AC_LIBOBJ invocations to module description.
37835         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37836         invocations from here...
37837         * modules/grantpt (configure.ac): ... to here.
37839 2011-05-08  Bruno Haible  <bruno@clisp.org>
37841         glob: Move AC_LIBOBJ invocations to module description.
37842         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37843         from here...
37844         * modules/glob (configure.ac): ... to here.
37846 2011-05-08  Bruno Haible  <bruno@clisp.org>
37848         getusershell: Move AC_LIBOBJ invocations to module description.
37849         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37850         Move AC_LIBOBJ invocation from here...
37851         * modules/getusershell (configure.ac): ... to here.
37852         (Depends-on): Update condition.
37854 2011-05-08  Bruno Haible  <bruno@clisp.org>
37856         gettimeofday: Move AC_LIBOBJ invocations to module description.
37857         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37858         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37859         gl_PREREQ_GETTIMEOFDAY invocations from here...
37860         * modules/gettimeofday (configure.ac): ... to here.
37862 2011-05-08  Bruno Haible  <bruno@clisp.org>
37864         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37865         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37866         just gl_FUNC_TZSET.
37867         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37868         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37870         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37872 2011-05-08  Bruno Haible  <bruno@clisp.org>
37874         getsubopt: Move AC_LIBOBJ invocations to module description.
37875         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37876         gl_PREREQ_GETSUBOPT invocations from here...
37877         * modules/getsubopt (configure.ac): ... to here.
37879 2011-05-08  Bruno Haible  <bruno@clisp.org>
37881         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37882         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37883         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37884         * modules/getpass-gnu (configure.ac): ... to here.
37886 2011-05-08  Bruno Haible  <bruno@clisp.org>
37888         getpass: Move AC_LIBOBJ invocations to module description.
37889         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37890         gl_PREREQ_GETPASS invocations from here...
37891         * modules/getpass (configure.ac): ... to here.
37893 2011-05-08  Bruno Haible  <bruno@clisp.org>
37895         getpagesize: Move AC_LIBOBJ invocations to module description.
37896         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37897         from here...
37898         * modules/getpagesize (configure.ac): ... to here.
37900 2011-05-08  Bruno Haible  <bruno@clisp.org>
37902         getopt: Move AC_LIBOBJ invocations to module description.
37903         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37904         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37905         invocations from here...
37906         * modules/getopt-gnu (configure.ac): ... to here.
37907         * modules/getopt-posix (configure.ac): ... and here.
37908         (Depends-on): Update condition.
37910 2011-05-08  Bruno Haible  <bruno@clisp.org>
37912         getopt, argp: Respect rules for use of AC_LIBOBJ.
37913         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37914         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37915         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37916         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37918 2011-05-08  Bruno Haible  <bruno@clisp.org>
37920         getlogin_r: Move AC_LIBOBJ invocations to module description.
37921         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37922         gl_PREREQ_GETLOGIN_R invocations from here...
37923         * modules/getlogin_r (configure.ac): ... to here.
37925 2011-05-08  Bruno Haible  <bruno@clisp.org>
37927         getlogin: Move AC_LIBOBJ invocations to module description.
37928         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37929         here...
37930         * modules/getlogin (configure.ac): ... to here.
37932 2011-05-08  Bruno Haible  <bruno@clisp.org>
37934         getloadavg: Move AC_LIBOBJ invocations to module description.
37935         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37936         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37937         * modules/getloadavg (configure.ac): ... to here.
37939 2011-05-08  Bruno Haible  <bruno@clisp.org>
37941         gethrxtime: Move AC_LIBOBJ invocations to module description.
37942         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37943         LIB_GETHRXTIME from here...
37944         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37945         invocations from here...
37946         * modules/gethrxtime (configure.ac): ... to here.
37948 2011-05-08  Bruno Haible  <bruno@clisp.org>
37950         gethostname: Move AC_LIBOBJ invocations to module description.
37951         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37952         gl_PREREQ_GETHOSTNAME invocations from here...
37953         * modules/gethostname (configure.ac): ... to here.
37955 2011-05-08  Bruno Haible  <bruno@clisp.org>
37957         getgroups: Move AC_LIBOBJ invocations to module description.
37958         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37959         here...
37960         * modules/getgroups (configure.ac): ... to here.
37962 2011-05-08  Bruno Haible  <bruno@clisp.org>
37964         getdtablesize: Move AC_LIBOBJ invocations to module description.
37965         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37966         invocation from here...
37967         * modules/getdtablesize (configure.ac): ... to here.
37969 2011-05-08  Bruno Haible  <bruno@clisp.org>
37971         getdomainname: Move AC_LIBOBJ invocations to module description.
37972         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37973         gl_PREREQ_GETDOMAINNAME invocations from here...
37974         * modules/getdomainname (configure.ac): ... to here.
37976 2011-05-08  Bruno Haible  <bruno@clisp.org>
37978         getline: Move AC_LIBOBJ invocations to module description.
37979         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37980         invocations from here...
37981         * modules/getline (configure.ac): ... to here.
37983 2011-05-08  Bruno Haible  <bruno@clisp.org>
37985         getline: Simplify.
37986         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37987         It's already handled through the module dependency.
37989 2011-05-08  Bruno Haible  <bruno@clisp.org>
37991         getdelim: Move AC_LIBOBJ invocations to module description.
37992         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37993         and gl_PREREQ_GETDELIM invocations from here...
37994         * modules/getdelim (configure.ac): ... to here.
37995         (Depends-on): Fix condition.
37997 2011-05-08  Bruno Haible  <bruno@clisp.org>
37999         getcwd: Move AC_LIBOBJ invocations to module description.
38000         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
38001         invocations from here...
38002         * modules/getcwd (configure.ac): ... to here.
38004 2011-05-08  Bruno Haible  <bruno@clisp.org>
38006         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
38007         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
38008         here...
38009         * modules/getcwd-lgpl (configure.ac): ... to here.
38011 2011-05-07  Bruno Haible  <bruno@clisp.org>
38013         crypto/gc: Move AC_LIBOBJ invocations to module description.
38014         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
38015         * modules/crypto/gc (configure.ac): ... to here.
38017 2011-05-07  Bruno Haible  <bruno@clisp.org>
38019         fwriting: Move AC_LIBOBJ invocations to module description.
38020         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
38021         here...
38022         * modules/fwriting (configure.ac): ... to here.
38024 2011-05-07  Bruno Haible  <bruno@clisp.org>
38026         fwritable: Move AC_LIBOBJ invocations to module description.
38027         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
38028         here...
38029         * modules/fwritable (configure.ac): ... to here.
38031 2011-05-07  Bruno Haible  <bruno@clisp.org>
38033         futimens: Move AC_LIBOBJ invocations to module description.
38034         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
38035         here...
38036         * modules/futimens (configure.ac): ... to here.
38038 2011-05-07  Bruno Haible  <bruno@clisp.org>
38040         ftruncate: Move AC_LIBOBJ invocations to module description.
38041         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
38042         gl_PREREQ_FTRUNCATE invocations from here...
38043         * modules/ftruncate (configure.ac): ... to here.
38045 2011-05-07  Bruno Haible  <bruno@clisp.org>
38047         fsync: Move AC_LIBOBJ invocations to module description.
38048         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
38049         invocations from here...
38050         * modules/fsync (configure.ac): ... to here.
38052 2011-05-07  Bruno Haible  <bruno@clisp.org>
38054         fsusage: Move AC_LIBOBJ invocations to module description.
38055         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
38056         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
38057         * modules/fsusage (configure.ac): ... to here.
38059 2011-05-07  Bruno Haible  <bruno@clisp.org>
38061         freopen: Move AC_LIBOBJ invocations to module description.
38062         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
38063         invocations from here...
38064         * modules/freopen (configure.ac): ... to here.
38066 2011-05-07  Bruno Haible  <bruno@clisp.org>
38068         free: Move AC_LIBOBJ invocations to module description.
38069         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
38070         invocations from here...
38071         * modules/free (configure.ac): ... to here.
38073 2011-05-07  Bruno Haible  <bruno@clisp.org>
38075         freadable: Move AC_LIBOBJ invocations to module description.
38076         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
38077         here...
38078         * modules/freadable (configure.ac): ... to here.
38080 2011-05-07  Bruno Haible  <bruno@clisp.org>
38082         fpurge: Move AC_LIBOBJ invocations to module description.
38083         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
38084         invocations from here...
38085         * modules/fpurge (configure.ac): ... to here.
38087 2011-05-07  Bruno Haible  <bruno@clisp.org>
38089         fpending: Move AC_LIBOBJ invocations to module description.
38090         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
38091         gl_FUNC_FPENDING.
38092         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
38093         invocations from here...
38094         * modules/fpending (configure.ac): ... to here.
38096 2011-05-07  Bruno Haible  <bruno@clisp.org>
38098         fopen: Move AC_LIBOBJ invocations to module description.
38099         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
38100         invocations from here...
38101         * modules/fopen (configure.ac): ... to here.
38103 2011-05-07  Bruno Haible  <bruno@clisp.org>
38105         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38106         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38107         gl_FUNC_FNMATCH_POSIX.
38108         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38109         invocations from here...
38110         * modules/fnmatch (configure.ac): ... to here.
38111         * modules/fnmatch-gnu (configure.ac): ... and here.
38113 2011-05-07  Bruno Haible  <bruno@clisp.org>
38115         flock: Move AC_LIBOBJ invocations to module description.
38116         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38117         invocations from here...
38118         * modules/flock (configure.ac): ... to here.
38120 2011-05-07  Bruno Haible  <bruno@clisp.org>
38122         fileblocks: Move AC_LIBOBJ invocations to module description.
38123         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38124         gl_PREREQ_FILEBLOCKS invocations from here...
38125         * modules/fileblocks (configure.ac): ... to here.
38127 2011-05-06  Bruno Haible  <bruno@clisp.org>
38129         fflush: Move AC_LIBOBJ invocations to module description.
38130         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38131         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38132         invocations from here...
38133         * modules/fflush (configure.ac): ... to here.
38135 2011-05-06  Bruno Haible  <bruno@clisp.org>
38137         fdopendir: Move AC_LIBOBJ invocations to module description.
38138         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38139         here...
38140         * modules/fdopendir (configure.ac): ... to here.
38141         (Depends-on): Improve conditions.
38143 2011-05-06  Bruno Haible  <bruno@clisp.org>
38145         _Exit: Move AC_LIBOBJ invocations to module description.
38146         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38147         invocations from here...
38148         * modules/_Exit (configure.ac): ... to here.
38150 2011-05-21  Bruno Haible  <bruno@clisp.org>
38152         euidaccess: Respect rules for use of AC_LIBOBJ.
38153         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38155         from here...
38156         * modules/euidaccess (configure.ac): ... to here.
38158 2011-05-06  Bruno Haible  <bruno@clisp.org>
38160         error: Move AC_LIBOBJ invocations to module description.
38161         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38162         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38163         invocations from here...
38164         * modules/error (configure.ac): ... to here.
38166 2011-05-06  Bruno Haible  <bruno@clisp.org>
38168         duplocale: Move AC_LIBOBJ invocations to module description.
38169         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38170         gl_PREREQ_DUPLOCALE invocations from here...
38171         * modules/duplocale (configure.ac): ... to here.
38173 2011-05-05  Bruno Haible  <bruno@clisp.org>
38175         dirfd: Move AC_LIBOBJ invocations to module description.
38176         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38177         gl_FUNC_DIRFD.
38178         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38179         here...
38180         * modules/dirfd (configure.ac): ... to here.
38181         (Depends-on): Fix condition.
38183 2011-05-05  Bruno Haible  <bruno@clisp.org>
38185         chown: Respect rules for use of AC_LIBOBJ.
38186         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38187         * modules/chown (configure.ac): ... to here.
38189 2011-05-05  Bruno Haible  <bruno@clisp.org>
38191         chdir-long: Move AC_LIBOBJ invocations to module description.
38192         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38193         gl_PREREQ_CHDIR_LONG invocations from here...
38194         * modules/chdir-long (configure.ac): ... to here.
38196 2011-05-05  Bruno Haible  <bruno@clisp.org>
38198         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38199         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38200         from here...
38201         * modules/canonicalize-lgpl (configure.ac): ... to here.
38203 2011-05-05  Bruno Haible  <bruno@clisp.org>
38205         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38206         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38207         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38208         REPLACE_CALLOC.
38209         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38210         * modules/calloc-gnu (configure.ac): Likewise.
38212 2011-05-05  Bruno Haible  <bruno@clisp.org>
38214         btowc: Move AC_LIBOBJ invocations to module description.
38215         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38216         invocations from here...
38217         * modules/btowc (configure.ac): ... to here.
38219 2011-05-21  Bruno Haible  <bruno@clisp.org>
38221         atexit: Move AC_LIBOBJ invocations to module description.
38222         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38223         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38224         here...
38225         * modules/atexit (configure.ac): ... to here.
38227 2011-05-05  Bruno Haible  <bruno@clisp.org>
38229         atoll: Move AC_LIBOBJ invocations to module description.
38230         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38231         invocations from here...
38232         * modules/atoll (configure.ac): ... to here.
38234 2011-05-05  Bruno Haible  <bruno@clisp.org>
38236         argz: Move AC_LIBOBJ invocations to module description.
38237         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38238         * modules/argz (configure.ac): ... to here.
38240 2011-05-05  Bruno Haible  <bruno@clisp.org>
38242         alphasort: Move AC_LIBOBJ invocations to module description.
38243         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38244         gl_PREREQ_ALPHASORT invocations from here...
38245         * modules/alphasort (configure.ac): ... to here.
38247 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38249         verify: new macro verify_expr; verify_true deprecated
38250         * NEWS: Mention this.
38251         * doc/verify.texi (Compile-time Assertions): Document this.
38252         * lib/verify.h (verify_true): Deprecate.
38253         (verify_expr): New macro.
38254         * tests/test-verify.c (function): Test verify_expr.
38256 2011-06-14  Jim Meyering  <meyering@redhat.com>
38258         init.sh: give more portable redirection-related advice in a comment
38259         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38260         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38261         for lots of discussion.  Stefano Lattarini suggested the solution
38262         of putting "9>&2" after the command.  Reported by Bruno Haible.
38264 2011-06-13  Bruno Haible  <bruno@clisp.org>
38266         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38267         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38268         'none'.
38270 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38272         ftoastr: use strtof only if HAVE_STRTOF
38273         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38274         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38275         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38276         * modules/ftoastr (configure.ac): Check for strtof.
38278 2011-06-13  Bruno Haible  <bruno@clisp.org>
38280         gnulib-tool: Addendum to 2011-06-08 commit.
38281         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38282         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38284 2011-06-13  Bruno Haible  <bruno@clisp.org>
38286         fseeko: Provide a non-inline replacement of fseek().
38287         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38288         * modules/fseeko (Depends-on): Add fseek.
38289         * modules/fseek (License): Change to LGPLv2+.
38291 2011-06-13  Bruno Haible  <bruno@clisp.org>
38293         ftello: Provide a non-inline replacement of ftell().
38294         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38295         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38296         not have ftello() (such as on mingw).
38297         * modules/ftello (Depends-on): Add ftell.
38298         * modules/ftell (License): Change to LGPLv2+.
38300 2011-05-07  Bruno Haible  <bruno@clisp.org>
38302         ftell: Move AC_LIBOBJ invocations to module description.
38303         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38304         * modules/ftell (configure.ac): ... to here.
38306 2011-05-07  Bruno Haible  <bruno@clisp.org>
38308         ftello: Respect rules for use of AC_LIBOBJ.
38309         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38310         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38311         here...
38312         * modules/ftello (configure.ac): ... to here.
38314 2011-05-07  Bruno Haible  <bruno@clisp.org>
38316         fseeko: Simplify.
38317         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38318         (gl_FUNC_FSEEKO): Inline it here.
38320 2011-05-07  Bruno Haible  <bruno@clisp.org>
38322         fseek: Move AC_LIBOBJ invocations to module description.
38323         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38324         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38325         * modules/fseek (configure.ac): ... to here.
38327 2011-05-07  Bruno Haible  <bruno@clisp.org>
38329         fseek: Respect rules for use of AC_LIBOBJ.
38330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38331         here...
38332         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38334 2011-05-07  Bruno Haible  <bruno@clisp.org>
38336         fseeko: Respect rules for use of AC_LIBOBJ.
38337         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38338         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38339         here...
38340         * modules/fseeko (configure.ac): ... to here.
38342 2011-06-13  Bruno Haible  <bruno@clisp.org>
38344         gnulib-tool: Allow comments in the 'Depends-on' section.
38345         * doc/gnulib.texi (Module description): Mention comment syntax in the
38346         Depends-on section.
38347         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38349 2011-06-13  Bruno Haible  <bruno@clisp.org>
38351         file-set.h: guard __attibute__ use, now that it's not always defined
38352         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38353         versions that support it.  This fixes a coreutils build failure with
38354         the vendor cc on HP-UX 11.31.
38356 2011-06-12  Bruno Haible  <bruno@clisp.org>
38358         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38359         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38360         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38361         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38362         (acl, aclsort): New declarations.
38363         (aclv_nontrivial): New declaration.
38364         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38365         (file_has_acl): Read also the second kind of HP-UX ACLs.
38366         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38367         kind of HP-UX ACLs if the first kind fails.
38368         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38369         second kind of HP-UX ACLs.
38370         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38371         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38372         agree.
38373         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38374         hpuxjfs.
38375         Handle hpuxjfs.
38376         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38377         hpuxjfs.
38378         Handle hpuxjfs.
38379         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38380         (func_test_same_acls): Use both lsacl and getacl.
38381         Handle hpuxjfs.
38382         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38383         (func_test_same_acls): Use both lsacl and getacl.
38384         Handle hpuxjfs.
38386 2011-06-12  Bruno Haible  <bruno@clisp.org>
38388         acl: Complete the 2010-08-10 fix.
38389         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38390         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38391         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38392         explicitly.
38393         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38394         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38396 2011-06-12  Bruno Haible  <bruno@clisp.org>
38398         spawn-pipe tests: Comments.
38399         * tests/test-spawn-pipe-child.c (main): Update comment.
38400         Reported by James Youngman <jay@gnu.org>.
38402 2011-06-11  James Youngman  <jay@gnu.org>
38404         New module 'stat-size'.
38405         * modules/stat-size: New module.  Provides macros for accessing
38406         file size information in instances of struct stat.  Depends on the
38407         fileblocks module because it calls st_blocks.
38408         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38409         * doc/gnulib.texi: Include stat-size.texi.
38410         * doc/stat-size.texi: Documentation for this module.
38411         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38412         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38413         AC_STRUCT_ST_BLOCKS.
38415 2011-06-09  Bruno Haible  <bruno@clisp.org>
38417         thread: Support pthreads-win32.
38418         * lib/glthread/thread.h (gl_thread_self): Define differently on
38419         pthreads-win32.
38420         (gl_null_thread): New declaration.
38421         (gl_thread_self_pointer): New macro.
38422         * lib/glthread/thread.c (gl_null_thread): New constant.
38423         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38424         gl_thread_self.
38425         * tests/test-tls.c: Likewise.
38426         Suggested by Paul Eggert. Reported by Eric Blake.
38428 2011-06-09  Bruno Haible  <bruno@clisp.org>
38430         thread: Fix confusion between NULL and 0.
38431         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38432         Reported by Paul Eggert.
38434 2011-06-09  Bruno Haible  <bruno@clisp.org>
38436         spawn-pipe tests: Avoid test failure on HP-UX 11.
38437         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38438         is closed.
38440 2011-06-09  Bruno Haible  <bruno@clisp.org>
38442         acl tests: Fix compilation error on HP-UX 11.
38443         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38445 2011-06-09  Bruno Haible  <bruno@clisp.org>
38447         rmdir: Avoid test failure on HP-UX 10.20.
38448         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38449         EEXIST.
38451 2011-06-08  Eric Blake  <eblake@redhat.com>
38453         perror: fix test on mingw
38454         * modules/perror-tests (Depends-on): Add dup2.
38456         strerror_r-posix: fix on MacOS
38457         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38459         logic bug.
38460         * lib/strerror_r.c (strerror_r): Fix the bug.
38461         * lib/strerror.c (strerror): Likewise.
38462         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38463         problem.
38464         * doc/posix-functions/strerror.texi (strerror): Likewise.
38465         * doc/posix-functions/perror.texi (perror): Likewise.
38466         * tests/test-strerror.c (main): Enhance test.
38467         * tests/test-strerror_r.c (main): Likewise.
38469 2011-06-08  Bruno Haible  <bruno@clisp.org>
38471         gnulib-tool: Better isolation between different gnulib-tool invocations.
38472         * gnulib-tool: New option --witness-c-macro.
38473         (witness_c_macro): New variable.
38474         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38475         AM_CPPFLAGS define it as a C macro.
38476         (func_emit_tests_Makefile_am): Likewise.
38477         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38478         read it from there.
38479         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38480         m4_define, not AC_DEFUN.
38481         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38482         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38483         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38484         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38485         s|...|...|, to substitute the values of the GNULIB_* module indicator
38486         variables.
38487         * modules/dirent (Makefile.am): Likewise.
38488         * modules/fcntl-h (Makefile.am): Likewise.
38489         * modules/iconv-h (Makefile.am): Likewise.
38490         * modules/langinfo (Makefile.am): Likewise.
38491         * modules/locale (Makefile.am): Likewise.
38492         * modules/math (Makefile.am): Likewise.
38493         * modules/netdb (Makefile.am): Likewise.
38494         * modules/poll-h (Makefile.am): Likewise.
38495         * modules/pty (Makefile.am): Likewise.
38496         * modules/search (Makefile.am): Likewise.
38497         * modules/signal (Makefile.am): Likewise.
38498         * modules/spawn (Makefile.am): Likewise.
38499         * modules/stdio (Makefile.am): Likewise.
38500         * modules/stdlib (Makefile.am): Likewise.
38501         * modules/string (Makefile.am): Likewise.
38502         * modules/sys_ioctl (Makefile.am): Likewise.
38503         * modules/sys_select (Makefile.am): Likewise.
38504         * modules/sys_socket (Makefile.am): Likewise.
38505         * modules/sys_stat (Makefile.am): Likewise.
38506         * modules/sys_times (Makefile.am): Likewise.
38507         * modules/sys_utsname (Makefile.am): Likewise.
38508         * modules/sys_wait (Makefile.am): Likewise.
38509         * modules/termios (Makefile.am): Likewise.
38510         * modules/time (Makefile.am): Likewise.
38511         * modules/unistd (Makefile.am): Likewise.
38512         * modules/wchar (Makefile.am): Likewise.
38514 2011-06-08  Eric Blake  <eblake@redhat.com>
38516         strerror: simplify replacement
38517         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38518         * modules/strerror (configure.ac): No prereqs needed here...
38519         * modules/strerror-override (configure.ac): ...but this needs it.
38520         (Files): Add file for needed prereq macro.
38522 2011-06-08  Bruno Haible  <bruno@clisp.org>
38524         strerror_r-posix: Tweaks.
38525         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38526         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38527         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38528         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38529         (gl_FUNC_STRERROR_R): ... to here.
38530         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38532 2011-06-07  Eric Blake  <eblake@redhat.com>
38534         perror: document fixed bugs
38535         * doc/posix-functions/perror.texi (perror): Document recent
38536         patches.
38538 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38540         stat-time: get_stat_birthtime failure is better-defined
38541         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38542         return a timestamp whose tv_sec and tv_nsec values are both -1.
38543         Previously, the spec said only that the tv_nsec value was negative.
38544         This upward-compatible change simplifies GNU tar a bit.
38546 2011-06-07  Eric Blake  <eblake@redhat.com>
38548         strerror_r-posix: work around cygwin 1.7.9
38549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38550         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38551         bug without replacing strerror_r.
38552         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38553         strerror_r is buggy, but without requiring strerror_r compilation.
38554         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38556         test-perror: relax test to ignore cygwin bug
38557         * tests/test-perror2.c (main): Relax test on requiring detection
38558         of stream errors, and use unbuffered stream.
38559         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38560         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38561         * doc/posix-functions/fputc.texi (fputc): Likewise.
38562         * doc/posix-functions/fputs.texi (fputs): Likewise.
38563         * doc/posix-functions/fputws.texi (fputws): Likewise.
38564         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38565         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38566         * doc/posix-functions/getopt.texi (getopt): Likewise.
38567         * doc/posix-functions/perror.texi (perror): Likewise.
38568         * doc/posix-functions/printf.texi (printf): Likewise.
38569         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38570         * doc/posix-functions/psignal.texi (psignal): Likewise.
38571         * doc/posix-functions/putc.texi (putc): Likewise.
38572         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38573         Likewise.
38574         * doc/posix-functions/putchar.texi (putchar): Likewise.
38575         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38576         Likewise.
38577         * doc/posix-functions/puts.texi (puts): Likewise.
38578         * doc/posix-functions/putwc.texi (putwc): Likewise.
38579         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38580         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38581         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38582         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38583         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38584         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38585         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38586         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38588 2011-05-22  Bruno Haible  <bruno@clisp.org>
38590         strerror: Move AC_LIBOBJ invocations to module description.
38591         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38592         gl_PREREQ_STRERROR invocations from here...
38593         * modules/strerror (configure.ac): ... to here.
38595 2011-05-21  Bruno Haible  <bruno@clisp.org>
38597         perror: Use common idiom.
38598         * modules/perror (configure.ac): Reorder statements.
38600 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38602         tests: fix usage message in 'mktempd_'
38603         * tests/init.sh (mktempd_): In the usage message, use literal
38604         'mktempd_', not '$ME' (which is even undefined), as the name of
38605         the subroutine.
38607 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38609         tests init: new function 'fatal_', for hard errors
38610         Before this patch, the only way offered by tests/init.sh to
38611         properly signal a hard error was the `framework_failure_'
38612         function.  But the error message issued by that function,
38613         as its name would suggest, refers to a set-up failure in the
38614         testsuite, while hard errors can obviously also be due to
38615         other reasons.  The best way to fix this inconsistency is to
38616         introduce a new function with a more general error message.
38617         * tests/init.sh (fatal_): New function.
38619 2011-06-06  Eric Blake  <eblake@redhat.com>
38621         canonicalize-lgpl: use common idiom
38622         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38623         over newer POSIX -Rf.
38624         Reported by Bruno Haible.
38626         canonicalize-lgpl: work around AIX realpath bug
38627         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38628         * doc/posix-functions/realpath.texi (realpath): Document it.
38629         Reported by Bruno Haible.
38631         strerror: work around FreeBSD bug
38632         * lib/strerror.c (strerror): Special case 0.
38633         Reported by Bruno Haible.
38635         strerror-override: avoid bloating errno module
38636         * modules/errno (Files, configure.ac): Move replacement strings...
38637         * modules/strerror-override: ...to new module.
38638         * modules/strerror (Depends-on): Add strerror-override.
38639         * modules/strerror_r-posix (Depends-on): Likewise.
38640         * MODULES.html.sh: Document new module.
38641         Reported by Bruno Haible.
38643 2011-06-06  Bruno Haible  <bruno@clisp.org>
38645         spawn-pipe tests: Rename program.
38646         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38647         * tests/test-spawn-pipe-child.c: Update comment.
38648         * tests/test-spawn-pipe.sh: Update.
38649         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38651         spawn-pipe tests: Link the child program only against libc.
38652         * tests/test-spawn-pipe-child.c: New file, extracted from
38653         tests/test-spawn-pipe.c.
38654         (main): Expect only one argument.
38655         (is_open): New function, copied from tests/test-pipe.c.
38656         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38657         (child_main): Remove function.
38658         (test_pipe): Pass only one argument to the child program.
38659         (main): Remove child process code. Expect the child program's name as
38660         first argument.
38661         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38662         argument.
38663         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38664         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38665         test-spawn-pipe-child against no libraries.
38667 2011-06-06  Bruno Haible  <bruno@clisp.org>
38669         careadlinkat: Avoid mismatch between ssize_t and int.
38670         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38671         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38673 2011-06-06  Jim Meyering  <meyering@redhat.com>
38675         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38676         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38677         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38679 2011-06-05  Bruno Haible  <bruno@clisp.org>
38681         ansi-c++-opt: Interoperability with libtool.
38682         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38683         set the variable to "no", not to ":".
38684         * NEWS: Mention the change.
38686 2011-06-05  Bruno Haible  <bruno@clisp.org>
38688         acl: Fix test failure on AIX 7.
38689         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38690         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38692 2011-06-05  Bruno Haible  <bruno@clisp.org>
38694         pipe-filter-ii: Fix test failure on AIX and IRIX.
38695         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38696         with EAGAIN, retry with a smaller buffer size.
38698 2011-06-05  Bruno Haible  <bruno@clisp.org>
38700         localename: Fix link dependencies.
38701         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38702         * modules/localename-tests (Makefile.am): Link test-localename with
38703         $(LIBTHREAD).
38705 2011-06-05  Bruno Haible  <bruno@clisp.org>
38707         error: Avoid gcc warning.
38708         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38710 2011-06-05  Bruno Haible  <bruno@clisp.org>
38712         unsetenv: Avoid gcc warning.
38713         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38715 2011-06-05  Bruno Haible  <bruno@clisp.org>
38717         setenv: Avoid gcc warning.
38718         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38720 2011-06-05  Bruno Haible  <bruno@clisp.org>
38722         sys_select: Ensure memset is declared also on AIX 7.
38723         * lib/sys_select.in.h: Include <string.h> also on AIX.
38724         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38725         self-contained also on AIX 7.1.
38727 2011-06-04  Jim Meyering  <meyering@redhat.com>
38729         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38730         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38731         function name, "error".
38732         (_gl_translatable_diag_func_re): New configurable variable.
38734 2011-06-04  Bruno Haible  <bruno@clisp.org>
38736         getopt: Avoid gcc warning.
38737         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38739 2011-06-04  Bruno Haible  <bruno@clisp.org>
38741         strerror_r: Fix comments.
38742         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38743         commit.
38745 2011-06-04  Bruno Haible  <bruno@clisp.org>
38747         perror: Fix compilation error.
38748         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38749         Undefine fprintf, not sprintf.
38750         * modules/perror (Depends-on): Remove intprops, verify.
38752 2011-06-04  Bruno Haible  <bruno@clisp.org>
38754         setlocale: Enable replacement on Cygwin 1.5.
38755         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38756         Cygwin 1.5.x.
38757         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38758         LC_CTYPE category also exists on Cygwin 1.5.x.
38760 2011-06-04  Bruno Haible  <bruno@clisp.org>
38762         strerror-override: Don't disable symbol renamings.
38763         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38764         * lib/strerror-override.c: Include config.h.
38765         (strerror_override): Don't undefine.
38767 2011-06-03  Bruno Haible  <bruno@clisp.org>
38769         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38770         * lib/localename.h: Update copyright header.
38771         * lib/localename.c: Likewise.
38772         * lib/relocatable.h: Likewise.
38773         * lib/relocatable.c: Likewise.
38775 2011-06-02  Bruno Haible  <bruno@clisp.org>
38777         doc: Fix a module name.
38778         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38780 2011-06-02  Bruno Haible  <bruno@clisp.org>
38782         pipe2: Remove dependency on 'nonblocking' module.
38783         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38784         O_NONBLOCK is defined by gnulib.
38785         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38786         is zero.
38787         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38788         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38789         defined by gnulib.
38790         (get_nonblocking_flag): New function.
38791         (main): Test O_NONBLOCK flag only if it is nonzero.
38792         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38794 2011-06-03  Jim Meyering  <meyering@redhat.com>
38796         maint: three new prohibit-header-without-use rules
38797         Prohibit use of cloexec.h, posixver.h, same.h without use.
38798         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38799         (sc_prohibit_posixver_without_use): Likewise.
38800         (sc_prohibit_same_without_use): Likewise.
38802 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38804         allocator: 'die' routine is now given requested size
38805         * lib/allocator.h (struct allocator.die): New size arg.
38806         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38807         If the actual problem is an ssize_t limitation, not a size_t or
38808         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38810 2011-06-01  Eric Blake  <eblake@redhat.com>
38812         strerror: drop strerror_r dependency
38813         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38814         * lib/strerror-override.c (strerror_override): ...to new file.
38815         * lib/strerror-override.h: Add prototype.
38816         * lib/strerror-impl.h: Delete.
38817         * lib/strerror.c (strerror): New implementation.
38818         * modules/errno (Files): Add new files.
38819         (configure.ac): Compile new file as appropriate.
38820         * modules/strerror (Files): Drop unused file.
38821         (Depends-on): Drop strerror_r-posix.
38822         * MODULES.html.sh: Document strerror_r-posix.
38823         Requested by Sam Steingold.
38825         perror: call strerror_r directly
38826         * modules/perror (Files): Drop strerror-impl.h.
38827         * lib/perror.c (perror): Use our own stack buffer, rather than
38828         calling a wrapper that uses static storage.
38829         * doc/posix-functions/perror.texi (perror): Document a limitation
38830         of our replacement.
38832         strerror_r: fix includes for FreeBSD
38833         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38834         since we use abort on some platforms.
38835         Reported by Matthias Bolte.
38837 2011-05-31  Bruno Haible  <bruno@clisp.org>
38839         Fix link errors in tests: openat-die uses gettext-h.
38840         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38841         against $(LIBINTL).
38842         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38843         against $(LIBINTL).
38844         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38845         $(LIBINTL).
38846         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38847         against $(LIBINTL).
38848         * modules/linkat-tests (Makefile.am): Link test-linkat against
38849         $(LIBINTL).
38850         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38851         $(LIBINTL).
38852         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38853         against $(LIBINTL).
38854         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38855         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38856         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38857         $(LIBINTL).
38858         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38859         $(LIBINTL).
38860         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38861         $(LIBINTL).
38862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38864 2011-05-31  Bruno Haible  <bruno@clisp.org>
38866         Fix link errors in tests: wait-process uses gettext-h.
38867         * modules/nonblocking-pipe-tests (Makefile.am): Set
38868         test_nonblocking_pipe_main_LDADD.
38869         * modules/nonblocking-socket-tests (Makefile.am): Link
38870         test-nonblocking-socket-main against $(LIBINTL).
38871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38873 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38875         assert-h: work around 'verify' incompatibility
38876         * lib/verify.h: Use @...@ directives, not ifdef.
38877         * modules/assert-h (assert.h): Implement the directives.
38878         (assert.h): Substitute the symbol-prefix more consistently.
38880 2011-05-29  Jim Meyering  <meyering@redhat.com>
38882         trim: remove three superfluous assignments
38883         * lib/trim.c (trim2): Remove three superfluous assignments
38884         and correct brace positioning.
38886 2011-05-29  Bruno Haible  <bruno@clisp.org>
38888         wctype-h: Avoid namespace pollution on Solaris 2.6.
38889         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38890         identifiers.
38891         * doc/posix-headers/wctype.texi: Mention the problem.
38892         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38894 2011-05-28  Jim Meyering  <meyering@redhat.com>
38896         parse-datetime.y: accommodate -Wstrict-overflow
38897         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38898         placate -Wstrict-overflow.
38900         trim: avoid a warning from -O2 -Wstrict-overflow
38901         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38903 2011-05-29  Bruno Haible  <bruno@clisp.org>
38905         gnulib-tool: Fix bug in yesterday's commit.
38906         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38907         twice.
38909 2011-05-29  Bruno Haible  <bruno@clisp.org>
38911         Allow multiple gnulib generated include files to be combined.
38912         * gnulib-tool (func_compute_include_guard_prefix): New function.
38913         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38914         ${gl_include_guard_prefix} references.
38915         (func_import, func_create_testdir): Invoke
38916         func_compute_include_guard_prefix.
38917         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38918         * lib/ctype.in.h: Likewise.
38919         * lib/dirent.in.h: Likewise.
38920         * lib/errno.in.h: Likewise.
38921         * lib/fcntl.in.h: Likewise.
38922         * lib/float.in.h: Likewise.
38923         * lib/getopt.in.h: Likewise.
38924         * lib/iconv.in.h: Likewise.
38925         * lib/langinfo.in.h: Likewise.
38926         * lib/locale.in.h: Likewise.
38927         * lib/math.in.h: Likewise.
38928         * lib/netdb.in.h: Likewise.
38929         * lib/netinet_in.in.h: Likewise.
38930         * lib/poll.in.h: Likewise.
38931         * lib/pthread.in.h: Likewise.
38932         * lib/pty.in.h: Likewise.
38933         * lib/sched.in.h: Likewise.
38934         * lib/se-selinux.in.h: Likewise.
38935         * lib/search.in.h: Likewise.
38936         * lib/signal.in.h: Likewise.
38937         * lib/spawn.in.h: Likewise.
38938         * lib/stdarg.in.h: Likewise.
38939         * lib/stddef.in.h: Likewise.
38940         * lib/stdint.in.h: Likewise.
38941         * lib/stdio.in.h: Likewise.
38942         * lib/stdlib.in.h: Likewise.
38943         * lib/string.in.h: Likewise.
38944         * lib/strings.in.h: Likewise.
38945         * lib/sys_file.in.h: Likewise.
38946         * lib/sys_ioctl.in.h: Likewise.
38947         * lib/sys_select.in.h: Likewise.
38948         * lib/sys_socket.in.h: Likewise.
38949         * lib/sys_stat.in.h: Likewise.
38950         * lib/sys_time.in.h: Likewise.
38951         * lib/sys_times.in.h: Likewise.
38952         * lib/sys_uio.in.h: Likewise.
38953         * lib/sys_utsname.in.h: Likewise.
38954         * lib/sys_wait.in.h: Likewise.
38955         * lib/sysexits.in.h: Likewise.
38956         * lib/termios.in.h: Likewise.
38957         * lib/time.in.h: Likewise.
38958         * lib/unistd.in.h: Likewise.
38959         * lib/wchar.in.h: Likewise.
38960         * lib/wctype.in.h: Likewise.
38961         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38962         * modules/ctype (Makefile.am): Likewise.
38963         * modules/dirent (Makefile.am): Likewise.
38964         * modules/errno (Makefile.am): Likewise.
38965         * modules/fcntl-h (Makefile.am): Likewise.
38966         * modules/float (Makefile.am): Likewise.
38967         * modules/getopt-posix (Makefile.am): Likewise.
38968         * modules/iconv-h (Makefile.am): Likewise.
38969         * modules/langinfo (Makefile.am): Likewise.
38970         * modules/locale (Makefile.am): Likewise.
38971         * modules/math (Makefile.am): Likewise.
38972         * modules/netdb (Makefile.am): Likewise.
38973         * modules/netinet_in (Makefile.am): Likewise.
38974         * modules/poll-h (Makefile.am): Likewise.
38975         * modules/pthread (Makefile.am): Likewise.
38976         * modules/pty (Makefile.am): Likewise.
38977         * modules/sched (Makefile.am): Likewise.
38978         * modules/search (Makefile.am): Likewise.
38979         * modules/selinux-h (Makefile.am): Likewise.
38980         * modules/signal (Makefile.am): Likewise.
38981         * modules/spawn (Makefile.am): Likewise.
38982         * modules/stdarg (Makefile.am): Likewise.
38983         * modules/stddef (Makefile.am): Likewise.
38984         * modules/stdint (Makefile.am): Likewise.
38985         * modules/stdio (Makefile.am): Likewise.
38986         * modules/stdlib (Makefile.am): Likewise.
38987         * modules/string (Makefile.am): Likewise.
38988         * modules/strings (Makefile.am): Likewise.
38989         * modules/sys_file (Makefile.am): Likewise.
38990         * modules/sys_ioctl (Makefile.am): Likewise.
38991         * modules/sys_select (Makefile.am): Likewise.
38992         * modules/sys_socket (Makefile.am): Likewise.
38993         * modules/sys_stat (Makefile.am): Likewise.
38994         * modules/sys_time (Makefile.am): Likewise.
38995         * modules/sys_times (Makefile.am): Likewise.
38996         * modules/sys_uio (Makefile.am): Likewise.
38997         * modules/sys_utsname (Makefile.am): Likewise.
38998         * modules/sys_wait (Makefile.am): Likewise.
38999         * modules/sysexits (Makefile.am): Likewise.
39000         * modules/termios (Makefile.am): Likewise.
39001         * modules/time (Makefile.am): Likewise.
39002         * modules/unistd (Makefile.am): Likewise.
39003         * modules/wchar (Makefile.am): Likewise.
39004         * modules/wctype-h (Makefile.am): Likewise.
39005         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
39007 2011-05-29  Bruno Haible  <bruno@clisp.org>
39009         assert-h: Allow multiple gnulib generated replacements to coexist.
39010         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
39012 2011-05-29  Bruno Haible  <bruno@clisp.org>
39014         argp: Allow coexistence with strerror_r-posix module.
39015         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
39016         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
39017         by gnulib's <string.h> replacement), assume it has the POSIX signature,
39018         not the glibc signature.
39020 2011-05-28  Bruno Haible  <bruno@clisp.org>
39022         gnulib-tool: Alternative structure of testdirs, similar to --import.
39023         * gnulib-tool: New option --single-configure.
39024         (func_usage): Document it.
39025         (single_configure): New variable.
39026         (func_modules_transitive_closure_separately,
39027         func_modules_transitive_closure_separately,
39028         func_determine_use_libtests, func_modules_add_dummy_separately,
39029         func_modules_to_filelist_separately): New functions, extracted from
39030         func_import.
39031         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
39032         (func_import): Use the new functions.
39033         (func_create_testdir): Set final_modules. Handle $single_configure =
39034         true case.
39036 2011-05-28  Bruno Haible  <bruno@clisp.org>
39038         getloadavg: Remove an unreliable safety check.
39039         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
39040         getloadavg.c is in place.
39041         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
39042         Reported by Sam Steingold <sds@gnu.org>.
39044 2011-05-28  Bruno Haible  <bruno@clisp.org>
39046         doc: Cleanup yet another file produced by texinfo.tex.
39047         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
39049 2011-05-28  Bruno Haible  <bruno@clisp.org>
39051         Finish the conditional dependencies mechanism.
39052         * gnulib-tool: New option --no-conditional-dependencies.
39053         (func_usage): Document it. Don't mark --conditional-dependencies as
39054         experimental.
39055         (cond_dependencies): The possible values can now be true, false, empty.
39056         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
39057         (func_import): Store setting in gnulib-cache.m4 and read it from there.
39058         * doc/gnulib-tool.texi (Conditional dependencies): New section.
39060 2011-05-28  Bruno Haible  <bruno@clisp.org>
39062         doc: Use a recent texinfo.tex.
39063         * doc/Makefile (tex_opts): New variable.
39064         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
39066 2011-05-28  Jim Meyering  <meyering@redhat.com>
39068         intprops.h: adjust comment to match code change
39069         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
39070         only once, it *may* have side effects.  Also fix an unrelated typo.
39071         (_GL_INT_SIGNED): Likewise.
39073 2011-05-26  Simon Josefsson  <simon@josefsson.org>
39075         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
39077 2011-05-26  Bruno Haible  <bruno@clisp.org>
39079         mbsrchr: Avoid collision with system function on Interix.
39080         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
39081         Reported by Markus Duft <mduft@gentoo.org>.
39083 2011-05-15  James Youngman  <jay@gnu.org>
39085         getopt: for ambiguous options, enumerate the possibilities.
39086         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
39087         the ambiguous options when an ambiguous prefix is given. This was
39088         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
39089         glibc change was
39090         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
39092 2011-05-25  Eric Blake  <eblake@redhat.com>
39094         getcwd: work around mingw bug
39095         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
39096         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39097         Reported by Matthias Bolte.
39099 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
39101         test-intprops: disable -Wtype-limits diagnostics
39102         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
39103         diagnostics.  Otherwise, the integer overflow macros generate many
39104         diagnostics.  Reported by Jim Meyering in
39105         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39107         intprops: shorten, to pacify gcc -Woverlength-strings
39108         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39109         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39110         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39111         likely to run afoul of C compiler limits for string constant lengths.
39112         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39114 2011-05-24  Eric Blake  <eblake@redhat.com>
39116         docs: document recently fixed glibc printf bug
39117         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39118         * doc/posix-functions/printf.texi (printf): Likewise.
39119         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39120         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39122         closein-tests: convert to init.sh
39123         * modules/closein-tests (Files): Add init.sh
39124         * tests/test-closein.sh Use it.
39126         yesno-tests: convert to init.sh
39127         * modules/yesno-tests (Files): Add init.sh.
39128         * tests/test-yesno.sh: Use it.
39130         atexit-tests: ensure reliable exit status
39131         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39132         Reported by Bruno Haible.
39134 2011-05-24  Bruno Haible  <bruno@clisp.org>
39136         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39137         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39138         gl_PREREQ_STRERROR_R invocations from here...
39139         * modules/strerror_r-posix (configure.ac): ... to here.
39141 2011-05-24  Eric Blake  <eblake@redhat.com>
39143         strerror_r: fix missing header
39144         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39146         strerror_r: fix AIX test failures
39147         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39148         ERANGE failure.
39150         strerror_r: fix Solaris test failures
39151         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39152         failures.
39153         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39155         strerror_r: enforce POSIX recommendations
39156         * lib/strerror_r.c (safe_copy): New helper method.
39157         (strerror_r): Guarantee a non-empty string.
39158         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39159         recent POSIX rulings and to match our strerror guarantees.
39160         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39162 2011-05-24  Jim Meyering  <meyering@redhat.com>
39164         test-perror2.c: avoid warning about unused variable
39165         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39167 2011-05-24  Eric Blake  <eblake@redhat.com>
39169         perror: avoid spurious test failure on HP-UX
39170         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39172         tests: fix logic bug in init.sh
39173         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39174         shell.
39176 2011-05-24  Jim Meyering  <meyering@redhat.com>
39178         utimensat: do not reference an out-of-scope buffer
39179         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39180         declared in an inner scope, yet "times" would be dereferenced outside
39181         the scope in which "ts" was valid.
39182         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39183         of ts[2] "out/up", so that the use of aliased "times" (via
39184         "times = ts;") does not end up referencing an out-of-scope "ts"
39186         opendir-safer.c: don't clobber errno; don't close negative FD
39187         * lib/opendir-safer.c (opendir_safer):
39188         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39189         file descriptor, and more importantly, don't clobber the
39190         offending errno value with EINVAL.  Before, upon failure
39191         of dup_safer, we would pass the negative file descriptor to
39192         fdopendir, which would clobber errno.
39194 2011-05-23  Bruno Haible  <bruno@clisp.org>
39196         idcache: Fix module description.
39197         * modules/idcache (Include): Set to "idcache.h".
39199 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39201         gnulib-tool: fix portability problem with MacOS sed
39202         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39203         before the "}".  Problem reported by Leo in
39204         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39205         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39206         sed_extract_condition1, sed_extract_condition2.
39208 2011-05-23  Bruno Haible  <bruno@clisp.org>
39210         hash: Simplify autoconf macro.
39211         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39213 2011-05-23  Bruno Haible  <bruno@clisp.org>
39215         getugroups: Fix module description.
39216         * modules/getugroups (Include): Set to "getugroups.h".
39218 2011-05-23  Bruno Haible  <bruno@clisp.org>
39220         linkat: Simplify autoconf macro.
39221         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39223 2011-05-23  Bruno Haible  <bruno@clisp.org>
39224             Eric Blake  <eblake@redhat.com>
39226         linkat, renameat: Update dependencies.
39227         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39228         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39229         symlinkat.
39231 2011-05-23  Jim Meyering  <meyering@redhat.com>
39233         maint.mk: more tight_scope improvements
39234         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39235         (_gl_TS_headers): Define only in if-0'd block.
39236         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39237         sometimes we must *not* use it.  Adjust uses accordingly.
39238         (sc_tight_scope): Use much simpler grep-based test to determine
39239         whether we skip this rule.
39241         maint.mk: generalize/improve the tight-scope rule
39242         * top/maint.mk: Emit a warning when the test is skipped.
39243         (_gl_TS_dir): Add $(srcdir)/ prefix.
39244         (_gl_TS_function_match): Simplify, rather than trying
39245         to enumerate common types.  Otherwise, it would fail to match an
39246         "extern unsigned char const *" declaration in idutils.
39247         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39248         a way to support use of that type of macro.
39249         (_gl_TS_var_match): Simplify regexp.
39250         (_gl_TS_obj_files): New configurable variable.
39251         (_gl_TS_headers): Likewise.
39253 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39255         verify: fix bug when gnulib <assert.h> is also included
39256         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39257         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39258         Perhaps there's a better way, but this fixes the immediate problem.
39259         Problem reported by Bruno Haible in
39260         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39262 2011-05-22  Bruno Haible  <bruno@clisp.org>
39264         xgetcwd: Simplify autoconf macro.
39265         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39267 2011-05-22  Bruno Haible  <bruno@clisp.org>
39269         New module 'mktime-internal'.
39270         * modules/mktime-internal: New file.
39271         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39272         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39273         mktime_internal as a C macro if libc has __mktime_internal.
39274         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39275         conditions.
39276         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39278 2011-05-22  Bruno Haible  <bruno@clisp.org>
39280         timegm: Correct mktime replacement statements.
39281         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39282         defining mktime as a C macro. This completes a 2009-07-28 commit.
39284 2011-05-22  Bruno Haible  <bruno@clisp.org>
39286         timegm: Simplify autoconf macro.
39287         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39289 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39291         clock-time: change to LGPLv2+.
39292         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39293         BSD-like but we have no mark for that; this is good enough for now.
39295 2011-05-21  Bruno Haible  <bruno@clisp.org>
39297         strerror_r: Fix comments.
39298         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39300 2011-05-21  Bruno Haible  <bruno@clisp.org>
39302         relocatable-prog-wrapper: Fix possible link error.
39303         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39304         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39305         (gl_FUNC_SETENV): ... to here.
39306         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39307         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39309 2011-05-21  Bruno Haible  <bruno@clisp.org>
39311         relocatable-prog-wrapper: Assume strerror() exists.
39312         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39313         m4/strerror.m4.
39314         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39315         * lib/relocwrapper.c: Remove mention of strerror module.
39316         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39317         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39318         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39319         C macro.
39321 2011-05-21  Bruno Haible  <bruno@clisp.org>
39323         select: Simplify replacement idiom.
39324         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39325         Win32 platforms.
39326         * lib/sys_select.in.h (select): Simplify accordingly.
39327         * modules/select (Depends-on): Likewise.
39329 2011-05-21  Bruno Haible  <bruno@clisp.org>
39331         mkdir-p: Simplify autoconf macro.
39332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39333         gl_FUNC_LCHOWN.
39335 2011-05-21  Eric Blake  <eblake@redhat.com>
39337         strerror_r: avoid clobbering strerror on cygwin
39338         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39339         fall back instead to sys_errlist.
39340         * modules/strerror (configure.ac): Add witness.
39341         * tests/test-strerror_r.c (main): Enhance test.
39342         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39343         * tests/test-perror2.c (main): Free memory before exit.
39345 2011-05-21  Bruno Haible  <bruno@clisp.org>
39347         mkdtemp: Use gnulib naming conventions.
39348         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39349         * modules/mkdtemp (configure.ac): Update.
39351 2011-05-20  Eric Blake  <eblake@redhat.com>
39353         strerror_r: avoid corrupting errno on Solaris
39354         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39355         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39357         strerror_r: avoid compiler warning
39358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39360         strerror_r: simplify AIX code
39361         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39363         test-perror: avoid spurious failure on FreeBSD
39364         * modules/perror-tests (Depends-on): Add strerror, now that
39365         strerror_r no longer pulls it in.
39367 2011-05-20  Bruno Haible  <bruno@clisp.org>
39369         strerror_r-posix: Remove unused dependencies.
39370         * modules/strerror_r-posix (Depends-on): Remove strerror.
39371         Reported by Eric Blake.
39373 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39375         intprops: remove assumption about A|B representation
39376         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39377         is a valid integer if both A and B are.  Although this is true for
39378         all known practical hosts, the C standard doesn't guarantee it,
39379         and the code need not assume it.  Also, this change may work around
39380         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39381         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39383 2011-05-20  Eric Blake  <eblake@redhat.com>
39385         perror: work around FreeBSD bug
39386         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39387         is broken.  Move AC_LIBOBJ...
39388         * modules/perror (configure.ac): Here.
39389         * doc/posix-functions/perror.texi (perror): Document this.
39390         * tests/test-perror2.c (main): Enhance test.
39392         test-perror: check for strerror interactions
39393         * tests/macros.h (STREQ): Add macro.
39394         * modules/perror-tests (Files): Add second test.
39395         * tests/test-perror2.c (main): New file.
39396         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39398         test-perror: rewrite to use init script
39399         * modules/perror-tests (Files): Add init.sh.
39400         * tests/test-perror.sh: Use temporary directory.
39402 2011-05-20  Jim Meyering  <meyering@redhat.com>
39404         maint: replace misused "a" with "an"
39405         * doc/intprops.texi: "a integer"
39406         * doc/regex.texi: "a explanation"
39407         * lib/alignof.h: "a object"
39408         * lib/argmatch.h: "a explanation"
39409         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39410         * lib/stdint.in.h: "a integer"
39411         * lib/userspec.c: "a owner"
39412         * doc/gnulib.texi: Fix "a idea", and reword.
39414 2011-05-19  Jim Meyering  <meyering@redhat.com>
39416         maint: correct misuse of "a" and "an"
39417         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39418         * lib/argp-help.c: "an docum...": s/an/a/
39419         * lib/argp-parse.c: "An vector": s/An/A/
39420         * lib/execute.c: "an native": s/an/a/
39421         * lib/spawn-pipe.c: Likewise.
39422         * lib/gc.h: "an Gc_rc": s/an/a/
39423         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39424         * lib/fts.c: "an stat.st_dev": s/an/a/
39426 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39428         intprops-tests: work around HP-UX 11.23 cc bug with constants
39429         * tests/test-intprops.c (VERIFY): New macro.
39430         (main): Use it, instead of verify, to work around the compiler bug; see
39431         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39433         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39434         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39435         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39436         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39437         (_GL_REMAINDER_OVERFLOW): Use it.
39439         intprops-tests: revert unsigned part of previous change
39440         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39441         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39442         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39443         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39445 2011-05-19  Bruno Haible  <bruno@clisp.org>
39447         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39448         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39449         strerror_r() returned without filling the buffer.
39450         Reported by Eric Blake.
39452 2011-05-19  Eric Blake  <eblake@redhat.com>
39454         strerror_r: guarantee unchanged errno
39455         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39456         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39457         failure.
39458         * tests/test-strerror_r.c (main): Enhance test.
39460 2011-05-19  Bruno Haible  <bruno@clisp.org>
39462         strerror_r: Reorder #if blocks.
39463         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39464         for consistency with the previous commit.
39466 2011-05-19  Bruno Haible  <bruno@clisp.org>
39468         perror: Avoid clobbering the strerror buffer when possible.
39469         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39470         * lib/strerror.c: Include it.
39471         * modules/strerror (Files): Add lib/strerror-impl.h.
39472         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39473         (my_strerror): New function, defined through lib/strerror-impl.h.
39474         (perror): Use it instead of strerror.
39475         * modules/perror (Files): Add lib/strerror-impl.h.
39476         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39478 2011-05-19  Eric Blake  <eblake@redhat.com>
39480         strerror_r: fix on newer cygwin
39481         * lib/strerror_r.c (strerror_r): Cygwin now has
39482         __xpg_strerror_r, use it.
39484 2011-05-19  Bruno Haible  <bruno@clisp.org>
39486         strerror_r: Avoid clobbering the strerror buffer when possible.
39487         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39488         (sys_nerr, sys_errlist): New declarations.
39489         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39490         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39491         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39493 2011-05-19  Bruno Haible  <bruno@clisp.org>
39495         strerror_r: Fix test failure on mingw.
39496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39497         EXTEND_STRERROR_R.
39498         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39499         macros from errno.in.h instead.
39501 2011-05-19  Eric Blake  <eblake@redhat.com>
39503         strerror: relax test for Solaris
39504         * tests/test-strerror.c (main): Permit Solaris behavior.
39505         * tests/test-strerror_r.c (main): Likewise.
39507         strerror: enforce POSIX ruling on strerror(0)
39508         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39510         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39511         * doc/posix-functions/strerror.texi (strerror): Document it.
39512         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39513         * tests/test-strerror.c (main): Strengthen test.
39514         * tests/test-strerror_r.c (main): Likewise.
39516 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39518         intprop-tests: port to older and more-pedantic compilers
39519         * modules/intprops-tests (Files): Add tests/macros.h.
39520         * tests/test-intprops.c: Include macros.h.
39521         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39522         it's no longer documented to expand to an integer constant expression.
39523         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39524         argument is floating point, as it's no longer documented to expand
39525         to an integer constant expression in that case.
39526         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39527         compiler bugs reported by Bruno Haible.  See
39528         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39529         (U0, U1): New constants, to work around the same bugs.  Also,
39530         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39532         intprops: work around C compiler bugs
39533         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39534         bug in Sun C 5.11 2010/08/13 and other compilers; see
39535         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39537         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39538         * doc/intprops.texi (Integer Type Determination): Fix
39539         documentation for TYPE_IS_INTEGER: it returns an constant
39540         expression, not an integer constant expression.  Fix doc for
39541         TYPE_SIGNED: it returns an integer constant expression only if its
39542         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39543         hardly worth documented that way....)
39545 2011-05-18  Bruno Haible  <bruno@clisp.org>
39547         strerror_r: Avoid clobbering the strerror buffer when possible.
39548         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39549         Handle gnulib defined errno values here. When strerror() returns NULL
39550         or an empty string, return EINVAL.
39551         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39552         gnulib defined errno values here.
39553         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39555 2011-05-18  Eric Blake  <eblake@redhat.com>
39557         fnmatch: avoid compiler warning
39558         * lib/fnmatch_loop.c (FCT): Use correct type.
39559         Reported by Matthias Bolte.
39561 2011-05-13  Jim Meyering  <meyering@redhat.com>
39563         maint.mk: three new prohibit_<HDR>_without_use rules
39564         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39565         (sc_prohibit_stdio-safer_without_use): Likewise.
39566         (sc_prohibit_xfreopen_without_use): Likewise.
39568 2011-05-17  Jim Meyering  <meyering@redhat.com>
39570         announce-gen: fail if the NEWS delta is empty
39571         If there's nothing noteworthy in NEWS, then either you forgot
39572         or you shouldn't be releasing.
39573         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39575 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39577         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39578         reserved symbols starting with double underscore from the check.
39580 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39582         intprops: add doc
39583         * doc/intprops.texi: New file, documenting intprops.
39584         * doc/gnulib.texi (Particular Modules): Include it.
39586         verify: add doc to gnulib manual and fix example
39587         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39588         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39589         (Compile-time Assertions): Fix example so it can't overflow.
39591 2011-05-17  Jim Meyering  <meyering@redhat.com>
39593         warnings.m4: don't usurp save_CPPFLAGS variable name
39594         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39596         doc: fix typo
39597         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39599 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39600             Bruno Haible  <bruno@clisp.org>
39602         doc: Tweak recent change.
39603         * README (Portability guidelines): Tweak new text.
39604         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39605         Interix 6.1.
39607 2011-05-16  Eric Blake  <eblake@redhat.com>
39609         inttypes: avoid autoconf warning
39610         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39611         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39613 2011-05-16  Sam Steingold  <sds@gnu.org>
39614         and Eric Blake  <eblake@redhat.com>
39616         vc-list-files: accept multiple directory operands
39617         * build-aux/vc-list-files: Iterate over all remaining operands.
39619 2011-05-16  Bruno Haible  <bruno@clisp.org>
39621         Fix confusion regarding deprecated modules.
39622         * modules/calloc (Status, Notice): Mark module as deprecated, not
39623         obsolete.
39624         * modules/fnmatch-posix (Status, Notice): Likewise.
39625         * modules/getdate (Status, Notice): Likewise.
39626         * modules/getopt (Status, Notice): Likewise.
39627         * modules/malloc (Status, Notice): Likewise.
39628         * modules/pipe (Status, Notice): Likewise.
39629         * modules/realloc (Status, Notice): Likewise.
39630         * modules/rename-dest-slash (Status, Notice): Likewise.
39631         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39632         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39633         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39634         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39635         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39637 2011-05-16  Bruno Haible  <bruno@clisp.org>
39639         doc: List the target platforms.
39640         * doc/gnulib-intro.texi (Target Platforms): New section.
39641         * doc/gnulib.texi (Introduction): Update menu.
39642         * README (Portability guidelines): Refer to the new section. Update
39643         statement about oldest supported environment. Remove rationale why
39644         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39645         unportable C89 function.
39646         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39647         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39649 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39651         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39653 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39655         intprops-tests: new module
39656         * modules/intprops-tests, tests/test-intprops.c: New files.
39658         intprops: add safe, portable integer overflow checking
39659         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39660         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39661         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39662         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39663         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39664         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39665         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39666         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39667         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39668         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39669         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39671 2011-05-12  James Youngman  <jay@gnu.org>
39673         Add a test for glibc's Bugzilla bug #12378.
39674         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39675         doesn't allow the literal matching of a lone "[" (which is
39676         required by POSIX).
39677         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39679 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39681         Sync glibc change fixing Bugzilla bug #12378.
39682         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39683         beginning and fall back to matching as normal character if the
39684         string ends before the matching ']' is found.  This is what POSIX
39685         requires.
39687 2011-05-13  Eric Blake  <eblake@redhat.com>
39689         getcwd-lgpl: relax test for FreeBSD
39690         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39691         issue.
39692         * tests/test-getcwd-lgpl.c (main): Relax test.
39693         Reported by Matthias Bolte.
39695 2011-05-11  Eric Blake  <eblake@redhat.com>
39697         test-fflush: silence compiler warning
39698         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39700 2011-05-11  Bruno Haible  <bruno@clisp.org>
39702         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39703         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39704         * modules/canonicalize (Depends-on): Add 'nocrash'.
39705         * modules/canonicalize-lgpl (Depends-on): Likewise.
39706         * doc/posix-functions/realpath.texi: Update platforms list.
39707         Reported by Ryan Schmidt <ryandesign@macports.org>.
39709 2011-05-11  Bruno Haible  <bruno@clisp.org>
39711         group-member: Declare function in <unistd.h>.
39712         * lib/unistd.in.h (group_member): New declaration.
39713         * lib/group-member.h: Remove file.
39714         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39715         * tests/test-unistd-c++.cc: Check signature of group_member.
39716         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39717         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39718         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39719         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39720         HAVE_GROUP_MEMBER.
39721         * modules/group-member (Files): Remove lib/group-member.h.
39722         (Depends-on): Add unistd. Specify conditions.
39723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39724         (Include): Change to <unistd.h>.
39725         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39726         HAVE_GROUP_MEMBER.
39727         * NEWS: Mention the change.
39728         * lib/euidaccess.c: Don't include group-member.h.
39730 2011-05-11  Bruno Haible  <bruno@clisp.org>
39732         group-member: Document module.
39733         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39734         module.
39736 2011-05-11  Bruno Haible  <bruno@clisp.org>
39738         fclose: Fix mistake earlier today.
39739         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39741 2011-05-11  Eric Blake  <eblake@redhat.com>
39743         fclose: preserve fflush errors
39744         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39745         Reported by Jim Meyering.
39747         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39748         * build-aux/bootstrap (check_versions): When no specific version
39749         is required, merely check that the app produces an exit status
39750         that indicates its existence.
39752         maint.mk: drop redundant check
39753         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39754         the same but better.
39756 2011-05-11  Bruno Haible  <bruno@clisp.org>
39758         fclose: Fix possible link error.
39759         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39760         unregister_shadow_fd. Improve comments.
39761         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39762         Eric Blake.
39764 2011-05-11  Jim Meyering  <meyering@redhat.com>
39766         maint.mk: improve "can not" detection and generalize rule name
39767         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39768         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39769         Use the same technique as in sc_prohibit_doubled_word, so that
39770         we recognize "can not" also when the words are separated by a newline.
39771         Suggested by Eric Blake.
39772         (perl_filename_lineno_text_): Define.  Factored out of...
39773         (prohibit_doubled_word_): ...here.  Use the new definition.
39774         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39775         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39776         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39778 2011-05-10  Eric Blake  <eblake@redhat.com>
39780         fclose: avoid double close race when possible
39781         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39782         all but WINDOWS_SOCKETS.
39784 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39786         openat: correct new comment
39787         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39789 2011-05-10  Jim Meyering  <meyering@redhat.com>
39791         openat: add comments
39792         * lib/openat-proc.c (openat_proc_name): Add comments,
39793         mostly from Eric Blake.
39795 2011-05-09  Eric Blake  <eblake@redhat.com>
39797         openat: reduce syscalls in first probe of /proc
39798         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39799         be a directory.  Simplify the probe for .. bugs.
39800         * modules/openat (Depends-on): Drop same-inode.
39801         Reported by Bastien ROUCARIES.
39803 2011-05-09  Jim Meyering  <meyering@redhat.com>
39805         maint.mk: change semantics/name of tight_scope variables
39806         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39807         Rename variables to align with semantics that make them more useful.
39809         maint.mk: tweak new rule's name not to impinge
39810         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39811         (sc_tight_scope): Use new rule name rather than $@-0.
39813         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39814         * top/maint.mk (sc_tight_scope): New rule.
39815         (sc_tight_scope-0): New rule, ifdef'd out.
39816         (_gl_TS_dir): Default.
39817         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39818         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39820 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39822         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39823         Haible <bruno@clisp.org>.
39825 2011-05-08  Bruno Haible  <bruno@clisp.org>
39827         Comments.
39828         * m4/isnanf.m4: Add comment.
39829         * m4/isnanl.m4: Likewise.
39831 2011-05-08  Bruno Haible  <bruno@clisp.org>
39833         glob: Remove obsolete macro.
39834         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39836 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39838         intprops: Sun C 5.11 supports __typeof__
39839         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39840         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39841         which is new.
39842         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39844         intprops: switch to usual gnulib indenting and naming
39845         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39846         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39848         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39850 2011-05-08  Jim Meyering  <meyering@redhat.com>
39852         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39853         * top/maint.mk (release-prep): Use make's --no-print-directory
39854         option when generating the announcement.  This eliminates the
39855         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39856         generated announcement template.
39858 2011-05-08  Bruno Haible  <bruno@clisp.org>
39860         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39861         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39862         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39864 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39866         ignore-value, verify: Omit include files from lib_SOURCES.
39867         * modules/ignore-value, modules/verify (Makefile.am):
39868         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39869         that leads Automake to duplicate use of am__objects_... variables
39870         in Makefile.in.  See
39871         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39873 2011-05-07  Bruno Haible  <bruno@clisp.org>
39875         fclose: Simplify autoconf macro.
39876         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39877         defined.
39879 2011-05-07  Bruno Haible  <bruno@clisp.org>
39881         canonicalize-lgpl: Fix autoconf macro ordering bug.
39882         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39883         gl_STDLIB_H_DEFAULTS.
39885 2011-05-06  Eric Blake  <eblake@redhat.com>
39887         maintainer-makefile: make sc_po_check easier to tune
39888         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39889         to probe for strings, such as an alternate location for gnulib.
39891         fclose: guarantee behavior on seekable stdin
39892         * modules/fclose (Depends-on): Add fflush.
39893         * doc/posix-functions/fclose.texi (fclose): Document this.
39894         * tests/test-fclose.c (main): Make test for this unconditional.
39896 2011-05-06  Bruno Haible  <bruno@clisp.org>
39898         fflush, fpurge: Relicense under LGPLv2+.
39899         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39900         * modules/fpurge (License): Likewise.
39901         With permission from Eric Blake and Jim Meyering.
39902         Suggested by Eric Blake.
39904 2011-05-06  Karl Berry  <karl@gnu.org>
39906         * MODULES.html.sh (func_all_modules): remove exit.
39908 2011-05-06  Jim Meyering  <meyering@redhat.com>
39910         maint.mk: use info-gnu@ as the default only for a stable release
39911         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39912         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39913         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39916 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39918         assert-h: new module, which supports C1X-style static_assert
39919         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39920         * lib/verify.h: Revamp so that this can be copied into assert.h,
39921         while retaining the ability to use it standalone as before.
39922         Rename private identifiers so as not to encroach on the
39923         standard C namespace, since this is now used by assert.h.
39924         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39925         the old verify_true.
39926         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39927         the old verify_true.  Use _GL_VERIFY_TYPE.
39928         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39929         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39930         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39931         defined when this file is copied into the replacement assert.h.
39932         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39933         and _Static_assert is not built in.
39934         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39935         defined, and use the new macros mentioned above.
39936         * doc/posix-headers/assert.texi: Document this.
39938 2011-05-05  Bruno Haible  <bruno@clisp.org>
39940         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39941         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39942         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39943         gl_REPLACE_FCLOSE here.
39944         * modules/fflush (Depends-on): Remove fclose.
39945         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39946         combination with module 'fclose'.
39948 2011-05-05  Bruno Haible  <bruno@clisp.org>
39950         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39951         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39952         gl_FUNC_FFLUSH.
39953         (gl_FUNC_FFLUSH): Use it.
39954         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39955         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39956         gl_REPLACE_FSEEKO here.
39958 2011-05-05  Bruno Haible  <bruno@clisp.org>
39960         tzset: Relicense under LGPL.
39961         * modules/tzset (License): Change to LGPL.
39962         No agreement needed; it's a no-op.
39964         strtoimax, strtoumax: Relicense under LGPL.
39965         * modules/strtoimax (License): Change to LGPL.
39966         * modules/strtoumax (License): Likewise.
39967         With permission from Jim Meyering, Paul Eggert:
39968         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39969         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39971         getgroups: Relicense under LGPL.
39972         * modules/getgroups (License): Change to LGPL.
39973         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39974         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39975         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39976         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39978         nanosleep: Relicense under LGPL.
39979         * modules/nanosleep (License): Change to LGPL.
39980         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39981         Haible:
39982         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39983         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39984         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39985         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39987         futimens: Relicense under LGPL.
39988         * modules/futimens (License): Change to LGPL.
39989         With permission from Eric Blake:
39990         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39992         fflush: Relicense under LGPL.
39993         * modules/fflush (License): Change to LGPL.
39994         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39995         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39996         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39997         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39999         tmpfile: Relicense under LGPL.
40000         * modules/tmpfile (License): Change to LGPL.
40001         With permission from Ben Pfaff:
40002         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40004         isfinite: Relicense under LGPL.
40005         * modules/isfinite (License): Change to LGPL.
40006         With permission from Ben Pfaff, Bruno Haible:
40007         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40008         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
40010         acosl..tanl: Relicense under LGPL.
40011         * modules/acosl (License): Change to LGPL.
40012         * modules/asinl (License): Likewise.
40013         * modules/atanl (License): Likewise.
40014         * modules/cosl (License): Likewise.
40015         * modules/expl (License): Likewise.
40016         * modules/logl (License): Likewise.
40017         * modules/sinl (License): Likewise.
40018         * modules/sqrtl (License): Likewise.
40019         * modules/tanl (License): Likewise.
40020         Source code originally from glibc and Paolo Bonzini. Agreements:
40021         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
40022         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
40024 2011-05-05  Bruno Haible  <bruno@clisp.org>
40026         signal: Define sighandler_t.
40027         * lib/signal.in.h (sighandler_t): New type.
40028         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
40029         whether sighandler_t is defined.
40030         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
40031         * modules/signal (Depends-on): Add extensions.
40032         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
40033         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
40034         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
40036 2011-05-05  Eric Blake  <eblake@redhat.com>
40038         maint: remove useless REPLACE_*_H macros
40039         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
40040         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40041         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40042         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
40043         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40044         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40045         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
40046         * m4/btowc.m4: Update callers.
40047         * m4/dirfd.m4: Likewise.
40048         * m4/duplocale.m4: Likewise.
40049         * m4/fchdir.m4: Likewise.
40050         * m4/fdopendir.m4: Likewise.
40051         * m4/inet_ntop.m4: Likewise.
40052         * m4/inet_pton.m4: Likewise.
40053         * m4/ioctl.m4: Likewise.
40054         * m4/mbrlen.m4: Likewise.
40055         * m4/mbrtowc.m4: Likewise.
40056         * m4/mbsinit.m4: Likewise.
40057         * m4/mbsnrtowcs.m4: Likewise.
40058         * m4/mbsrtowcs.m4: Likewise.
40059         * m4/poll.m4: Likewise.
40060         * m4/setlocale.m4: Likewise.
40061         * m4/wcrtomb.m4: Likewise.
40062         * m4/wcsnrtombs.m4: Likewise.
40063         * m4/wcsrtombs.m4: Likewise.
40064         * m4/wctob.m4: Likewise.
40065         * m4/wcwidth.m4: Likewise.
40066         * modules/posix_spawn: Likewise.
40067         * modules/posix_spawn_file_actions_addclose: Likewise.
40068         * modules/posix_spawn_file_actions_adddup2: Likewise.
40069         * modules/posix_spawn_file_actions_addopen: Likewise.
40070         * modules/posix_spawn_file_actions_destroy: Likewise.
40071         * modules/posix_spawn_file_actions_init: Likewise.
40072         * modules/posix_spawnattr_destroy: Likewise.
40073         * modules/posix_spawnattr_getflags: Likewise.
40074         * modules/posix_spawnattr_getpgroup: Likewise.
40075         * modules/posix_spawnattr_getschedparam: Likewise.
40076         * modules/posix_spawnattr_getschedpolicy: Likewise.
40077         * modules/posix_spawnattr_getsigdefault: Likewise.
40078         * modules/posix_spawnattr_getsigmask: Likewise.
40079         * modules/posix_spawnattr_init: Likewise.
40080         * modules/posix_spawnattr_setflags: Likewise.
40081         * modules/posix_spawnattr_setpgroup: Likewise.
40082         * modules/posix_spawnattr_setschedparam: Likewise.
40083         * modules/posix_spawnattr_setschedpolicy: Likewise.
40084         * modules/posix_spawnattr_setsigdefault: Likewise.
40085         * modules/posix_spawnattr_setsigmask: Likewise.
40086         * modules/posix_spawnp: Likewise.
40088 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
40090         Add option to do-release-commit-and-tag to specify branch.
40091         * build-aux/do-release-commit-and-tag: Add --branch.
40093 2011-05-03  Bruno Haible  <bruno@clisp.org>
40095         Avoid unnecessary compilation units, through conditional dependencies.
40096         * modules/accept (Depends-on): Add conditions to the dependencies.
40097         * modules/acosl (Depends-on): Likewise.
40098         * modules/argz (Depends-on): Likewise.
40099         * modules/asinl (Depends-on): Likewise.
40100         * modules/atanl (Depends-on): Likewise.
40101         * modules/atoll (Depends-on): Likewise.
40102         * modules/bind (Depends-on): Likewise.
40103         * modules/btowc (Depends-on): Likewise.
40104         * modules/canonicalize-lgpl (Depends-on): Likewise.
40105         * modules/ceil (Depends-on): Likewise.
40106         * modules/ceilf (Depends-on): Likewise.
40107         * modules/ceill (Depends-on): Likewise.
40108         * modules/chdir-long (Depends-on): Likewise.
40109         * modules/chown (Depends-on): Likewise.
40110         * modules/close (Depends-on): Likewise.
40111         * modules/connect (Depends-on): Likewise.
40112         * modules/cosl (Depends-on): Likewise.
40113         * modules/dirfd (Depends-on): Likewise.
40114         * modules/dprintf (Depends-on): Likewise.
40115         * modules/dprintf-posix (Depends-on): Likewise.
40116         * modules/error (Depends-on): Likewise.
40117         * modules/euidaccess (Depends-on): Likewise.
40118         * modules/expl (Depends-on): Likewise.
40119         * modules/faccessat (Depends-on): Likewise.
40120         * modules/fchdir (Depends-on): Likewise.
40121         * modules/fclose (Depends-on): Likewise.
40122         * modules/fcntl (Depends-on): Likewise.
40123         * modules/fdopendir (Depends-on): Likewise.
40124         * modules/fflush (Depends-on): Likewise.
40125         * modules/floor (Depends-on): Likewise.
40126         * modules/floorf (Depends-on): Likewise.
40127         * modules/floorl (Depends-on): Likewise.
40128         * modules/fnmatch (Depends-on): Likewise.
40129         * modules/fopen (Depends-on): Likewise.
40130         * modules/fprintf-posix (Depends-on): Likewise.
40131         * modules/frexp (Depends-on): Likewise.
40132         * modules/frexp-nolibm (Depends-on): Likewise.
40133         * modules/frexpl (Depends-on): Likewise.
40134         * modules/frexpl-nolibm (Depends-on): Likewise.
40135         * modules/fseek (Depends-on): Likewise.
40136         * modules/fsusage (Depends-on): Likewise.
40137         * modules/ftell (Depends-on): Likewise.
40138         * modules/ftello (Depends-on): Likewise.
40139         * modules/futimens (Depends-on): Likewise.
40140         * modules/getcwd (Depends-on): Likewise.
40141         * modules/getcwd-lgpl (Depends-on): Likewise.
40142         * modules/getdelim (Depends-on): Likewise.
40143         * modules/getdomainname (Depends-on): Likewise.
40144         * modules/getgroups (Depends-on): Likewise.
40145         * modules/gethostname (Depends-on): Likewise.
40146         * modules/getline (Depends-on): Likewise.
40147         * modules/getlogin_r (Depends-on): Likewise.
40148         * modules/getopt-posix (Depends-on): Likewise.
40149         * modules/getpeername (Depends-on): Likewise.
40150         * modules/getsockname (Depends-on): Likewise.
40151         * modules/getsockopt (Depends-on): Likewise.
40152         * modules/getsubopt (Depends-on): Likewise.
40153         * modules/getusershell (Depends-on): Likewise.
40154         * modules/glob (Depends-on): Likewise.
40155         * modules/grantpt (Depends-on): Likewise.
40156         * modules/iconv_open (Depends-on): Likewise.
40157         * modules/iconv_open-utf (Depends-on): Likewise.
40158         * modules/inet_ntop (Depends-on): Likewise.
40159         * modules/inet_pton (Depends-on): Likewise.
40160         * modules/ioctl (Depends-on): Likewise.
40161         * modules/isapipe (Depends-on): Likewise.
40162         * modules/isfinite (Depends-on): Likewise.
40163         * modules/isinf (Depends-on): Likewise.
40164         * modules/lchown (Depends-on): Likewise.
40165         * modules/ldexpl (Depends-on): Likewise.
40166         * modules/link (Depends-on): Likewise.
40167         * modules/linkat (Depends-on): Likewise.
40168         * modules/listen (Depends-on): Likewise.
40169         * modules/logl (Depends-on): Likewise.
40170         * modules/lstat (Depends-on): Likewise.
40171         * modules/mbrlen (Depends-on): Likewise.
40172         * modules/mbrtowc (Depends-on): Likewise.
40173         * modules/mbsinit (Depends-on): Likewise.
40174         * modules/mbsnrtowcs (Depends-on): Likewise.
40175         * modules/mbsrtowcs (Depends-on): Likewise.
40176         * modules/mbtowc (Depends-on): Likewise.
40177         * modules/memcmp (Depends-on): Likewise.
40178         * modules/mkdir (Depends-on): Likewise.
40179         * modules/mkdtemp (Depends-on): Likewise.
40180         * modules/mkfifo (Depends-on): Likewise.
40181         * modules/mkfifoat (Depends-on): Likewise.
40182         * modules/mknod (Depends-on): Likewise.
40183         * modules/mkostemp (Depends-on): Likewise.
40184         * modules/mkostemps (Depends-on): Likewise.
40185         * modules/mkstemp (Depends-on): Likewise.
40186         * modules/mkstemps (Depends-on): Likewise.
40187         * modules/mktime (Depends-on): Likewise.
40188         * modules/nanosleep (Depends-on): Likewise.
40189         * modules/open (Depends-on): Likewise.
40190         * modules/openat (Depends-on): Likewise.
40191         * modules/perror (Depends-on): Likewise.
40192         * modules/poll (Depends-on): Likewise.
40193         * modules/popen (Depends-on): Likewise.
40194         * modules/posix_spawn (Depends-on): Likewise.
40195         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40196         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40197         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40198         * modules/posix_spawnp (Depends-on): Likewise.
40199         * modules/pread (Depends-on): Likewise.
40200         * modules/printf-posix (Depends-on): Likewise.
40201         * modules/ptsname (Depends-on): Likewise.
40202         * modules/putenv (Depends-on): Likewise.
40203         * modules/pwrite (Depends-on): Likewise.
40204         * modules/readline (Depends-on): Likewise.
40205         * modules/readlink (Depends-on): Likewise.
40206         * modules/readlinkat (Depends-on): Likewise.
40207         * modules/recv (Depends-on): Likewise.
40208         * modules/recvfrom (Depends-on): Likewise.
40209         * modules/regex (Depends-on): Likewise.
40210         * modules/remove (Depends-on): Likewise.
40211         * modules/rename (Depends-on): Likewise.
40212         * modules/renameat (Depends-on): Likewise.
40213         * modules/rmdir (Depends-on): Likewise.
40214         * modules/round (Depends-on): Likewise.
40215         * modules/roundf (Depends-on): Likewise.
40216         * modules/roundl (Depends-on): Likewise.
40217         * modules/rpmatch (Depends-on): Likewise.
40218         * modules/select (Depends-on): Likewise.
40219         * modules/send (Depends-on): Likewise.
40220         * modules/sendto (Depends-on): Likewise.
40221         * modules/setenv (Depends-on): Likewise.
40222         * modules/setlocale (Depends-on): Likewise.
40223         * modules/setsockopt (Depends-on): Likewise.
40224         * modules/shutdown (Depends-on): Likewise.
40225         * modules/sigaction (Depends-on): Likewise.
40226         * modules/signbit (Depends-on): Likewise.
40227         * modules/sigprocmask (Depends-on): Likewise.
40228         * modules/sinl (Depends-on): Likewise.
40229         * modules/sleep (Depends-on): Likewise.
40230         * modules/snprintf (Depends-on): Likewise.
40231         * modules/snprintf-posix (Depends-on): Likewise.
40232         * modules/socket (Depends-on): Likewise.
40233         * modules/sprintf-posix (Depends-on): Likewise.
40234         * modules/sqrtl (Depends-on): Likewise.
40235         * modules/stat (Depends-on): Likewise.
40236         * modules/strchrnul (Depends-on): Likewise.
40237         * modules/strdup-posix (Depends-on): Likewise.
40238         * modules/strerror (Depends-on): Likewise.
40239         * modules/strerror_r-posix (Depends-on): Likewise.
40240         * modules/strndup (Depends-on): Likewise.
40241         * modules/strnlen (Depends-on): Likewise.
40242         * modules/strptime (Depends-on): Likewise.
40243         * modules/strsep (Depends-on): Likewise.
40244         * modules/strsignal (Depends-on): Likewise.
40245         * modules/strstr-simple (Depends-on): Likewise.
40246         * modules/strtod (Depends-on): Likewise.
40247         * modules/strtoimax (Depends-on): Likewise.
40248         * modules/strtok_r (Depends-on): Likewise.
40249         * modules/strtoumax (Depends-on): Likewise.
40250         * modules/symlink (Depends-on): Likewise.
40251         * modules/symlinkat (Depends-on): Likewise.
40252         * modules/tanl (Depends-on): Likewise.
40253         * modules/tcgetsid (Depends-on): Likewise.
40254         * modules/tmpfile (Depends-on): Likewise.
40255         * modules/trunc (Depends-on): Likewise.
40256         * modules/truncf (Depends-on): Likewise.
40257         * modules/truncl (Depends-on): Likewise.
40258         * modules/uname (Depends-on): Likewise.
40259         * modules/unlink (Depends-on): Likewise.
40260         * modules/unlockpt (Depends-on): Likewise.
40261         * modules/unsetenv (Depends-on): Likewise.
40262         * modules/usleep (Depends-on): Likewise.
40263         * modules/utimensat (Depends-on): Likewise.
40264         * modules/vasprintf (Depends-on): Likewise.
40265         * modules/vdprintf (Depends-on): Likewise.
40266         * modules/vdprintf-posix (Depends-on): Likewise.
40267         * modules/vfprintf-posix (Depends-on): Likewise.
40268         * modules/vprintf-posix (Depends-on): Likewise.
40269         * modules/vsnprintf (Depends-on): Likewise.
40270         * modules/vsnprintf-posix (Depends-on): Likewise.
40271         * modules/vsprintf-posix (Depends-on): Likewise.
40272         * modules/wcrtomb (Depends-on): Likewise.
40273         * modules/wcscasecmp (Depends-on): Likewise.
40274         * modules/wcscspn (Depends-on): Likewise.
40275         * modules/wcsdup (Depends-on): Likewise.
40276         * modules/wcsncasecmp (Depends-on): Likewise.
40277         * modules/wcsnrtombs (Depends-on): Likewise.
40278         * modules/wcspbrk (Depends-on): Likewise.
40279         * modules/wcsrtombs (Depends-on): Likewise.
40280         * modules/wcsspn (Depends-on): Likewise.
40281         * modules/wcsstr (Depends-on): Likewise.
40282         * modules/wcstok (Depends-on): Likewise.
40283         * modules/wcswidth (Depends-on): Likewise.
40284         * modules/wctob (Depends-on): Likewise.
40285         * modules/wctomb (Depends-on): Likewise.
40286         * modules/wctype (Depends-on): Likewise.
40287         * modules/wcwidth (Depends-on): Likewise.
40288         * modules/write (Depends-on): Likewise.
40290 2011-05-03  Bruno Haible  <bruno@clisp.org>
40292         Support for conditional dependencies.
40293         * doc/gnulib.texi (Module description): Document the syntax of
40294         conditional dependencies.
40295         * gnulib-tool: New option --conditional-dependencies.
40296         (func_usage): Document it.
40297         (cond_dependencies): New variable.
40298         (func_get_automake_snippet_conditional,
40299         func_get_automake_snippet_unconditional): New functions, extracted from
40300         func_get_automake_snippet.
40301         (func_get_automake_snippet): Use them.
40302         (sed_first_32_chars): New variable.
40303         (func_module_shellfunc_name): New function.
40304         (func_module_shellvar_name): New function.
40305         (func_module_conditional_name): New function.
40306         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40307         func_cond_module_condition): New functions.
40308         (func_modules_transitive_closure): Add support for conditional
40309         dependencies.
40310         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40311         conditional automake snippet in an automake conditional.
40312         (func_emit_autoconf_snippets): Emit shell functions that contain the
40313         code for conditional modules.
40314         (func_import, func_create_testdir): Update specification.
40316 2011-05-03  Eric Blake  <eblake@redhat.com>
40318         test-getaddrinfo: report error information
40319         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40321 2011-05-03  Jim Meyering  <meyering@redhat.com>
40323         bootstrap: avoid build failure when $GZIP is set
40324         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40325         program name.  If defined at all, it is supposed to list gzip options.
40326         Reported by Alan Curry in http://debbugs.gnu.org/8609
40328 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40330         readme-release: new module with release instructions
40331         * modules/readme-release: New module.
40332         * top/README-release: New file, from coreutils, grep, diffutils.
40333         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40335 2011-05-02  Eric Blake  <eblake@redhat.com>
40337         fflush: also replace fclose when fixing fflush
40338         * modules/fflush (Depends-on): Add fclose.
40339         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40340         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40341         memstreams with no backing fd.
40342         * doc/posix-functions/fclose.texi (fclose): Document the use of
40343         fflush module to fix the bug.
40344         * tests/test-fclose.c (main): Relax test when fclose is used in
40345         isolation.
40347         fclose: add some tests
40348         * modules/fclose-tests: New test module.
40349         * tests/test-fclose.c: New file.
40350         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40352         fclose: reduced dependencies
40353         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40354         simpler lseek.
40355         * lib/fclose.c (rpl_fclose): Likewise.
40356         Reported by Simon Josefsson.
40358         exit: drop remaining clients
40359         * modules/argmatch (Depends-on): Replace exit with stdlib.
40360         * modules/copy-file (Depends-on): Likewise.
40361         * modules/execute (Depends-on): Likewise.
40362         * modules/exitfail (Depends-on): Likewise.
40363         * modules/obstack (Depends-on): Likewise.
40364         * modules/pagealign_alloc (Depends-on): Likewise.
40365         * modules/pipe-filter-gi (Depends-on): Likewise.
40366         * modules/pipe-filter-ii (Depends-on): Likewise.
40367         * modules/savewd (Depends-on): Likewise.
40368         * modules/spawn-pipe (Depends-on): Likewise.
40369         * modules/wait-process (Depends-on): Likewise.
40370         * modules/xsetenv (Depends-on): Likewise.
40371         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40372         * modules/git-merge-changelog (Depends-on): Likewise.
40373         * modules/long-options (Depends-on): Likewise.
40374         * modules/pt_chown (Depends-on): Likewise.
40375         * modules/sysexits (Depends-on): Likewise.
40377         freading: relax license from LGPLv3+ to LGPLv2+
40378         * modules/freading (License): Relax LGPL version.
40380 2011-05-02  Bruno Haible  <bruno@clisp.org>
40382         fchdir: Remove unused dependencies.
40383         * modules/fchdir (Depends-on): Remove include_next.
40385 2011-05-02  Bruno Haible  <bruno@clisp.org>
40387         gnulib-tool: Refactor.
40388         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40389         from func_emit_autoconf_snippets.
40390         (func_emit_autoconf_snippets): Use it.
40392 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40394         * NEWS: Document removal of 'exit'.
40395         * modules/exit: Remove file.
40397 2011-05-01  Bruno Haible  <bruno@clisp.org>
40399         Update DEPENDENCIES.
40400         * DEPENDENCIES (gettext): Recommend the newest release.
40401         Reported by Simon Josefsson.
40403 2011-05-01  Bruno Haible  <bruno@clisp.org>
40405         gnulib-tool: Reduce code duplication.
40406         * gnulib-tool (func_emit_autoconf_snippets): New function.
40407         (func_import, func_create_testdir): Use it.
40409 2011-04-30  Eric Blake  <eblake@redhat.com>
40411         fclose: don't fail on non-seekable input stream
40412         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40413         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40414         since fflush is allowed to fail in that case.
40416 2011-04-30  Bruno Haible  <bruno@clisp.org>
40418         dup3: cleanup
40419         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40421 2011-04-30  Bruno Haible  <bruno@clisp.org>
40423         netdb: Make it work in C++ mode.
40424         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40425         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40426         module.
40427         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40428         gl_MODULE_INDICATOR_FOR_TESTS.
40429         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40430         * modules/netdb-c++-tests: New file.
40431         * tests/test-netdb-c++.cc: New file.
40433 2011-04-30  Bruno Haible  <bruno@clisp.org>
40435         New modules 'vfscanf', 'vscanf'.
40436         * modules/vfscanf: New file.
40437         * modules/vscanf: New file.
40438         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40439         here.
40440         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40441         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40443 2011-04-30  Bruno Haible  <bruno@clisp.org>
40445         passfd: Add comments.
40446         * lib/passfd.c: Add comments about platforms.
40448 2011-04-30  Bruno Haible  <bruno@clisp.org>
40450         sys_uio: Make <sys/uio.h> self-contained.
40451         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40452         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40454 2011-04-30  Bruno Haible  <bruno@clisp.org>
40456         sys_socket: Ensure 'struct iovec' definition.
40457         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40458         <sys/socket.h>.
40459         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40461 2011-04-30  Bruno Haible  <bruno@clisp.org>
40463         sys_uio: Protect definition of 'struct iovec'.
40464         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40465         it as a C struct.
40467 2011-04-30  Bruno Haible  <bruno@clisp.org>
40469         manywarnings: fix indentation
40470         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40472 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40474         manywarnings: add -Wno-missing-field-initializers if needed.
40475         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40476         option if it's needed to allow initialization with { 0, }
40478 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40480         announce-gen: cosmetic improvement
40481         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40483 2011-04-29  Jim Meyering  <meyering@redhat.com>
40485         vc-list-files: indent with spaces, not TABs
40486         * build-aux/vc-list-files: Convert leading TABs to spaces,
40487         to match the style of most other files in gnulib.
40489         announce-gen: indent with spaces, not TABs
40490         * build-aux/announce-gen: Convert all TABs to spaces, to match
40491         the style of most other files in gnulib.
40493 2011-04-29  Eric Blake  <eblake@redhat.com>
40495         quotearg: avoid uninitialized variable use
40496         * lib/quotearg.c (quoting_options_from_style): Initialize
40497         remaining fields, and ensure that custom styles are only used via
40498         quoting_options rather than quoting_style.
40500 2011-04-29  Jim Meyering  <meyering@redhat.com>
40502         maint.mk: remove unused VC-tag variable
40503         * top/maint.mk (VC-tag): Remove unused variable.
40505 2011-04-29  Bruno Haible  <bruno@clisp.org>
40507         netdb: fix gai_strerror replacements
40508         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40509         * modules/netdb: Substitute it.
40511 2011-04-29  Jim Meyering  <meyering@redhat.com>
40513         test-getcwd.c: avoid new set-but-not-used warning
40514         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40515         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40516         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40517         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40519         test-hash.c: avoid a new shadowing warning
40520         * tests/test-hash.c (main): Don't shadow "dup".
40522 2011-04-28  Eric Blake  <eblake@redhat.com>
40524         getaddrinfo: fix gai_strerror signature
40525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40526         and work around mingw with UNICODE defined.
40527         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40528         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40529         * modules/netdb (Makefile.am): Substitute it.
40530         * lib/netdb.in.h (gai_strerror): Declare replacement.
40531         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40532         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40533         the fix.
40535         getsockopt: avoid compiler warning
40536         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40537         Reported by Matthias Bolte.
40539         tests: drop unused link dependency
40540         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40541         * modules/dirent-safer-tests (Makefile.am): Likewise.
40542         * modules/fdopendir-tests (Makefile.am): Likewise.
40543         * modules/mkfifoat-tests (Makefile.am): Likewise.
40544         * modules/openat-safer-tests (Makefile.am): Likewise.
40545         * modules/openat-tests (Makefile.am): Likewise.
40546         * modules/readlinkat-tests (Makefile.am): Likewise.
40547         * modules/symlinkat-tests (Makefile.am): Likewise.
40548         * modules/linkat-tests (Makefile.am): Likewise.
40549         (Depends-on): Switch to filenamecat-lgpl.
40550         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40551         LIBINTL.
40552         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40553         * tests/test-linkat.c (main): Don't require xalloc.
40555         hash, mgetgroups: drop xalloc dependency
40556         * lib/hash.c (includes): Adjust includes.
40557         * lib/mgetgroups.c (includes): Likewise.
40558         (xgetgroups): Move...
40559         * lib/xgetgroups.c: ...to new file.
40560         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40561         * modules/xgetgroups: New file, split from...
40562         * modules/mgetgroups: ...here.
40563         (Depends-on): Add xalloc-oversized.
40564         * modules/hash (Depends-on): Likewise.
40565         * modules/hash-tests (Depends-on): Drop xalloc.
40566         (test_hash_LDADD): Drop unused library.
40567         * tests/test-hash.c (main): Break xalloc dependency.
40568         (includes): Drop unused include.
40570         xalloc-oversized: new module
40571         * modules/xalloc-oversized: New module.
40572         * modules/xalloc (Depends-on): Add it.
40573         * lib/xalloc.h (xalloc_oversized): Move...
40574         * lib/xalloc-oversized.h: ...into new file.
40576         utimecmp: drop dependency on xmalloc
40577         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40578         due to memory pressure.
40579         * modules/utimecmp (Depends-on): Drop xalloc.
40581 2011-04-27  Eric Blake  <eblake@redhat.com>
40583         getcwd: fix mingw bugs
40584         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40585         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40586         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40588 2011-04-27  Bruno Haible  <bruno@clisp.org>
40590         mkstemps: Ensure declaration on MacOS X 10.5.
40591         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40592         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40593         MacOS X.
40595 2011-04-27  Bruno Haible  <bruno@clisp.org>
40597         mkstemp: More documentation.
40598         * doc/posix-functions/mkstemp.texi: Document header file problem on
40599         MacOS X.
40601 2011-04-27  Bruno Haible  <bruno@clisp.org>
40603         mkstemp: Tweak configure message when cross-compiling.
40604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40605         result as a guess.
40607 2011-04-27  Bruno Haible  <bruno@clisp.org>
40609         clean-temp: Clarify what it does.
40610         * lib/clean-temp.h: Add more comments.
40611         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40612         module.
40613         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40614         * doc/glibc-functions/mkstemps.texi: Likewise.
40615         * doc/glibc-functions/mkostemps.texi: Likewise.
40617 2011-04-27  Eric Blake  <eblake@redhat.com>
40619         fchdir: avoid extra chdir and fix test
40620         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40621         getcwd-lgpl.
40622         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40623         have to be canonical.
40624         (canonicalize_file_name): Drop unused macro.
40625         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40627         filenamecat-lgpl: fix licence
40628         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40629         when it was first created.
40631         linkat, renameat: add missing dependency
40632         * modules/linkat (Depends-on): Require getcwd-lgpl.
40633         * modules/renameat (Depends-on): Likewise.
40635         tests: reduce dependencies
40636         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40637         * tests/test-renameat.c (main): Likewise.
40638         * modules/linkat-tests (Depends-on): Relax dependency.
40639         * modules/renameat-tests (Depends-on): Likewise.
40640         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40641         dependency explicit.
40643         save-cwd: reduce default dependency
40644         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40645         * lib/save-cwd.c: Update comments.
40646         * NEWS: Document the semantic change.
40648         getcwd: enhance tests
40649         * tests/test-getcwd-lgpl.c: New file, taken from...
40650         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40651         repeat long path stress tests from m4 probe.
40652         * modules/getcwd-lgpl-tests: New module.
40653         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40654         * m4/getcwd-abort-bug.m4: Update comment.
40655         * m4/getcwd-path-max.m4: Likewise.
40657         getcwd-lgpl: new module
40658         * modules/getcwd-lgpl: New module.
40659         * lib/getcwd-lgpl.c: New file.
40660         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40661         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40662         * modules/getcwd (configure.ac): Set C witness.
40663         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40665         getcwd: tweak comments
40666         * m4/getcwd-abort-bug.m4: Fix comments.
40667         * m4/getcwd-path-max.m4: Likewise.
40668         * m4/getcwd.m4: Likewise.
40670 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40671         and Eric Blake  <eblake@redhat.com>
40673         mkstemp: replace if system version uses wrong permissions
40674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40675         read/write mode bits set in file created by mkstemp.
40676         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40678 2011-04-27  Eric Blake  <eblake@redhat.com>
40680         passfd: avoid compiler warning
40681         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40682         Reported by Laine Stump.
40684 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40686         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40687         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40689 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40690         and Eric Blake  <eblake@redhat.com>
40692         mkstemp: mention clean-temp module
40693         * lib/mkstemp.c: Add comment.
40694         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40696 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40698         inttypes: also provide default values for 32-bit tests
40699         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40700         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40702 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40704         strtoumax: remove dependency on strtoimax
40705         This is like the strtoull change of yesterday.
40706         * modules/strtoumax (Files): Add lib/strtoimax.c.
40707         (Depends-on): Remove strtoimax and add verify.
40709         inttypes-incomplete: new module
40710         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40711         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40712         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40713         of gl_INTTYPES_H.
40714         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40715         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40716         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40717         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40718         * modules/strtoumax, modules/xstrtol (Depends-on):
40719         Depend on inttypes-incomplete, not inttypes.
40720         * modules/inttypes-incomplete: New module, containing the contents
40721         of the old modules/inttypes module, except that the Files: section
40722         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40723         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40724         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40725         (Depends-on): Depend only on inttypes-incomplete.
40726         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40728         inttypes: omit now-redundant strtoimax and strtoumax work
40729         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40730         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40732         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40733         This supports apps that need pointers to strtoimax and strtoumax,
40734         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40735         nonexistent functions.  See
40736         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40737         et seq.
40738         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40739         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40740         a macro.
40741         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40743 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40745         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40747 2011-04-25  Bruno Haible  <bruno@clisp.org>
40749         strtol, strtoul: Mark modules as obsolete.
40750         * modules/strtol (Status, Notice): New sections.
40751         * modules/strtoul (Status, Notice): New sections.
40753 2011-04-25  Bruno Haible  <bruno@clisp.org>
40755         strtod: Remove check for strtod, unless supporting old platforms.
40756         * modules/strtod-obsolete: New file.
40757         * m4/strtod-obsolete.m4: New file.
40758         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40759         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40760         * modules/strtod (Depends-on): Add strtod-obsolete.
40761         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40763 2011-04-25  Bruno Haible  <bruno@clisp.org>
40765         strcase: Make module obsolete.
40766         * modules/strcase (Status, Notice): New sections.
40768 2011-04-25  Bruno Haible  <bruno@clisp.org>
40770         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40771         * modules/dup2-obsolete: New file.
40772         * m4/dup2-obsolete.m4: New file.
40773         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40774         gl_FUNC_DUP2_OBSOLETE is not also defined.
40775         * modules/dup2 (Depends-on): Add dup2-obsolete.
40776         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40778 2011-04-25  Bruno Haible  <bruno@clisp.org>
40780         strnlen: Avoid memchr related link error on old obsolete platforms.
40781         * modules/memchr-obsolete: New file.
40782         * m4/memchr-obsolete.m4: New file.
40783         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40784         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40785         * modules/memchr (Depends-on): Add memchr-obsolete.
40786         * modules/strnlen (Depends-on): Likewise.
40787         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40789 2011-04-25  Jim Meyering  <meyering@redhat.com>
40791         maint.mk: makefile_at_at_check extend and clean up
40792         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40793         in addition to */Makefile.am.
40794         Exempt legitimate uses of @VAR@ notation, e.g.,
40795         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40796         Remove obsolete coreutils-specific comment.
40797         Prompted by discussion here:
40798         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40800 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40802         strtoul: remove dependency on strtol
40803         This is so that 'configure' need not check for strtol merely because
40804         the application needs strtoul.
40805         * modules/strtoul (Files): Add lib/strtol.c.
40806         (Depends-on): Remove strtol.
40808         strtoull: remove dependency on strtoul
40809         This is like the strtoll change.
40810         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40811         (Depends-on): Remove strtoul.
40813         strtoll: remove dependency on strtol
40814         This is so that 'configure' need not check for strtol merely because
40815         the application needs strtoll.
40816         * modules/strtoll (Files): Add lib/strtol.c.
40817         (Depends-on): Remove strtol.
40819 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40821         inttypes: Move some configure check to module 'imaxdiv'.
40822         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40823         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40824         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40826 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40828         inttypes: Move some configure check to module 'imaxabs'.
40829         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40830         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40831         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40833 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40835         inttypes: Remove configure tests that are not needed since 2009-12-31.
40836         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40837         gl_cv_header_working_inttypes_h.
40839 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40841         * modules/strnlen (Depends-on): Remove memchr.
40842         The strnlen implementation doesn't need the memchr module's fixes; see
40843         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40845         strtol: remove dependency on wchar
40846         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40847         * modules/strtol (Depends-on): Remove wchar.
40849 2011-04-21  Eric Blake  <eblake@redhat.com>
40851         passfd: fix test regression on Linux
40852         * modules/passfd-tests (configure.ac): Correct socketpair check.
40854         passfd: speed up configure and drop unused code
40855         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40856         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40857         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40858         Instead of probing at configure for unix_scm_rights_bsd44_way,
40859         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40860         check to a struct member probe.
40861         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40862         (sendfd, recvfd): Update preprocessor checks.
40863         * modules/passfd (Files): Reflect rename, and drop unused file.
40864         (Depends-on): Drop unused dependency.
40866         passfd: allow compilation on mingw
40867         * modules/sys_socket (Depends-on): Add sys_uio.
40868         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40869         iovec and a minimal struct msghdr.
40870         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40871         * tests/test-sys_socket.c (main): Enhance test.
40872         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40873         guaranteed to provide what we need.
40874         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40875         * modules/passfd-tests (Depends-on): Add sys_wait.
40876         * tests/test-passfd.c (main): Skip test on mingw, for now.
40877         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40878         partial 'struct msghdr' implementation.
40880         sys_uio: new module
40881         * modules/sys_uio: New module.
40882         * modules/sys_uio-tests: Likewise.
40883         * lib/sys_uio.in.h: New file.
40884         * m4/sys_uio_h.m4: Likewise.
40885         * tests/test-sys_uio.c: Likewise.
40886         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40887         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40889 2011-04-20  Jim Meyering  <meyering@redhat.com>
40891         useless-if-before-free: avoid false-positive
40892         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40893         disjunct so that it too requires a terminating ";".  Without that,
40894         this script would identify as useless one statement from gcc that
40895         was not:
40896           if (aligned_ptr)
40897             free (((void **) aligned_ptr) [-1]);
40899 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40901         doc: update users.txt.
40902         * users.txt: Add barcode.
40904 2011-04-19  Bruno Haible  <bruno@clisp.org>
40906         ioctl: Remove link dependency on native Windows.
40907         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40908         (gl_close_fn, gl_ioctl_fn): New types.
40909         (struct fd_hook): Renamed from struct close_hook. Change type of
40910         private_close_fn field. Add private_ioctl_fn field.
40911         (close_hook_fn): Add parameter for primary close method.
40912         (execute_close_hooks, execute_all_close_hooks): Likewise.
40913         (ioctl_hook_fn): New type.
40914         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40915         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40916         argument.
40917         (unregister_fd_hook): Renamed from unregister_close_hook.
40918         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40919         Don't include <unistd.h>.
40920         (close): Remove undef.
40921         (anchor): Update.
40922         (execute_close_hooks): Add argument for primary close method.
40923         (execute_all_close_hooks): Likewise.
40924         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40925         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40926         argument. Allow each argument to be NULL.
40927         (unregister_fd_hook): Renamed from unregister_close_hook.
40928         * lib/close.c (rpl_close): Pass 'close' function pointer to
40929         execute_all_close_hooks.
40930         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40931         (primary_ioctl): New function.
40932         (ioctl): Don't call ioctlsocket here. Instead, call
40933         execute_all_ioctl_hooks.
40934         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40935         close method.
40936         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40937         (fd_sockets_hook): Renamed from close_sockets_hook.
40938         (gl_sockets_startup, gl_sockets_cleanup): Update.
40939         * modules/fd-hook: Renamed from modules/close-hook. Update.
40940         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40941         * modules/sockets (Depends-on): Likewise.
40942         * modules/ioctl (Depends-on): Add fd-hook.
40943         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40944         GNULIB_SOCKET.
40946 2011-04-19  Bruno Haible  <bruno@clisp.org>
40948         Move the support of O_NONBLOCK in open() to the 'open' module.
40949         * modules/nonblocking (Depends-on): Remove 'open'.
40950         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40951         gl_cv_have_open_O_NONBLOCK.
40952         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40953         O_NONBLOCK support.
40954         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40956 2011-04-17  Bruno Haible  <bruno@clisp.org>
40958         pipe2: Simplify code.
40959         * lib/pipe2.c (pipe2): Reduce code duplication.
40961 2011-04-17  Bruno Haible  <bruno@clisp.org>
40963         nonblocking: Add comment.
40964         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40966 2011-04-17  Bruno Haible  <bruno@clisp.org>
40968         nonblocking: Add tests for sockets.
40969         * tests/test-nonblocking-socket.sh: New file.
40970         * tests/test-nonblocking-socket-main.c: New file.
40971         * tests/test-nonblocking-socket-child.c: New file.
40972         * tests/test-nonblocking-socket.h: New file.
40973         * tests/socket-server.h: New file.
40974         * tests/socket-client.h: New file.
40975         * modules/nonblocking-socket-tests: New file.
40976         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40978 2011-04-17  Bruno Haible  <bruno@clisp.org>
40980         nonblocking: Add tests for pipes.
40981         * tests/test-nonblocking-pipe.sh: New file.
40982         * tests/test-nonblocking-pipe-main.c: New file.
40983         * tests/test-nonblocking-pipe-child.c: New file.
40984         * tests/test-nonblocking-pipe.h: New file.
40985         * tests/test-nonblocking-writer.h: New file.
40986         * tests/test-nonblocking-reader.h: New file.
40987         * tests/test-nonblocking-misc.h: New file.
40988         * modules/nonblocking-pipe-tests: New file.
40989         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40991 2011-04-16  Bruno Haible  <bruno@clisp.org>
40993         gettext: Clarify the needed programmer actions.
40994         * modules/gettext (Notice): New field.
40995         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40997 2011-04-16  Bruno Haible  <bruno@clisp.org>
40999         strchrnul: Tweak last commit.
41000         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41001         bug.
41002         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
41003         as in _GL_FUNCDECL_SYS.
41004         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
41005         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
41007 2011-04-15  Eric Blake  <eblake@redhat.com>
41009         strchrnul: work around cygwin bug
41010         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
41011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
41012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
41013         * modules/string (Makefile.am): Substitute it.
41014         * lib/string.in.h (strchrnul): Use it.
41016 2011-04-15  Bruno Haible  <bruno@clisp.org>
41018         Don't require lib/stdio-write.c when only module 'stdio' is used.
41019         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
41020         invocation.
41021         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
41023 2011-04-14  Bruno Haible  <bruno@clisp.org>
41025         Support non-blocking pipe I/O in read() on native Windows.
41026         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
41027         (read): New declaration.
41028         * lib/read.c: New file.
41029         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
41030         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
41031         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
41032         vscanf): New declarations.
41033         * lib/stdio-read.c: New file.
41034         * m4/read.m4: New file.
41035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
41036         REPLACE_READ.
41037         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
41038         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41039         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
41040         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
41041         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
41042         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41043         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41044         * modules/read: New file.
41045         * modules/nonblocking (Files): Add lib/stdio-read.c.
41046         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
41047         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
41048         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41049         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41050         * modules/pread (Depends-on): Add read.
41051         * modules/safe-read (Depends-on): Likewise.
41052         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
41053         gets, scanf, vfscanf, vscanf): Verify signatures.
41054         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
41055         problem with non-blocking pipes.
41056         * doc/posix-functions/fgetc.texi: Likewise.
41057         * doc/posix-functions/fgets.texi: Likewise.
41058         * doc/posix-functions/fread.texi: Likewise.
41059         * doc/posix-functions/fscanf.texi: Likewise.
41060         * doc/posix-functions/getc.texi: Likewise.
41061         * doc/posix-functions/getchar.texi: Likewise.
41062         * doc/posix-functions/gets.texi: Likewise.
41063         * doc/posix-functions/scanf.texi: Likewise.
41064         * doc/posix-functions/vfscanf.texi: Likewise.
41065         * doc/posix-functions/vscanf.texi: Likewise.
41067 2011-04-14  Bruno Haible  <bruno@clisp.org>
41069         Support non-blocking pipe I/O in write() on native Windows.
41070         * lib/write.c (rpl_write): Split a write request that failed merely
41071         because the byte count was larger than the pipe buffer's size.
41072         * doc/posix-functions/write.texi: Mention the problem with large byte
41073         counts.
41075 2011-04-14  Bruno Haible  <bruno@clisp.org>
41077         wchar: Ensure that wchar_t gets defined on uClibc.
41078         * lib/wchar.in.h: On uClibc, include <stddef.h>.
41079         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
41081 2011-04-13  Bruno Haible  <bruno@clisp.org>
41083         safe-write, full-read: Avoid unnecessary compilation units.
41084         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
41085         (Depends-on): Remove safe-read. Add ssize_t.
41086         * modules/full-read (Files): Add lib/full-write.c.
41087         (Depends-on): Add full-write.
41089 2011-04-13  Bruno Haible  <bruno@clisp.org>
41091         Support non-blocking pipe I/O and SIGPIPE in pwrite().
41092         * modules/pwrite (Depends-on): Add 'write'.
41094 2011-04-13  Bruno Haible  <bruno@clisp.org>
41096         Support non-blocking pipe I/O in write() on native Windows.
41097         * lib/unistd.in.h (write): Enable replacement also if
41098         GNULIB_UNISTD_H_NONBLOCKING is 1.
41099         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
41100         (rpl_write): When failing to write on a non-blocking pipe, change
41101         errno from ENOSPC to EAGAIN.
41102         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
41103         putchar, puts, vfprintf, vprintf): Enable replacement also if
41104         GNULIB_STDIO_H_NONBLOCKING is 1.
41105         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41106         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41107         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41108         CALL_WITH_SIGPIPE_EMULATION.
41109         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41110         * m4/nonblocking.m4: New file.
41111         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41112         for non-blocking I/O support.
41113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41114         GNULIB_UNISTD_H_NONBLOCKING.
41115         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41116         required for non-blocking I/O support.
41117         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41118         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41119         lib/stdio-write.c, m4/asm-underscore.m4.
41120         (Depends-on): Add stdio, unistd.
41121         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41122         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41123         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41124         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41125         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41126         problem with non-blocking pipes.
41127         * doc/posix-functions/fputc.texi: Likewise.
41128         * doc/posix-functions/fputs.texi: Likewise.
41129         * doc/posix-functions/fwrite.texi: Likewise.
41130         * doc/posix-functions/printf.texi: Likewise.
41131         * doc/posix-functions/putc.texi: Likewise.
41132         * doc/posix-functions/putchar.texi: Likewise.
41133         * doc/posix-functions/puts.texi: Likewise.
41134         * doc/posix-functions/vfprintf.texi: Likewise.
41135         * doc/posix-functions/vprintf.texi: Likewise.
41136         * doc/posix-functions/write.texi: Likewise.
41138 2011-04-10  Jim Meyering  <meyering@redhat.com>
41140         maint.mk: prohibit doubled words
41141         Detect them also when they're separated by a newline.
41142         There are 3 ways to customize it:
41143           - disable the test on a per file basis, as usual with rules using
41144             $(VC_LIST_EXCEPT)
41145           - replace the default doubled-word-selecting regexp (affects all files)
41146           - ignore a particular file-vs-doubled-word match
41147         I nearly used that last one to ignore the "is is" match in
41148         coreutils' NEWS file, since the text was "ls -is is ..."
41149         To do that, I would have added this line to cfg.mk:
41150           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41151         but it would have ignored any "is is" match in NEWS.
41152         Low probability, but still...
41153         Instead, I changed the text, slightly:
41154           -  ls -is is now consistent with ls -lis in ignoring values returned
41155           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41156         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41157         (prohibit_doubled_word_): Define.
41158         (sc_prohibit_doubled_word): New rule.
41159         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41161 2011-04-10  Jim Meyering  <meyering@redhat.com>
41163         maint: fix doubled-word typo in comment
41164         * m4/gethostname.m4: s/is is/it is/
41165         * m4/getdomainname.m4: Likewise.
41167 2011-04-10  Jim Meyering  <meyering@redhat.com>
41169         maint: remove doubled word: s/it it/it/
41170         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41172 2011-04-10  Jim Meyering  <meyering@redhat.com>
41174         maint.mk: remove useless semicolon and backslash
41175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41176         semicolon and backslash.
41178 2011-04-10  Bruno Haible  <bruno@clisp.org>
41180         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41181         * modules/stdint-tests (Depends-on): Add wchar.
41183 2011-04-10  Jim Meyering  <meyering@redhat.com>
41185         maint: remove doubled words in comments, e.g., s/a a/a/
41186         * lib/strptime.c (day_of_the_week): s/the the/the/
41187         * tests/test-chown.h (test_chown): s/a a/a/
41189         test-chown.h: correct a cast
41190         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41191         when the destination is a stat.st_gid.
41193 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41195         getaddrinfo: Fix test for sa_len member.
41196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41197         include <sys/types.h> before <sys/socket.h>.
41199 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41201         maint: change "can not" to "cannot"
41202         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41203         boundaries.
41205 2011-04-09  Jim Meyering  <meyering@redhat.com>
41207         maint: change "a a" to "a"
41208         * tests/test-lchown.h (test_lchown): s/a a/a/
41210         maint.mk: prohibit \<the the\>
41211         * top/maint.mk (sc_prohibit_the_the): New rule.
41213         maint: fix "the the" in comment
41214         * lib/count-one-bits.h: s/the the/the/
41216         maint: change "can not" to "cannot"
41217         But do not change the occurrences in maintain.texi or in
41218         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41219         * doc/gnulib-tool.texi: s/can not/cannot/
41220         * doc/posix-functions/accept.texi (accept): Likewise.
41221         * doc/posix-functions/socket.texi (socket): Likewise.
41222         * lib/mbrtowc.c: Likewise.
41224         maint.mk: prohibit use of "can not"
41225         * top/maint.mk (sc_prohibit_can_not): New rule.
41226         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41228 2011-04-09  Bruno Haible  <bruno@clisp.org>
41230         careadlinkat: Guard against misuse of careadlinkatcwd.
41231         * lib/careadlinkat.c: Include <stdlib.h>.
41232         (careadlinkatcwd): Check that the fd argument is as expected.
41234 2011-04-09  Bruno Haible  <bruno@clisp.org>
41236         careadlinkat: Use common coding style.
41237         * lib/careadlinkat.c: Move gnulib includes after system includes.
41239 2011-04-09  Bruno Haible  <bruno@clisp.org>
41241         careadlinkat: Clarify specification.
41242         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41243         (careadlinkatcwd): Add comment.
41244         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41246 2011-04-09  Bruno Haible  <bruno@clisp.org>
41248         areadlinkat: Avoid link error on many platforms.
41249         * modules/areadlinkat (Depends-on): Add areadlink.
41251 2011-04-09  Bruno Haible  <bruno@clisp.org>
41253         allocator, careadlinkat: Fix double-inclusion guard.
41254         * lib/allocator.h: Fix double-inclusion guard.
41255         * lib/careadlinkat.h: Likewise.
41257 2011-04-09  Bruno Haible  <bruno@clisp.org>
41259         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41260         * lib/relocwrapper.c: Update dependencies hierarchy.
41261         * build-aux/install-reloc: Update list of files to be compiled.
41262         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41263         lib/allocator.[hc].
41265 2011-04-08  Eric Blake  <eblake@redhat.com>
41267         strftime: silence gnulib-tool warning
41268         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41270 2011-04-08  Bruno Haible  <bruno@clisp.org>
41272         verify: Fix syntax error with GCC 4.6 in C++ mode.
41273         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41274         (HAVE_STATIC_ASSERT): New macro.
41275         (verify_true, verify): Use 'static_assert' if it is supported and
41276         '_Static_assert' is not supported.
41278 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41280         allocator: New module.
41281         * modules/allocator, lib/allocator.c: New files.
41282         * lib/allocator.h (stdlib_allocator): New decl.
41283         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41284         Remove.  Do not include <stdlib.h>.
41285         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41286         * modules/careadlinkat (Files): Remove lib/allocator.h.
41287         (Depends-on): Add allocator.
41289         stdlib: let modules use system malloc, realloc
41290         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41291         if !_GL_USE_STDLIB_ALLOC.
41292         (malloc, realloc): Limit this change to a smaller scope.
41294         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41295         (malloc, realloc): Don't #undef; no longer needed.
41296         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41297         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41298         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41299         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41300         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41301         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41302         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41303         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41305         careadlinkat: rename members to avoid problem
41306         * lib/allocator.h (struct allocator): Rename members from
41307         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41308         and realloc are #define'd.  Reported by Eric Blake in
41309         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41310         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41312 2011-04-08  Eric Blake  <eblake@redhat.com>
41314         nonblocking: reduce dependency
41315         * tests/test-nonblocking.c: Only test sockets when in use.
41316         * modules/nonblocking-tests (Depends-on): Drop socket.
41317         (Makefile.am): Link even if sockets are not present.
41318         * modules/pipe2-tests (Makefile.am): Likewise.
41319         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41321         pipe2: fix O_NONBLOCK support on mingw
41322         * modules/pipe2 (Depends-on): Add nonblocking.
41323         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41324         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41325         * tests/test-nonblocking.c (main): Likewise.
41326         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41328         fcntl-h: fix O_ACCMODE on cygwin
41329         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41330         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41332         pipe-filter: drop O_NONBLOCK workarounds
41333         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41334         * modules/pipe-filter-ii (Depends-on): Likewise.
41335         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41337         nonblocking: provide O_NONBLOCK for mingw
41338         * modules/nonblocking (Depends-on): Add open.
41339         (configure.ac): Set new witness macro.
41340         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41341         * modules/fcntl-h (Makefile.am): Substitute it.
41342         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41343         nonblocking module is in use.
41344         * lib/nonblocking.c: Adjust portability test.
41345         * lib/open.c (open): Don't let native open see gnulib flag.
41346         * tests/test-fcntl-h.c (main): Enhance test.
41347         * tests/test-open.h (test_open): Likewise.
41348         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41350         careadlinkat: fix compilation error on mingw
41351         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41352         within struct allocator.
41354 2011-04-06  Eric Blake  <eblake@redhat.com>
41356         binary-io: relicense under LGPLv2+
41357         * modules/binary-io (License): Relax to LGPLv2+.
41358         Requested for libvirt, and required by pipe2.
41360 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41362         verify: use _Static_assert if available
41363         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41364         (verify_true, verify): Use it if available.  This generates better
41365         diagnostics with GCC 4.6.0 and later.
41367 2011-04-05  Bruno Haible  <bruno@clisp.org>
41369         Remove leftover generated .h files after config.status changed.
41371         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41372         GL_GENERATE_ALLOCA_H.
41373         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41374         GL_GENERATE_ALLOCA_H evaluates to false.
41376         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41377         GL_GENERATE_ARGZ_H.
41378         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41379         evaluates to false.
41381         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41382         GL_GENERATE_BYTESWAP_H.
41383         * modules/byteswap (Makefile.am): Remove byteswap.h if
41384         GL_GENERATE_BYTESWAP_H evaluates to false.
41386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41387         GL_GENERATE_ERRNO_H.
41388         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41389         evaluates to false.
41391         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41392         GL_GENERATE_FLOAT_H.
41393         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41394         evaluates to false.
41396         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41397         GL_GENERATE_FNMATCH_H.
41398         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41399         GL_GENERATE_FNMATCH_H evaluates to false.
41401         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41402         GL_GENERATE_GLOB_H.
41403         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41404         evaluates to false.
41406         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41407         automake conditional GL_GENERATE_ICONV_H.
41408         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41409         evaluates to false.
41411         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41412         GL_GENERATE_NETINET_IN_H.
41413         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41414         GL_GENERATE_NETINET_IN_H evaluates to false.
41416         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41417         conditional GL_GENERATE_PTHREAD_H.
41418         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41419         * modules/pthread (Makefile.am): Remove pthread.h if
41420         GL_GENERATE_PTHREAD_H evaluates to false.
41422         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41423         GL_GENERATE_SCHED_H.
41424         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41425         evaluates to false.
41427         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41428         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41429         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41430         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41432         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41433         GL_GENERATE_STDARG_H.
41434         * modules/stdarg (Makefile.am): Remove stdarg.h if
41435         GL_GENERATE_STDARG_H evaluates to false.
41437         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41438         GL_GENERATE_STDBOOL_H.
41439         * modules/stdbool (Makefile.am): Remove stdbool.h if
41440         GL_GENERATE_STDBOOL_H evaluates to false.
41442         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41443         conditional GL_GENERATE_STDDEF_H.
41444         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41445         * modules/stddef (Makefile.am): Remove stddef.h if
41446         GL_GENERATE_STDDEF_H evaluates to false.
41448         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41449         GL_GENERATE_STDINT_H.
41450         * modules/stdint (Makefile.am): Remove stdint.h if
41451         GL_GENERATE_STDINT_H evaluates to false.
41453         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41454         GL_GENERATE_SYSEXITS_H.
41455         * modules/sysexits (Makefile.am): Remove sysexits.h if
41456         GL_GENERATE_SYSEXITS_H evaluates to false.
41458         Reported by Karl Berry and Ralf Wildenhues.
41460 2011-04-05  Bruno Haible  <bruno@clisp.org>
41462         Ensure to rebuild generated .h files when config.status has changed.
41463         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41464         config.status.
41465         * modules/ctype (Makefile.am): Likewise.
41466         * modules/dirent (Makefile.am): Likewise.
41467         * modules/errno (Makefile.am): Likewise.
41468         * modules/fcntl-h (Makefile.am): Likewise.
41469         * modules/float (Makefile.am): Likewise.
41470         * modules/getopt-posix (Makefile.am): Likewise.
41471         * modules/glob (Makefile.am): Likewise.
41472         * modules/iconv-h (Makefile.am): Likewise.
41473         * modules/inttypes (Makefile.am): Likewise.
41474         * modules/langinfo (Makefile.am): Likewise.
41475         * modules/locale (Makefile.am): Likewise.
41476         * modules/math (Makefile.am): Likewise.
41477         * modules/netdb (Makefile.am): Likewise.
41478         * modules/netinet_in (Makefile.am): Likewise.
41479         * modules/poll-h (Makefile.am): Likewise.
41480         * modules/pthread (Makefile.am): Likewise.
41481         * modules/pty (Makefile.am): Likewise.
41482         * modules/sched (Makefile.am): Likewise.
41483         * modules/search (Makefile.am): Likewise.
41484         * modules/selinux-h (Makefile.am): Likewise.
41485         * modules/signal (Makefile.am): Likewise.
41486         * modules/spawn (Makefile.am): Likewise.
41487         * modules/stdarg (Makefile.am): Likewise.
41488         * modules/stdbool (Makefile.am): Likewise.
41489         * modules/stddef (Makefile.am): Likewise.
41490         * modules/stdint (Makefile.am): Likewise.
41491         * modules/stdio (Makefile.am): Likewise.
41492         * modules/stdlib (Makefile.am): Likewise.
41493         * modules/string (Makefile.am): Likewise.
41494         * modules/strings (Makefile.am): Likewise.
41495         * modules/sys_file (Makefile.am): Likewise.
41496         * modules/sys_ioctl (Makefile.am): Likewise.
41497         * modules/sys_select (Makefile.am): Likewise.
41498         * modules/sys_socket (Makefile.am): Likewise.
41499         * modules/sys_stat (Makefile.am): Likewise.
41500         * modules/sys_time (Makefile.am): Likewise.
41501         * modules/sys_times (Makefile.am): Likewise.
41502         * modules/sys_utsname (Makefile.am): Likewise.
41503         * modules/sys_wait (Makefile.am): Likewise.
41504         * modules/sysexits (Makefile.am): Likewise.
41505         * modules/termios (Makefile.am): Likewise.
41506         * modules/time (Makefile.am): Likewise.
41507         * modules/unistd (Makefile.am): Likewise.
41508         * modules/wchar (Makefile.am): Likewise.
41509         * modules/wctype-h (Makefile.am): Likewise.
41510         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41512 2011-04-05  Bruno Haible  <bruno@clisp.org>
41514         pipe2: Relicense under LGPLv2+.
41515         * modules/pipe2 (License): Change to LGPLv2+.
41516         Requested by Eric Blake, for libvirt.
41518 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41520         bootstrap: compute gnulib_extra_files after updating build_aux
41521         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41522         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41524 2011-04-05  Eric Blake  <eblake@redhat.com>
41526         bootstrap: preserve git whitelist item sorting
41527         * build-aux/bootstrap (sort_patterns): New function.
41528         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41530 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41532         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41533         sc_space_tab check.
41535 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41537         areadlink, areadlinkat: rewrite in terms of careadlinkat
41538         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41539         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41540         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41541         (malloc, realloc): Remove #undefs.
41542         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41543         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41544         readlink, ssize_t, stdint, unistd.
41545         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41546         areadlink, stdint.
41548         careadlinkat: new module
41549         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41550         * modules/careadlinkat: New files, written by me with
41551         a review and feedback from Ben Pfaff in
41552         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41554 2011-04-01  Bruno Haible  <bruno@clisp.org>
41556         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41557         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41558         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41559         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41560         Reported by Bruce Korb <bruce.korb@gmail.com>.
41562 2011-04-01  Bruno Haible  <bruno@clisp.org>
41564         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41565         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41566         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41567         * modules/wcpcpy (Depends-on): Add extensions.
41568         * modules/wcpncpy (Depends-on): Likewise.
41569         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41570         systems.
41571         * doc/posix-functions/wcpncpy.texi: Likewise.
41572         * doc/posix-functions/wcwidth.texi: Likewise.
41574 2011-03-31  Eric Blake  <eblake@redhat.com>
41576         nonblocking: fix mingw test failures
41577         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41578         non-blocking flag on regular file.
41579         (get_nonblocking_flag): Set errno on invalid fd.
41580         * tests/test-nonblocking.c (main): Avoid test failure on
41581         directories if fchdir is not active.
41582         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41584 2011-03-31  Bruno Haible  <bruno@clisp.org>
41586         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41587         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41588         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41589         Reported by Simon Josefsson <simon@josefsson.org>.
41591 2011-03-31  Bruno Haible  <bruno@clisp.org>
41592         and Eric Blake  <eblake@redhat.com>
41594         nonblocking: new module
41595         * modules/nonblocking: New module.
41596         * modules/nonblocking-tests: Likewise.
41597         * lib/nonblocking.h: New file.
41598         * lib/nonblocking.c: Likewise.
41599         * tests/test-nonblocking.c: New test.
41600         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41602 2011-03-30  Bruno Haible  <bruno@clisp.org>
41604         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41605         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41606         instead of 'printf' format for GCC >= 4.4.
41607         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41608         (fprintf, printf, vfprintf, vprintf): Declare with
41609         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41610         the system's vfprintf() function.
41611         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41613 2011-03-30  Eric Blake  <eblake@redhat.com>
41615         passfd: fix scoping bug
41616         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41617         before sendmsg/recvmsg.
41619         passfd: standardize coding conventions
41620         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41621         can be learned at compile time.
41622         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41623         ifdefs.
41624         (sendfd, recvfd): Follow gnulib code conventions.
41626         passfd: fix incorrect sendmsg arguments
41627         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41628         incorrect msg_controllen value.
41629         * modules/passfd-tests (Depends-on): Check for alarm.
41630         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41631         Reported by Bastien ROUCARIES.
41633 2011-03-30  Bruno Haible  <bruno@clisp.org>
41635         c-strcasestr: Relicense under LGPLv2+.
41636         * modules/c-strcasestr (License): Change to LGPLv2+.
41637         Requested by Eric Blake, for libvirt.
41639 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41641         * users.txt: Add libidn2.  Fix libtasn1 link.
41643 2011-03-30  Jim Meyering  <meyering@redhat.com>
41645         tests: readlink* ("",... fails with EINVAL on newer kernels
41646         readlink and readlinkat have typically failed with ENOENT for
41647         the invalid, empty file name,  "".  However, with the advent
41648         of linux-2.6.39, they fail with EINVAL.
41649         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41650         when operating on the empty file name.
41651         * tests/test-readlink.h (test_readlink): Likewise.
41653 2011-03-29  Bruno Haible  <bruno@clisp.org>
41655         Relicense some modules under LGPLv2+, for libidn2.
41656         * modules/array-mergesort (License): Change to LGPLv2+.
41657         * modules/c-strcaseeq (License): Likewise.
41658         * modules/striconveh (License): Likewise.
41659         * modules/striconveha (License): Likewise.
41660         * modules/uniconv/base (License): Likewise.
41661         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41662         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41663         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41664         * modules/unictype/base (License): Likewise.
41665         * modules/unictype/bidiclass-of (License): Likewise.
41666         * modules/unictype/category-M (License): Likewise.
41667         * modules/unictype/category-none (License): Likewise.
41668         * modules/unictype/category-of (License): Likewise.
41669         * modules/unictype/category-test (License): Likewise.
41670         * modules/unictype/category-test-withtable (License): Likewise.
41671         * modules/unictype/combining-class (License): Likewise.
41672         * modules/unictype/joiningtype-of (License): Likewise.
41673         * modules/unictype/scripts (License): Likewise.
41674         * modules/uninorm/base (License): Likewise.
41675         * modules/uninorm/canonical-decomposition (License): Likewise.
41676         * modules/uninorm/composition (License): Likewise.
41677         * modules/uninorm/decompose-internal (License): Likewise.
41678         * modules/uninorm/decomposition-table (License): Likewise.
41679         * modules/uninorm/nfc (License): Likewise.
41680         * modules/uninorm/nfd (License): Likewise.
41681         * modules/uninorm/u32-normalize (License): Likewise.
41682         * modules/unistr/base (License): Likewise.
41683         * modules/unistr/u32-cpy (License): Likewise.
41684         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41685         * modules/unistr/u32-to-u8 (License): Likewise.
41686         * modules/unistr/u32-uctomb (License): Likewise.
41687         * modules/unistr/u8-check (License): Likewise.
41688         * modules/unistr/u8-mblen (License): Likewise.
41689         * modules/unistr/u8-mbtouc (License): Likewise.
41690         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41691         * modules/unistr/u8-mbtoucr (License): Likewise.
41692         * modules/unistr/u8-prev (License): Likewise.
41693         * modules/unistr/u8-strlen (License): Likewise.
41694         * modules/unistr/u8-to-u32 (License): Likewise.
41695         * modules/unistr/u8-uctomb (License): Likewise.
41696         * modules/unitypes (License): Likewise.
41697         Requested by Simon Josefsson.
41699 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41701         lib-symbol-visibility: Add a notice.
41702         * modules/lib-symbol-visibility (Notice): New field.
41704 2011-03-29  Bruno Haible  <bruno@clisp.org>
41706         getaddrinfo: Doc fix.
41707         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41708         section "fixed in Gnulib".
41710 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41712         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41713         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41715 2011-03-26  Bruno Haible  <bruno@clisp.org>
41717         unictype/property-byname: Reduce the number of load-time relocations.
41718         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41719         (UC_PROPERTY_INDEX_*): New enumeration values.
41720         (uc_property_byname): Convert an index from the lookup table to an
41721         uc_property_t.
41722         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41723         values.
41725 2011-03-26  Bruno Haible  <bruno@clisp.org>
41727         unictype/property-byname: Allow omitted word separators and aliases.
41728         * lib/unictype/pr_byname.gperf: Add property names without word
41729         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41730         for 'space'.
41732 2011-03-26  Bruno Haible  <bruno@clisp.org>
41734         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41735         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41736         also hyphens to space.
41737         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41738         without spaces.
41739         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41741 2011-03-26  Bruno Haible  <bruno@clisp.org>
41743         unictype/joiningtype-byname: Recognize long names as well.
41744         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41745         a long name.
41746         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41747         unictype/joiningtype_byname.h.
41748         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41749         * lib/unictype/joiningtype_byname.gperf: New file.
41750         * modules/unictype/joiningtype-byname (Files): Add
41751         lib/unictype/joiningtype_byname.gperf.
41752         (Depends-on): Add gperf.
41753         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41754         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41755         long names.
41757         Tests for module 'unictype/joiningtype-longname'.
41758         * modules/unictype/joiningtype-longname-tests: New file.
41759         * tests/unictype/test-joiningtype_longname.c: New file.
41761         New module 'unictype/joiningtype-longname'.
41762         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41763         * lib/unictype/joiningtype_longname.c: New file.
41764         * modules/unictype/joiningtype-longname: New file.
41765         * modules/unictype/joiningtype-all (Depends-on): Add
41766         unictype/joiningtype-longname.
41768 2011-03-26  Bruno Haible  <bruno@clisp.org>
41770         unictype/bidiclass-byname: Recognize long names as well.
41771         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41772         name.
41773         * lib/unictype/bidi_byname.c: Include <string.h>,
41774         unictype/bidi_byname.h.
41775         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41776         * lib/unictype/bidi_byname.gperf: New file.
41777         * modules/unictype/bidiclass-byname (Files): Add
41778         lib/unictype/bidi_byname.gperf.
41779         (Depends-on): Add gperf.
41780         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41781         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41782         long names.
41784         Tests for module 'unictype/bidiclass-longname'.
41785         * modules/unictype/bidiclass-longname-tests: New file.
41786         * tests/unictype/test-bidi_longname.c: New file.
41788         New module 'unictype/bidiclass-longname'.
41789         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41790         * lib/unictype/bidi_longname.c: New file.
41791         * modules/unictype/bidiclass-longname: New file.
41792         * modules/unictype/bidiclass-all (Depends-on): Add
41793         unictype/bidiclass-longname.
41795 2011-03-26  Bruno Haible  <bruno@clisp.org>
41797         unictype/bidi*: Rename modules.
41798         * modules/unictype/bidiclass-all: Renamed from
41799         modules/unictype/bidicategory-all.
41800         * modules/unictype/bidiclass-name: Renamed from
41801         modules/unictype/bidiclass-name.
41802         (Description): Update.
41803         * modules/unictype/bidiclass-name-tests: Renamed from
41804         modules/unictype/bidicategory-name-tests.
41805         * modules/unictype/bidiclass-byname: Renamed from
41806         modules/unictype/bidicategory-byname.
41807         (Description): Update.
41808         * modules/unictype/bidiclass-byname-tests: Renamed from
41809         modules/unictype/bidicategory-byname-tests.
41810         * modules/unictype/bidiclass-of: Renamed from
41811         modules/unictype/bidicategory-of.
41812         (Description): Update.
41813         * modules/unictype/bidiclass-of-tests: Renamed from
41814         modules/unictype/bidicategory-of-tests.
41815         * modules/unictype/bidiclass-test: Renamed from
41816         modules/unictype/bidicategory-test.
41817         (Description): Update.
41818         * modules/unictype/bidiclass-test-tests: Renamed from
41819         modules/unictype/bidicategory-test-tests.
41820         * modules/unictype/bidicategory-all: New file, a simple redirection.
41821         * modules/unictype/bidicategory-name: Likewise.
41822         * modules/unictype/bidicategory-byname: Likewise.
41823         * modules/unictype/bidicategory-of: Likewise.
41824         * modules/unictype/bidicategory-test: Likewise.
41825         * modules/unictype/property-bidi-* (Dependencies): Update.
41826         * lib/unictype/bidi_*.c: Update comment.
41828 2011-03-26  Bruno Haible  <bruno@clisp.org>
41830         unictype/bidi*: Rename functions, part 2.
41831         * modules/unictype/bidicategory-name (configure.ac): Update required
41832         libunistring version.
41833         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41835 2011-03-25  Bruno Haible  <bruno@clisp.org>
41837         New module 'unictype/combining-class-all'.
41838         * modules/unictype/combining-class-all: New file.
41840         Tests for module 'unictype/combining-class-byname'.
41841         * modules/unictype/combining-class-byname-tests: New file.
41842         * tests/unictype/test-combiningclass_byname.c: New file.
41844         New module 'unictype/combining-class-byname'.
41845         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41846         * lib/unictype/combiningclass_byname.c: New file.
41847         * lib/unictype/combiningclass_byname.gperf: New file.
41848         * modules/unictype/combining-class-byname: New file.
41850         Tests for module 'unictype/combining-class-longname'.
41851         * modules/unictype/combining-class-longname-tests: New file.
41852         * tests/unictype/test-combiningclass_longname.c: New file.
41854         New module 'unictype/combining-class-longname'.
41855         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41856         * lib/unictype/combiningclass_longname.c: New file.
41857         * modules/unictype/combining-class-longname: New file.
41859         Tests for module 'unictype/combining-class-name'.
41860         * modules/unictype/combining-class-name-tests: New file.
41861         * tests/unictype/test-combiningclass_name.c: New file.
41863         New module 'unictype/combining-class-name'.
41864         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41865         * lib/unictype/combiningclass_name.c: New file.
41866         * modules/unictype/combining-class-name: New file.
41868 2011-03-25  Bruno Haible  <bruno@clisp.org>
41870         unictype/combining-class: Rename source files.
41871         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41872         of unictype/combining.h.
41873         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41874         Update.
41875         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41876         * modules/unictype/combining-class (Description): Fix.
41877         (Files, Makefile.am): Update.
41878         * tests/unictype/test-combiningclass.c: Renamed from
41879         tests/unictype/test-combining.c.
41880         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41882 2011-03-25  Bruno Haible  <bruno@clisp.org>
41884         unictype: Update list of canonical combining classes.
41885         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41887 2011-03-25  Bruno Haible  <bruno@clisp.org>
41889         unictype/category-byname: Recognize long names as well.
41890         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41891         a long name.
41892         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41893         unictype/categ_byname.h.
41894         (UC_CATEGORY_INDEX_*): New enumeration values.
41895         (uc_general_category_byname): Use uc_general_category_lookup and
41896         convert from index to value.
41897         * lib/unictype/categ_byname.gperf: New file.
41898         * modules/unictype/category-byname (Files): Add
41899         lib/unictype/categ_byname.gperf.
41900         (Depends-on): Add gperf.
41901         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41902         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41903         long names.
41905         Tests for module 'unictype/category-longname'.
41906         * modules/unictype/category-longname-tests: New file.
41907         * tests/unictype/test-categ_longname.c: New file.
41909         New module 'unictype/category-longname'.
41910         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41911         * lib/unictype/categ_longname.c: New file.
41912         * modules/unictype/category-longname: New file.
41913         * modules/unictype/category-all (Depends-on): Add it.
41915 2011-03-25  Bruno Haible  <bruno@clisp.org>
41917         Tests for module 'unictype/category-LC'.
41918         * modules/unictype/category-LC-tests: New file.
41919         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41921         New module 'unictype/category-LC'.
41922         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41923         (UC_CATEGORY_LC): New declaration.
41924         (UC_CASED_LETTER): New macro.
41925         * lib/gen-uni-tables.c (is_category_LC): New function.
41926         (output_categories): Also handle category LC.
41927         (UC_CATEGORY_MASK_LC): New enumeration value.
41928         (general_category_byname): Also handle category LC.
41929         * lib/unictype/categ_LC.c: New file.
41930         * lib/unictype/categ_LC.h: New file, automatically generated.
41931         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41932         category LC.
41933         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41934         * modules/unictype/category-LC: New file.
41935         * modules/unictype/category-byname (Depends-on): Add
41936         unictype/category-LC.
41937         * modules/unictype/category-all (Depends-on): Likewise.
41939 2011-03-25  Eric Blake  <eblake@redhat.com>
41941         xmalloc: revert yesterday's regression
41942         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41943         realloc's underlying behavior (allowing allocation of zero-size
41944         objects, especially if malloc-gnu is also in use).
41946 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41948         maint.mk: add missing version to VC-tag
41949         * top/maint.mk: git tag was missing actual tag name; add it.
41951         valgrind: do leak checking, and exit with code 1 on error (not 0)
41952         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41953         to VALGRIND.
41955 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41957         posix-modules: say what it does.
41958         * posix-modules: Add a line to the --help output saying what it does.
41960 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41962         xmalloc: Do not leak if underlying realloc is C99 compatible.
41963         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41964         This avoids a leak on C99-based systems.  See
41965         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41967 2011-03-24  Eric Blake  <eblake@redhat.com>
41969         realloc: document portability problem
41970         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41971         passing 0 size to realloc.
41973 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41975         doc: update users.txt
41976         * users.txt: Add cvsps, tmpwatch
41978 2011-03-23  Matt Rice  <ratmice@gmail.com>
41980         doc: update users.txt
41981         * users.txt: Add gdb.
41983 2011-03-23  Jim Meyering  <meyering@redhat.com>
41985         doc: update users.txt
41986         Looking through matches up to the following URL (there are still
41987         several more pages), I found several projects that use gnulib:
41988         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41989         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41990         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41992 2011-03-22  Bruno Haible  <bruno@clisp.org>
41994         unictype/bidi*: Rename functions.
41995         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41996         uc_bidi_class, uc_is_bidi_class): New declarations.
41997         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41998         uc_bidi_category_byname.
41999         (uc_bidi_category_byname): New function.
42000         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
42001         u_bidi_category_name.
42002         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
42003         (uc_bidi_category_name): New function.
42004         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
42005         uc_bidi_category.
42006         (uc_bidi_category): New function.
42007         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
42008         uc_is_bidi_category. Invoke uc_bidi_class.
42009         (uc_is_bidi_category): New function.
42010         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
42011         instead of uc_bidi_category_byname.
42012         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
42013         instead of uc_bidi_category_name.
42014         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
42015         uc_bidi_category.
42016         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
42017         instead of uc_is_bidi_category.
42019 2011-03-21  Bruno Haible  <bruno@clisp.org>
42021         New module 'unictype/joininggroup-all'.
42022         * modules/unictype/joininggroup-all: New file.
42024         Tests for module 'unictype/joininggroup-of'.
42025         * modules/unictype/joininggroup-of-tests: New file.
42026         * tests/unictype/test-joininggroup_of.c: New file.
42027         * tests/unictype/test-joininggroup_of.h: New file, automatically
42028         generated by gen-uni-tables.
42030         New module 'unictype/joininggroup-of'.
42031         * modules/unictype/joininggroup-of: New file.
42032         * lib/unictype/joininggroup_of.c: New file.
42033         * lib/unictype/joininggroup_of.h: New file, automatically generated by
42034         gen-uni-tables.
42036         Tests for module 'unictype/joininggroup-byname'.
42037         * modules/unictype/joininggroup-byname-tests: New file.
42038         * tests/unictype/test-joininggroup_byname.c: New file.
42040         New module 'unictype/joininggroup-byname'.
42041         * modules/unictype/joininggroup-byname: New file.
42042         * lib/unictype/joininggroup_byname.c: New file.
42043         * lib/unictype/joininggroup_byname.gperf: New file.
42045         Tests for module 'unictype/joininggroup-name'.
42046         * modules/unictype/joininggroup-name-tests: New file.
42047         * tests/unictype/test-joininggroup_name.c: New file.
42049         New module 'unictype/joininggroup-name'.
42050         * modules/unictype/joininggroup-name: New file.
42051         * lib/unictype/joininggroup_name.c: New file.
42052         * lib/unictype/joininggroup_name.h: New file.
42054         New module 'unictype/joiningtype-all'.
42055         * modules/unictype/joiningtype-all: New file.
42057         Tests for module 'unictype/joiningtype-of'.
42058         * modules/unictype/joiningtype-of-tests: New file.
42059         * tests/unictype/test-joiningtype_of.c: New file.
42060         * tests/unictype/test-joiningtype_of.h: New file, automatically
42061         generated by gen-uni-tables.
42063         New module 'unictype/joiningtype-of'.
42064         * modules/unictype/joiningtype-of: New file.
42065         * lib/unictype/joiningtype_of.c: New file.
42066         * lib/unictype/joiningtype_of.h: New file, automatically generated by
42067         gen-uni-tables.
42069         Tests for module 'unictype/joiningtype-byname'.
42070         * modules/unictype/joiningtype-byname-tests: New file.
42071         * tests/unictype/test-joiningtype_byname.c: New file.
42073         New module 'unictype/joiningtype-byname'.
42074         * modules/unictype/joiningtype-byname: New file.
42075         * lib/unictype/joiningtype_byname.c: New file.
42077         Tests for module 'unictype/joiningtype-name'.
42078         * modules/unictype/joiningtype-name-tests: New file.
42079         * tests/unictype/test-joiningtype_name.c: New file.
42081         New module 'unictype/joiningtype-name'.
42082         * modules/unictype/joiningtype-name: New file.
42083         * lib/unictype/joiningtype_name.c: New file.
42085         unictype: Add support for Arabic shaping properties.
42086         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
42087         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
42088         declarations.
42089         (UC_JOINING_GROUP_*): New enumeration values.
42090         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
42091         declarations.
42092         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
42093         (unicode_joining_type): New variable.
42094         (UC_JOINING_GROUP_*): New enumeration values.
42095         (unicode_joining_group): New variable.
42096         (fill_arabicshaping, joining_type_as_c_identifier,
42097         output_joining_type_test, output_joining_type,
42098         joining_group_as_c_identifier, output_joining_group_test,
42099         output_joining_group): New functions.
42100         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
42101         fill_arabicshaping and output_joining_type_test, output_joining_type,
42102         output_joining_group_test, output_joining_group.
42103         Reported by Simon Josefsson.
42105 2011-03-21  Jim Meyering  <meyering@redhat.com>
42107         strftime: fix a bug in yesterday's change
42108         * lib/strftime.c (add): Accommodate width's initial value of -1.
42109         Otherwise, nstrftime would copy uninitialized data into
42110         the result buffer.
42112 2011-03-21  Jim Meyering  <meyering@redhat.com>
42114         tests: add strftime-tests module
42115         * tests/test-strftime.c: New file.
42116         * modules/strftime-tests: New module.
42118 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42120         strftime: don't assume a byte count fits in 'int'
42121         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42122         found this problem by static analysis, using gcc -Wstrict-overflow
42123         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42124         on an integer overflow having undefined behavior, but it turns out
42125         that the argument is a size, which might not fit in 'int' anyway,
42127 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42129         stdio: don't require ignore_value around fwrite
42131         This patch works around libc bug 11959
42132         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42133         Without this patch, applications must often write
42134         ignore_value (fwrite (...)) even though the ignore_value is
42135         not helpful here.  It's common to write many objects, using
42136         fwrite/printf/etc., and then use ferror to detect output error.
42138         I considered making this patch optional, but decided against it,
42139         because libc is obviously being inconsistent here: there is no
42140         reason libc should insist that user code must inspect fwrite
42141         return's value without also insisting that it inspect printf's,
42142         putchar's, etc.  If user code wants to have a strict style where
42143         all these functions' values are checked (so that ferror need not
42144         be checked), we could add support for that style in a new gnulib
42145         module, but in the meantime it's better to be consistent and to
42146         support common usage.
42148         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42149         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42150         that we are compiling in checking mode, and if not C++, and
42151         if not already wrapping fwrite for some other reason.
42152         (fwrite): #define to rpl_fwrite if the latter is defined.
42154 2011-03-20  Bruno Haible  <bruno@clisp.org>
42156         verror: Fix compilation error introduced on 2011-02-13.
42157         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42158         instead of __attribute__.
42159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42161 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42162             Bruno Haible  <bruno@clisp.org>
42164         socklen: do not depend on sys_socket
42165         While trying to modify Emacs to use gnulib's socklen module,
42166         I discovered a circular dependency: socklen depends on sys_socket
42167         and vice versa.  Emacs can use socklen, but it does not need
42168         sys_socket because it has its own substitute for sys/socket.h.
42169         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42170         gl_TYPE_SOCKLEN_T.
42171         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42172         gl_PREREQ_SYS_H_SOCKET.
42173         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42174         gl_PREREQ_SYS_H_SOCKET.
42175         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42176         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42177         * modules/socklen (Depends-on): Do not depend on sys_socket.
42178         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42180 2011-03-20  Jim Meyering  <meyering@redhat.com>
42182         maint.mk: sort file names *after* new transformation
42183         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42184         prefix would have led to an unwarranted failure in GNU parted.
42185         Sort after that transformation.
42187 2011-03-19  Jim Meyering  <meyering@redhat.com>
42189         maint.mk: fix po-file syntax-check rule
42190         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42191         Patch by Bruno Haible.
42193 2011-03-19  Bruno Haible  <bruno@clisp.org>
42195         socklen: Update comment.
42196         * m4/socklen.m4: Update comment about platforms.
42198 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42199             Bruno Haible  <bruno@clisp.org>
42201         inet_ntop, inet_pton: Simplify.
42202         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42203         documented to provide socklen_t and we already depend on sys_socket.
42204         * modules/inet_pton (Depends-on): Likewise.
42205         * lib/arpa_inet.in.h: Adjust comment.
42207 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42208             Bruno Haible  <bruno@clisp.org>
42210         netdb: Simplify.
42211         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42212         documented to provide socklen_t and we already depend on sys_socket.
42213         * lib/netdb.in.h: Adjust comment.
42215 2011-03-19  Bruno Haible  <bruno@clisp.org>
42217         sys_socket, netdb: Document problem with socklen_t.
42218         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42219         platforms.
42220         * doc/posix-headers/netdb.texi: Likewise.
42222 2011-03-18  Eric Blake  <eblake@redhat.com>
42224         maint.mk: let po check work in VPATH build
42225         * top/maint.mk (po_file): Allow cfg.mk override.
42226         (sc_po_check): Allow VPATH use.
42227         Reported by Jiri Denemark.
42229 2011-03-16  Jim Meyering  <meyering@redhat.com>
42231         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42232         Before, you would have had to create one .x-sc_ file per rule in order
42233         to exempt offending files.  Now, you may instead use a Make variable --
42234         usually defined in cfg.mk -- whose name identifies the affected rule.
42235         * top/maint.mk (_sc_excl): Define.
42236         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42237         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42239 2011-03-13  Bruno Haible  <bruno@clisp.org>
42241         ignore-value tests: Avoid warnings.
42242         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42243         empty for gcc < 3.4.
42245 2011-03-13  Bruno Haible  <bruno@clisp.org>
42247         passfd: Fix link error on Solaris.
42248         * modules/passfd (Description): Correct.
42249         (Depends-on): Add socketlib.
42250         (Link): New section.
42251         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42253 2011-03-13  Bruno Haible  <bruno@clisp.org>
42255         passfd: Fix link error on AIX 5.2.
42256         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42258 2011-03-13  Bruno Haible  <bruno@clisp.org>
42260         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42261         * lib/sys_socket.in.h: Include <stddef.h>.
42262         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42263         CMSG_FIRSTHDR. Remove unused variable.
42265 2011-03-13  Bruno Haible  <bruno@clisp.org>
42267         passfd: Fix compilation error on OpenBSD.
42268         * lib/passfd.c: Include <sys/uio.h>.
42270 2011-03-13  Bruno Haible  <bruno@clisp.org>
42272         passfd test: Fix warnings.
42273         * tests/test-passfd.c: Include <sys/wait.h>.
42274         (main): Fix typo.
42276 2011-03-13  Bruno Haible  <bruno@clisp.org>
42278         passfd module, part 4, tweaks.
42279         * tests/test-passfd.c: Reorder includes.
42280         (main): Fix perror and printf calls.
42282 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42284         passfd module, part 4.
42285         * modules/passfd-tests: New file.
42286         * tests/test-passfd.c: New file.
42288 2011-03-13  Jim Meyering  <meyering@redhat.com>
42290         Makefile: rely on GNU make; derive syntax-check rule names
42291         Rather than requiring that each sc_ rule be listed as a dependent
42292         of "check", use features of GNU make to derive the list.
42293         * Makefile (syntax-check-rules): Define.
42294         (check): Depend on the new variable, not the hard-coded list.
42296 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42297             Bruno Haible  <bruno@clisp.org>
42299         passfd module, part 3.
42300         * lib/passfd.h (recvfd): Add a flags argument.
42301         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42302         (recvfd): Add a flags argument.
42303         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42304         exists.
42305         * modules/passfd (Depends-on): Add cloexec.
42306         Suggested by Eric Blake.
42308 2011-03-13  Bruno Haible  <bruno@clisp.org>
42310         passfd module, part 2, tweaks.
42311         * modules/passfd (Files): Reorder.
42312         (Depends-on): Remove errno.
42313         (Include): Remove <sys/socket.h>, <sys/un.h>.
42314         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42315         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42316         specification header. Include <sys/socket.h> always. Don't include
42317         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42318         (sendfd): Clarify that it sets errno when it fails.
42319         (recvfd): Fix specification.
42321 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42323         passfd module, part 2.
42324         * modules/passfd: New file.
42325         * lib/passfd.h: New file.
42326         * lib/passfd.c: New file.
42328 2011-03-12  Bruno Haible  <bruno@clisp.org>
42330         wcswidth, mbswidth: Avoid integer overflow.
42331         * lib/wcswidth.c: Include <limits.h>.
42332         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42333         * lib/mbswidth.c: Include <limits.h>.
42334         (mbsnwidth): Avoid 'int' overflow.
42335         Reported by Jim Meyering.
42337 2011-03-12  Bruno Haible  <bruno@clisp.org>
42339         futimens, utimensat: Avoid endless recursion on Solaris 10.
42340         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42341         Solaris.
42342         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42343         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42345 2011-03-11  Jim Meyering  <meyering@redhat.com>
42347         maint.mk: relax a regexp to accommodate other formatting styles
42348         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42349         between "ngettext" and the following "(".
42351 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42353         maint.mk: suppress a false positive warning
42354         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42355         diagnostics are marked with ngettext.
42357 2011-03-10  Eric Blake  <eblake@redhat.com>
42359         wchar: add explicit dependencies, for Tru64
42360         * modules/mbmemcasecoll (Depends-on): Add wchar.
42361         * modules/mbtowc (Depends-on): Likewise.
42362         * modules/vasnprintf (Depends-on): Likewise.
42363         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42364         * modules/wctomb (Depends-on): Likewise.
42365         Reported by Peter O'Gorman.
42367 2011-03-08  Bruno Haible  <bruno@clisp.org>
42369         passfd module, part 1, tweaks.
42370         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42371         Improve indentation. Improve AC_MSG_CHECKING messages.
42372         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42373         gl_SOCKET_FAMILIES.
42375 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42377         passfd module, part 1.
42378         * m4/afunix.m4: New file.
42379         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42380         sockets.
42382 2011-03-08  Bruno Haible  <bruno@clisp.org>
42384         regex-quote: New API.
42385         * lib/regex-quote.h: Include <stdbool.h>.
42386         (struct regex_quote_spec): New type.
42387         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42388         New declarations.
42389         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42390         'const struct regex_quote_spec *' argument.
42391         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42392         (pcre_special): New constant.
42393         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42394         New functions.
42395         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42396         'const struct regex_quote_spec *' argument.
42397         * modules/regex-quote (Depends-on): Add stdbool.
42398         * tests/test-regex-quote.c (check): Update for new API. Add test for
42399         anchored results.
42400         * NEWS: Mention the API change.
42401         Reported by Reuben Thomas and Eric Blake.
42403 2011-03-06  Bruno Haible  <bruno@clisp.org>
42405         regex-quote: Fix creation of POSIX extended regular expressions.
42406         * lib/regex-quote.c (ere_special): Add grouping and alternation
42407         operators.
42409 2011-03-05  Bruno Haible  <bruno@clisp.org>
42411         doc: Improve doc regarding autopoint vs. gnulib.
42412         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42413         disable autopoint while running autoreconf.
42414         Suggested by Ralf Wildenhues.
42416 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42418         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42419         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42421 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42423         parse-duration: remove xalloc.h dependency
42424         * lib/parse-duration.c (parse_period): handle NULL return from
42425         strdup instead of calling xstrdup().
42426         * modules/parse-duration: remove "xalloc" dependency
42428 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42430         bootstrap: honor m4_base when running aclocal
42431         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42433 2011-03-02  Jim Meyering  <meyering@redhat.com>
42435         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42436         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42437         on request from Matt Booth.
42439 2011-03-01  Eric Blake  <eblake@redhat.com>
42441         test-link: work on Hurd
42442         * tests/test-link.h (test_link): Hurd rejects linking directories
42443         with EISDIR instead of the POSIX-mandated EPERM.
42445 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42447         stdio: simplify by moving files to printf-posix, sigpipe
42448         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42449         since this symbol is needed only if printf is replaced.
42450         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42451         Require gl_ASM_SYMBOL_PREFIX.
42452         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42453         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42454         (Depends-on): Add 'raise'.
42455         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42456         * modules/stdio (Files): Remove lib/stdio-write.c,
42457         m4/asm-underscore.m4.
42458         (Depends-on): Remove 'raise'.
42460         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42461         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42462         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42463         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42465 2011-02-28  Bruno Haible  <bruno@clisp.org>
42467         localcharset: Assume ANSI C behaviour of free().
42468         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42469         calling free().
42470         Suggested by Simon Josefsson <simon@josefsson.org>.
42472 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42473             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42474             Bruno Haible  <bruno@clisp.org>  (tiny change)
42476         On Cygwin, use /proc file system instead of win32 API.
42477         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42478         Win32 file names.
42479         (DllMain): Simplify by removing Cygwin specific code.
42480         (find_shared_library_fullname): Use Linux specific implementation also
42481         for Cygwin.
42482         (get_shared_library_fullname): Update accordingly.
42483         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42484         Win32 file names.
42485         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42486         Cygwin specific code.
42488 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42489             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42491         Fix OpenMP flag detection for various Fortran compilers.
42492         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42493         OpenMP-conditional compilation construct, to force compile
42494         failure with missing OpenMP flag.
42495         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42497 2011-02-25  Eric Blake  <eblake@redhat.com>
42499         strstr: expand test coverage
42500         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42501         compilation.
42502         * tests/test-memmem.c (main): Duplicate tests.
42503         * tests/test-strcasestr.c (main): Likewise.
42504         * tests/test-c-strcasestr.c (main): Likewise.
42506 2011-02-25  Jim Meyering  <meyering@redhat.com>
42508         maint.mk: detect missing-NL-at-EOF, too
42509         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42510         it also detects when a file lacks a newline at EOF.
42511         (require_exactly_one_NL_at_EOF_): Renamed from
42512         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42513         since people may well have .x-sc_... file names tied to the
42514         existing name.  Suggested by Eric Blake.
42516 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42518         dirname: move m4/dos.m4 functionality into lib/dosname.h
42520         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42521         extracts symbols from it, puts them into config.h; but it's much
42522         easier to use the symbols directly.  filename.h already does this,
42523         but it disagrees with dos.m4 in some respects.  This patch
42524         introduces a different include file dosname.h that packages up
42525         dos.m4, and then later we can work on merging filename.h and
42526         dosname.h.  Applications that need only the easy-to-configure
42527         symbols should consider including dosname.h rather than dirname.h.
42528         * NEWS: Mention incompatible changes.
42529         * m4/dos.m4: Remove.
42530         * lib/dosname.h, modules/dosname: New files.
42531         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42532         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42533         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42534         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42535         Include dosname.h, not dirname.h.
42536         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42537         Include dosname.h, for definitions of symbols like ISSLASH
42538         that used to be in config.h.
42539         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42541         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42542         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42543         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42544         * modules/rmdir (Files): Likewise.
42545         * modules/stat (Files): Likewise.
42546         * modules/unlink (Files): Likewise.
42547         * modules/dirname-lgpl (Depends-on): Add dosname.
42548         * modules/lstat (Depends-on): Likewise.
42549         * modules/openat (Depends-on): Likewise.
42550         * modules/rmdir (Depends-on): Likewise.
42551         * modules/savewd (Depends-on): Likewise.
42552         * modules/stat (Depends-on): Likewise.
42553         * modules/unlink (Depends-on): Likewise.
42554         * modules/openat (Depends-on): Remove dirname-lgpl.
42555         * modules/savewd (Depends-on): Likewise.
42556         * tests/test-dirname.c: Do not use removed symbols like
42557         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42558         the remaining symbols, e.g., ISSLASH ('\\').
42560 2011-02-25  Eric Blake  <eblake@redhat.com>
42562         strstr: revert patches that introduced bug and pessimization
42563         * lib/str-two-way.h: Add another reference.
42564         (two_way_short_needle, two_way_long_needle): Revert changes from
42565         2011-02-24; they pessimize search speed.
42566         (critical_factorization): Partially revert changes from
42567         2010-06-22; they violate the requirement that the left half of the
42568         needle be smaller than the period of the needle.
42570 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42572         filenamecat: remove unnecessary dependency on dirname-lgpl
42573         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42574         is no direct dependency, just an indirect one via filenamecat-lgpl.
42576         remove: remove unnecessary use of m4/dos.m4
42577         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42578         * modules/remove (FILES): Remove m4/dos.m4.
42580         * lib/openat-proc.c: Don't include dirname.h; not needed.
42582         backupfile: remove unnecessary use of m4/dos.m4
42583         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42584         of its symbols are used by the backupfile code.  backupfile.c does
42585         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42586         for the rare case of programs that want all their backup file
42587         names to live within 8+3 limits, and dos.m4 doesn't address that.
42588         * modules/backupfile (Files): Remove m4/dos.m4.
42590 2011-02-24  Jim Meyering  <meyering@redhat.com>
42592         strstr: fix a bug whereby strstr would mistakenly return NULL
42593         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42594         in period calculation.
42595         (two_way_long_needle): Likewise.
42596         The original problem was reported by Mike Stump in
42597         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42598         Ralf Wildenhues provided the short needle and haystack.
42599         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42600         Add a more involved test to trigger the bug in two_way_long_needle.
42602 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42604         gnulib-tool: remove use of bold display in help screen
42605         * gnulib-tool (func_usage): Do not use bold display anymore in the
42606         help screen.  That was just meant to be a temporary emphasis for a
42607         backward-incompatible change.
42609 2011-02-23  Bruno Haible  <bruno@clisp.org>
42611         Fix misindentation of preprocessor directives.
42612         * lib/argp-namefrob.h: Reindent preprocessor directives.
42613         * lib/getopt_int.h (struct _getopt_data): Likewise.
42614         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42615         * lib/vasnprintf.c (decode_long_double): Likewise.
42616         * tests/test-argmatch.c: Insert blank lines, for clarity.
42617         * tests/test-exclude.c: Likewise.
42619 2011-02-22  Bruno Haible  <bruno@clisp.org>
42621         ioctl: Fix for MacOS X in 64-bit mode.
42622         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42623         value.
42624         Suggested by Eric Blake.
42625         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42627 2011-02-22  Jim Meyering  <meyering@redhat.com>
42629         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42630         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42631         in lib/.
42633 2011-02-22  Eric Blake  <eblake@redhat.com>
42635         maint: avoid any CDPATH issue
42636         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42638         maint: adjust cpp indentation for my modules, as well
42639         * Makefile (sc_cpp_indent_check): Add my name.
42640         * lib/fbufmode.c: Filter through cppi.
42641         * lib/fpurge.c: Likewise.
42642         * lib/freadable.c: Likewise.
42643         * lib/freading.c: Likewise.
42644         * lib/fwritable.c: Likewise.
42645         * lib/fwriting.c: Likewise.
42646         * lib/sigaction.c: Likewise.
42648 2011-02-22  Jim Meyering  <meyering@redhat.com>
42650         maint: adjust cpp indentation to reflect nesting depth
42651         I.e., in a block of code that begins with an unnested "#if",
42652         put one space between the "#" in column 1 and following token.
42653         For example,
42654         -#include <sys/vfs.h>
42655         +# include <sys/vfs.h>
42656         Do this only in .c files that are part of a module I maintain.
42657         * lib/linkat.c: Filter through cppi.
42658         * lib/nanosleep.c: Likewise.
42659         * lib/openat.c: Likewise.
42660         * lib/openat-die.c: Likewise.
42661         * lib/dup3.c: Likewise.
42662         * lib/fchownat.c: Likewise.
42663         * lib/flock.c: Likewise.
42664         * lib/fsync.c: Likewise.
42665         * lib/fts.c: Likewise.
42666         * lib/getpass.c: Likewise.
42667         * lib/gettimeofday.c: Likewise.
42668         * lib/userspec.c: Likewise.
42669         * Makefile (sc_cpp_indent_check): New rule, to check this.
42671 2011-02-22  Bruno Haible  <bruno@clisp.org>
42673         New module 'wctomb'.
42674         * lib/stdlib.in.h (wctomb): New declaration.
42675         * lib/wctomb.c: New file.
42676         * lib/wctomb-impl.h: New file.
42677         * m4/wctomb.m4: New file.
42678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42679         REPLACE_WCTOMB.
42680         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42681         REPLACE_WCTOMB.
42682         * modules/wctomb: New file.
42683         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42684         * doc/posix-functions/wctomb.texi: Mention the new module.
42685         * modules/wctob (Depends-on): Add wctomb.
42687 2011-02-22  Bruno Haible  <bruno@clisp.org>
42689         New module 'mbtowc'.
42690         * lib/stdlib.in.h (mbtowc): New declaration.
42691         * lib/mbtowc.c: New file.
42692         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42693         * m4/mbtowc.m4: New file.
42694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42695         REPLACE_MBTOWC.
42696         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42697         REPLACE_MBTOWC.
42698         * modules/mbtowc: New file.
42699         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42700         * doc/posix-functions/mbtowc.texi: Mention the new module.
42701         * modules/btowc (Depends-on): Add mbtowc.
42703 2011-02-22  Bruno Haible  <bruno@clisp.org>
42705         wcrtomb: Add more tests for native Windows platforms.
42706         * tests/test-wcrtomb-w32-1.sh: New file.
42707         * tests/test-wcrtomb-w32-2.sh: New file.
42708         * tests/test-wcrtomb-w32-3.sh: New file.
42709         * tests/test-wcrtomb-w32-4.sh: New file.
42710         * tests/test-wcrtomb-w32-5.sh: New file.
42711         * tests/test-wcrtomb-w32.c: New file.
42712         * modules/wcrtomb-tests (Files): Add them.
42713         (Makefile.am): Arrange to run these tests.
42714         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42715         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42717 2011-02-20  Bruno Haible  <bruno@clisp.org>
42719         wcrtomb: Enhance test.
42720         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42722 2011-02-20  Bruno Haible  <bruno@clisp.org>
42724         mbrtowc: Tiny optimization.
42725         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42727 2011-02-20  Jim Meyering  <meyering@redhat.com>
42729         test-exclude.c: remove unmatched #endif
42730         * tests/test-exclude.c: Remove stray #endif, left over from
42731         the change of a week ago.
42733 2011-02-19  Jim Meyering  <meyering@redhat.com>
42735         git-version-gen: skip "-dirty" check when appropriate
42736         * build-aux/git-version-gen: Don't run any git commands when the
42737         version string comes from .tarball-version.  Prior to this, we
42738         would run git update-index --refresh even from a just-unpacked
42739         tarball directory, and that could affect a .git/ directory in a
42740         parent of the build directory.  Reported by Mike Frysinger.
42742 2011-02-19  Bruno Haible  <bruno@clisp.org>
42744         unictype/property-byname: Reduce the size of the 'data' segment.
42745         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42747 2011-02-19  Bruno Haible  <bruno@clisp.org>
42749         unictype/scripts: Reduce the size of the 'data' segment.
42750         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42751         '%pic'.
42752         * lib/unictype/scripts_byname.gperf: Regenerated.
42754 2011-02-19  Bruno Haible  <bruno@clisp.org>
42756         stdint: Update documentation.
42757         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42759 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42761         stdint: omit redundant check for wchar.h
42762         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42763         always tests whether wchar.h exists, so remove the now-redundant test.
42765 2011-02-18  Bruno Haible  <bruno@clisp.org>
42767         stdint: Cut dependency to module 'wchar'.
42768         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42769         include the necessary prerequisites.
42770         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42771         * modules/stdint (Depends-on): Remove wchar.
42772         (Makefile.am): Substitute HAVE_WCHAR_H.
42773         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42775 2011-02-18  Eric Blake  <eblake@redhat.com>
42777         longlong: skip, rather than fail, on cross-compilation
42778         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42779         when cross-compiling; regression from 2011-02-16.
42781 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42783         * NEWS: Mention 2011-02-08 change to stdlib.
42785 2011-02-17  Bruno Haible  <bruno@clisp.org>
42787         getloadavg: Add comments about platforms.
42788         * m4/getloadavg.m4: Add comment.
42789         * lib/getloadavg.c: Likewise.
42791 2011-02-17  Bruno Haible  <bruno@clisp.org>
42793         getloadavg: Fix link error on Solaris 2.6.
42794         * modules/getloadavg (Link): New section.
42795         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42796         linking test-getloadavg.
42797         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42798         getloadavg.
42800 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42802         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42803         It was 'int', but this doesn't match the IRIX 6.5 manual.
42804         Suggested by Bruno Haible in
42805         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42807 2011-02-17  Bruno Haible  <bruno@clisp.org>
42809         havelib: Fix comments.
42810         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42811         change.
42813 2011-02-17  Bruno Haible  <bruno@clisp.org>
42815         havelib: Update config.rpath.
42816         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42818 2011-02-17  Bruno Haible  <bruno@clisp.org>
42820         getloadavg test: Add some plausibility checks.
42821         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42822         is improbable.
42824 2011-02-16  Eric Blake  <eblake@redhat.com>
42826         maintainer-makefile: make syntax-check a no-op from tarballs
42827         * top/maint.mk (no-vc-detected): New rule.
42828         (local-checks-available): Use it to avoid hanging if someone tries
42829         'make syntax-check' from a tarball.  Also append to any non-syntax
42830         checks already defined in cfg.mk.
42832 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42834         longlong: tune, particularly for common case of c99
42836         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42837         or running anything if c99, or if unsigned long long int does not
42838         work.  In either case, we know the answer without further tests.
42839         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42840         it at most once, and use its results for both long long int and
42841         unsigned long long int.  This is more likely to be efficient in
42842         the common case where the program wants to check for both long
42843         long int and unsigned long long int.
42844         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42845         since the answer is already known.
42847 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42849         getloadavg: set errno
42850         * lib/getloadavg.c: Set errno when returning -1.  If no other
42851         error number looks appropriate, set it to ENOSYS if the getloadavg
42852         looks like it can't possibly ever work, ENOTSUP otherwise.
42853         Suggested by Bruno Haible in
42854         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42856         getloadavg: trim unused parts and speed up 'configure'
42857         * NEWS: Document this.
42858         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42859         always compiled if getloadavg is absent.
42860         Move test code to ...
42861         * tests/test-getloadavg.c: New file, containing previous
42862         contents of test from lib/getloadavg.c.  It also contains
42863         suggestions by Bruno Haible in
42864         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42865         * modules/getloadavg-tests: New file.
42866         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42867         Do tests in the same order as they're needed for getloadavg.c.
42868         Omit setgid-related tests that generate symbols KMEM_GROUP,
42869         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42870         Do only the tests that are needed to see whether the system has
42871         getloadavg, moving the other tests into ...
42872         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42873         NLIST_NAME_UNION; nobody should be using it.  Do not define
42874         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42875         relevant, as the user of this module shouldn't care how getloadavg
42876         is implemented.
42878         getloadavg: omit unused var
42879         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42881 2011-02-15  Jim Meyering  <meyering@redhat.com>
42883         doc: update users.txt
42884         * users.txt: Update iwhd's URL.
42886 2011-02-13  Bruno Haible  <bruno@clisp.org>
42888         Consistent macro naming for macros that use GCC __attribute__.
42889         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42890         _ATTRIBUTE_NONNULL_.
42891         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42892         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42893         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42894         ATTRIBUTE_DEPRECATED.
42895         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42896         ATTRIBUTE_NORETURN.
42897         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42898         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42899         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42900         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42901         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42902         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42903         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42904         ATTRIBUTE_SENTINEL.
42905         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42906         ATTRIBUTE_RETURN_CHECK.
42907         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42908         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42909         ATTRIBUTE_NORETURN.
42910         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42911         Reported by Paul Eggert.
42913 2011-02-13  Bruno Haible  <bruno@clisp.org>
42915         Don't interfere with a program's definition of __attribute__.
42916         * lib/argp.h (__attribute__): Remove definition.
42917         (_GL_ATTRIBUTE_FORMAT): New macro.
42918         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42919         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42920         (_GL_ATTRIBUTE_FORMAT): New macro.
42921         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42922         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42923         GCC 3 or newer.
42924         * lib/error.h (__attribute__): Remove definition.
42925         (_GL_ATTRIBUTE_FORMAT): New macro.
42926         (error, error_at_line): Use it.
42927         * lib/hash.h (__attribute__): Remove definition.
42928         (ATTRIBUTE_WUR): Update definition. Define always.
42929         * lib/openat.h (__attribute__): Remove definition.
42930         (ATTRIBUTE_NORETURN): Update definition. Define always.
42931         * lib/sigpipe-die.h (__attribute__): Remove definition.
42932         (ATTRIBUTE_NORETURN): Update definition. Define always.
42933         * lib/vasnprintf.h (__attribute__): Remove definition.
42934         (_GL_ATTRIBUTE_FORMAT): New macro.
42935         (asnprintf, vasnprintf): Use it.
42936         * lib/xalloc.h (__attribute__): Remove definition.
42937         (ATTRIBUTE_NORETURN): Update definition. Define always.
42938         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42939         * lib/xmemdup0.h (__attribute__): Remove definition.
42940         (ATTRIBUTE_NORETURN): Update definition. Define always.
42941         * lib/xprintf.h (__attribute__): Remove definition.
42942         (_GL_ATTRIBUTE_FORMAT): New macro.
42943         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42944         * lib/xstrtol.h (__attribute__): Remove definition.
42945         (ATTRIBUTE_NORETURN): Update definition. Define always.
42946         * lib/xvasprintf.h (__attribute__): Remove definition.
42947         (_GL_ATTRIBUTE_FORMAT): New macro.
42948         (xasprintf, xvasprintf): Use it.
42949         * tests/test-argmatch.c (__attribute__): Remove definition.
42950         (ATTRIBUTE_NORETURN): Update definition. Define always.
42951         * tests/test-exclude.c (__attribute__): Remove definition.
42952         (ATTRIBUTE_NORETURN): Update definition. Define always.
42953         Reported by Paul Eggert.
42955 2011-02-13  Bruno Haible  <bruno@clisp.org>
42957         mbrtowc: Add more tests for native Windows platforms.
42958         * tests/test-mbrtowc-w32-1.sh: New file.
42959         * tests/test-mbrtowc-w32-2.sh: New file.
42960         * tests/test-mbrtowc-w32-3.sh: New file.
42961         * tests/test-mbrtowc-w32-4.sh: New file.
42962         * tests/test-mbrtowc-w32-5.sh: New file.
42963         * tests/test-mbrtowc-w32.c: New file.
42964         * modules/mbrtowc-tests (Files): Add them.
42965         (Makefile.am): Arrange to run these tests.
42966         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42967         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42969 2011-02-13  Bruno Haible  <bruno@clisp.org>
42971         mbrtowc: Work around native Windows bug.
42972         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42973         guess when no suitable locale for testing was found.
42974         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42976 2011-02-13  Bruno Haible  <bruno@clisp.org>
42978         mbsinit: Work around mingw bug.
42979         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42980         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42981         Windows.
42982         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42984 2011-02-13  Bruno Haible  <bruno@clisp.org>
42986         mbsinit: Don't crash for a NULL argument.
42987         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42988         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42990 2011-02-13  Bruno Haible  <bruno@clisp.org>
42992         Don't interfere with a program's definition of __attribute__.
42993         * lib/stdio.in.h (__attribute__): Remove definition.
42994         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42995         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42996         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42997         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42998         * lib/string.in.h (__attribute__): Remove definition.
42999         Reported by Paul Eggert.
43001 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43003         stdlib: don't get in the way of non-GCC __attribute__
43004         See thread starting at
43005         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
43006         Revert previous stdlib change, installing the following instead:
43007         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
43008         to get in the way of a non-GCC compiler that supports __attribute__.
43009         (_GL_ATTRIBUTE_RETURN): New macro.
43010         (_Exit): Use it instead of __attribute__.
43012 2011-02-12  Bruno Haible  <bruno@clisp.org>
43014         quotearg test: Avoid test failure on mingw.
43015         * tests/test-quotearg.sh: Convert the locale identifier from native
43016         Windows syntax to Unix syntax.
43018 2011-02-12  Bruno Haible  <bruno@clisp.org>
43020         setlocale: Prefer gnulib's override over libintl's override.
43021         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
43022         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
43023         GNULIB_defined_setlocale is set.
43025 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43027         stdlib: support non-GCC __attribute__
43029         Fix a serious and tricky problem encountered when attempting to
43030         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
43031         5.5, but it crashed due to memory corruption on Solaris 10 with
43032         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
43033         bits that are otherwise zero.  This tagging is optional inside
43034         Emacs but is preferred and is used when __attribute__ ((__aligned
43035         (8))) works, as it does with both recent-enough GCC and with Sun C
43036         5.11.  However, Sun C 5.11 is not GCC and does not #define
43037         __GNUC__ and __GNUC_MINOR__.
43039         When I added the getloadavg module to Emacs, it brought in
43040         stdlib.in.h, which contained this fragment:
43042            #ifndef __attribute__
43043            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
43044            #  define __attribute__(Spec)   /* empty */
43045            # endif
43046            #endif
43048         When files that include <stdlib.h> were compiled with Sun C 5.11,
43049         the above code disabled __attribute__ ((__aligned (8))), which
43050         caused variables to not be properly aligned, which eventually led
43051         to the pointer corruption mentioned above.  (This was a bit hard
43052         to diagnose, unfortunately.)
43054         Several "#define __attribute__(X) /* empty */" code snippets need
43055         to be eradicated from Gnulib to work with non-GCC compilers that
43056         support __attribute__.  The Autoconf way to do this is to test for
43057         each kind of attribute that we want support for, and selectively
43058         enable that in source code.
43060         Fix this problem just for stdlib.h, by adding a test for the
43061         __noreturn__ attribute, and change stdlib.in.h to use that test
43062         when needed.  This technique can be easily generalized to the
43063         other *.in.h files and attributes, and a similar technique can be
43064         used for *.h and *.c files.  This patch is enough to solve the
43065         problem for Emacs + getloadavg, and I thought I'd publish it for
43066         feedback before undertaking further, similar fixes in other
43067         modules.
43069         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
43070         because it's not needed for stdlib.h.  It merely substitutes the
43071         value directly into stdlib.h.  We may well need to #define it, or
43072         similar symbols, for other modules, but it's nice to also have an
43073         option to not #define it for applications like Emacs that do not
43074         need it.
43076         * lib/stdlib.in.h (__attribute__): Do not #define.
43077         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
43078         be defined only if the _Exit module is also used.
43079         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
43080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
43081         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
43082         platforms.
43083         * modules/_Exit (Files): Add m4/attribute.m4.
43084         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
43085         * m4/attribute.m4: New file.
43087 2011-02-12  Bruno Haible  <bruno@clisp.org>
43089         wcsrtombs: Work around bug on native Windows.
43090         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
43091         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
43092         instead of len.
43093         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
43095 2011-02-12  Bruno Haible  <bruno@clisp.org>
43097         mbsrtowcs: Work around bug on native Windows.
43098         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
43099         against mingw bug.
43100         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
43102 2011-02-12  Bruno Haible  <bruno@clisp.org>
43104         Avoid setlocale bugs in tests.
43105         * modules/btowc (Dependencies): Add setlocale.
43106         * modules/c-strcase (Dependencies): Likewise.
43107         * modules/mbmemcasecmp (Dependencies): Likewise.
43108         * modules/mbmemcasecoll (Dependencies): Likewise.
43109         * modules/mbrtowc (Dependencies): Likewise.
43110         * modules/mbscasecmp (Dependencies): Likewise.
43111         * modules/mbscasestr (Dependencies): Likewise.
43112         * modules/mbschr (Dependencies): Likewise.
43113         * modules/mbscspn (Dependencies): Likewise.
43114         * modules/mbsinit (Dependencies): Likewise.
43115         * modules/mbsncasecmp (Dependencies): Likewise.
43116         * modules/mbsnrtowcs (Dependencies): Likewise.
43117         * modules/mbspbrk (Dependencies): Likewise.
43118         * modules/mbspcasecmp (Dependencies): Likewise.
43119         * modules/mbsrchr (Dependencies): Likewise.
43120         * modules/mbsrtowcs (Dependencies): Likewise.
43121         * modules/mbsspn (Dependencies): Likewise.
43122         * modules/mbsstr (Dependencies): Likewise.
43123         * modules/nl_langinfo (Dependencies): Likewise.
43124         * modules/quotearg (Dependencies): Likewise.
43125         * modules/unicase/locale-language (Dependencies): Likewise.
43126         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43127         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43128         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43129         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43130         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43131         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43132         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43133         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43134         * modules/vasnprintf-posix (Dependencies): Likewise.
43135         * modules/wcrtomb (Dependencies): Likewise.
43136         * modules/wcsnrtombs (Dependencies): Likewise.
43137         * modules/wcsrtombs (Dependencies): Likewise.
43139 2011-02-12  Bruno Haible  <bruno@clisp.org>
43141         setlocale: Workaround native Windows bug.
43142         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43143         succeeds but sets LC_CTYPE to "C", report a failure.
43144         * tests/test-setlocale2.sh: New file.
43145         * tests/test-setlocale2.c: New file.
43146         * modules/setlocale-tests (Files): Add the new files.
43147         (Makefile.am): Enable test-setlocale2.sh test.
43148         * doc/posix-functions/setlocale.texi: Mention workaround.
43150 2011-02-11  Bruno Haible  <bruno@clisp.org>
43152         Tests for module 'setlocale'.
43153         * modules/setlocale-tests: New file.
43154         * tests/test-setlocale1.sh: New file.
43155         * tests/test-setlocale1.c: New file.
43157         New module 'setlocale'.
43158         * lib/locale.in.h (setlocale): New declaration.
43159         * lib/setlocale.c: New file, based on
43160         gettext/gettext-runtime/intl/setlocale.c.
43161         * m4/setlocale.m4: New file.
43162         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43163         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43164         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43165         REPLACE_SETLOCALE.
43166         * modules/setlocale: New file.
43167         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43168         * doc/posix-functions/setlocale.texi: Mention the new module.
43170 2011-02-11  Bruno Haible  <bruno@clisp.org>
43172         Prepare for locale dependent tests on mingw.
43173         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43174         because it has the wrong locale encoding.
43175         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43176         French_France.1252 instead of "fr".
43177         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43178         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43179         because it has the wrong locale encoding.
43180         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43181         native Windows, try Turkish_Turkey.65001.
43182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43183         Chinese_China.54936.
43185         Prepare for locale dependent tests on mingw.
43186         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43187         differently.
43188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43189         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43193 2011-02-11  Eric Blake  <eblake@redhat.com>
43195         strptime: avoid compiler warnings
43196         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43197         compiler warnings about dead code.
43198         Reported by Daniel P. Berrange.
43200 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43202         doc: update users.txt
43203         * users.txt: Add rcs.
43205 2011-02-10  John W. Eaton  <jwe@gnu.org>
43207         doc: update users.txt
43208         * users.txt: Add octave.
43210 2011-02-10  Jim Meyering  <meyering@redhat.com>
43212         doc: update users.txt
43213         * users.txt: Add iwhd.
43215 2011-02-09  Bruno Haible  <bruno@clisp.org>
43217         gnulib-tool: Make copyright notice adjustment more robust.
43218         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43219         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43220         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43221         License".
43222         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43224 2011-02-06  Bruno Haible  <bruno@clisp.org>
43226         New module 'towctrans'.
43227         * modules/towctrans: New file.
43228         * lib/wctype.in.h (towctrans): New declaration.
43229         * lib/towctrans.c: New file.
43230         * lib/towctrans-impl.h: New file.
43231         * m4/towctrans.m4: New file.
43232         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43233         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43234         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43235         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43236         * doc/posix-functions/towctrans.texi: Mention the new module.
43238 2011-02-06  Bruno Haible  <bruno@clisp.org>
43240         New module 'wctrans'.
43241         * modules/wctrans: New file.
43242         * lib/wctype.in.h (wctrans): New declaration.
43243         * lib/wctrans.c: New file.
43244         * lib/wctrans-impl.h: New file.
43245         * m4/wctrans.m4: New file.
43246         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43247         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43248         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43249         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43250         * doc/posix-functions/wctrans.texi: Mention the new module.
43252 2011-02-06  Bruno Haible  <bruno@clisp.org>
43254         New module 'iswctype'.
43255         * modules/iswctype: New file.
43256         * lib/wctype.in.h (iswctype): New declaration.
43257         * lib/iswctype.c: New file.
43258         * lib/iswctype-impl.h: New file.
43259         * m4/iswctype.m4: New file.
43260         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43261         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43262         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43263         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43264         * doc/posix-functions/iswctype.texi: Mention the new module and the
43265         HP-UX 11.00 problem.
43267 2011-02-06  Bruno Haible  <bruno@clisp.org>
43269         New module 'wctype'.
43270         * modules/wctype: Change to represent the wctype() substitute.
43271         * lib/wctype.in.h (wctype): New declaration.
43272         * lib/wctype.c: New file.
43273         * lib/wctype-impl.h: New file.
43274         * m4/wctype.m4: New file.
43275         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43276         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43277         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43278         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43279         * doc/posix-functions/wctype.texi: Mention the new module and the
43280         HP-UX 11.00 problem.
43282 2011-02-06  Bruno Haible  <bruno@clisp.org>
43284         wctype-h: Ensure wctype_t and wctrans_t are defined.
43285         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43286         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43287         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43288         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43289         HAVE_WCTRANS_T.
43290         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43292 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43294         flock: fix license typo
43296         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43297         omitted.
43299 2011-02-08  Bruno Haible  <bruno@clisp.org>
43301         Split large sed scripts, for HP-UX sed.
43302         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43303         to avoid HP-UX limit of 99 commands, in the near future.
43304         * modules/stdlib (Makefile.am): Likewise.
43305         * modules/unistd (Makefile.am): Likewise.
43306         * modules/wchar (Makefile.am): Likewise.
43307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43308         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43309         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43311 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43312             Bruno Haible  <bruno@clisp.org>
43314         stdlib: improve random_r modularization
43315         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43316         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43317         you also need the random_r module to get this material right.
43318         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43319         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43320         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43322 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43324         stdlib: don't depend on stdint
43325         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43326         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43327         be independent of whether stdint.h is needed.
43328         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43329         here, instead of ...
43330         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43331         struct random_data should be using the random_r module, not just
43332         the stdlib module (which wouldn't make sense: what package needs
43333         just struct random_data without also needing random_r?).
43334         * modules/stdlib (Depends-on): Remove stdint.
43336         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43337         See the thread rooted at
43338         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43339         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43340         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43341         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43342         __VMS)); previously it was always included (via fcntl--.h).
43343         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43344         hand; this is good enough for load averages.  Also, do not use
43345         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43346         flags directly if available and don't bother otherwise.  (Packages
43347         that need the extra reliability should use the modules that define
43348         these flags on older platforms that lack them.)
43349         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43350         fcntl-safer.
43352 2011-02-08  Jim Meyering  <meyering@redhat.com>
43354         di-set.h, ino-map.h: add multiple-inclusion guard
43355         Technically, the guard is required only for ino-map.h, due to its
43356         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43357         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43358         * lib/ino-map.h: Likewise.
43360 2011-02-06  Bruno Haible  <bruno@clisp.org>
43362         iswblank: Ensure declaration on glibc systems.
43363         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43364         * modules/iswblank (Dependencies): Add 'extensions'.
43365         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43367 2011-02-06  Bruno Haible  <bruno@clisp.org>
43369         New module 'iswblank'.
43370         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43371         * modules/iswblank: New file.
43372         * modules/wctype-h (Files): Remove lib/iswblank.c.
43373         (Makefile.am): Substitute GNULIB_ISWBLANK.
43374         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43375         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43376         (gl_WCTYPE_H_DEFAULTS): New macro.
43377         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43378         * modules/iswblank-tests: New file.
43379         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43380         * tests/test-wctype-h.c (main): Remove iswblank tests.
43381         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43382         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43383         of 'wctype-h'.
43384         * NEWS: Mention the change.
43385         * modules/mbchar (Depends-on): Add iswblank.
43387 2011-02-08  Bruno Haible  <bruno@clisp.org>
43389         di-set tests: Refactor.
43390         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43391         unnecessary includes.
43392         (ASSERT): Remove macro.
43393         (main): Make C90 compliant by avoiding variable declaration after
43394         statement.
43395         * modules/di-set-tests (Files): Add tests/macros.h.
43397 2011-02-08  Bruno Haible  <bruno@clisp.org>
43399         ino-map tests: Refactor.
43400         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43401         unnecessary includes.
43402         (ASSERT): Remove macro.
43403         (main): Make C90 compliant by avoiding variable declaration after
43404         statement.
43405         * modules/ino-map-tests (Files): Add tests/macros.h.
43407 2011-02-08  Jim Meyering  <meyering@redhat.com>
43409         di-set: add "const" to a cast
43410         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43411         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43413 2011-02-06  Bruno Haible  <bruno@clisp.org>
43415         Rename module 'wctype' to 'wctype-h'.
43416         * modules/wctype-h: Renamed from modules/wctype.
43417         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43418         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43419         (Files, Depends-on, Makefile.am): Update.
43420         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43421         (Files, Makefile.am): Update.
43422         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43423         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43424         * doc/posix-headers/wctype.texi: Update.
43425         * doc/posix-functions/iswalnum.texi: Update.
43426         * doc/posix-functions/iswalpha.texi: Update.
43427         * doc/posix-functions/iswblank.texi: Update.
43428         * doc/posix-functions/iswcntrl.texi: Update.
43429         * doc/posix-functions/iswdigit.texi: Update.
43430         * doc/posix-functions/iswgraph.texi: Update.
43431         * doc/posix-functions/iswlower.texi: Update.
43432         * doc/posix-functions/iswprint.texi: Update.
43433         * doc/posix-functions/iswpunct.texi: Update.
43434         * doc/posix-functions/iswspace.texi: Update.
43435         * doc/posix-functions/iswupper.texi: Update.
43436         * doc/posix-functions/iswxdigit.texi: Update.
43437         * doc/posix-functions/towlower.texi: Update.
43438         * doc/posix-functions/towupper.texi: Update.
43439         * NEWS: Mention the change.
43440         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43441         * modules/mbchar (Dependencies): Likewise.
43442         * modules/mbswidth (Dependencies): Likewise.
43443         * modules/quotearg (Dependencies): Likewise.
43444         * modules/regex (Dependencies): Likewise.
43445         * modules/wcscasecmp (Dependencies): Likewise.
43446         * modules/wcsncasecmp (Dependencies): Likewise.
43447         * modules/wcwidth (Dependencies): Likewise.
43449 2011-02-06  Bruno Haible  <bruno@clisp.org>
43451         New module 'wcswidth'.
43452         * modules/wcswidth: New file.
43453         * lib/wchar.in.h (wcswidth): New declaration.
43454         * lib/wcswidth.c: New file.
43455         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43456         * m4/wcswidth.m4: New file.
43457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43459         REPLACE_WCSWIDTH.
43460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43461         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43462         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43463         * doc/posix-functions/wcswidth.texi: Mention the new module.
43465 2011-02-06  Bruno Haible  <bruno@clisp.org>
43467         New module 'wcstok'.
43468         * modules/wcstok: New file.
43469         * lib/wchar.in.h (wcstok): New declaration.
43470         * lib/wcstok.c: New file.
43471         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43472         * m4/wcstok.m4: New file.
43473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43476         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43477         * doc/posix-functions/wcstok.texi: Mention the new module.
43479 2011-02-06  Bruno Haible  <bruno@clisp.org>
43481         New module 'wcsstr'.
43482         * modules/wcsstr: New file.
43483         * lib/wchar.in.h (wcsstr): New declaration.
43484         * lib/wcsstr.c: New file.
43485         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43486         * m4/wcsstr.m4: New file.
43487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43490         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43491         * doc/posix-functions/wcsstr.texi: Mention the new module.
43493 2011-02-06  Bruno Haible  <bruno@clisp.org>
43495         New module 'wcspbrk'.
43496         * modules/wcspbrk: New file.
43497         * lib/wchar.in.h (wcspbrk): New declaration.
43498         * lib/wcspbrk.c: New file.
43499         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43500         * m4/wcspbrk.m4: New file.
43501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43504         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43505         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43507 2011-02-06  Bruno Haible  <bruno@clisp.org>
43509         New module 'wcsspn'.
43510         * modules/wcsspn: New file.
43511         * lib/wchar.in.h (wcsspn): New declaration.
43512         * lib/wcsspn.c: New file.
43513         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43514         * m4/wcsspn.m4: New file.
43515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43518         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43519         * doc/posix-functions/wcsspn.texi: Mention the new module.
43521 2011-02-06  Bruno Haible  <bruno@clisp.org>
43523         New module 'wcscspn'.
43524         * modules/wcscspn: New file.
43525         * lib/wchar.in.h (wcscspn): New declaration.
43526         * lib/wcscspn.c: New file.
43527         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43528         * m4/wcscspn.m4: New file.
43529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43532         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43533         * doc/posix-functions/wcscspn.texi: Mention the new module.
43535 2011-02-06  Bruno Haible  <bruno@clisp.org>
43537         New module 'wcsrchr'.
43538         * modules/wcsrchr: New file.
43539         * lib/wchar.in.h (wcsrchr): New declaration.
43540         * lib/wcsrchr.c: New file.
43541         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43542         * m4/wcsrchr.m4: New file.
43543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43546         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43547         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43549 2011-02-06  Bruno Haible  <bruno@clisp.org>
43551         New module 'wcschr'.
43552         * modules/wcschr: New file.
43553         * lib/wchar.in.h (wcschr): New declaration.
43554         * lib/wcschr.c: New file.
43555         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43556         * m4/wcschr.m4: New file.
43557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43560         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43561         * doc/posix-functions/wcschr.texi: Mention the new module.
43563 2011-02-06  Bruno Haible  <bruno@clisp.org>
43565         New module 'wcsdup'.
43566         * modules/wcsdup: New file.
43567         * lib/wchar.in.h (wcsdup): New declaration.
43568         * lib/wcsdup.c: New file.
43569         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43570         * m4/wcsdup.m4: New file.
43571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43574         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43575         * doc/posix-functions/wcsdup.texi: Mention the new module.
43577 2011-02-06  Bruno Haible  <bruno@clisp.org>
43579         New module 'wcsxfrm'.
43580         * modules/wcsxfrm: New file.
43581         * lib/wchar.in.h (wcsxfrm): New declaration.
43582         * lib/wcsxfrm.c: New file.
43583         * lib/wcsxfrm-impl.h: New file.
43584         * m4/wcsxfrm.m4: New file.
43585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43588         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43589         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43591 2011-02-06  Bruno Haible  <bruno@clisp.org>
43593         New module 'wcscoll'.
43594         * modules/wcscoll: New file.
43595         * lib/wchar.in.h (wcscoll): New declaration.
43596         * lib/wcscoll.c: New file.
43597         * lib/wcscoll-impl.h: New file.
43598         * m4/wcscoll.m4: New file.
43599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43602         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43603         * doc/posix-functions/wcscoll.texi: Mention the new module.
43605 2011-02-06  Bruno Haible  <bruno@clisp.org>
43607         New module 'wcsncasecmp'.
43608         * modules/wcsncasecmp: New file.
43609         * lib/wchar.in.h (wcsncasecmp): New declaration.
43610         * lib/wcsncasecmp.c: New file.
43611         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43612         * m4/wcsncasecmp.m4: New file.
43613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43616         HAVE_WCSNCASECMP.
43617         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43618         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43620 2011-02-06  Bruno Haible  <bruno@clisp.org>
43622         New module 'wcscasecmp'.
43623         * modules/wcscasecmp: New file.
43624         * lib/wchar.in.h (wcscasecmp): New declaration.
43625         * lib/wcscasecmp.c: New file.
43626         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43627         * m4/wcscasecmp.m4: New file.
43628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43631         HAVE_WCSCASECMP.
43632         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43633         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43635 2011-02-05  Bruno Haible  <bruno@clisp.org>
43637         New module 'wcsncmp'.
43638         * modules/wcsncmp: New file.
43639         * lib/wchar.in.h (wcsncmp): New declaration.
43640         * lib/wcsncmp.c: New file.
43641         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43642         * m4/wcsncmp.m4: New file.
43643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43646         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43647         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43649 2011-02-05  Bruno Haible  <bruno@clisp.org>
43651         New module 'wcscmp'.
43652         * modules/wcscmp: New file.
43653         * lib/wchar.in.h (wcscmp): New declaration.
43654         * lib/wcscmp.c: New file.
43655         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43656         * m4/wcscmp.m4: New file.
43657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43660         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43661         * doc/posix-functions/wcscmp.texi: Mention the new module.
43663 2011-02-05  Bruno Haible  <bruno@clisp.org>
43665         New module 'wcsncat'.
43666         * modules/wcsncat: New file.
43667         * lib/wchar.in.h (wcsncat): New declaration.
43668         * lib/wcsncat.c: New file.
43669         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43670         * m4/wcsncat.m4: New file.
43671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43674         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43675         * doc/posix-functions/wcsncat.texi: Mention the new module.
43677 2011-02-05  Bruno Haible  <bruno@clisp.org>
43679         New module 'wcscat'.
43680         * modules/wcscat: New file.
43681         * lib/wchar.in.h (wcscat): New declaration.
43682         * lib/wcscat.c: New file.
43683         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43684         * m4/wcscat.m4: New file.
43685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43688         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43689         * doc/posix-functions/wcscat.texi: Mention the new module.
43691 2011-02-05  Bruno Haible  <bruno@clisp.org>
43693         New module 'wcpncpy'.
43694         * modules/wcpncpy: New file.
43695         * lib/wchar.in.h (wcpncpy): New declaration.
43696         * lib/wcpncpy.c: New file.
43697         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43698         * m4/wcpncpy.m4: New file.
43699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43701         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43702         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43703         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43705 2011-02-05  Bruno Haible  <bruno@clisp.org>
43707         New module 'wcsncpy'.
43708         * modules/wcsncpy: New file.
43709         * lib/wchar.in.h (wcsncpy): New declaration.
43710         * lib/wcsncpy.c: New file.
43711         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43712         * m4/wcsncpy.m4: New file.
43713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43716         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43717         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43719 2011-02-05  Bruno Haible  <bruno@clisp.org>
43721         New module 'wcpcpy'.
43722         * modules/wcpcpy: New file.
43723         * lib/wchar.in.h (wcpcpy): New declaration.
43724         * lib/wcpcpy.c: New file.
43725         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43726         * m4/wcpcpy.m4: New file.
43727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43729         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43730         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43731         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43733 2011-02-05  Bruno Haible  <bruno@clisp.org>
43735         New module 'wcscpy'.
43736         * modules/wcscpy: New file.
43737         * lib/wchar.in.h (wcscpy): New declaration.
43738         * lib/wcscpy.c: New file.
43739         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43740         * m4/wcscpy.m4: New file.
43741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43744         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43745         * doc/posix-functions/wcscpy.texi: Mention the new module.
43747 2011-02-05  Bruno Haible  <bruno@clisp.org>
43749         New module 'wcsnlen'.
43750         * modules/wcsnlen: New file.
43751         * lib/wchar.in.h (wcsnlen): New declaration.
43752         * lib/wcsnlen.c: New file.
43753         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43754         * m4/wcsnlen.m4: New file.
43755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43758         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43759         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43761 2011-02-05  Bruno Haible  <bruno@clisp.org>
43763         New module 'wcslen'.
43764         * modules/wcslen: New file.
43765         * lib/wchar.in.h (wcslen): New declaration.
43766         * lib/wcslen.c: New file.
43767         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43768         * m4/wcslen.m4: New file.
43769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43772         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43773         * doc/posix-functions/wcslen.texi: Mention the new module.
43775 2011-02-05  Bruno Haible  <bruno@clisp.org>
43777         New module 'wmemset'.
43778         * modules/wmemset: New file.
43779         * lib/wchar.in.h (wmemset): New declaration.
43780         * lib/wmemset.c: New file.
43781         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43782         * m4/wmemset.m4: New file.
43783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43786         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43787         * doc/posix-functions/wmemset.texi: Mention the new module.
43789 2011-02-05  Bruno Haible  <bruno@clisp.org>
43791         New module 'wmemmove'.
43792         * modules/wmemmove: New file.
43793         * lib/wchar.in.h (wmemmove): New declaration.
43794         * lib/wmemmove.c: New file.
43795         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43796         * m4/wmemmove.m4: New file.
43797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43799         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43800         HAVE_WMEMMOVE.
43801         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43802         * doc/posix-functions/wmemmove.texi: Mention the new module.
43804 2011-02-05  Bruno Haible  <bruno@clisp.org>
43806         New module 'wmemcpy'.
43807         * modules/wmemcpy: New file.
43808         * lib/wchar.in.h (wmemcpy): New declaration.
43809         * lib/wmemcpy.c: New file.
43810         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43811         * m4/wmemcpy.m4: New file.
43812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43814         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43815         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43816         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43818 2011-02-05  Bruno Haible  <bruno@clisp.org>
43820         New module 'wmemcmp'.
43821         * modules/wmemcmp: New file.
43822         * lib/wchar.in.h (wmemcmp): New declaration.
43823         * lib/wmemcmp.c: New file.
43824         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43825         * m4/wmemcmp.m4: New file.
43826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43828         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43829         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43830         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43832 2011-02-07  Jim Meyering  <meyering@redhat.com>
43834         di-set, ino-map: new modules, from coreutils
43835         * lib/di-set.c: New file.
43836         * lib/di-set.h: Likewise.
43837         * lib/ino-map.c: Likewise.
43838         * lib/ino-map.h: Likewise.
43839         * modules/di-set: Likewise.
43840         * modules/di-set-tests: Likewise.
43841         * modules/ino-map: Likewise.
43842         * modules/ino-map-tests: Likewise.
43843         * tests/test-di-set.c: Likewise.
43844         * tests/test-ino-map.c: Likewise.
43846 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43848         getloadavg: merge minor changes from Emacs
43850         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43851         (getloadavg): Use memset, not bzero.
43853         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43854         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43855         clash (bug#86).
43857 2010-11-14  Bruno Haible  <bruno@clisp.org>
43859         Allow multiple gnulib generated replacements to coexist.
43860         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43861         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43862         * lib/langinfo.in.h (nl_item): Likewise.
43863         * lib/math.in.h (_NaN, NAN): Likewise.
43864         * lib/netdb.in.h (struct addrinfo): Likewise.
43865         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43866         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43867         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43868         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43869         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43870         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43871         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43872         pthread_mutexattr_init, pthread_mutexattr_settype,
43873         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43874         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43875         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43876         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43877         * lib/sched.in.h (struct sched_param): Likewise.
43878         * lib/se-selinux.in.h (security_class_t, security_context_t,
43879         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43880         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43881         lsetfilecon, fsetfilecon, security_check_context,
43882         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43883         Likewise.
43884         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43885         Likewise.
43886         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43887         _gl_function_taking_int_returning_void_t, union sigval,
43888         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43889         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43890         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43891         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43892         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43893         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43894         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43895         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43896         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43897         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43898         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43899         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43900         socklen_t, rpl_fd_isset): Likewise.
43901         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43902         * lib/sys_time.in.h (struct timeval): Likewise.
43903         * lib/sys_times.in.h (struct tms): Likewise.
43904         * lib/sys_utsname.in.h (struct utsname):
43905         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43906         * lib/unistd.in.h (getpagesize): Likewise.
43907         * lib/wchar.in.h (mbstate_t): Likewise.
43908         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43909         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43910         towlower, towupper): Likewise.
43911         Reported by Sam Steingold <sds@gnu.org>.
43913 2011-02-05  Eric Blake  <eblake@redhat.com>
43915         unsetenv: work around Haiku issues
43916         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43917         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43919 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43921         libposix: avoid calling error() within libposix
43922         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43923         is defined.
43925 2011-02-05  Eric Blake  <eblake@redhat.com>
43927         strerror_r-posix: port to cygwin
43928         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43929         implementation.
43930         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43931         * tests/test-strerror_r.c (main): Fix test.
43932         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43933         issue.
43935 2011-02-05  Bruno Haible  <bruno@clisp.org>
43937         New module 'wmemchr'.
43938         * modules/wmemchr: New file.
43939         * lib/wchar.in.h (wmemchr): New declaration.
43940         * lib/wmemchr.c: New file.
43941         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43942         * m4/wmemchr.m4: New file.
43943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43945         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43946         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43947         * doc/posix-functions/wmemchr.texi: Mention the new module.
43949 2011-02-04  Eric Blake  <eblake@redhat.com>
43951         fdopendir: detect FreeBSD bug
43952         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43953         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43955 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43957         stdbool: do not define HAVE_STDBOOL_H
43958         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43959         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43960         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43961         imported from the latest Autoconf git.  It was motivated by Emacs,
43962         which uses gnulib but does not need HAVE_STDBOOL_H.
43964 2011-02-04  Bruno Haible  <bruno@clisp.org>
43966         wcsnrtombs: Prepare for new module wwcsnrtombs.
43967         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43968         * lib/wcsnrtombs.c: Include it.
43969         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43971         wcsrtombs: Prepare for new module wwcsrtombs.
43972         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43973         * lib/wcsrtombs.c: Include it.
43974         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43976         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43977         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43978         * lib/mbsnrtowcs.c: Include it.
43979         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43981         mbsrtowcs: Prepare for new module mbsrtowwcs.
43982         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43983         * lib/mbsrtowcs.c: Include it.
43984         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43986 2011-02-04  Bruno Haible  <bruno@clisp.org>
43988         vasnprintf: Reduce use of malloc for small format strings.
43989         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43990         (arguments): Add room for the first 7 arguments.
43991         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43992         (char_directives, u8_directives, u16_directives, u32_directives): Add
43993         room for the first 7 directives.
43994         * lib/printf-parse.c: Include <string.h>.
43995         (PRINTF_PARSE): Change memory handling code so that it uses the first
43996         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43997         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43998         Reported by Pádraig Brady <P@draigbrady.com>.
44000 2011-01-31  Eric Blake  <eblake@redhat.com>
44002         dup2: work around Haiku bug
44003         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
44004         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
44005         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44006         * tests/test-dup2.c (main): Enhance test.
44008 2011-01-31  Simon Josefsson  <simon@josefsson.org>
44010         doc: off_t is not available in eglibc 2.11.2 stdio.h.
44011         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
44012         declared by eglibc 2.11.2.
44013         * lib/stdio.in.h: Likewise.
44015 2011-01-31  Eric Blake  <eblake@redhat.com>
44017         ignore-value: add missing test dependency
44018         * tests/test-ignore-value.c: Revert previous change; stdio.h
44019         provides off_t.
44020         * modules/ignore-value-tests (Depends-on): Add missing dependency.
44022 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
44024         mktime: clarify long_int width checking
44025         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
44026         the top level, to make it clearer that the assumption about
44027         long_int width is being checked.  See
44028         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
44030 2011-01-30  Simon Josefsson  <simon@josefsson.org>
44032         ignore-value: Fix self-test.
44033         * tests/test-ignore-value.c: Include sys/types.h for off_t.
44035 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44037         TYPE_MAXIMUM: avoid theoretically undefined behavior
44038         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
44039         negative number, which the C Standard says has undefined behavior.
44040         In practice this is not a problem, but might as well do it by the book.
44041         Reported by Rich Felker and Eric Blake; see
44042         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
44043         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
44044         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44046         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
44047         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44048         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
44050         mktime: #undef mktime before #defining it
44051         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
44053         mktime: systematically normalize tm_isdst comparisons
44054         * lib/mktime.c (isdst_differ): New function.
44055         (__mktime_internal): Use it systematically for all isdst comparisons.
44056         This completes the fix for libc BZ #6723, and removes the need for
44057         normalizing tm_isdst.  See
44058         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
44059         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
44061         mktime: fix some integer overflow issues and sidestep the rest
44063         This was prompted by a bug report by Benjamin Lindner for MinGW
44064         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
44065         His bug is due to signed integer overflow (0 - INT_MIN), and I
44066         I scanned through mktime.c looking for other integer overflow
44067         problems, fixing all the bugs I found.
44069         Although the C Standard says the resulting code is still not safe
44070         in the presence of integer overflow, in practice it should be good
44071         enough for all real-world two's-complement implementations, except
44072         for debugging environments that deliberately trap on integer
44073         overflow (e.g., gcc -ftrapv).
44075         * lib/mktime.c (WRAPV): New macro.
44076         (SHR): Also check that long_int and time_t shift right in the
44077         usual way, before using the fast-but-unportable method.
44078         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
44079         used.  The code already assumed two's complement, so there's
44080         no need to test for alternatives.  All uses removed.
44081         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
44082         the C standard.  Problem reported by Rich Felker in
44083         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
44084         (twos_complement_arithmetic): Also check long_int and time_t.
44085         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
44086         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
44087         (__mktime_internal): Avoid integer overflow with unary subtraction
44088         in two instances where -1 - X is an adequate replacement for -X,
44089         since the calculations are approximate.
44091 2011-01-29  Eric Blake  <eblake@redhat.com>
44093         mktime: avoid infinite loop
44094         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
44095         type; behavior is still undefined but portable to all known targets.
44096         Reported by Rich Felker.
44098 2011-01-29  Simon Josefsson  <simon@josefsson.org>
44100         rename, unlink, same-inode: Relicense.
44101         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
44102         * modules/unlink (License): Likewise.
44103         * modules/same-inode (License): Likewise.
44105 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44107         mktime: avoid problems on NetBSD 5 / i386
44108         * lib/mktime.c (long_int): New type.  This works around a problem
44109         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44110         but time_t is 64 bits, and where I expect the existing code is
44111         wrong in some cases.
44112         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44113         (ydhms_diff): Bring back the compile-time check for wide-enough
44114         year and yday.
44116         mktime: fix misspelling in comment
44117         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44118         This merges all recent glibc changes of importance.
44120 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44122         move-if-change: cope with concurrent mv of identical file.
44123         * build-aux/move-if-change (CMPPROG): Accept environment
44124         variable as an override for `cmp'.
44125         (usage): Document CMPPROG.
44126         Adjust comparison to drop stdout.  Cope with failure of mv if
44127         the target file exists and is identical to the source, for
44128         parallel builds.
44129         Report from H.J. Lu against binutils in PR binutils/12283.
44131 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44133         * users.txt: Mention sharutils.
44135 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44137         * users.txt: Mention OATH Toolkit.
44139 2011-01-27  Bruno Haible  <bruno@clisp.org>
44141         Prepare for supporting FreeBSD 10.
44142         * build-aux/config.libpath: Remove handling of freebsd1*.
44144 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44146         Prepare for supporting FreeBSD 10.
44147         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44148         match FreeBSD 10.0.
44150 2011-01-27  Bruno Haible  <bruno@clisp.org>
44152         vma-iter, get-rusage-as: Add OpenBSD support.
44153         * modules/vma-iter (configure.ac): Test for mquery.
44154         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44155         * lib/vma-iter.c: Include <sys/mman.h>.
44156         (vma_iterate): Add an implementation based on mquery().
44157         * lib/resource-ext.h (get_rusage_as): Update comments.
44158         * lib/get-rusage-as.c: Likewise.
44159         * lib/get-rusage-data.c: Likewise.
44161 2011-01-26  Karl Berry  <karl@gnu.org>
44163         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44164         variables to make it easier to override the makeinfo program used.
44166 2011-01-26  Eric Blake  <eblake@redhat.com>
44168         fcntl: work around Haiku F_DUPFD bugs
44169         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44170         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44171         cloexec bit on duplication.
44172         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44174 2011-01-26  Bruno Haible  <bruno@clisp.org>
44176         Enable memory leak tests on AIX.
44177         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44178         * tests/test-fprintf-posix3.c (main): Likewise.
44180 2011-01-26  Bruno Haible  <bruno@clisp.org>
44182         Tests for module 'get-rusage-data'.
44183         * modules/get-rusage-data-tests: New file.
44184         * tests/test-get-rusage-data.c: New file.
44186         New module 'get-rusage-data'.
44187         * lib/resource-ext.h (get_rusage_data): New declaration.
44188         * lib/get-rusage-data.c: New file.
44189         * modules/get-rusage-data: New file.
44191 2011-01-25  Bruno Haible  <bruno@clisp.org>
44193         get-rusage-as: Allow for easier testing.
44194         * lib/resource-ext.h (get_rusage_as): Add comment.
44195         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44196         (main): New function for interactive testing.
44198 2011-01-25  Bruno Haible  <bruno@clisp.org>
44200         vma-iter: Treat Haiku like BeOS.
44201         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44202         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44204 2011-01-25  Eric Blake  <eblake@redhat.com>
44206         c-stack: fix regression on cygwin when libsigsegv is present
44207         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44209 2011-01-24  Bruno Haible  <bruno@clisp.org>
44211         vma-iter: Avoid empty intervals.
44212         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44213         on an empty interval.
44215 2011-01-24  Jim Meyering  <meyering@redhat.com>
44217         u64: remove unnecessary #include
44218         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44220 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44222         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44223         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44225 2011-01-23  Bruno Haible  <bruno@clisp.org>
44227         New module 'vma-iter'.
44228         * lib/vma-iter.h: New file.
44229         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44230         * modules/vma-iter: New file.
44231         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44232         for get_rusage_as_via_iterator.
44233         (vma_iterate_callback): New function.
44234         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44235         * modules/get-rusage-as (Depends-on): Add vma-iter.
44237 2011-01-23  Bruno Haible  <bruno@clisp.org>
44239         uninorm: Tweak includes.
44240         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44241         Reported by Jim Meyering.
44243 2011-01-23  Bruno Haible  <bruno@clisp.org>
44245         get-rusage-as: Improve on NetBSD.
44246         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44247         /proc, like on FreeBSD.
44249 2011-01-23  Jim Meyering  <meyering@redhat.com>
44251         xreadlink.h: remove unnecessary #include
44252         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44254         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44255         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44257 2011-01-23  Bruno Haible  <bruno@clisp.org>
44259         get-rusage-as: Fix bug.
44260         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44261         original limit when aborting the first loop.
44263 2011-01-23  Bruno Haible  <bruno@clisp.org>
44265         wctype: Ensure valid C syntax.
44266         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44267         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44269 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44271         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44273         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44274         as they are needed only for configure's test case.
44275         This removes two unnecessary symbols from config.h.
44277         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44278         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44280         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44281         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44282         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44283         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44284         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44285         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44286         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44287         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44291         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44292         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44293         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44294         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44296 2011-01-21  Eric Blake  <eblake@redhat.com>
44298         maintainer-makefile: work with older git for submodule check
44299         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44300         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44301         Reported by Matthias Bolte.
44303         bootstrap: minor portability fixes
44304         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44305         (usage): Omit leading capital and trailing . on help phrases, per
44306         GNU Coding Standards.
44307         (check_versions, top level): Prefix messages with script name.
44309 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44311         bootstrap: support --no-git option
44312         * build-aux/bootstrap: Add --no-git option, to be used when
44313         --gnulib-srcdir points to the exact desired checkout.
44315 2011-01-21  Eric Blake  <eblake@redhat.com>
44317         strerror_r-posix: work with glibc 2.13
44318         * lib/strerror_r.c (strerror_r): Fix return type.
44320 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44321             Bruno Haible  <bruno@clisp.org>
44323         uN_strstr: New unit tests.
44324         * modules/unistr/u8-strstr-tests: New file.
44325         * modules/unistr/u16-strstr-tests: New file.
44326         * modules/unistr/u32-strstr-tests: New file.
44327         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44328         * tests/unistr/test-u8-strstr.c: New file.
44329         * tests/unistr/test-u16-strstr.c: New file.
44330         * tests/unistr/test-u32-strstr.c: New file.
44332 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44333             Bruno Haible  <bruno@clisp.org>
44335         Make uN_strstr functions O(n) worst-case.
44336         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44337         16-bit and 32-bit unit cases, use the unibyte algorithm from
44338         lib/mbsstr.c.
44339         * lib/unistr/u8-strstr.c: Include <string.h>.
44340         (UNIT_IS_UINT8_T): New macro.
44341         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44342         (U_STRLEN, U_STRNLEN): New macros.
44343         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44344         (U_STRLEN, U_STRNLEN): New macros.
44345         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44346         (configure.ac): Update required libunistring version.
44347         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44348         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44349         malloca.
44350         (configure.ac): Update required libunistring version.
44351         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44352         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44353         malloca.
44354         (configure.ac): Update required libunistring version.
44356 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44357             Bruno Haible  <bruno@clisp.org>
44359         Prepare for faster uN_strstr functions.
44360         * lib/str-kmp.h: Support definable UNITs.
44361         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44362         needle_len argument.
44363         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44364         * lib/mbscasestr.c (mbscasestr): Likewise.
44366 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44368         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44369         * tests/test-malloca.c (main): Unset the environment variable
44370         to greatly speed up the test.
44371         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44372         * modules/malloca-tests: Depend on unsetenv.
44374 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44376         ignore-value: remove stdint dependency
44377         * lib/ignore-value.h: Remove <stdint.h>
44378         * modules/ignore-value: Remove stdint dependency.
44380 2011-01-21  Jim Meyering  <meyering@redhat.com>
44382         maint.mk: adjust variable name to be consistent with other gl_ vars
44383         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44384         to be lower case.
44386 2011-01-20  Jim Meyering  <meyering@redhat.com>
44388         maint.mk: make "check" depend on public-submodule-commit by default
44389         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44391 2011-01-20  Bruno Haible  <bruno@clisp.org>
44393         mbfile, mbiter: Complete change from 2008-12-21.
44394         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44395         * m4/mbiter.m4 (gl_MBITER): Likewise.
44397 2011-01-20  Jim Meyering  <meyering@redhat.com>
44399         init.sh: insert space between each function name and "()"
44400         * tests/init.sh: Make it a little easier to see that a function's
44401         name is "warn_", and not "warn" when looking at the first part of
44402         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44404 2011-01-20  Jim Meyering  <meyering@redhat.com>
44406         mountlist: clean up code formatting
44407         * lib/mountlist.c (read_file_system_list): Split a long line,
44408         correct bracing style, use NULL in place of "(struct statfs *)0",
44409         don't parenthesize return value, add spaces around "=" and after
44410         ";-in-for-stmt".
44412 2011-01-14  Markus Duft  <mduft@gentoo.org>
44414         mountlist: add support for Interix
44415         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44416         Apply statvfs to all entries of /dev/fs.
44417         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44418         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44420 2011-01-20  Jim Meyering  <meyering@redhat.com>
44422         maint.mk: improve the public-submodule-commit rule
44423         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44424         to suppress printing of its commands... unless V=1.
44425         Add git submodule's --quiet option to suppress printing of e.g.,
44426         "Entering gnulib" output.
44427         "cd" into $(srcdir) before running git submodule.
44429 2011-01-20  Bruno Haible  <bruno@clisp.org>
44431         include_next: Fix bug introduced on 2011-01-18.
44432         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44433         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44434         ac_cv_header_... variable if the second argument is not 'check'.
44435         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44436         gl_NEXT_HEADERS_INTERNAL.
44438 2011-01-20  Bruno Haible  <bruno@clisp.org>
44440         Allow the user to avoid the GNULIB_TEST_* macros.
44441         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44442         Suggested by Paul Eggert.
44444 2011-01-14  Jim Meyering  <meyering@redhat.com>
44446         bootstrap: avoid failure when there is no .gitmodules file
44447         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44448         has been assigned to, even when its value is the empty string.
44449         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44450         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44451         Reported by John W. Eaton <jwe@gnu.org>.
44453 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44455         assume <ctype.h>, ..., <time.h> exist
44456         For years gnulib has been assuming the existence of the headers
44457         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44458         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44459         them, since they don't appear to be needed.
44460         * README (Portability guidelines): Document this.
44461         * lib/flock.c: Assume <fcntl.h> exists.
44462         * lib/regex_internal.h: Assume <locale.h> exists.
44463         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44465         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44466         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44467         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44468         * m4/regex.m4 (gl_REGEX): Likewise.
44469         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44470         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44471         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44472         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44473         * tests/test-argp.c: Likewise.
44474         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44476         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44477         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44478         AA_APPLE_UNIVERSAL_BUILD.  See
44479         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44480         * NEWS: Document this.
44482 2011-01-19  Eric Blake  <eblake@redhat.com>
44484         c-stack: assume stack overflow if SA_SIGINFO unsupported
44485         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44486         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44487         sigaction will work.
44488         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44489         behavior match Linux.
44490         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44492         stdbool-tests: accommodate Haiku
44493         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44495         binary-io: fix O_TEXT on Haiku
44496         * modules/binary-io (Depends-on): Add fcntl-h.
44497         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44498         than blindly undefining O_TEXT.
44499         Reported by Scott McCreary.
44501 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44503         include_next: do not check for standard headers like stddef.h
44505         I found this problem when modifying Emacs to use gnulib.
44506         I noticed that it added HAVE_STDDEF_H to config.h, even though
44507         gnulib always assumes <stddef.h> exists as per README and this
44508         symbol is unnecessary.
44509         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44510         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44511         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44512         faster for headers like stddef.h that are known to exist.
44513         (gl_CHECK_NEXT_HEADERS): Use it.
44514         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44515         rather than gl_CHECK_NEXT_HEADERS.
44516         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44517         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44519 2011-01-18  Eric Blake  <eblake@redhat.com>
44521         ansi-c++-opt: skip C++ dependency style if C++ is unused
44522         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44523         tests when we know C++ compilation is not desired.
44524         Reported by Scott McCreary.
44526 2011-01-18  Bruno Haible  <bruno@clisp.org>
44528         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44529         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44530         (main): Perform test also when getrlimit and setrlimit don't exist or
44531         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44532         limiting the address space size using setrlimit, compare the address
44533         space size before and after the test.
44534         * tests/test-dprintf-posix2.c: Likewise.
44535         * tests/test-fprintf-posix3.sh: Update skip messages.
44536         * tests/test-dprintf-posix2.sh: Likewise.
44537         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44538         * modules/dprintf-posix-tests (Depends-on): Likewise.
44539         Reported by Bruce Korb <bkorb@gnu.org> and
44540         Gary V. Vaughan <gary@gnu.org>.
44542 2011-01-18  Bruno Haible  <bruno@clisp.org>
44544         get-rusage-as: Improvement for Cygwin.
44545         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44546         areas that are merely reserved.
44548 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44550         strftime: remove dependencies on multibyte modules
44552         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44553         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44554         only if __osf__ is defined, and I suspect OSF doesn't need these
44555         other modules.  If my guess is wrong, we'll need to come up with a
44556         variant of strftime that doesn't need the multibyte modules.
44558         I discovered this problem when attempting modify Emacs to use the
44559         strftime module.  With the previous gnulib, this caused Emacs to
44560         need 31 new files, ranging from lib/config.charset to
44561         m4/wint_t.m4.  This was overkill and I expect would be offputting
44562         to the Emacs maintainers.  After this change, only 6 new files are
44563         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44564         stdbool.m4, and tm_gmtoff.m4.
44566         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44567         Suggested by Bruno Haible in
44568         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44569         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44570         and do not check for wchar.h.
44571         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44572         (Depends-on): Remove mbrlen, mbsinit, wchar.
44574 2011-01-18  Bruno Haible  <bruno@clisp.org>
44576         Tests for module 'get-rusage-as'.
44577         * modules/get-rusage-as-tests: New file.
44578         * tests/test-get-rusage-as.c: New file.
44580         New module 'get-rusage-as'.
44581         * modules/get-rusage-as: New file.
44582         * lib/resource-ext.h: New file.
44583         * lib/get-rusage-as.c: New file.
44585 2011-01-17  Eric Blake  <eblake@redhat.com>
44587         sigaction: relax license from LGPLv3+ to LGPLv2+
44588         * modules/sigaction (License): Relax to LGPLv2+.
44590 2011-01-14  Bruno Haible  <bruno@clisp.org>
44592         filemode: Make function declarations usable in C++ mode.
44593         * lib/filemode.h: Enclose function declarations in extern "C" block.
44594         Reported by John W. Eaton <jwe@gnu.org>.
44596 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44598         save-cwd: no longer include "xgetcwd.h"
44599         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44600         This avoids a compilation failure in projects that use save-cwd
44601         without also using the xgetcwd module.
44603 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44605         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44606         This is so that a program like Emacs, which needs only dtoastr,
44607         does not have to bother with distributing and compiling ftoastr
44608         and ldtoastr.
44609         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44610         * modules/dtoastr, modules/ldtoastr: New files.
44611         * modules/ftoastr: Now works just for 'float'.
44612         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44613         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44614         dtoastr.c, ldtoastr.c.
44616 2011-01-11  Jim Meyering  <meyering@redhat.com>
44618         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44619         There is no need to work around the lack of the fchdir function,
44620         since gnulib can now provide a replacement when required.
44621         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44622         * modules/save-cwd (Depends-on): Add fchdir.
44624 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44626         openat, save-cwd: avoid xmalloc
44628         This removes a direct (but undocumented) dependency of openat on
44629         xalloc, along with an indirect dependency via save-cwd.  It also
44630         removes a dependency of save-cwd on xgetcwd, and thereby
44631         indirectly on xalloc.  This change causes the openat substitute
44632         to fall back on save_cwd when memory is tight, and for save_cwd to
44633         fail instead of dying when memory is tight, but that's good enough.
44634         Problem and initial idea for fix reported by Bastien Roucaries in
44635         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44637         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44638         xalloc.h (for xmalloc).
44639         (openat_proc_name): Use malloc, not xmalloc.
44640         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44641         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44643         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44644         This avoids heap allocation for file names whose lengths are in
44645         the range 512..1023, with the upper bound increasing to at most
44646         4031 depending on the platform's PATH_MAX.  (We do not want
44647         pathmax.h here as it might supply a non-constant PATH_MAX.)
44648         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44649         Perhaps they should be moved to malloca.h?
44650         (OPENAT_BUFFER_SIZE): Use them.
44652 2011-01-10  Bruno Haible  <bruno@clisp.org>
44654         doc: Update users.txt.
44655         * users.txt: Add recutils.
44657 2011-01-09  Karl Berry  <karl@gnu.org>
44659         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44661         * doc/configmake.texi: New file.
44662         * doc/gnulib.texi: Include it.
44663         * modules/configmake: Move documentation from here.
44665 2011-01-09  Bruno Haible  <bruno@clisp.org>
44667         Update to Unicode 6.0.0.
44668         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44669         (get_lbp): Update for Unicode 6.0.0.
44670         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44671         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44672         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44673         U+11001, U+11038..U+11046. Remove U+06DE.
44674         (uc_width): Fix bounds of planes.
44675         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44676         lib/uniwidth/width.c.
44677         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44678         trailing whitespace removed.
44679         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44680         without comments, but with the original copyright notice.
44681         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44682         * lib/unicase/ignorable.h: Likewise.
44683         * lib/unicase/tocasefold.h: Likewise.
44684         * lib/unicase/tolower.h: Likewise.
44685         * lib/unicase/totitle.h: Likewise.
44686         * lib/unicase/toupper.h: Likewise.
44687         * lib/unictype/bidi_of.h: Likewise.
44688         * lib/unictype/blocks.h: Likewise.
44689         * lib/unictype/categ_C.h: Likewise.
44690         * lib/unictype/categ_Cn.h: Likewise.
44691         * lib/unictype/categ_L.h: Likewise.
44692         * lib/unictype/categ_Ll.h: Likewise.
44693         * lib/unictype/categ_Lm.h: Likewise.
44694         * lib/unictype/categ_Lo.h: Likewise.
44695         * lib/unictype/categ_Lu.h: Likewise.
44696         * lib/unictype/categ_M.h: Likewise.
44697         * lib/unictype/categ_Mc.h: Likewise.
44698         * lib/unictype/categ_Me.h: Likewise.
44699         * lib/unictype/categ_Mn.h: Likewise.
44700         * lib/unictype/categ_N.h: Likewise.
44701         * lib/unictype/categ_Nd.h: Likewise.
44702         * lib/unictype/categ_No.h: Likewise.
44703         * lib/unictype/categ_P.h: Likewise.
44704         * lib/unictype/categ_Po.h: Likewise.
44705         * lib/unictype/categ_S.h: Likewise.
44706         * lib/unictype/categ_Sc.h: Likewise.
44707         * lib/unictype/categ_Sk.h: Likewise.
44708         * lib/unictype/categ_Sm.h: Likewise.
44709         * lib/unictype/categ_So.h: Likewise.
44710         * lib/unictype/categ_of.h: Likewise.
44711         * lib/unictype/combining.h: Likewise.
44712         * lib/unictype/ctype_alnum.h: Likewise.
44713         * lib/unictype/ctype_alpha.h: Likewise.
44714         * lib/unictype/ctype_graph.h: Likewise.
44715         * lib/unictype/ctype_lower.h: Likewise.
44716         * lib/unictype/ctype_print.h: Likewise.
44717         * lib/unictype/ctype_punct.h: Likewise.
44718         * lib/unictype/ctype_upper.h: Likewise.
44719         * lib/unictype/decdigit.h: Likewise.
44720         * lib/unictype/digit.h: Likewise.
44721         * lib/unictype/numeric.h: Likewise.
44722         * lib/unictype/pr_alphabetic.h: Likewise.
44723         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44724         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44725         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44726         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44727         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44728         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44729         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44730         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44731         * lib/unictype/pr_case_ignorable.h: Likewise.
44732         * lib/unictype/pr_cased.h: Likewise.
44733         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44734         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44735         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44736         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44737         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44738         * lib/unictype/pr_combining.h: Likewise.
44739         * lib/unictype/pr_composite.h: Likewise.
44740         * lib/unictype/pr_currency_symbol.h: Likewise.
44741         * lib/unictype/pr_decimal_digit.h: Likewise.
44742         * lib/unictype/pr_deprecated.h: Likewise.
44743         * lib/unictype/pr_format_control.h: Likewise.
44744         * lib/unictype/pr_grapheme_base.h: Likewise.
44745         * lib/unictype/pr_grapheme_extend.h: Likewise.
44746         * lib/unictype/pr_grapheme_link.h: Likewise.
44747         * lib/unictype/pr_id_continue.h: Likewise.
44748         * lib/unictype/pr_id_start.h: Likewise.
44749         * lib/unictype/pr_ideographic.h: Likewise.
44750         * lib/unictype/pr_lowercase.h: Likewise.
44751         * lib/unictype/pr_math.h: Likewise.
44752         * lib/unictype/pr_numeric.h: Likewise.
44753         * lib/unictype/pr_other_alphabetic.h: Likewise.
44754         * lib/unictype/pr_other_id_continue.h: Likewise.
44755         * lib/unictype/pr_other_math.h: Likewise.
44756         * lib/unictype/pr_punctuation.h: Likewise.
44757         * lib/unictype/pr_sentence_terminal.h: Likewise.
44758         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44759         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44760         * lib/unictype/pr_unified_ideograph.h: Likewise.
44761         * lib/unictype/pr_uppercase.h: Likewise.
44762         * lib/unictype/pr_xid_continue.h: Likewise.
44763         * lib/unictype/pr_xid_start.h: Likewise.
44764         * lib/unictype/scripts.h: Likewise.
44765         * lib/unictype/scripts_byname.gperf: Likewise.
44766         * lib/unictype/sy_java_ident.h: Likewise.
44767         * lib/unigbrk/gbrkprop.h: Likewise.
44768         * lib/unilbrk/lbrkprop1.h: Likewise.
44769         * lib/unilbrk/lbrkprop2.h: Likewise.
44770         * lib/uninorm/decomposition-table2.h: Likewise.
44771         * lib/uniwbrk/wbrkprop.h: Likewise.
44772         * tests/unicase/test-cased.c: Likewise.
44773         * tests/unicase/test-ignorable.c: Likewise.
44774         * tests/unicase/test-uc_tolower.c: Likewise.
44775         * tests/unicase/test-uc_totitle.c: Likewise.
44776         * tests/unicase/test-uc_toupper.c: Likewise.
44777         * tests/unictype/test-categ_C.c: Likewise.
44778         * tests/unictype/test-categ_Cn.c: Likewise.
44779         * tests/unictype/test-categ_L.c: Likewise.
44780         * tests/unictype/test-categ_Ll.c: Likewise.
44781         * tests/unictype/test-categ_Lm.c: Likewise.
44782         * tests/unictype/test-categ_Lo.c: Likewise.
44783         * tests/unictype/test-categ_Lu.c: Likewise.
44784         * tests/unictype/test-categ_M.c: Likewise.
44785         * tests/unictype/test-categ_Mc.c: Likewise.
44786         * tests/unictype/test-categ_Me.c: Likewise.
44787         * tests/unictype/test-categ_Mn.c: Likewise.
44788         * tests/unictype/test-categ_N.c: Likewise.
44789         * tests/unictype/test-categ_Nd.c: Likewise.
44790         * tests/unictype/test-categ_No.c: Likewise.
44791         * tests/unictype/test-categ_P.c: Likewise.
44792         * tests/unictype/test-categ_Po.c: Likewise.
44793         * tests/unictype/test-categ_S.c: Likewise.
44794         * tests/unictype/test-categ_Sc.c: Likewise.
44795         * tests/unictype/test-categ_Sk.c: Likewise.
44796         * tests/unictype/test-categ_Sm.c: Likewise.
44797         * tests/unictype/test-categ_So.c: Likewise.
44798         * tests/unictype/test-ctype_alnum.c: Likewise.
44799         * tests/unictype/test-ctype_alpha.c: Likewise.
44800         * tests/unictype/test-ctype_graph.c: Likewise.
44801         * tests/unictype/test-ctype_lower.c: Likewise.
44802         * tests/unictype/test-ctype_print.c: Likewise.
44803         * tests/unictype/test-ctype_punct.c: Likewise.
44804         * tests/unictype/test-ctype_upper.c: Likewise.
44805         * tests/unictype/test-decdigit.h: Likewise.
44806         * tests/unictype/test-digit.h: Likewise.
44807         * tests/unictype/test-numeric.h: Likewise.
44808         * tests/unictype/test-pr_alphabetic.c: Likewise.
44809         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44810         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44812         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44813         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44814         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44815         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44816         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44817         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44818         * tests/unictype/test-pr_cased.c: Likewise.
44819         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44820         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44821         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44822         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44823         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44824         * tests/unictype/test-pr_combining.c: Likewise.
44825         * tests/unictype/test-pr_composite.c: Likewise.
44826         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44827         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44828         * tests/unictype/test-pr_deprecated.c: Likewise.
44829         * tests/unictype/test-pr_format_control.c: Likewise.
44830         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44831         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44832         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44833         * tests/unictype/test-pr_id_continue.c: Likewise.
44834         * tests/unictype/test-pr_id_start.c: Likewise.
44835         * tests/unictype/test-pr_ideographic.c: Likewise.
44836         * tests/unictype/test-pr_lowercase.c: Likewise.
44837         * tests/unictype/test-pr_math.c: Likewise.
44838         * tests/unictype/test-pr_numeric.c: Likewise.
44839         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44840         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44841         * tests/unictype/test-pr_other_math.c: Likewise.
44842         * tests/unictype/test-pr_punctuation.c: Likewise.
44843         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44844         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44845         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44846         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44847         * tests/unictype/test-pr_uppercase.c: Likewise.
44848         * tests/unictype/test-pr_xid_continue.c: Likewise.
44849         * tests/unictype/test-pr_xid_start.c: Likewise.
44850         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44851         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44852         changes.
44853         * lib/unictype/categ_Cc.h: Likewise.
44854         * lib/unictype/categ_Cf.h: Likewise.
44855         * lib/unictype/categ_Co.h: Likewise.
44856         * lib/unictype/categ_Cs.h: Likewise.
44857         * lib/unictype/categ_Lt.h: Likewise.
44858         * lib/unictype/categ_Nl.h: Likewise.
44859         * lib/unictype/categ_Pc.h: Likewise.
44860         * lib/unictype/categ_Pd.h: Likewise.
44861         * lib/unictype/categ_Pe.h: Likewise.
44862         * lib/unictype/categ_Pf.h: Likewise.
44863         * lib/unictype/categ_Pi.h: Likewise.
44864         * lib/unictype/categ_Ps.h: Likewise.
44865         * lib/unictype/categ_Z.h: Likewise.
44866         * lib/unictype/categ_Zl.h: Likewise.
44867         * lib/unictype/categ_Zp.h: Likewise.
44868         * lib/unictype/categ_Zs.h: Likewise.
44869         * lib/unictype/ctype_blank.h: Likewise.
44870         * lib/unictype/ctype_cntrl.h: Likewise.
44871         * lib/unictype/ctype_digit.h: Likewise.
44872         * lib/unictype/ctype_space.h: Likewise.
44873         * lib/unictype/ctype_xdigit.h: Likewise.
44874         * lib/unictype/mirror.h: Likewise.
44875         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44876         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44877         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44878         * lib/unictype/pr_bidi_control.h: Likewise.
44879         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44880         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44881         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44882         * lib/unictype/pr_bidi_pdf.h: Likewise.
44883         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44884         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44885         * lib/unictype/pr_dash.h: Likewise.
44886         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44887         * lib/unictype/pr_diacritic.h: Likewise.
44888         * lib/unictype/pr_extender.h: Likewise.
44889         * lib/unictype/pr_hex_digit.h: Likewise.
44890         * lib/unictype/pr_hyphen.h: Likewise.
44891         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44892         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44893         * lib/unictype/pr_ignorable_control.h: Likewise.
44894         * lib/unictype/pr_iso_control.h: Likewise.
44895         * lib/unictype/pr_join_control.h: Likewise.
44896         * lib/unictype/pr_left_of_pair.h: Likewise.
44897         * lib/unictype/pr_line_separator.h: Likewise.
44898         * lib/unictype/pr_logical_order_exception.h: Likewise.
44899         * lib/unictype/pr_non_break.h: Likewise.
44900         * lib/unictype/pr_not_a_character.h: Likewise.
44901         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44902         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44903         * lib/unictype/pr_other_id_start.h: Likewise.
44904         * lib/unictype/pr_other_lowercase.h: Likewise.
44905         * lib/unictype/pr_other_uppercase.h: Likewise.
44906         * lib/unictype/pr_paired_punctuation.h: Likewise.
44907         * lib/unictype/pr_paragraph_separator.h: Likewise.
44908         * lib/unictype/pr_pattern_syntax.h: Likewise.
44909         * lib/unictype/pr_pattern_white_space.h: Likewise.
44910         * lib/unictype/pr_private_use.h: Likewise.
44911         * lib/unictype/pr_quotation_mark.h: Likewise.
44912         * lib/unictype/pr_radical.h: Likewise.
44913         * lib/unictype/pr_soft_dotted.h: Likewise.
44914         * lib/unictype/pr_space.h: Likewise.
44915         * lib/unictype/pr_titlecase.h: Likewise.
44916         * lib/unictype/pr_variation_selector.h: Likewise.
44917         * lib/unictype/pr_white_space.h: Likewise.
44918         * lib/unictype/pr_zero_width.h: Likewise.
44919         * lib/unictype/sy_c_ident.h: Likewise.
44920         * lib/unictype/sy_c_whitespace.h: Likewise.
44921         * lib/unictype/sy_java_whitespace.h: Likewise.
44922         * lib/uninorm/composition-table.gperf: Likewise.
44923         * lib/uninorm/decomposition-table1.h: Likewise.
44924         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44925         LB8.
44926         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44927         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44928         * modules/unictype/*: Bump version number of expected libunistring
44929         version.
44931 2011-01-09  Bruno Haible  <bruno@clisp.org>
44933         Update to Unicode 5.2.0.
44934         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44935         trailing whitespace removed.
44937 2011-01-09  Bruno Haible  <bruno@clisp.org>
44939         New Unicode character properties, from Unicode 5.2.0.
44940         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44941         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44942         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44943         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44944         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44945         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44946         uc_is_property_cased, uc_is_property_case_ignorable,
44947         uc_is_property_changes_when_lowercased,
44948         uc_is_property_changes_when_uppercased,
44949         uc_is_property_changes_when_titlecased,
44950         uc_is_property_changes_when_casefolded,
44951         uc_is_property_changes_when_casemapped): New declarations.
44952         * lib/unictype/pr_byname.gperf: Add the new properties.
44953         * modules/unictype/property-byname (Depends-on): Depend on the new
44954         properties modules.
44955         * modules/unictype/property-all (Depends-on): Likewise.
44956         * MODULES.html.sh (Unicode string functions): Add
44957         unictype/property-case-ignorable, unictype/property-cased,
44958         unictype/property-changes-when-casefolded,
44959         unictype/property-changes-when-casemapped,
44960         unictype/property-changes-when-lowercased,
44961         unictype/property-changes-when-titlecased,
44962         unictype/property-changes-when-uppercased.
44964         New module 'unictype/property-changes-when-casemapped'.
44965         * modules/unictype/property-changes-when-casemapped: New file.
44966         * lib/unictype/pr_changes_when_casemapped.c: New file.
44967         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44968         generated by gen-uni-tables.
44969         * modules/unictype/property-changes-when-casemapped-tests: New file.
44970         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44971         automatically generated by gen-uni-tables.
44973         New module 'unictype/property-changes-when-casefolded'.
44974         * modules/unictype/property-changes-when-casefolded: New file.
44975         * lib/unictype/pr_changes_when_casefolded.c: New file.
44976         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44977         generated by gen-uni-tables.
44978         * modules/unictype/property-changes-when-casefolded-tests: New file.
44979         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44980         automatically generated by gen-uni-tables.
44982         New module 'unictype/property-changes-when-titlecased'.
44983         * modules/unictype/property-changes-when-titlecased: New file.
44984         * lib/unictype/pr_changes_when_titlecased.c: New file.
44985         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44986         generated by gen-uni-tables.
44987         * modules/unictype/property-changes-when-titlecased-tests: New file.
44988         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44989         automatically generated by gen-uni-tables.
44991         New module 'unictype/property-changes-when-uppercased'.
44992         * modules/unictype/property-changes-when-uppercased: New file.
44993         * lib/unictype/pr_changes_when_uppercased.c: New file.
44994         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44995         generated by gen-uni-tables.
44996         * modules/unictype/property-changes-when-uppercased-tests: New file.
44997         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44998         automatically generated by gen-uni-tables.
45000         New module 'unictype/property-changes-when-lowercased'.
45001         * modules/unictype/property-changes-when-lowercased: New file.
45002         * lib/unictype/pr_changes_when_lowercased.c: New file.
45003         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
45004         generated by gen-uni-tables.
45005         * modules/unictype/property-changes-when-lowercased-tests: New file.
45006         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
45007         automatically generated by gen-uni-tables.
45009         New module 'unictype/property-case-ignorable'.
45010         * modules/unictype/property-case-ignorable: New file.
45011         * lib/unictype/pr_case_ignorable.c: New file.
45012         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
45013         by gen-uni-tables.
45014         * modules/unictype/property-case-ignorable-tests: New file.
45015         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
45016         generated by gen-uni-tables.
45018         New module 'unictype/property-cased'.
45019         * modules/unictype/property-cased: New file.
45020         * lib/unictype/pr_cased.c: New file.
45021         * lib/unictype/pr_cased.h: New file, automatically generated by
45022         gen-uni-tables.
45023         * modules/unictype/property-cased-tests: New file.
45024         * tests/unictype/test-pr_cased.c: New file, automatically generated by
45025         gen-uni-tables.
45027 2011-01-09  Bruno Haible  <bruno@clisp.org>
45029         Update to Unicode 5.2.0.
45030         * lib/gen-uni-tables.c (output_predicate, output_category,
45031         output_combclass, output_bidi_category, output_decimal_digit_test,
45032         output_decimal_digit, output_digit_test, output_digit,
45033         output_numeric_test, output_numeric, output_mirror, output_scripts,
45034         output_scripts_byname, output_blocks, output_ident_category): Fix
45035         comment header.
45036         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
45037         get_wbp.
45038         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
45039         items.
45040         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
45041         Changes_When_Lowercased, Changes_When_Uppercased,
45042         Changes_When_Titlecased, Changes_When_Casefolded,
45043         Changes_When_Casemapped.
45044         (is_property_alphabetic, is_property_default_ignorable_code_point):
45045         Update for Unicode 5.2.0.
45046         (is_property_cased, is_property_case_ignorable,
45047         is_property_changes_when_lowercased,
45048         is_property_changes_when_uppercased,
45049         is_property_changes_when_titlecased,
45050         is_property_changes_when_casefolded,
45051         is_property_changes_when_casemapped): New functions.
45052         (output_properties): Output also the properties cased, case_ignorable,
45053         changes_when_lowercased, changes_when_uppercased,
45054         changes_when_titlecased, changes_when_casefolded,
45055         changes_when_casemapped.
45056         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
45057         Unicode TR#11 revision 17 -> 19.
45058         (LBP_CP): New enumeration value.
45059         (LBP_*): Adjust values accordingly.
45060         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45061         TR#14 revision 22 -> 24.
45062         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
45063         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
45064         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45065         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
45066         is_WBP_MIDLETTER.
45067         (output_composition_tables): Allow for 24 bits instead of 16 bits in
45068         the code1 and code2 of each composition rule.
45069         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
45070         * lib/unicase/ignorable.h: Likewise.
45071         * lib/unicase/tocasefold.h: Likewise.
45072         * lib/unicase/tolower.h: Likewise.
45073         * lib/unicase/totitle.h: Likewise.
45074         * lib/unicase/toupper.h: Likewise.
45075         * lib/unictype/bidi_of.h: Likewise.
45076         * lib/unictype/blocks.h: Likewise.
45077         * lib/unictype/categ_C.h: Likewise.
45078         * lib/unictype/categ_Cf.h: Likewise.
45079         * lib/unictype/categ_Cn.h: Likewise.
45080         * lib/unictype/categ_L.h: Likewise.
45081         * lib/unictype/categ_Ll.h: Likewise.
45082         * lib/unictype/categ_Lm.h: Likewise.
45083         * lib/unictype/categ_Lo.h: Likewise.
45084         * lib/unictype/categ_Lu.h: Likewise.
45085         * lib/unictype/categ_M.h: Likewise.
45086         * lib/unictype/categ_Mc.h: Likewise.
45087         * lib/unictype/categ_Mn.h: Likewise.
45088         * lib/unictype/categ_N.h: Likewise.
45089         * lib/unictype/categ_Nd.h: Likewise.
45090         * lib/unictype/categ_Nl.h: Likewise.
45091         * lib/unictype/categ_No.h: Likewise.
45092         * lib/unictype/categ_P.h: Likewise.
45093         * lib/unictype/categ_Pd.h: Likewise.
45094         * lib/unictype/categ_Po.h: Likewise.
45095         * lib/unictype/categ_S.h: Likewise.
45096         * lib/unictype/categ_Sc.h: Likewise.
45097         * lib/unictype/categ_So.h: Likewise.
45098         * lib/unictype/categ_of.h: Likewise.
45099         * lib/unictype/combining.h: Likewise.
45100         * lib/unictype/ctype_alnum.h: Likewise.
45101         * lib/unictype/ctype_alpha.h: Likewise.
45102         * lib/unictype/ctype_graph.h: Likewise.
45103         * lib/unictype/ctype_lower.h: Likewise.
45104         * lib/unictype/ctype_print.h: Likewise.
45105         * lib/unictype/ctype_punct.h: Likewise.
45106         * lib/unictype/ctype_upper.h: Likewise.
45107         * lib/unictype/decdigit.h: Likewise.
45108         * lib/unictype/digit.h: Likewise.
45109         * lib/unictype/numeric.h: Likewise.
45110         * lib/unictype/pr_alphabetic.h: Likewise.
45111         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45112         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45113         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45114         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45115         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45116         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45117         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45118         * lib/unictype/pr_combining.h: Likewise.
45119         * lib/unictype/pr_composite.h: Likewise.
45120         * lib/unictype/pr_currency_symbol.h: Likewise.
45121         * lib/unictype/pr_dash.h: Likewise.
45122         * lib/unictype/pr_decimal_digit.h: Likewise.
45123         * lib/unictype/pr_deprecated.h: Likewise.
45124         * lib/unictype/pr_diacritic.h: Likewise.
45125         * lib/unictype/pr_extender.h: Likewise.
45126         * lib/unictype/pr_grapheme_base.h: Likewise.
45127         * lib/unictype/pr_grapheme_extend.h: Likewise.
45128         * lib/unictype/pr_grapheme_link.h: Likewise.
45129         * lib/unictype/pr_id_continue.h: Likewise.
45130         * lib/unictype/pr_id_start.h: Likewise.
45131         * lib/unictype/pr_ideographic.h: Likewise.
45132         * lib/unictype/pr_ignorable_control.h: Likewise.
45133         * lib/unictype/pr_logical_order_exception.h: Likewise.
45134         * lib/unictype/pr_lowercase.h: Likewise.
45135         * lib/unictype/pr_numeric.h: Likewise.
45136         * lib/unictype/pr_other_alphabetic.h: Likewise.
45137         * lib/unictype/pr_punctuation.h: Likewise.
45138         * lib/unictype/pr_sentence_terminal.h: Likewise.
45139         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45140         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45141         * lib/unictype/pr_unified_ideograph.h: Likewise.
45142         * lib/unictype/pr_uppercase.h: Likewise.
45143         * lib/unictype/pr_xid_continue.h: Likewise.
45144         * lib/unictype/pr_xid_start.h: Likewise.
45145         * lib/unictype/pr_zero_width.h: Likewise.
45146         * lib/unictype/scripts.h: Likewise.
45147         * lib/unictype/scripts_byname.gperf: Likewise.
45148         * lib/unictype/sy_java_ident.h: Likewise.
45149         * lib/unigbrk/gbrkprop.h: Likewise.
45150         * lib/unilbrk/lbrkprop1.h: Likewise.
45151         * lib/unilbrk/lbrkprop2.h: Likewise.
45152         * lib/unilbrk/lbrktables.h: Likewise.
45153         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45154         LBP_CP. Implement rule LB30.
45155         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45156         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45157         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45158         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45159         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45160         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45161         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45162         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45163         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45164         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45165         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45166         bits instead of 16 bits in the code1 and code2 of each composition
45167         rule.
45168         (uc_composition): Update for Unicode 5.2.0.
45169         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45170         * lib/uninorm/decomposition-table2.h: Likewise.
45171         * lib/uniwbrk/wbrkprop.h: Likewise.
45172         * tests/unicase/test-cased.c: Likewise.
45173         * tests/unicase/test-ignorable.c: Likewise.
45174         * tests/unicase/test-uc_tolower.c: Likewise.
45175         * tests/unicase/test-uc_totitle.c: Likewise.
45176         * tests/unicase/test-uc_toupper.c: Likewise.
45177         * tests/unictype/test-categ_C.c: Likewise.
45178         * tests/unictype/test-categ_Cf.c: Likewise.
45179         * tests/unictype/test-categ_Cn.c: Likewise.
45180         * tests/unictype/test-categ_L.c: Likewise.
45181         * tests/unictype/test-categ_Ll.c: Likewise.
45182         * tests/unictype/test-categ_Lm.c: Likewise.
45183         * tests/unictype/test-categ_Lo.c: Likewise.
45184         * tests/unictype/test-categ_Lu.c: Likewise.
45185         * tests/unictype/test-categ_M.c: Likewise.
45186         * tests/unictype/test-categ_Mc.c: Likewise.
45187         * tests/unictype/test-categ_Mn.c: Likewise.
45188         * tests/unictype/test-categ_N.c: Likewise.
45189         * tests/unictype/test-categ_Nd.c: Likewise.
45190         * tests/unictype/test-categ_Nl.c: Likewise.
45191         * tests/unictype/test-categ_No.c: Likewise.
45192         * tests/unictype/test-categ_P.c: Likewise.
45193         * tests/unictype/test-categ_Pd.c: Likewise.
45194         * tests/unictype/test-categ_Po.c: Likewise.
45195         * tests/unictype/test-categ_S.c: Likewise.
45196         * tests/unictype/test-categ_Sc.c: Likewise.
45197         * tests/unictype/test-categ_So.c: Likewise.
45198         * tests/unictype/test-ctype_alnum.c: Likewise.
45199         * tests/unictype/test-ctype_alpha.c: Likewise.
45200         * tests/unictype/test-ctype_graph.c: Likewise.
45201         * tests/unictype/test-ctype_lower.c: Likewise.
45202         * tests/unictype/test-ctype_print.c: Likewise.
45203         * tests/unictype/test-ctype_punct.c: Likewise.
45204         * tests/unictype/test-ctype_upper.c: Likewise.
45205         * tests/unictype/test-decdigit.h: Likewise.
45206         * tests/unictype/test-digit.h: Likewise.
45207         * tests/unictype/test-numeric.h: Likewise.
45208         * tests/unictype/test-pr_alphabetic.c: Likewise.
45209         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45210         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45211         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45212         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45213         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45214         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45215         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45216         * tests/unictype/test-pr_combining.c: Likewise.
45217         * tests/unictype/test-pr_composite.c: Likewise.
45218         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45219         * tests/unictype/test-pr_dash.c: Likewise.
45220         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45221         * tests/unictype/test-pr_deprecated.c: Likewise.
45222         * tests/unictype/test-pr_diacritic.c: Likewise.
45223         * tests/unictype/test-pr_extender.c: Likewise.
45224         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45225         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45226         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45227         * tests/unictype/test-pr_id_continue.c: Likewise.
45228         * tests/unictype/test-pr_id_start.c: Likewise.
45229         * tests/unictype/test-pr_ideographic.c: Likewise.
45230         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45231         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45232         * tests/unictype/test-pr_lowercase.c: Likewise.
45233         * tests/unictype/test-pr_numeric.c: Likewise.
45234         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45235         * tests/unictype/test-pr_punctuation.c: Likewise.
45236         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45237         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45238         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45239         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45240         * tests/unictype/test-pr_uppercase.c: Likewise.
45241         * tests/unictype/test-pr_xid_continue.c: Likewise.
45242         * tests/unictype/test-pr_xid_start.c: Likewise.
45243         * tests/unictype/test-pr_zero_width.c: Likewise.
45244         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45245         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45246         changed behaviour: line breaking is now disallowed between a letter
45247         or '=' and '('.
45248         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45249         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45250         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45251         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45252         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45253         lib/uniwidth/width.c.
45254         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45255         without comments, but with the original copyright notice.
45256         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45257         changes.
45258         * lib/unictype/categ_Cc.h: Likewise.
45259         * lib/unictype/categ_Co.h: Likewise.
45260         * lib/unictype/categ_Cs.h: Likewise.
45261         * lib/unictype/categ_Lt.h: Likewise.
45262         * lib/unictype/categ_Me.h: Likewise.
45263         * lib/unictype/categ_Pc.h: Likewise.
45264         * lib/unictype/categ_Pe.h: Likewise.
45265         * lib/unictype/categ_Pf.h: Likewise.
45266         * lib/unictype/categ_Pi.h: Likewise.
45267         * lib/unictype/categ_Ps.h: Likewise.
45268         * lib/unictype/categ_Sk.h: Likewise.
45269         * lib/unictype/categ_Sm.h: Likewise.
45270         * lib/unictype/categ_Z.h: Likewise.
45271         * lib/unictype/categ_Zl.h: Likewise.
45272         * lib/unictype/categ_Zp.h: Likewise.
45273         * lib/unictype/categ_Zs.h: Likewise.
45274         * lib/unictype/ctype_blank.h: Likewise.
45275         * lib/unictype/ctype_cntrl.h: Likewise.
45276         * lib/unictype/ctype_digit.h: Likewise.
45277         * lib/unictype/ctype_space.h: Likewise.
45278         * lib/unictype/ctype_xdigit.h: Likewise.
45279         * lib/unictype/mirror.h: Likewise.
45280         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45281         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45282         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45283         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45284         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45285         * lib/unictype/pr_bidi_control.h: Likewise.
45286         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45287         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45288         * lib/unictype/pr_bidi_pdf.h: Likewise.
45289         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45290         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45291         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45292         * lib/unictype/pr_format_control.h: Likewise.
45293         * lib/unictype/pr_hex_digit.h: Likewise.
45294         * lib/unictype/pr_hyphen.h: Likewise.
45295         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45296         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45297         * lib/unictype/pr_iso_control.h: Likewise.
45298         * lib/unictype/pr_join_control.h: Likewise.
45299         * lib/unictype/pr_left_of_pair.h: Likewise.
45300         * lib/unictype/pr_line_separator.h: Likewise.
45301         * lib/unictype/pr_math.h: Likewise.
45302         * lib/unictype/pr_non_break.h: Likewise.
45303         * lib/unictype/pr_not_a_character.h: Likewise.
45304         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45305         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45306         * lib/unictype/pr_other_id_continue.h: Likewise.
45307         * lib/unictype/pr_other_id_start.h: Likewise.
45308         * lib/unictype/pr_other_lowercase.h: Likewise.
45309         * lib/unictype/pr_other_math.h: Likewise.
45310         * lib/unictype/pr_other_uppercase.h: Likewise.
45311         * lib/unictype/pr_paired_punctuation.h: Likewise.
45312         * lib/unictype/pr_paragraph_separator.h: Likewise.
45313         * lib/unictype/pr_pattern_syntax.h: Likewise.
45314         * lib/unictype/pr_pattern_white_space.h: Likewise.
45315         * lib/unictype/pr_private_use.h: Likewise.
45316         * lib/unictype/pr_quotation_mark.h: Likewise.
45317         * lib/unictype/pr_radical.h: Likewise.
45318         * lib/unictype/pr_soft_dotted.h: Likewise.
45319         * lib/unictype/pr_space.h: Likewise.
45320         * lib/unictype/pr_titlecase.h: Likewise.
45321         * lib/unictype/pr_variation_selector.h: Likewise.
45322         * lib/unictype/pr_white_space.h: Likewise.
45323         * lib/unictype/sy_c_ident.h: Likewise.
45324         * lib/unictype/sy_c_whitespace.h: Likewise.
45325         * lib/unictype/sy_java_whitespace.h: Likewise.
45326         * modules/uni*/*: Bump version number of expected libunistring version.
45327         Reported by Simon Josefsson.
45329 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45331         useless-if-before-free: fix typo in --help and make the internal,
45332         automatic version date update process work once again.
45333         --help output contained a NUL character instead of the
45334         backslash-zero that was intended.  Also, the "must lie within
45335         the first 8 lines" line is on line 9, and hence not getting
45336         automatically updated.
45337         * build-aux/useless-if-before-free: Fix the former by adding a
45338         backslash, and the latter by condensing the three lines of what-it-does
45339         to a single line, leaving one line of slack for the future.
45341 2011-01-09  Bruno Haible  <bruno@clisp.org>
45343         uniwidth/width: Fix width of U+1D173..U+1D17A.
45344         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45345         symbolic_width, output_width_property_test): New functions.
45346         (main): Invoke output_nonspacing_property, output_width_property_test.
45347         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45348         U+1D173..U+1D17A.
45349         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45350         1.
45351         * modules/uniwidth/*: Bump version number of expected libunistring
45352         version.
45353         * modules/unilbrk/*: Likewise.
45355 2011-01-08  Bruno Haible  <bruno@clisp.org>
45357         uninorm tests: Preserve copyright of Unicode data file.
45358         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45359         Mention modifications.
45361 2011-01-08  Bruno Haible  <bruno@clisp.org>
45363         gen-uni-tables: Prepare for Unicode 5.2.0.
45364         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45365         (debug_output_lbp, output_lbp): Update.
45367 2011-01-08  Bruno Haible  <bruno@clisp.org>
45369         unilbrk: Clarify gen-uni-tables.c code.
45370         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45371         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45372         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45374 2011-01-07  Bruno Haible  <bruno@clisp.org>
45376         strtod: Restore errno when successfully parsing Infinity or NaN.
45377         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45378         restore the original errno.
45380 2011-01-07  Bruno Haible  <bruno@clisp.org>
45382         remove test: Avoid failure on HP-UX 11.
45383         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45385 2011-01-07  Bruno Haible  <bruno@clisp.org>
45387         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45388         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45389         error code.
45391 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45393         ignore-value: fixup comments, and add Eric Blake
45394         as an author since he rewrote the macros.
45395         * lib/ignore-value.h (ignore_value):  State that
45396         we now support aggregates.  Also specify exactly
45397         when the GCC warn_unused_result feature was added.
45399 2011-01-06  Eric Blake  <eblake@redhat.com>
45401         ignore-value: support aggregate types
45402         * lib/ignore-value.h (ignore_value): Provide separate gcc
45403         definition.
45404         * modules/ignore-value-tests: New test module.
45405         * tests/test-ignore-value.c: New test.
45407         maint.mk: improve sc_prohibit_strcmp regex
45408         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45409         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45410         definition of STRNEQ.
45412         signal: work around Haiku issue with SIGBUS
45413         * lib/siglist.h: Add comment.
45414         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45415         strsignal's favoring of SIGSEGV.
45416         * tests/test-signal.c (main): Avoid test failure.
45417         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45418         Reported by Scott McCreary.
45420         maint.mk: add pre-release check to ensure submodule commits are public
45421         * top/maint.mk (public-submodule-commit): New rule.
45422         (submodule-checks): New variable.
45423         (alpha beta stable): Depend on the variable.
45425 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45426         and Jim Meyering  <meyering@redhat.com>
45428         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45429         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45430         (ATTRIBUTE_DEPRECATED): Define.
45431         (_ignore_case): New function.
45432         (ignore_value): New macro, to replace the old function.
45433         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45434         * modules/ignore-value (Depends-on): Add stdint.
45436 2011-01-04  Eric Blake  <eblake@redhat.com>
45438         doc: regenerate INSTALL
45439         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45440         @firstparagraphindent support, now that autoconf dropped it.
45441         (INSTALL_PRELUDE): Reinstate old macro.
45442         * doc/install.texi: Resync from autoconf.
45443         * doc/INSTALL: Reflect recent autoconf update.
45444         * doc/INSTALL.ISO: Likewise.
45445         * doc/INSTALL.UTF-8: Likewise.
45446         Reported by Karl Berry.
45448 2011-01-04  Bruce Korb  <address@hidden>
45450         git-version-gen: avoid a sub-shell
45451         * build-aux/git-version-gen: Redirect stderr in `...` via
45452         "exec 2>...", rather than via an added sub-shell.
45454 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45456         git-version-gen: use (...) rather than sh -c '...'
45457         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45458         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45460 2011-01-03  Jim Meyering  <meyering@redhat.com>
45462         git-version-gen: convert leading TABs to spaces
45463         * build-aux/git-version-gen: Expand leading TABs.
45465         git-version-gen: handle failed "git rev-list"
45466         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45467         from git and proceeding as if it had succeeded but printed no SHA1
45468         checksums, suppress the diagnostic and handle the failure.
45469         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45471         git-version-gen: include command name in one more diagnostic
45472         * build-aux/git-version-gen: When the required .tarball-version file
45473         was missing or unreadable, you might see the diagnostic from "cat",
45474         but no trace of the name of the invoking script.  Now, you still see
45475         the diagnostic from cat, but also get one from "git-version-gen: ".
45476         Inspired by a patch from Bruce Korb.
45478         update-copyright: adjust test to match changed code
45479         * tests/test-update-copyright.sh: Change test's expected output
45480         to match new actual output.
45482 2011-01-02  Bruno Haible  <bruno@clisp.org>
45484         getlogin_r: Avoid test failure on HP-UX 11.
45485         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45486         ERANGE when the second argument is zero.
45487         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45488         portability problem.
45490 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45492         * build-aux/update-copyright: doc Simon's changes
45494 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45496         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45497         environment variable.
45499 2011-01-02  Bruno Haible  <bruno@clisp.org>
45501         unigbrk: Avoid gcc warnings.
45502         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45503         unused variable.
45504         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45505         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45506         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45507         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45508         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45509         Change type of first argument to 'const char *'.
45510         (main): Remove unused variable.
45511         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45512         type of first argument to 'const char *'.
45513         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45514         Likewise.
45515         (main): Change type of variable 's'.
45516         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45517         to 'int'.
45519 2011-01-02  Bruno Haible  <bruno@clisp.org>
45521         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45522         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45523         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45524         bug.
45525         * lib/pwrite.c: Undo 2010-12-31 patch.
45526         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45528 2011-01-02  Bruno Haible  <bruno@clisp.org>
45530         pread: Fix test whether it works.
45531         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45533 2011-01-02  Bruno Haible  <bruno@clisp.org>
45535         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45536         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45537         ends in "6". Don't require a specific month name. Try also the locale
45538         names found on HP-UX 11 and Solaris 7.
45540 2011-01-02  Bruno Haible  <bruno@clisp.org>
45542         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45543         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45544         C linkage.
45545         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45547 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45549         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45550         for consistency, since the "cluster" term is not used elsewhere.
45551         * lib/unigbrk.in.h: Update name.
45552         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45553         * lib/unigbrk/u16-grapheme-next.c: Update name.
45554         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45555         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45556         * lib/unigbrk/u32-grapheme-next.c: Update name.
45557         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45558         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45559         * lib/unigbrk/u8-grapheme-next.c: Update name.
45560         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45561         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45562         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45563         Suggested by Bruno Haible.
45565 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45567         Remove module 'u8-grapheme-len' as too redundant with
45568         'u8-grapheme-next'.
45569         * modules/unigbrk/u8-grapheme-len: Delete file.
45570         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45571         * lib/unigbrk.in.h: Remove prototype for deleted function.
45572         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45573         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45575         Remove module 'u16-grapheme-len' as too redundant with
45576         'u16-grapheme-next'.
45577         * modules/unigbrk/u16-grapheme-len: Delete file.
45578         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45579         * lib/unigbrk.in.h: Remove prototype for deleted function.
45580         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45581         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45583         Remove module 'u32-grapheme-len' as too redundant with
45584         'u32-grapheme-next'.
45585         * modules/unigbrk/u32-grapheme-len: Delete file.
45586         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45587         * lib/unigbrk.in.h: Remove prototype for deleted function.
45588         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45589         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45591         Suggested by Bruno Haible.
45593 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45595         * unigbrk.in.h: Fix typo: "ben" => "been".
45596         Reported by Bruno Haible.
45598 2011-01-01  Jim Meyering  <meyering@redhat.com>
45600         maint: update almost all copyright ranges to include 2011
45601         Run the new "make update-copyright" rule.
45603 2011-01-01  Jim Meyering  <meyering@redhat.com>
45605         maint: update-copyright: exempt doc/INSTALL*
45606         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45607         since they are generated.  Suggested by Bruno Haible.
45609 2011-01-01  Jim Meyering  <meyering@redhat.com>
45611         maint: refine the update-copyright rule
45612         * Makefile (update-copyright): Also exclude any file that includes
45613         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45614         code that merely generates the comment.
45616 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45618         New module 'u8-grapheme-len'.
45619         * modules/unigbrk/u8-grapheme-len: New file.
45620         * modules/unigbrk/u8-grapheme-len-tests: New file.
45621         * lib/unigbrk.in.h: Add prototype for new function.
45622         * lib/unigbrk/u8-grapheme-len.c: New file.
45623         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45625         New module 'u16-grapheme-len'.
45626         * modules/unigbrk/u16-grapheme-len: New file.
45627         * modules/unigbrk/u16-grapheme-len-tests: New file.
45628         * lib/unigbrk.in.h: Add prototype for new function.
45629         * lib/unigbrk/u16-grapheme-len.c: New file.
45630         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45632         New module 'u32-grapheme-len'.
45633         * modules/unigbrk/u32-grapheme-len: New file.
45634         * modules/unigbrk/u32-grapheme-len-tests: New file.
45635         * lib/unigbrk.in.h: Add prototype for new function.
45636         * lib/unigbrk/u32-grapheme-len.c: New file.
45637         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45639         New module 'u8-grapheme-next'.
45640         * modules/unigbrk/u8-grapheme-next: New file.
45641         * modules/unigbrk/u8-grapheme-next-tests: New file.
45642         * lib/unigbrk.in.h: Add prototype for new function.
45643         * lib/unigbrk/u8-grapheme-next.c: New file.
45644         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45646         New module 'u16-grapheme-next'.
45647         * modules/unigbrk/u16-grapheme-next: New file.
45648         * modules/unigbrk/u16-grapheme-next-tests: New file.
45649         * lib/unigbrk.in.h: Add prototype for new function.
45650         * lib/unigbrk/u16-grapheme-next.c: New file.
45651         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45653         New module 'u32-grapheme-next'.
45654         * modules/unigbrk/u32-grapheme-next: New file.
45655         * modules/unigbrk/u32-grapheme-next-tests: New file.
45656         * lib/unigbrk.in.h: Add prototype for new function.
45657         * lib/unigbrk/u32-grapheme-next.c: New file.
45658         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45660         New module 'u8-grapheme-prev'.
45661         * modules/unigbrk/u8-grapheme-prev: New file.
45662         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45663         * lib/unigbrk.in.h: Add prototype for new function.
45664         * lib/unigbrk/u8-grapheme-prev.c: New file.
45665         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45667         New module 'u16-grapheme-prev'.
45668         * modules/unigbrk/u16-grapheme-prev: New file.
45669         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45670         * lib/unigbrk.in.h: Add prototype for new function.
45671         * lib/unigbrk/u16-grapheme-prev.c: New file.
45672         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45674         New module 'u32-grapheme-prev'.
45675         * modules/unigbrk/u32-grapheme-prev: New file.
45676         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45677         * lib/unigbrk.in.h: Add prototype for new function.
45678         * lib/unigbrk/u32-grapheme-prev.c: New file.
45679         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45681         New module 'u8-grapheme-breaks'.
45682         * modules/unigbrk/u8-grapheme-breaks: New file.
45683         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45684         * lib/unigbrk.in.h: Add prototype for new function.
45685         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45686         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45688         New module 'u16-grapheme-breaks'.
45689         * modules/unigbrk/u16-grapheme-breaks: New file.
45690         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45691         * lib/unigbrk.in.h: Add prototype for new function.
45692         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45693         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45695         New module 'u32-grapheme-breaks'.
45696         * modules/unigbrk/u32-grapheme-breaks: New file.
45697         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45698         * lib/unigbrk.in.h: Add prototype for new function.
45699         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45700         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45702         New module 'ulc-grapheme-breaks'.
45703         * modules/unigbrk/ulc-grapheme-breaks: New file.
45704         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45705         * m4/locale-ar.m4: New file.
45706         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45707         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45708         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45710 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45712         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45713         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45714         modified how this file was generated before I initially submitted
45715         the module, but failed to regenerate it.  This meant that several
45716         of the level2 entries were wrong.
45717         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45718         Remove the division-by-2 that is folded into the table now that
45719         gbrkprop.h has been regenerated properly.  Now -1 entries are
45720         handled correctly.
45722         New module 'unigbrk/uc-gbrk-prop-tests'.
45723         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45724         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45725         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45726         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45728 2011-01-01  Bruno Haible  <bruno@clisp.org>
45730         Avoid use of hexadecimal escapes.
45731         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45732         instead of hexadecimal escapes.
45734 2011-01-01  Jim Meyering  <meyering@redhat.com>
45736         maint: new rule to update copyright year ranges
45737         * Makefile (update-copyright): New rule.
45739         maint: indent with TABs in Makefile
45740         * Makefile: Expand leading sequences of spaces to TABs
45742         version-etc: update the copyright year it reports
45743         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45745 2010-12-31  Bruno Haible  <bruno@clisp.org>
45747         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45748         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45749         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45750         zero.
45752 2010-12-31  Bruno Haible  <bruno@clisp.org>
45754         pwrite: Work around HP-UX 11.11 bug.
45755         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45756         works and set REPLACE_PWRITE if not.
45757         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45758         function.
45759         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45761 2010-12-31  Bruno Haible  <bruno@clisp.org>
45763         pread: Work around HP-UX 11 bugs.
45764         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45765         and set REPLACE_PREAD if not.
45766         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45768 2010-12-31  Eric Blake  <eblake@redhat.com>
45770         nl_langinfo: fix YESEXPR on Irix 6.5
45771         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45772         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45773         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45774         it.
45776 2010-12-31  Bruno Haible  <bruno@clisp.org>
45778         iconv: Document HP-UX 11 bug.
45779         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45781 2010-12-31  Bruno Haible  <bruno@clisp.org>
45783         ldexpl: Fix link error on HP-UX 11.
45784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45785         LDEXPL_LIBM, using $ISNANL_LIBM.
45787 2010-12-31  Eric Blake  <eblake@redhat.com>
45789         ftello: avoid compilation failure with SunStudio c89
45790         * lib/ftello.c (ftello): Use lseek, not llseek.
45792         tests: avoid failing coreutils tests on cygwin
45793         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45794         (create_exe_shims_): Return 0 when skipping.
45796 2010-12-31  Bruno Haible  <bruno@clisp.org>
45798         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45799         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45801 2010-12-31  Bruno Haible  <bruno@clisp.org>
45803         waitpid: Fix link error in C++ mode.
45804         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45806 2010-12-31  Bruno Haible  <bruno@clisp.org>
45808         isnan: Use GCC built-ins when possible.
45809         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45810         __builtin_isnan.
45811         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45812         (isnan): Define using GCC built-ins for GCC >= 4.0.
45814 2010-12-31  Bruno Haible  <bruno@clisp.org>
45816         isnand: Fix mistake.
45817         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45818         __builtin_isnand.
45820 2010-12-31  Bruno Haible  <bruno@clisp.org>
45822         open: Avoid C++ error on HP-UX 11.
45823         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45825 2010-12-31  Bruno Haible  <bruno@clisp.org>
45827         time_r: Add missing declarations on HP-UX 11.
45828         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45829         instead of HAVE_LOCALTIME_R.
45830         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45831         HAVE_LOCALTIME_R always.
45832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45833         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45834         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45835         HAVE_LOCALTIME_R.
45836         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45837         * doc/posix-functions/localtime_r.texi: Likewise.
45839 2010-12-29  Eric Blake  <eblake@redhat.com>
45841         mountlist: tweak previous commit
45842         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45843         Reported by Paul Eggert.
45845         mountlist: fix local drive detection on cygwin
45846         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45847         that works for cygwin.
45849 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45851         ftoastr, snprintf: ftoastr + snprintf module
45852         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45853         since the snprintf module now should be good enough here.
45854         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45855         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45856         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45857         GNULIB_SNPRINTF only for the test directory, and the latter
45858         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45859         seems to suffice by itself.
45861 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45863         alloca: one step towards thread-safety
45864         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45865         need for a static variable.  All callers changed.  This does not
45866         make the alloca replacement thread-safe, but it's one step.
45868         tests: minor indenting change
45869         * tests/init.sh: Sync from coreutils housekeeping patch
45870         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45871         to keep lines within 80 columns.
45873 2010-12-28  Jim Meyering  <meyering@redhat.com>
45875         regex: don't infloop on persistent failing calloc
45876         * lib/regexec.c (build_trtable): Return failure indication upon
45877         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45878         In glibc, this was fixed for version 2.13:
45879         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45881 2010-12-28  Bruno Haible  <bruno@clisp.org>
45882             Paul Eggert <eggert@cs.ucla.edu>
45884         linkat: Make implementation robust against system behaviour variations.
45885         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45886         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45887         way, and to -2 if it needs a generic runtime test.
45888         * lib/linkat.c (solaris_optimized_link_immediate,
45889         solaris_optimized_link_follow): New functions.
45890         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45891         (check_same_link): Use it.
45893 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45895         New module 'unigbrk/base'.
45896         * modules/unigbrk/base: New file.
45897         * lib/unigbrk.in.h: New file.
45899         New module 'unigbrk/uc-gbrk-prop'.
45900         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45901         * modules/unigbrk/uc-gbrk-prop: New file.
45902         * lib/unigbrk/gbrkprop.h: New file.
45903         * lib/unigbrk/uc-gbrk-prop.c: New file.
45905         New module 'unigbrk/uc-is-grapheme-break'.
45906         * modules/unigbrk/uc-is-grapheme-break: New file.
45907         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45908         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45909         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45910         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45911         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45913         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45915 2010-12-27  Bruno Haible  <bruno@clisp.org>
45917         linkat test: Avoid failure on Solaris 11 2010-11.
45918         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45920 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45922         utimens: work around glibc rounding bug on more platforms
45923         * lib/utimens.c (fdutimens): Work around rounding bug even if
45924         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45925         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45927 2010-12-27  Bruno Haible  <bruno@clisp.org>
45929         select tests: Improve comments.
45930         * tests/test-select.c (do_select): Add comments.
45932 2010-12-27  Bruno Haible  <bruno@clisp.org>
45934         select tests: Safer way of handling timeout.
45935         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45936         at every invocation.
45938 2010-12-27  Bruno Haible  <bruno@clisp.org>
45940         select tests: Use 'bool' where appropriate.
45941         * tests/test-select.c (connect_to_socket): Change argument type to
45942         'bool'.
45944 2010-12-27  Bruno Haible  <bruno@clisp.org>
45946         select tests: Use existing modules.
45947         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45948         (configure.ac): Don't test for unistd.h.
45949         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45950         declared in <unistd.h>.
45952 2010-12-27  Bruno Haible  <bruno@clisp.org>
45954         mbrtowc: Work around a Solaris 7 bug.
45955         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45956         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45957         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45958         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45959         MBRTOWC_NULL_ARG1_BUG.
45960         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45961         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45962         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45963         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45965 2010-12-27  Jim Meyering  <meyering@redhat.com>
45967         read-file.c: tweak syntax
45968         * lib/read-file.c (fread_file): Remove space after "*" in function
45969         definitions.
45971 2010-12-27  Bruno Haible  <bruno@clisp.org>
45973         times test: Avoid gcc warnings on OSF/1.
45974         * tests/test-times.c (main): Cast printf arguments from clock_t to
45975         'long int'.
45977 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45979         utimens: work around glibc rounding bug on older Linux kernels
45980         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45981         on Linux with a glibc whose utimes might not work, then work
45982         around a longstanding glibc bug involving rounding rather than
45983         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45984         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45986 2010-12-26  Bruno Haible  <bruno@clisp.org>
45988         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45989         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45990         _GL_CXXALIAS_SYS.
45991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45993 2010-12-26  Bruno Haible  <bruno@clisp.org>
45995         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45996         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45997         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45998         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45999         looking for the declaration.
46000         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46001         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
46002         problem.
46003         * doc/posix-functions/inet_pton.texi: Likewise.
46005 2010-12-26  Bruno Haible  <bruno@clisp.org>
46007         arpa_inet: Use the common idioms with C++ support.
46008         * lib/arpa_inet.in.h: Include c++defs.h.
46009         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
46010         support.
46011         * modules/arpa_inet (Depends-on): Add c++defs.
46012         (Makefile.am): Substitute the contents of c++defs.h.
46013         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
46014         * modules/arpa_inet-c++-tests: New file.
46015         * tests/test-arpa_inet-c++.cc: New file.
46017 2010-12-25  Bruno Haible  <bruno@clisp.org>
46019         Fix more C++ link errors on Solaris 8.
46020         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
46021         $(LIB_EACCESS).
46022         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
46023         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
46024         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
46025         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
46026         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
46028 2010-12-25  Bruno Haible  <bruno@clisp.org>
46030         printf-posix: Fix link error when a non-GCC compiler is used.
46031         * lib/stdio.in.h (printf): When not using GCC, override printf
46032         correctly.
46033         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46035 2010-12-25  Bruno Haible  <bruno@clisp.org>
46037         strerror_r-posix: Update doc.
46038         * doc/posix-functions/strerror_r.texi: Update doc about the return
46039         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
46041 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46043         utimens: simplify the logic of the previous change
46044         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
46045         This should not affect whether the test succeeds or fails.
46047         utimens: configure better on hosts with NFS clock skew
46048         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
46049         uses the clock of the local host.  It might use the clock of the
46050         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
46051         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46053 2010-12-25  Bruno Haible  <bruno@clisp.org>
46055         ptsname test: Avoid failure on Solaris.
46056         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
46057         open a pseudo-terminal; don't use BSD-style ptys.
46058         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
46060 2010-12-25  Bruno Haible  <bruno@clisp.org>
46062         ptsname: Avoid ERANGE failure on some systems.
46063         * lib/ptsname.c (buffer): Increase size.
46065 2010-12-25  Bruno Haible  <bruno@clisp.org>
46067         rename, renameat: Avoid test failures at NFS mounted locations.
46068         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
46069         so that subsequent mkdir calls succeed.
46071 2010-12-25  Bruno Haible  <bruno@clisp.org>
46073         iswblank: Fix C++ link error on Solaris 8.
46074         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
46075         _GL_FUNCDECL_SYS.
46077 2010-12-25  Bruno Haible  <bruno@clisp.org>
46079         unistd: Fix C++ link error on Solaris 8.
46080         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
46082 2010-12-25  Bruno Haible  <bruno@clisp.org>
46084         readlink doc: Mention an old glibc bug.
46085         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
46087 2010-12-25  Bruno Haible  <bruno@clisp.org>
46089         fcntl-h: Fix for use of C++ on glibc systems.
46090         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46091         also on glibc systems in C++ mode.
46092         Reported by Gary V. Vaughan <gary@gnu.org>.
46094 2010-12-25  Bruno Haible  <bruno@clisp.org>
46096         roundl-ieee: Make it work on OSF/1 5.1 with cc.
46097         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
46099 2010-12-25  Bruno Haible  <bruno@clisp.org>
46101         truncl-ieee: Make it work on OSF/1 5.1 with cc.
46102         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
46103         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
46104         test whether truncl works according to ISO C 99 with IEC 60559.
46105         * m4/truncl-ieee.m4: New file.
46106         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46107         m4/signbit.m4.
46108         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46110 2010-12-25  Bruno Haible  <bruno@clisp.org>
46112         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46113         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46114         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46115         test whether ceill works according to ISO C 99 with IEC 60559.
46116         * m4/ceill-ieee.m4: New file.
46117         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46118         m4/signbit.m4.
46119         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46121 2010-12-25  Bruno Haible  <bruno@clisp.org>
46123         Ensure all prerequisites of <wchar.h> are included.
46124         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46125         before <wchar.h>.
46126         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46127         gl_MBRLEN_NUL_RETVAL): Likewise.
46128         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46129         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46130         AC_FUNC_MBRTOWC): Likewise.
46131         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46133         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46134         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46135         Likewise.
46136         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46137         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46138         (gl_WCHAR_H): Improve comments.
46139         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46141 2010-12-25  Bruno Haible  <bruno@clisp.org>
46143         strtok_r: Fix C syntax error in autoconf macro.
46144         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46145         characters in test program.
46147 2010-12-24  Bruno Haible  <bruno@clisp.org>
46149         ceil, trunc, round: Fix gcc warnings.
46150         * lib/ceil.c (MIN): Undefine before redefining.
46151         * lib/trunc.c (MIN): Likewise.
46152         * lib/round.c (MIN): Likewise.
46153         Include <math.h> first.
46155 2010-12-24  Bruno Haible  <bruno@clisp.org>
46157         select tests: Avoid failures on OSF/1 5.1.
46158         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46159         failure of closing the last socket; it may fail with ECONNRESET.
46161 2010-12-24  Eric Blake  <eblake@redhat.com>
46163         stdint: avoid HP-UX 10.20 preprocessor bug
46164         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46165         than #if.
46166         * tests/test-floor2.c (main): Likewise.
46167         Reported by Peter O'Gorman.
46169         pipe: make obsoletion transition easier
46170         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46171         * modules/pipe (Files): Include revived file.
46172         (Include): Drop reference, to mirror getdate's behavior.
46174 2010-12-24  Bruno Haible  <bruno@clisp.org>
46176         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46177         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46178         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46181 2010-12-24  Bruno Haible  <bruno@clisp.org>
46183         gethostname: Ensure declaration on NonStop Kernel.
46184         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46187 2010-12-24  Bruno Haible  <bruno@clisp.org>
46189         sys_select: Ensure all necessary types on NonStop Kernel.
46190         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46191         include <sys/time.h>.
46192         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46193         NonStop Kernel.
46194         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46196 2010-12-24  Bruno Haible  <bruno@clisp.org>
46198         sys_select: Remove unneeded include.
46199         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46200         have <sys/select.h>.
46202 2010-12-24  Bruno Haible  <bruno@clisp.org>
46204         gethostname: Provide a fallback for HOST_NAME_MAX.
46205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46206         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46207         instead.
46208         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46210 2010-12-24  Bruno Haible  <bruno@clisp.org>
46212         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46213         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46214         (SA_RESTART): Likewise.
46215         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46217 2010-12-24  Bruno Haible  <bruno@clisp.org>
46219         signal: Define NSIG.
46220         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46221         * tests/test-signal.c (nsig): New variable.
46222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46224 2010-12-24  Bruno Haible  <bruno@clisp.org>
46226         rename, renameat: Avoid test failures on OSF/1 5.1.
46227         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46228         alternative error codes.
46229         * tests/test-renameat.c (main): Likewise.
46231 2010-12-24  Bruno Haible  <bruno@clisp.org>
46233         *printf: Detect large precisions bug on Solaris 10/SPARC.
46234         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46235         by Paul Eggert.
46236         * tests/test-snprintf-posix.h (test_function): Add this test code here
46237         too.
46238         * tests/test-sprintf-posix.h (test_function): Likewise.
46239         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46240         * tests/test-vasprintf-posix.c (test_function): Likewise.
46241         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46242         around by gnulib.
46243         * doc/posix-functions/printf.texi: Likewise.
46244         * doc/posix-functions/snprintf.texi: Likewise.
46245         * doc/posix-functions/sprintf.texi: Likewise.
46246         * doc/posix-functions/vfprintf.texi: Likewise.
46247         * doc/posix-functions/vprintf.texi: Likewise.
46248         * doc/posix-functions/vsnprintf.texi: Likewise.
46249         * doc/posix-functions/vsprintf.texi: Likewise.
46250         * doc/posix-functions/dprintf.texi: Undo last commit.
46251         * doc/posix-functions/vdprintf.texi: Likewise.
46253 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46255         tests: port test-fdutimensat.c to Solaris 8
46256         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46257         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46258         On Solaris 8, it fails with errno == ENOSYS, because there is no
46259         futimens (so it can't use the fd), and there is no lutimens (so it
46260         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46262         vsnprintf: make more consistent with snprintf; doc fixes
46264         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46265         the byte count return problem was promoted from the snprintf-posix
46266         to the snprintf module.
46267         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46268         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46269         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46270         * tests/test-snprintf.c (main): Check the byte count returned.
46271         * tests/test-vsnprintf.c (main): Likewise.
46273 2010-12-23  Eric Blake  <eblake@redhat.com>
46275         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46276         * modules/sigpipe (License): Relax license.
46278 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46280         doc: document Solaris printf bug with large float precisions
46281         * doc/posix-functions/dprintf.texi (dprintf):
46282         * doc/posix-functions/fprintf.texi (fprintf):
46283         * doc/posix-functions/printf.texi (printf):
46284         * doc/posix-functions/snprintf.texi (snprintf):
46285         * doc/posix-functions/sprintf.texi (sprintf):
46286         * doc/posix-functions/vdprintf.texi (vdprintf):
46287         * doc/posix-functions/vfprintf.texi (vfprintf):
46288         * doc/posix-functions/vprintf.texi (vprintf):
46289         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46290         * doc/posix-functions/vsprintf.texi (vsprintf):
46291         Mention that these functions mishandle large floating point
46292         precisions on Solaris 10.  The same bug is also present in Solaris
46293         8, and I assume earlier.  This causes "cd gnulib-tests; make
46294         check" to fail on Solaris 8 (and I assume, later) when building
46295         the latest coreutils, in test-vasprintf-posix's call to
46296         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46297         the wide flavors (e.g., wprintf) so this patch just updates the
46298         documentation for the narrow ones.
46300         test-posixtm.c: add two tests
46301         * tests/test-posixtm.c: Add two tests, to highlight the
46302         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46303         around this bug; this is merely to document it.
46305 2010-12-22  Bruno Haible  <bruno@clisp.org>
46307         getlogin_r: Work around portability problem on OSF/1.
46308         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46309         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46310         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46311         test for a truncated result.
46312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46313         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46314         * modules/getlogin_r (Depends-on): Add memchr.
46315         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46317 2010-12-22  Bruno Haible  <bruno@clisp.org>
46319         ptsname: Avoid test failure on OSF/1 5.1.
46320         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46321         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46322         (same_slave): New function.
46323         (main): Use it to compare ptsname's result with the expected file name.
46325 2010-12-22  Bruno Haible  <bruno@clisp.org>
46327         Port extended stdio modules to HP NonStop Kernel.
46328         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46329         macros.
46330         * lib/fbufmode.c: Update comments.
46331         * lib/fflush.c: Likewise.
46332         * lib/fpurge.c: Likewise.
46333         * lib/freadable.c: Likewise.
46334         * lib/freadahead.c: Likewise.
46335         * lib/freading.c: Likewise.
46336         * lib/freadptr.c: Likewise.
46337         * lib/freadseek.c: Likewise.
46338         * lib/fseeko.c: Likewise.
46339         * lib/fseterr.c: Likewise.
46340         * lib/fwritable.c: Likewise.
46341         * lib/fwriting.c: Likewise.
46342         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46344 2010-12-22  Bruno Haible  <bruno@clisp.org>
46346         ttyname_r: Work around bug on OSF/1 5.1.
46347         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46348         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46349         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46350         present.
46351         * lib/ttyname_r.c (ttyname_r): Update comments.
46353 2010-12-22  Bruno Haible  <bruno@clisp.org>
46355         round: Implement result sign according to IEEE 754.
46356         * lib/round.c (MIN, MINUS_ZERO): New macros.
46357         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46358         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46359         * tests/test-round-ieee.c (main): Likewise.
46360         * tests/test-roundl-ieee.c (main): Likewise.
46362         trunc: Implement result sign according to IEEE 754.
46363         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46364         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46365         * tests/test-trunc2.c: Include minus-zero.h.
46366         (MINUS_ZERO): New macro.
46367         (trunc_reference): Keep in sync with lib/trunc.c.
46368         * tests/test-truncf2.c: Include minus-zero.h.
46369         (MINUS_ZERO): New macro.
46370         (truncf_reference): Keep in sync with lib/trunc.c.
46371         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46372         * tests/test-trunc-ieee.c (main): Likewise.
46373         * tests/test-truncl-ieee.c (main): Likewise.
46375         ceil: Implement result sign according to IEEE 754.
46376         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46377         (FUNC): Return -0.0 for -1 < x < 0.
46378         * tests/test-ceil2.c: Include minus-zero.h.
46379         (MINUS_ZERO): New macro.
46380         (ceil_reference): Keep in sync with lib/ceil.c.
46381         * tests/test-ceilf2.c: Include minus-zero.h.
46382         (MINUS_ZERO): New macro.
46383         (ceilf_reference): Keep in sync with lib/ceil.c.
46384         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46385         * tests/test-ceil-ieee.c (main): Likewise.
46386         * tests/test-ceill-ieee.c (main): Likewise.
46388         floor: Implement result sign according to IEEE 754.
46389         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46390         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46391         * tests/test-floorf2.c (floorf_reference): Likewise.
46392         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46393         * tests/test-floor-ieee.c (main): Likewise.
46394         * tests/test-floorl-ieee.c (main): Likewise.
46396 2010-12-22  Bruno Haible  <bruno@clisp.org>
46398         getaddrinfo: Update doc.
46399         * doc/posix-functions/gai_strerror.texi: Return type is also different
46400         on AIX and HP-UX.
46402 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46404         getaddrinfo, inet_ntop: Update doc for Solaris.
46405         * doc/posix-functions/gai_strerror.texi: Return type is also an
46406         issue on Solaris 9 and earlier.
46407         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46408         on Solaris 10 and earlier.
46410 2010-12-21  Bruno Haible  <bruno@clisp.org>
46412         New module 'roundl-ieee'.
46413         * modules/roundl-ieee: New file.
46414         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46415         test whether roundl works according to ISO C 99 with IEC 60559.
46416         * m4/roundl-ieee.m4: New file.
46417         * modules/roundl-ieee-tests: New file.
46418         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46419         * tests/test-roundl.c (main): Remove signbit tests.
46420         * modules/roundl-tests (Depends-on): Remove signbit.
46421         * doc/posix-functions/roundl.texi: Mention the new module.
46423 2010-12-21  Bruno Haible  <bruno@clisp.org>
46425         New module 'truncl-ieee'.
46426         * modules/truncl-ieee: New file.
46427         * modules/truncl-ieee-tests: New file.
46428         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46429         * tests/test-truncl.c (main): Remove signbit tests.
46430         * modules/truncl-tests (Depends-on): Remove signbit.
46431         * doc/posix-functions/truncl.texi: Mention the new module.
46433 2010-12-21  Bruno Haible  <bruno@clisp.org>
46435         New module 'ceill-ieee'.
46436         * modules/ceill-ieee: New file.
46437         * modules/ceill-ieee-tests: New file.
46438         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46439         * tests/test-ceill.c (main): Remove signbit tests.
46440         * modules/ceill-tests (Depends-on): Remove signbit.
46441         * doc/posix-functions/ceill.texi: Mention the new module.
46443 2010-12-21  Bruno Haible  <bruno@clisp.org>
46445         New module 'floorl-ieee'.
46446         * modules/floorl-ieee: New file.
46447         * modules/floorl-ieee-tests: New file.
46448         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46449         * tests/test-floorl.c (main): Remove signbit tests.
46450         * modules/floorl-tests (Depends-on): Remove signbit.
46451         * doc/posix-functions/floorl.texi: Mention the new module.
46453 2010-12-21  Bruno Haible  <bruno@clisp.org>
46455         New module 'round-ieee'.
46456         * modules/round-ieee: New file.
46457         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46458         whether round works according to ISO C 99 with IEC 60559.
46459         * m4/round-ieee.m4: New file.
46460         * modules/round-ieee-tests: New file.
46461         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46462         * tests/test-round1.c (main): Remove signbit tests.
46463         * modules/round-tests (Depends-on): Remove 'signbit'.
46464         * doc/posix-functions/round.texi: Mention the new module.
46466 2010-12-21  Bruno Haible  <bruno@clisp.org>
46468         New module 'trunc-ieee'.
46469         * modules/trunc-ieee: New file.
46470         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46471         whether trunc works according to ISO C 99 with IEC 60559.
46472         * m4/trunc-ieee.m4: New file.
46473         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46475         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46476         * modules/trunc-ieee-tests: New file.
46477         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46478         * tests/test-trunc1.c (main): Remove signbit tests.
46479         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46480         * doc/posix-functions/trunc.texi: Mention the new module.
46482 2010-12-21  Bruno Haible  <bruno@clisp.org>
46484         New module 'ceil-ieee'.
46485         * modules/ceil-ieee: New file.
46486         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46487         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46488         ISO C 99 with IEC 60559.
46489         * m4/ceil-ieee.m4: New file.
46490         * modules/ceil (Files): Add lib/ceil.c.
46491         (Depends-on): Add 'float'.
46492         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46493         * lib/math.in.h (ceil): New declaration.
46494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46495         REPLACE_CEIL.
46496         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46497         * modules/ceil-ieee-tests: New file.
46498         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46499         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46500         * doc/posix-functions/ceil.texi: Mention the new module.
46502 2010-12-21  Bruno Haible  <bruno@clisp.org>
46504         New module 'floor-ieee'.
46505         * modules/floor-ieee: New file.
46506         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46507         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46508         ISO C 99 with IEC 60559.
46509         * m4/floor-ieee.m4: New file.
46510         * modules/floor (Files): Add lib/floor.c.
46511         (Depends-on): Add 'float'.
46512         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46513         * lib/math.in.h (floor): New declaration.
46514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46515         REPLACE_FLOOR.
46516         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46517         * modules/floor-ieee-tests: New file.
46518         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46519         * tests/test-math-c++.cc: Check the signature of 'floor'.
46520         * doc/posix-functions/floor.texi: Mention the new module.
46522 2010-12-21  Bruno Haible  <bruno@clisp.org>
46524         New module 'roundf-ieee'.
46525         * modules/roundf-ieee: New file.
46526         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46527         test whether roundf works according to ISO C 99 with IEC 60559.
46528         * m4/roundf-ieee.m4: New file.
46529         * modules/roundf-ieee-tests: New file.
46530         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46531         * tests/test-roundf1.c (main): Remove signbit tests.
46532         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46533         * doc/posix-functions/roundf.texi: Mention the new module.
46535 2010-12-21  Bruno Haible  <bruno@clisp.org>
46537         New module 'truncf-ieee'.
46538         * modules/truncf-ieee: New file.
46539         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46540         test whether truncf works according to ISO C 99 with IEC 60559.
46541         * m4/truncf-ieee.m4: New file.
46542         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46544         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46545         * modules/truncf-ieee-tests: New file.
46546         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46547         * tests/test-truncf1.c (main): Remove signbit tests.
46548         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46549         * doc/posix-functions/truncf.texi: Mention the new module.
46551 2010-12-21  Bruno Haible  <bruno@clisp.org>
46553         New module 'ceilf-ieee'.
46554         * modules/ceilf-ieee: New file.
46555         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46556         test whether ceilf works according to ISO C 99 with IEC 60559.
46557         * m4/ceilf-ieee.m4: New file.
46558         * modules/ceilf-ieee-tests: New file.
46559         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46560         * tests/test-ceilf1.c (main): Remove signbit tests.
46561         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46562         * doc/posix-functions/ceilf.texi: Mention the new module.
46564 2010-12-21  Bruno Haible  <bruno@clisp.org>
46566         New module 'floorf-ieee'.
46567         * modules/floorf-ieee: New file.
46568         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46569         test whether floorf works according to ISO C 99 with IEC 60559.
46570         * m4/floorf-ieee.m4: New file.
46571         * modules/floorf-ieee-tests: New file.
46572         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46573         * tests/test-floorf1.c (main): Remove signbit tests.
46574         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46575         * doc/posix-functions/floorf.texi: Mention the new module.
46577 2010-12-21  Bruno Haible  <bruno@clisp.org>
46579         Support for minus zero in autoconf macros.
46580         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46581         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46582         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46583         * tests/minus-zero.h: Update comments.
46585 2010-12-21  Bruno Haible  <bruno@clisp.org>
46587         Tests for module 'ceil'.
46588         * modules/ceil-tests: New file.
46589         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46590         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46592 2010-12-21  Bruno Haible  <bruno@clisp.org>
46594         Tests for module 'floor'.
46595         * modules/floor-tests: New file.
46596         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46597         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46599 2010-12-21  Bruno Haible  <bruno@clisp.org>
46601         math: Fix indentation.
46602         * lib/math.in.h (floorf): Fix indentation.
46604 2010-12-21  Bruno Haible  <bruno@clisp.org>
46606         Fix cross-compilation guesses on Solaris.
46607         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46608         not match "solaris2.10".
46609         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46610         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46611         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46613 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46615         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46616         This fixes a problem observed with the latest coreutils snapshot
46617         that caused a test to fail on Solaris 8.  src/csplit.c's call
46618         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46619         earlier, instead of returning the number of bytes that would have
46620         been generated; this causes csplit to incorrectly report memory
46621         exhaustion.
46622         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46623         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46624         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46625         comments to match.
46626         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46627         Fix typo in matching older versions of Solaris: "solaris2.10"
46628         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46629         only for guessing while cross-compiling.
46630         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46632 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46634         ftoastr: fix comment again
46635         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46636         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46637         Also, simplify example a bit by using flags = 0.
46639 2010-12-20  Bruno Haible  <bruno@clisp.org>
46641         round*, trunc*: Update documentation regarding glibc.
46642         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46643         * doc/posix-functions/round.texi: Likewise.
46644         * doc/posix-functions/roundl.texi: Likewise.
46645         * doc/posix-functions/truncf.texi: Likewise.
46646         * doc/posix-functions/trunc.texi: Likewise.
46647         * doc/posix-functions/truncl.texi: Likewise.
46649 2010-12-20  Bruno Haible  <bruno@clisp.org>
46651         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46652         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46653         * doc/posix-functions/round.texi: Likewise.
46654         * doc/posix-functions/roundl.texi: Likewise.
46656 2010-12-20  Bruno Haible  <bruno@clisp.org>
46658         ttyname_r: Add missing declaration on HP-UX 11.
46659         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46660         HAVE_TTYNAME_R.
46661         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46662         declared. Set HAVE_TTYNAME_R always.
46663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46664         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46665         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46666         HAVE_TTYNAME_R.
46667         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46669 2010-12-20  Bruno Haible  <bruno@clisp.org>
46671         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46672         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46673         * doc/posix-functions/getlogin_r.texi: Likewise.
46674         * tests/test-getlogin.c: Include <errno.h>.
46675         (main): Avoid test failure on HP-UX 11.11.
46676         * tests/test-getlogin_r.c (main): Likewise.
46678 2010-12-20  Bruno Haible  <bruno@clisp.org>
46680         getlogin_r: Add missing declaration on HP-UX 11.
46681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46682         declared also when it exists as a function.
46683         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46685 2010-12-20  Bruno Haible  <bruno@clisp.org>
46687         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46688         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46689         through wcrtomb.
46691 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46693         ftoastr: fix comment
46694         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46695         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46697 2010-12-19  Bruno Haible  <bruno@clisp.org>
46699         isnan: Ensure it is a macro.
46700         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46701         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46702         Solaris.
46704 2010-12-19  Bruno Haible  <bruno@clisp.org>
46706         ldexpl test: Fix link error on OSF/1 5.1.
46707         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46709 2010-12-19  Bruno Haible  <bruno@clisp.org>
46711         wctype: Make it work in C++ mode on OSF/1 5.1.
46712         * lib/wctype.in.h (iswblank): Declare but not define here.
46713         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46714         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46715         * modules/wctype (Files): Add lib/iswblank.c.
46717 2010-12-19  Bruno Haible  <bruno@clisp.org>
46719         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46720         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46721         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46723 2010-12-19  Bruno Haible  <bruno@clisp.org>
46725         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46726         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46727         _POSIX_PII_SOCKET.
46728         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46729         * doc/posix-functions/recvfrom.texi: Likewise.
46730         * doc/posix-functions/send.texi: Likewise.
46731         * doc/posix-functions/sendto.texi: Likewise.
46733 2010-12-19  Bruno Haible  <bruno@clisp.org>
46735         tcgetsid: Add missing declaration on OSF/1 5.1.
46736         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46737         HAVE_TCGETSID.
46738         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46739         Don't set HAVE_TCGETSID.
46740         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46741         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46742         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46743         HAVE_TCGETSID.
46744         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46746 2010-12-19  Bruno Haible  <bruno@clisp.org>
46748         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46749         * lib/stdio.in.h: During the include_next statement, let recursive
46750         includes of this file include only the system header file.
46752 2010-12-19  Bruno Haible  <bruno@clisp.org>
46754         iconv_open: Fix regression from 2010-12-04.
46755         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46756         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46758 2010-12-19  Bruno Haible  <bruno@clisp.org>
46760         stdbool test: Avoid a gcc warning.
46761         * tests/test-stdbool.c (main): Fail if e1 is false.
46762         Reported by Jim Meyering.
46764 2010-12-19  Jim Meyering  <meyering@redhat.com>
46766         setenv: restore to working order
46767         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46768         mistakenly removed.
46769         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46770         HAVE_SETENV.
46771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46772         HAVE_SETENV.
46774 2010-12-19  Bruno Haible  <bruno@clisp.org>
46776         Document some different function declarations on OSF/1 5.1.
46777         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46778         * doc/posix-functions/inet_ntop.texi: Likewise.
46779         * doc/posix-functions/gethostname.texi: Likewise.
46780         * lib/unistd.in.h (gethostname): Update comment.
46782 2010-12-19  Bruno Haible  <bruno@clisp.org>
46784         doc: Mention vasprintf-posix module.
46785         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46786         the 'vasprintf-posix' module.
46787         * doc/glibc-functions/vasprintf.texi: Likewise.
46789 2010-12-19  Bruno Haible  <bruno@clisp.org>
46791         unsetenv: Add missing declaration on OSF/1 5.1.
46792         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46793         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46794         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46796         not HAVE_UNSETENV.
46797         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46798         HAVE_UNSETENV.
46799         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46801 2010-12-19  Bruno Haible  <bruno@clisp.org>
46803         setenv: Add missing declaration on OSF/1 5.1.
46804         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46806         declared. Don't set HAVE_SETENV.
46807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46808         not HAVE_SETENV.
46809         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46810         HAVE_SETENV.
46811         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46813 2010-12-19  Bruno Haible  <bruno@clisp.org>
46815         nl_langinfo tests: Avoid gcc warning.
46816         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46818 2010-12-19  Bruno Haible  <bruno@clisp.org>
46820         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46821         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46822         _GL_CXXALIAS_SYS.
46824 2010-12-19  Bruno Haible  <bruno@clisp.org>
46826         stdbool: Relax test.
46827         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46828         address to 'bool' work in static initializer, for compilers other than
46829         GCC.
46831 2010-12-19  Bruno Haible  <bruno@clisp.org>
46833         ftello: Add missing declaration on OSF/1 5.1.
46834         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46835         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46837         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46838         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46840 2010-12-19  Bruno Haible  <bruno@clisp.org>
46842         fseeko: Add missing declaration on OSF/1 5.1.
46843         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46844         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46846         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46847         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46849 2010-12-19  Bruno Haible  <bruno@clisp.org>
46851         fchdir: Add missing declaration on OSF/1 5.1.
46852         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46855         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46856         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46858 2010-12-19  Bruno Haible  <bruno@clisp.org>
46860         relocatable-prog-wrapper: Separate from relocatable-prog.
46861         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46862         uninstall-relocwrapper rule here.
46863         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46864         Reported by Ian Beckwith <ianb@erislabs.net>.
46866 2010-12-19  Bruno Haible  <bruno@clisp.org>
46868         unistr/u8-mbsnlen: Add missing dependency.
46869         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46870         Reported by Ian Beckwith <ianb@erislabs.net>.
46872 2010-12-19  Bruno Haible  <bruno@clisp.org>
46874         iconv: Make it possible again to use this module without 'iconv-h'.
46875         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46876         if it is not defined.
46877         Reported by Ian Beckwith <ianb@erislabs.net>.
46879 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46881         acl: port to Solaris 8 when copying from tmpfs to ufs
46882         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46883         error number.  Problem observed on Solaris 8 with latest
46884         coreutils, with "mv A B", where A is on a tmpfs file system and B
46885         is on a ufs file system.  This caused coreutils' mv/part-symlink
46886         test to fail.
46888         tests: set fail=0 at start
46889         * tests/init.sh (setup_): Move fail=0 initialization here ...
46890         (mktempd_): ... from here, so that tests can rely on fail being
46891         set to 0 initially.  This fixes a problem in coreutils; see:
46892         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46894 2010-12-18  Bruno Haible  <bruno@clisp.org>
46896         memmem-simple: Stylistic changes.
46897         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46898         Fix preprocessor directive indentation.
46900 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46902         memmem, memmem-simple: reorganize and expand empty needle check
46903         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46904         functional checks to memmem-simple so that one has a fully functional
46905         memmem by using just this module.
46906         Restrict the performance only check to the memmem module.
46907         Also expand the empty needle check to ensure the correct
46908         pointer is returned, not just a non NULL pointer.
46909         * doc/glibc-functions/memmem.texi: Rearrange the portability
46910         documentation to correlate with the rearranged checks.
46911         Clarify exactly how the memmem and memmem-simple modules
46912         relate to each other.
46914 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46915             Bruno Haible  <bruno@clisp.org>
46917         Improve cross-compilation guesses for uClibc.
46918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46919         that uClibc does not have the glibc bug.
46920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46921         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46923 2010-12-14  Eric Blake  <eblake@redhat.com>
46925         configmake: provide fallbacks for oldest supported autotools
46926         * m4/configmake.m4: New file.
46927         * modules/configmake (Files): Ship it.
46928         (configure.ac): Use it to guarantee fallbacks.
46930 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46932         read-file: Improve handling of large files
46933         * lib/read-file.c (fread_file): Minimize realloc()s
46934         for regular files, and better manage sizes around SIZE_MAX.
46936 2010-12-13  Eric Blake  <eblake@redhat.com>
46938         cloexec, fcntl: relax license
46939         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46940         consent from all contributors.
46941         * modules/fcntl (License): Likewise.
46943 2010-12-10  Bruno Haible  <bruno@clisp.org>
46945         Tests for module 'pipe-posix'.
46946         * modules/pipe-posix-tests: New file.
46947         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46949 2010-12-10  Bruno Haible  <bruno@clisp.org>
46951         pipe-posix: Make it work in C++ mode.
46952         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46953         (pipe): Use common idiom, not a macro definition.
46954         * lib/pipe.c: New file.
46955         * m4/pipe.m4: New file.
46956         * modules/pipe-posix (Description): Enhance.
46957         (Files): Add lib/pipe.c, m4/pipe.m4.
46958         (configure.ac): Invoke gl_FUNC_PIPE.
46959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46960         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46961         * tests/test-unistd-c++.cc: Check the signature of pipe.
46963 2010-12-10  Bruno Haible  <bruno@clisp.org>
46965         Rename module 'pipe' to 'spawn-pipe'.
46966         * modules/spawn-pipe: New file, renamed from modules/pipe.
46967         (Files, configure.ac, Makefile.am): Update.
46968         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46969         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46970         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46971         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46972         "spawn-pipe.h" instead of "pipe.h".
46973         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46974         to gl_SPAWN_PIPE.
46975         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46976         (Files, Makefile.am): Update.
46977         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46978         Update.
46979         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46980         Include "spawn-pipe.h" instead of "pipe.h".
46981         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46982         * lib/javacomp.c: Likewise.
46983         * lib/javaversion.c: Likewise.
46984         * lib/pipe-filter-gi.c: Likewise.
46985         * lib/pipe-filter-ii.c: Likewise.
46986         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46987         * modules/javacomp (Depends-on): Likewise.
46988         * modules/javaversion (Depends-on): Likewise.
46989         * modules/pipe-filter-gi (Depends-on): Likewise.
46990         * modules/pipe-filter-ii (Depends-on): Likewise.
46991         * MODULES.html.sh (Executing programs): Update.
46992         * NEWS: Mention the change.
46994 2010-12-10  Eric Blake  <eblake@redhat.com>
46996         pipe-posix: new module
46997         * modules/pipe-posix: New file.
46998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46999         (gl_UNISTD_H): Check for declaration.
47000         * modules/unistd (Makefile.am): Substitute it.
47001         * lib/unistd.in.h (pipe): Provide it for mingw.
47002         * doc/posix-functions/pipe.texi (pipe): Update documentation.
47003         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
47005 2010-12-07  Bruno Haible  <bruno@clisp.org>
47007         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
47008         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
47009         u8_strcmp_gnu.
47010         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
47012 2010-12-06  Bruno Haible  <bruno@clisp.org>
47014         Update internal documentation.
47015         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
47017 2010-12-04  Bruno Haible  <bruno@clisp.org>
47019         Put more information about failed tests into the test return codes.
47020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
47021         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
47022         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47023         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47024         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
47025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47026         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47027         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47028         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
47029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
47031         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47032         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47033         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47034         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
47035         returns a bit mask.
47036         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
47037         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
47038         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
47039         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
47040         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47041         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47044         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47045         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47046         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47047         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47048         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47049         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47050         * m4/link.m4 (gl_FUNC_LINK): Likewise.
47051         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
47052         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
47053         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
47054         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47055         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
47056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47057         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
47058         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
47059         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47060         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47061         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
47062         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
47063         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47064         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47065         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
47066         gl_PRINTF_PRECISION): Likewise.
47067         * m4/regex.m4 (gl_REGEX): Likewise.
47068         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47070         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
47071         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47075         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
47076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47077         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47078         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
47079         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
47080         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47081         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47082         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47083         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
47084         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
47085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47087         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
47088         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
47089         enumerated value.
47090         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
47092 2010-12-04  Bruno Haible  <bruno@clisp.org>
47094         Update for Solaris 11 2010-11.
47095         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
47096         Express, released in November 2010.
47098 2010-12-04  Bruno Haible  <bruno@clisp.org>
47100         nproc: Relax license.
47101         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
47102         and Paul Eggert.
47103         Requested by Ludovic Courtès <ludo@gnu.org>.
47105 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47107         utimecmp: fine-grained src to nearby coarse-grained dest
47109         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47110         and the source is on a file system with higher-resolution time
47111         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47112         not work, and the time stamps are close together, the algorithm to
47113         determine the exact resolution from the read-back mtime was buggy:
47114         it had a "!=" where it should have had an "==".  This bug has been
47115         in the code ever since it was introduced to gnulib.
47116         Problem reported by Dan Jacobson in
47117         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47119 2010-11-30  Bruno Haible  <bruno@clisp.org>
47121         strerror_r-posix: Fix autoconf test.
47122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47124 2010-11-28  Bruno Haible  <bruno@clisp.org>
47125             Paul Eggert  <eggert@cs.ucla.edu>
47127         Tests for module 'getdomainname'.
47128         * modules/getdomainname-tests: New file.
47129         * tests/test-getdomainname.c: New file, based on
47130         tests/test-gethostname.c.
47132 2010-11-28  Bruno Haible  <bruno@clisp.org>
47133             Paul Eggert  <eggert@cs.ucla.edu>
47135         getdomainname: Use the system function when possible.
47136         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47137         (getdomainname): Replace if needed. Provide the declaration if it is
47138         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47139         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47140         (getdomainname): When the system has getdomainname, call the system
47141         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47142         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47143         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47144         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47145         the function if its second argument is of type 'int' or if it is found
47146         in libnsl.
47147         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47148         <sys/systeminfo.h> and sysinfo().
47149         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47151         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47152         HAVE_GETDOMAINNAME.
47153         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47154         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47155         * doc/glibc-functions/getdomainname.texi: Document the problems with
47156         the getdomainname declaration.
47158 2010-11-28  Bruno Haible  <bruno@clisp.org>
47160         sys_socket: Ensure ss_family field on AIX.
47161         * lib/sys_socket.in.h (ss_family): New macro definition.
47162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47163         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47164         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47165         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47166         * modules/sys_socket (Makefile.am): Substitute
47167         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47168         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47170 2010-11-27  Bruno Haible  <bruno@clisp.org>
47172         readline: Improve configure output.
47173         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47174         "checking for readline..." result understandable.
47176 2010-11-27  Bruno Haible  <bruno@clisp.org>
47178         *printf-posix: Detect a bug on Solaris 10/x86.
47179         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47180         for floating-point output.
47181         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47182         directive.
47183         * tests/test-snprintf-posix.h (test_function): Likewise.
47184         * tests/test-sprintf-posix.h (test_function): Likewise.
47185         * tests/test-vasprintf-posix.c (test_function): Likewise.
47186         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47187         * doc/posix-functions/printf.texi: Likewise.
47188         * doc/posix-functions/snprintf.texi: Likewise.
47189         * doc/posix-functions/sprintf.texi: Likewise.
47190         * doc/posix-functions/vfprintf.texi: Likewise.
47191         * doc/posix-functions/vprintf.texi: Likewise.
47192         * doc/posix-functions/vsnprintf.texi: Likewise.
47193         * doc/posix-functions/vsprintf.texi: Likewise.
47194         * doc/glibc-functions/obstack_printf.texi: Likewise.
47195         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47197 2010-11-27  Bruno Haible  <bruno@clisp.org>
47199         Fix link error when module libunistring-optional is in use.
47200         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47201         * modules/striconveha-tests (Makefile.am): Likewise.
47203 2010-11-27  Bruno Haible  <bruno@clisp.org>
47205         regex: Mention link dependencies.
47206         * modules/regex (Link): New section.
47207         * modules/rpmatch (Link): Likewise.
47208         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47210 2010-11-27  Bruno Haible  <bruno@clisp.org>
47212         ftoastr: Fix compilation error on Solaris.
47213         * lib/ftoastr.c: Include <config.h>.
47215 2010-11-27  Bruno Haible  <bruno@clisp.org>
47217         getloadavg: Update documentation.
47218         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47220 2010-11-27  Bruno Haible  <bruno@clisp.org>
47222         sys_socket: Fix test whether the functions are declared.
47223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47224         not <sys/select.h>.
47226 2010-11-27  Bruno Haible  <bruno@clisp.org>
47228         getpass: Make sure to get system declaration on some platforms.
47229         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47230         gl_USE_SYSTEM_EXTENSIONS.
47231         * modules/getpass (Depends-on): Add extensions.
47233 2010-11-26  Bruno Haible  <bruno@clisp.org>
47235         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47236         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47237         'iconv' module is present.
47238         (ICONV_CONST): New macro.
47239         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47240         ICONV_CONST.
47241         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47242         set ICONV_CONST.
47243         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47244         here.
47245         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47246         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47247         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47248         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47249         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47250         present.
47252 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47254         ftoastr: comment fix
47255         * lib/ftoastr.c: "little" -> "little or no" in comment
47257 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47259         stdint: port to GCC 4.3 + OSX + Octave
47260         On this platform, stdint.h is buggy and defines int64_t to long
47261         long int.  The replacement defined it to long int, causing
47262         problems with C++ style name mangling.  Instead, trust the system
47263         definition if INT64_MAX is defined, and likewise for the unsigned
47264         variant.   Problem reported by Jarno Rajahalme in
47265         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47266         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47267         and don't mess with int64_t and INT64_MAX in this case.
47268         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47270 2010-11-24  Bruno Haible  <bruno@clisp.org>
47272         doc: Corrections regarding MacOS X 10.4 and 10.5.
47273         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47274         MacOS X.
47275         Reported by Simon Josefsson.
47277 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47279         Uninstall ".bin" files installed by relocwrapper.
47280         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47281         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47282         unless it is already there.
47284 2010-11-21  Bruno Haible  <bruno@clisp.org>
47286         Update for NetBSD 5.0.
47287         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47288         NetBSD; the test fails on NetBSD 5.0.
47289         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47290         about NetBSD.
47292 2010-11-21  Bruno Haible  <bruno@clisp.org>
47294         Update for HP-UX 11.23 and HP-UX 11.31.
47295         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47296         HP-UX.
47298 2010-11-21  Bruno Haible  <bruno@clisp.org>
47300         Update for MacOS X 10.5.
47301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47302         MacOS X; the test fails on MacOS X 10.5.8.
47303         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47304         about MacOS X.
47306 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47308         bootstrap: add bootstrap_sync option.
47309         See discussion at
47310         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47311         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47312         * build-aux/bootstrap: Accept --bootstrap-sync to update
47313         bootstrap if it is not identical to the local gnulib's
47314         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47315         enable this by default.  Accept --no-bootstrap-sync to disable
47316         it.
47318 2010-11-20  Bruno Haible  <bruno@clisp.org>
47320         Ensure that <features.h> is included before __GLIBC__ is tested.
47321         * lib/printf-parse.h: Include <features.h>.
47322         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47323         Reported by Mike Frysinger <vapier@gentoo.org>.
47325         Ensure that <features.h> is included before __GLIBC__ is tested.
47326         * lib/wchar.in.h: Include <features.h>.
47327         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47328         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47329         Reported by Mike Frysinger <vapier@gentoo.org>.
47331         Ensure that <features.h> is included before __GLIBC__ is tested.
47332         * lib/arpa_inet.in.h: Include <features.h>.
47333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47334         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47335         Reported by Mike Frysinger <vapier@gentoo.org>.
47337         Ensure that <features.h> is included before __GLIBC__ is tested.
47338         * build-aux/link-warning.h: Include <features.h>.
47339         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47340         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47341         Reported by Mike Frysinger <vapier@gentoo.org>.
47343         Ensure that <features.h> is included before __GLIBC__ is tested.
47344         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47345         Reported by Mike Frysinger <vapier@gentoo.org>.
47347 2010-11-20  Bruno Haible  <bruno@clisp.org>
47349         memmem: Fix autoconf test.
47350         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47352 2010-11-20  Bruno Haible  <bruno@clisp.org>
47354         Port to uClibc.
47355         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47356         * lib/fcntl.in.h: Likewise.
47357         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47358         * lib/mbrtowc.c (mbrtowc): Likewise.
47359         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47360         * lib/strerror_r.c: Likewise.
47361         * lib/unistr/u8-strnlen.c: Likewise.
47362         * lib/vasnprintf.c (decimal_point_char): Likewise.
47363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47366         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47367         * tests/test-sigaction.c (handler, main): Likewise.
47368         * lib/freading.h: Treat uClibc like a non-glibc platform.
47369         * lib/freading.c: Likewise.
47370         * lib/gettext.h: Likewise.
47371         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47372         Likewise.
47373         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47374         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47375         * lib/propername.c (proper_name_utf8): Likewise.
47376         * lib/spawn.in.h: Likewise.
47377         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47378         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47379         mem_cd_iconveh_internal): Likewise.
47380         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47381         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47382         strstr, strcasestr): Likewise.
47383         * lib/unicodeio.c (unicode_to_mb): Likewise.
47384         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47385         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47386         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47387         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47388         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47389         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47390         * lib/unistr/u8-stpncpy.c: Likewise.
47391         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47392         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47393         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47394         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47395         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47396         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47397         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47400         Likewise.
47401         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47402         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47406         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47407         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47408         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47409         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47410         * tests/test-striconveha.c (main): Likewise.
47411         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47412         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47413         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47414         * doc/posix-functions/getline.texi: Likewise.
47415         Reported by Mike Frysinger <vapier@gentoo.org>.
47417 2010-11-20  Bruno Haible  <bruno@clisp.org>
47419         nproc: Fix condition.
47420         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47421         HAVE_PTHREAD_AFFINITY_NP.
47423 2010-11-20  Bruno Haible  <bruno@clisp.org>
47425         Fix a comment.
47426         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47428 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47430         ftoastr: don't assume snprintf
47431         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47432         Implement a subset of snprintf here, by using sprintf safely.
47433         * modules/ftoastr (Depends-on): Remove snprintf.
47435 2010-11-19  Jim Meyering  <meyering@redhat.com>
47437         test-rename.h: fix compilation failure
47438         * tests/test-rename.h (test_rename): Add omitted "}".
47440 2010-11-17  Jim Meyering  <meyering@redhat.com>
47442         maint.mk: add a URL discussing the no-@acronym policy
47443         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47445 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47447         ftoastr: depend on snprintf, improve comments
47448         * lib/ftoastr.c: Also mention Loitsch's draft.
47449         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47450         needed in the current implementation, but it might simplify
47451         speeding up the code later.
47452         * modules/ftoastr: Depend on snprintf; this improves portability.
47453         Suggested by Bruno Haible in the same email.
47455         ftoastr: port to hosts lacking strtof and strtold
47456         Problem reported by Bruno Haible in
47457         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47458         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47459         environment and strtold (and presumably strtof) are not available.
47460         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47461         (configure.ac): Require gl_C99_STRTOLD.
47463 2010-11-18  Bruno Haible  <bruno@clisp.org>
47465         c-strtold: Avoid link error on AIX 7.
47466         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47467         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47468         (gl_C_STRTOLD): Test whether strtold_l exists.
47469         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47471 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47473         intprops: new macro INT_BITS_STRLEN_BOUND
47474         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47475         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47476         not exposed.  Also, it uses a slightly tighter bound than before;
47477         though this makes no practical difference, we might as well be as
47478         tight as we easily can.
47480         ftoastr: new module, for lossless conversion of floats to short strings
47481         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47482         * modules/ftoastr: New files.
47484 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47486         bootstrap: port to Solaris sed
47487         * build-aux/bootstrap (get_version): Port to Solaris sed.
47488         See Ralf Wildenhues's note in
47489         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47491 2010-11-14  Jim Meyering  <meyering@redhat.com>
47493         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47494         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47495         and move definition closer to sole use.
47497 2010-11-13  Jim Meyering  <meyering@redhat.com>
47499         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47500         Now we require at least autoconf-2.59, which means the work-around
47501         is no longer needed.
47502         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47503         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47504         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47505         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47506         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47508 2010-11-13  Bruno Haible  <bruno@clisp.org>
47510         rename, renameat: Avoid test failures at NFS mounted locations.
47511         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47512         functions.
47513         (test_rename): Use assert_nonexistent.
47514         * tests/test-rename.c: Include <dirent.h>.
47515         * tests/test-renameat.c: Likewise.
47516         Reported by Gary V. Vaughan <gary@gnu.org>.
47518         rename, renameat: Document Linux bug with NFS
47519         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47520         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47521         * doc/posix-functions/renameat.texi: Likewise.
47522         Suggested by Eric Blake.
47524 2010-11-13  Bruno Haible  <bruno@clisp.org>
47526         rename test: Add comments.
47527         * tests/test-rename.h (test_rename): Add structure and comments.
47529 2010-11-13  Eric Blake  <eblake@redhat.com>
47531         maintainer-makefile: cover a few more files
47532         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47533         scripts generated within C files, for libvirt.
47535 2010-11-13  Bruno Haible  <bruno@clisp.org>
47537         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47538         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47539         character, return the number of bytes that belong together, not always
47540         1.
47541         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47542         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47543         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47544         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47545         number of bytes of an invalid character.
47546         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47547         (main): Invoke it.
47548         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47549         results.
47550         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47551         malformed byte sequences.
47552         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47553         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47554         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47555         Reported by Ben Pfaff and Paolo Bonzini.
47557 2010-11-13  Bruno Haible  <bruno@clisp.org>
47559         openat: Work around glibc bug with fchownat() and empty file names.
47560         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47561         (gl_FUNC_FCHOWNAT): Invoke it.
47562         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47563         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47564         Reported by Gary V. Vaughan <gary@gnu.org>.
47566 2010-11-13  Bruno Haible  <bruno@clisp.org>
47568         openat: Ensure autoconf macro ordering.
47569         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47570         gl_USE_SYSTEM_EXTENSIONS.
47571         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47573 2010-11-13  Bruno Haible  <bruno@clisp.org>
47575         Update comments.
47576         * lib/unistr/u8-check.c: Update file name in comments.
47577         * lib/unistr/u8-mblen.c: Likewise.
47578         * lib/unistr/u8-prev.c: Likewise.
47579         * lib/unistr/u8-strmblen.c: Likewise.
47580         * lib/unistr/u8-strmbtouc.c: Likewise.
47582 2010-11-13  Jim Meyering  <meyering@redhat.com>
47584         tests: avoid test failure on Solaris 10 due to lack of PATH export
47585         * tests/test-update-copyright.sh: Don't forget to export PATH.
47587         init.sh: ensure that IFS is defined, just in case...
47588         * tests/init.sh (setup_): Ensure that IFS is defined,
47589         so that saving and restoring it works as expected.  This
47590         appears to be useful at least for an old version of dash
47591         from a long time ago (RH 6).  See here for details:
47592         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47594         maint.mk: tighten "test a == b" check
47595         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47596         test to files that contain something like #!/bin/sh.
47597         Without this, coreutils would get two false positives in
47598         the comments of C source files.
47600 2010-11-12  Eric Blake  <eblake@redhat.com>
47602         bootstrap: fix typo in previous attempt
47603         * build-aux/bootstrap (buildreq): Correct the grouping.
47604         Reported by Paul Eggert.
47606         maintainer-makefile: prohibit test x == x
47607         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47608         Based on a report by Matthias Bolte.
47610         bootstrap: allow FreeBSD gzip
47611         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47612         which has no '.' and goes to stderr.
47613         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47614         Reported by Matthias Bolte.
47616         maintainer-makefile: check for i18n setup
47617         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47618         will likely work.
47620 2010-11-12  Bruno Haible  <bruno@clisp.org>
47622         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47623         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47624         * lib/nanosleep.c (nanosleep): Likewise.
47626 2010-11-11  Bruno Haible  <bruno@clisp.org>
47628         fcntl-h: Fix for use of C++ on glibc systems.
47629         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47630         also on glibc systems in C++ mode.
47631         Reported by Gary V. Vaughan <gary@gnu.org>.
47633 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47635         mknod: avoid false failure with dash
47636         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47638 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47640         unlink: Fix "is it should" typo in diagnostic.
47641         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47642         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47644 2010-11-11  Bruno Haible  <bruno@clisp.org>
47646         Tests for module 'strerror_r-posix'.
47647         * modules/strerror_r-posix-tests: New file.
47648         * tests/test-strerror_r.c: New file.
47649         * tests/test-string-c++.cc: Check the signature of strerror_r.
47651         New module 'strerror_r-posix'.
47652         * lib/string.in.h (strerror_r): New declaration.
47653         * lib/strerror_r.c: New file.
47654         * m4/strerror_r.m4: New file.
47655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47656         of strerror_r.
47657         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47658         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47659         * modules/strerror_r-posix: New file.
47660         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47661         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47662         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47663         portability problems.
47665 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47667         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47668         line is also considered for output. Quoted function name in shell
47669         command, so temporary files for functions like MyClass::operator()
47670         are removed correctly without errors.
47672 2010-11-09  Bruno Haible  <bruno@clisp.org>
47674         * doc/posix-functions/strerror.texi: List more failing platforms.
47676         * doc/posix-functions/strerror.texi: Add a comment.
47678 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47680         fdopendir: fix bug on MacOS X when low on file descriptors
47682         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47683         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47684         All callers changed.
47685         (fdopendir): Invoke save_cwd at the top level, not after using
47686         multiple dup() calls to use up file descriptors.  Then retry
47687         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47688         less than the maximum number of open file descriptors, because
47689         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47690         on Mac OS X 10.6.4 for tar 1.24
47691         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47692         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47693         and for tar 1.25
47694         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47696 2010-11-07  Bruno Haible  <bruno@clisp.org>
47698         vasnprintf: Support I flag on glibc systems.
47699         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47700         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47701         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47702         snprintf function.
47703         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47704         glibc systems.
47705         * tests/test-vasnprintf-posix3.c: New file.
47706         * modules/vasnprintf-posix-tests (Files): Add it.
47707         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47709 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47711         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47712         * MODULES.html.sh: For compiler warnings, use name
47713         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47715 2010-11-05  Eric Blake  <eblake@redhat.com>
47717         ceil, floor: avoid spurious failure with icc
47718         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47719         [denormals-as-zero] when optimizing without -mieee-fp option.
47720         * tests/test-floorf2.c (floorf_reference): Likewise.
47721         * tests/test-ceilf1.c (dummy): New function.
47722         (main): Use it to outsmart icc's optimization.
47723         * tests/test-floorf1.c (dummy, main): Likewise.
47725         tests: require working signbit
47726         * modules/ceilf-tests (Depends-on): Add signbit.
47727         * modules/ceill-tests (Depends-on): Likewise.
47728         * modules/floorf-tests (Depends-on): Likewise.
47729         * modules/floorl-tests (Depends-on): Likewise.
47730         * modules/round-tests (Depends-on): Likewise.
47731         * modules/roundf-tests (Depends-on): Likewise.
47732         * modules/roundl-tests (Depends-on): Likewise.
47733         * modules/trunc-tests (Depends-on): Likewise.
47734         * modules/truncf-tests (Depends-on): Likewise.
47735         * modules/truncl-tests (Depends-on): Likewise.
47737         strtod: work around icc bug
47738         * lib/strtod.c (minus_zero): Define to working value.
47739         (strtod): Use it to avoid icc bug.
47741         copysign: enhance tests
47742         * modules/copysign-tests (Files): Add minus-zero.h.
47743         * tests/test-copysign.c (main): Also test zeros.
47745 2010-11-04  Eric Blake  <eblake@redhat.com>
47747         ceil, floor, round, trunc: enhance tests of -0
47748         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47749         * tests/test-ceill.c (main): Likewise.
47750         * tests/test-floorf1.c (main): Likewise.
47751         * tests/test-floorl.c (main): Likewise.
47752         * tests/test-round1.c (main): Likewise.
47753         * tests/test-roundf1.c (main): Likewise.
47754         * tests/test-roundl.c (main): Likewise.
47755         * tests/test-trunc1.c (main): Likewise.
47756         * tests/test-truncf1.c (main): Likewise.
47757         * tests/test-truncl.c (main): Likewise.
47759 2010-11-04  Eric Blake  <eblake@redhat.com>
47761         frexp, tests: work around ICC bug with -zero
47762         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47763         works with more compilers.
47764         * tests/minus-zero.h: New file.
47765         * modules/ceilf-tests (Files): Include it.
47766         * modules/ceill-tests (Files): Likewise.
47767         * modules/floorf-tests (Files): Likewise.
47768         * modules/floorl-tests (Files): Likewise.
47769         * modules/frexp-nolibm-tests (Files): Likewise.
47770         * modules/frexp-tests (Files): Likewise.
47771         * modules/frexpl-nolibm-tests (Files): Likewise.
47772         * modules/frexpl-tests (Files): Likewise.
47773         * modules/isnan-tests (Files): Likewise.
47774         * modules/isnand-nolibm-tests (Files): Likewise.
47775         * modules/isnand-tests (Files): Likewise.
47776         * modules/isnanf-nolibm-tests (Files): Likewise.
47777         * modules/isnanf-tests (Files): Likewise.
47778         * modules/isnanl-nolibm-tests (Files): Likewise.
47779         * modules/isnanl-tests (Files): Likewise.
47780         * modules/round-tests (Files): Likewise.
47781         * modules/roundf-tests (Files): Likewise.
47782         * modules/roundl-tests (Files): Likewise.
47783         * modules/ldexpl-tests (Files): Likewise.
47784         * modules/signbit-tests (Files): Likewise.
47785         * modules/snprintf-posix-tests (Files): Likewise.
47786         * modules/sprintf-posix-tests (Files): Likewise.
47787         * modules/strtod-tests (Files): Likewise.
47788         * modules/trunc-tests (Files): Likewise.
47789         * modules/truncf-tests (Files): Likewise.
47790         * modules/truncl-tests (Files): Likewise.
47791         * modules/vsnprintf-posix-tests (Files): Likewise.
47792         * modules/vsprintf-posix-tests (Files): Likewise.
47793         * modules/vasnprintf-posix-tests (Files): Likewise.
47794         * modules/vasprintf-posix-tests (Files): Likewise.
47795         * tests/test-ceilf1.c (main): Use it.
47796         * tests/test-ceill.c (main): Likewise.
47797         * tests/test-floorf1.c (main): Likewise.
47798         * tests/test-floorl.c (main): Likewise.
47799         * tests/test-frexp.c (main): Likewise.
47800         * tests/test-frexpl.c (main): Likewise.
47801         * tests/test-isnan.c (main): Likewise.
47802         * tests/test-isnand.h (main): Likewise.
47803         * tests/test-isnanf.h (main): Likewise.
47804         * tests/test-isnanl.h (main): Likewise.
47805         * tests/test-ldexpl.c (main): Likewise.
47806         * tests/test-round.c (main): Likewise.
47807         * tests/test-roundf.c (main): Likewise.
47808         * tests/test-roundl.c (main): Likewise.
47809         * tests/test-signbit.c (test_signbitf, test_signbitd)
47810         (test_signbitl): Likewise.
47811         * tests/test-snprintf-posix.h (test_function): Likewise.
47812         * tests/test-sprintf-posix.h (test_function): Likewise.
47813         * tests/test-strtod.c (main): Likewise.
47814         * tests/test-trunc1.c (main): Likewise.
47815         * tests/test-truncf1.c (main): Likewise.
47816         * tests/test-truncl.c (main): Likewise.
47818         isnanl: work around icc bug
47819         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47821 2010-11-03  Eric Blake  <eblake@redhat.com>
47823         tests: fix compiler warnings
47824         * tests/test-getopt.h (test_getopt): Fix condition.
47825         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47826         * tests/test-pipe2.c (main): Likewise.
47827         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47829         utimens: fix broken m4 test
47830         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47832 2010-10-28  Bruno Haible  <bruno@clisp.org>
47834         posix_spawn*, getdtablesize: Relax license.
47835         * modules/posix_spawn (License): Change to LGPLv2+.
47836         * modules/posix_spawnp (License): Likewise.
47837         * modules/posix_spawn-internal (License): Likewise.
47838         * modules/posix_spawnattr_init (License): Likewise.
47839         * modules/posix_spawnattr_getflags (License): Likewise.
47840         * modules/posix_spawnattr_setflags (License): Likewise.
47841         * modules/posix_spawnattr_getpgroup (License): Likewise.
47842         * modules/posix_spawnattr_setpgroup (License): Likewise.
47843         * modules/posix_spawnattr_getschedparam (License): Likewise.
47844         * modules/posix_spawnattr_setschedparam (License): Likewise.
47845         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47846         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47847         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47848         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47849         * modules/posix_spawnattr_getsigmask (License): Likewise.
47850         * modules/posix_spawnattr_setsigmask (License): Likewise.
47851         * modules/posix_spawnattr_destroy (License): Likewise.
47852         * modules/posix_spawn_file_actions_init (License): Likewise.
47853         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47854         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47855         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47856         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47857         * modules/getdtablesize (License): Likewise.
47858         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47860 2010-10-26  Bruno Haible  <bruno@clisp.org>
47862         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47863         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47864         Cygwin and mingw.
47865         Suggested by Eric Blake.
47867 2010-10-26  Bruno Haible  <bruno@clisp.org>
47869         stdio: Work around compilation error due to renameat() on Solaris 10.
47870         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47871         * lib/renameat.c: Don't include <unistd.h> here.
47872         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47873         Reported by Paul Eggert and Eric Blake.
47875 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47877         renameat: port to Solaris 10, which declares renameat in unistd.h
47879         * lib/renameat.c: Include unistd.h before stdio.h, because
47880         Solaris 10 declares renameat in unistd.h.  Problem encountered
47881         when building GNU tar 1.24 on Solaris 10.
47883 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47885         fdopendir: fix C89 compilation
47886         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47887         compilers.
47889 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47891         inttostr: simplify by removing unnecessary redundancy
47892         * lib/anytostr.c: Don't include verify.h.
47893         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47894         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47895         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47896         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47897         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47898         Likewise.
47899         * modules/inttostr (Depends-on): Remove 'verify'.
47901 2010-10-23  Bruno Haible  <bruno@clisp.org>
47903         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47904         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47905         Reported by Eric Blake.
47907 2010-10-23  Bruno Haible  <bruno@clisp.org>
47909         Tests: Fix LOCALE_JA on MirBSD 10.
47910         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47911         to an UTF-8 locale.
47912         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47913         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47914         Reported by Eric Blake.
47916 2010-10-21  Bruno Haible  <bruno@clisp.org>
47918         nl_langinfo test: Avoid test failure on NetBSD 5.
47919         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47920         Reported by Eric Blake.
47922 2010-10-21  Eric Blake  <eblake@redhat.com>
47924         c-stack: work around libsigsegv 2.8 bug
47925         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47926         overflow on at least PowerPC64.
47928 2010-10-17  Bruno Haible  <bruno@clisp.org>
47930         userspec: Drop redundant file.
47931         * modules/userspec (Files): Remove lib/inttostr.h.
47933 2010-10-17  Bruno Haible  <bruno@clisp.org>
47935         nl_langinfo tests: Silence some warnings.
47936         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47937         Reported by Jim Meyering.
47939 2010-10-17  Bruno Haible  <bruno@clisp.org>
47941         Make use of GCC's attribute __alloc_size__.
47942         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47943         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47944         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47945         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47946         __alloc_size__.
47947         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47948         Suggested by Jim Meyering.
47950 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47952         bootstrap: anchor .gitignore entries.
47953         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47954         with...
47955         (insert_vc_ignore): ... this new function, which prepends `/' to
47956         all .gitignore entries before passing them to
47957         insert_sorted_if_absent.
47959 2010-10-16  Bruno Haible  <bruno@clisp.org>
47961         nextafter: Fix configure check.
47962         * modules/nextafter (configure.ac): Correct expected prototype.
47964 2010-10-16  Bruno Haible  <bruno@clisp.org>
47966         termios: Update documentation.
47967         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47969 2010-10-16  Bruno Haible  <bruno@clisp.org>
47971         tests: Make them compile with TinyCC.
47972         * tests/test-strstr.c (main): Remove parentheses around array
47973         initializer.
47975 2010-10-15  Eric Blake  <eblake@redhat.com>
47977         ignore-value: make header idempotent
47978         * lib/ignore-value.h: Add double-inclusion guards.
47979         Reported by Stefan Berger.
47981 2010-10-15  Jim Meyering  <meyering@redhat.com>
47983         GNUmakefile: handle "stable" target, not "major"
47984         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47985         lists in maint.mk and announce-gen.  Without this, "make stable"
47986         would fail to ensure that $(VERSION) is up to date.
47988 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47990         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47991         & co.
47993 2010-10-14  Bruno Haible  <bruno@clisp.org>
47995         vasnprintf: Don't set errno to 0.
47996         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47997         block that sets it to 0.
47998         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
48000 2010-10-14  Bruno Haible  <bruno@clisp.org>
48002         socketlib: Fix.
48003         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
48004         gl_PREREQ_SYS_H_WINSOCK2.
48005         Reported by Ian Beckwith <ianb@erislabs.net>.
48007 2010-10-13  Jim Meyering  <meyering@redhat.com>
48009         test-select-stdin.c: avoid warn_unused_result warnings
48010         * tests/test-select-stdin.c: Include "macros.h".
48011         ASSERT that read and fflush succeed.
48013 2010-10-13  Jim Meyering  <meyering@redhat.com>
48015         git-version-gen: do require git-VC'd files in cwd
48016         * build-aux/git-version-gen: Reject a git version string
48017         if there are no commits associated with the current directory.
48018         This avoids an unlikely false-positive (unrelated dir whose parent
48019         repository also contains a tag matching v*), as pointed out
48020         by Giuseppe Scrivano in
48021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
48023 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48025         argv-iter: omit nonconforming declaration
48026         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
48027         enum arg_iter_err declaration, which doesn't conform to C99.
48028         Solaris 10 cc warns about this.
48030 2010-10-13  Eric Blake  <eblake@redhat.com>
48032         termios: fix compilation on mingw
48033         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
48034         (gl_TERMIOS_H): Adjust it on mingw.
48035         * modules/termios (Makefile.am): Substitute new key.
48036         * lib/termios.in.h (includes): Make include_next conditional.
48037         * doc/posix-headers/termios.texi (termios.h): Update
48038         documentation.
48039         Reported by Daniel P. Berrange.
48041 2010-10-13  Jim Meyering  <meyering@redhat.com>
48043         git-version-gen: don't require that .git/ be in the current dir
48044         * build-aux/git-version-gen: Adjust this script so that it works
48045         when run from any working directory beneath the top-level .git/-
48046         containing directory.  Inspired by a patch from Giuseppe Scrivano,
48047         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
48049         test-select: avoid warn_unused_result warnings
48050         * tests/test-select.c: Include "macros.h".
48051         ASSERT that each call to read, write, and pipe succeeds.
48052         While not technically required, also check each "close".
48053         * modules/select-tests (Files): Add tests/macros.h.
48055         test-symlinkat: remove declaration of unused local
48056         * tests/test-symlinkat.c (main): Remove unused local, "buf".
48058         test-inttostr: avoid shadowing warnings
48059         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
48060         and use malloc rather than the stack for the same reason as
48061         mentioned in the comment justifying the other allocation.
48063 2010-10-11  Bruno Haible  <bruno@clisp.org>
48065         stdlib: Allow multiple gnulib generated replacements to coexist.
48066         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
48067         Reported by Sam Steingold <sds@gnu.org>.
48069 2010-10-11  Jim Meyering  <meyering@redhat.com>
48071         fix a documentation typo
48072         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
48074 2010-10-11  Eric Blake  <eblake@redhat.com>
48076         futimens: work around Solaris 11 bug
48077         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
48078         * tests/test-futimens.h (test_futimens): Enhance, rather than
48079         weaken test.
48080         * doc/posix-functions/futimens.texi (futimens): Document the bug.
48082 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48084         Indentation.
48085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
48086         higher-level operators more to the left.
48088 2010-10-11  Jim Meyering  <meyering@redhat.com>
48090         test-futimens: avoid unwarranted test failure on Solaris 5.11
48091         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
48092         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
48093         because it tries to dereference the NULL name argument.
48095 2010-10-11  Bruno Haible  <bruno@clisp.org>
48097         Indentation.
48098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
48099         indentation.
48101 2010-10-11  Jim Meyering  <meyering@redhat.com>
48103         spawn.in.h: make indentation consistent with parentheses
48104         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
48105         Make indentation consistent with parentheses.
48107 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48109         Fix mismatched parens in previous commit
48110         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48111         parens.
48113 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48115         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48117         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48118         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48119         * lib/malloca.c: Include "verify.h".
48120         (verify1): Remove, replacing with a verify call.
48121         * lib/relocwrapper.c (verify1): Likewise.
48122         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48123         Likewise.
48124         * modules/malloca (Depends-on): Add 'verify'.
48125         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48126         * modules/vasnprintf (Depends-on): Add 'verify'.
48127         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48128         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48129         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48130         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48131         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48132         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48133         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48135         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48137         Formerly the style was sometimes 2*X - 1, because the C standard
48138         was wrongly thought to disallow ?: in integral constant expressions.
48139         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48140         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48142         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48143         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48144         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48145         verify that time_t cannot be floating.
48147 2010-10-08  Eric Blake  <eblake@redhat.com>
48149         time: enforce recent POSIX ruling that time_t is integral
48150         * lib/time.in.h (__time_t_must_be_integral): Detect any
48151         problematic systems, allowing the rest of gnulib to assume POSIX.
48153 2010-10-08  Jim Meyering  <meyering@redhat.com>
48155         fdopendir: fix a bug on systems lacking openat and /proc support
48156         OpenBSD 4.7 is one such system.  The most noticeable effect was
48157         failure of any application making nontrivial use of fts: rm, du,
48158         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48159           ./rm: traversal failed: `a': Bad file descriptor
48160         Debugging that, you see that even though FD 6 was closed just
48161         prior to the opendir call in fd_clone_opendir, its resulting
48162         dir->dd_fd was 8, rather than the expected value of 6:
48164         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48165         93                close (fd);
48166         (gdb) n
48167         94                dir = fd_clone_opendir (dupfd);
48168         (gdb) n
48169         95                saved_errno = errno;
48170         (gdb) p dir->dd_fd
48171         $11 = 8
48173         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48174         The problem is that on OpenBSD, fd_clone_opendir has to resort
48175         to using the old-style save/restore CWD mechanism, due to its
48176         lack of openat/proc support, and *that* would steal the FD (6)
48177         that opendir was supposed to use.
48179         The fix is to squirrel away the desired FD so that save_cwd uses a
48180         different one, and then free the dest FD right before calling opendir.
48181         That guarantees opendir will use the required file descriptor.
48183         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48185 2010-10-08  Bruno Haible  <bruno@clisp.org>
48187         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48188         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48190 2010-10-08  Bruno Haible  <bruno@clisp.org>
48192         nanosleep: Make replacement POSIX compliant.
48193         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48194         is out of range.
48195         Reported by Jim Meyering.
48197 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48199         bootstrap: add hook for altering gnulib.mk, for Bison
48200         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48201         the Bison bootstrapping process can rewrite file names and variables
48202         in this file before later parts of 'bootstrap' use the file.
48203         Bison wants to include lib/gnulib.mk from the top-level makefile,
48204         so it needs the file names in this file to be relative to the top
48205         level, not relative to lib; plus it needs variable names to be
48206         rewritten.
48207         (slurp): Use the new function.
48209         bootstrap: reformat for readability
48210         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48212 2010-10-08  Eric Blake  <eblake@redhat.com>
48214         docs: update cygwin progress
48215         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48216         1.7.7.
48217         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48218         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48219         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48220         * doc/posix-functions/carg.texi (carg): Likewise.
48221         * doc/posix-functions/cargf.texi (cargf): Likewise.
48222         * doc/posix-functions/casin.texi (casin): Likewise.
48223         * doc/posix-functions/casinf.texi (casinf): Likewise.
48224         * doc/posix-functions/casinh.texi (casinh): Likewise.
48225         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48226         * doc/posix-functions/catan.texi (catan): Likewise.
48227         * doc/posix-functions/catanf.texi (catanf): Likewise.
48228         * doc/posix-functions/catanh.texi (catanh): Likewise.
48229         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48230         * doc/posix-functions/ccos.texi (ccos): Likewise.
48231         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48232         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48233         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48234         * doc/posix-functions/cexp.texi (cexp): Likewise.
48235         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48236         * doc/posix-functions/cimag.texi (cimag): Likewise.
48237         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48238         * doc/posix-functions/clog.texi (clog): Likewise.
48239         * doc/posix-functions/clogf.texi (clogf): Likewise.
48240         * doc/posix-functions/conj.texi (conj): Likewise.
48241         * doc/posix-functions/conjf.texi (conjf): Likewise.
48242         * doc/posix-functions/cpow.texi (cpow): Likewise.
48243         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48244         * doc/posix-functions/cproj.texi (cproj): Likewise.
48245         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48246         * doc/posix-functions/creal.texi (creal): Likewise.
48247         * doc/posix-functions/crealf.texi (crealf): Likewise.
48248         * doc/posix-functions/csin.texi (csin): Likewise.
48249         * doc/posix-functions/csinf.texi (csinf): Likewise.
48250         * doc/posix-functions/csinh.texi (csinh): Likewise.
48251         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48252         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48253         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48254         * doc/posix-functions/ctan.texi (ctan): Likewise.
48255         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48256         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48257         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48258         * doc/posix-headers/complex.texi (complex.h): Likewise.
48260 2010-10-07  Jim Meyering  <meyering@redhat.com>
48262         parse-datetime: avoid compilation failure on OpenBSD 4.7
48263         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48264         This works around a compilation failure on OpenBSD 4.7:
48265         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48267 2010-10-07  Eric Blake  <eblake@redhat.com>
48269         docs: update cygwin progress
48270         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48271         1.7.6.
48272         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48273         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48274         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48275         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48276         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48277         Likewise.
48278         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48279         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48280         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48281         Likewise.
48282         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48283         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48284         Likewise.
48285         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48286         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48287         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48288         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48289         Likewise.
48290         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48291         Likewise.
48292         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48294         docs: update parse-datetime history
48295         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48296         documentation of this function's history and alternatives.
48298         cygwin: use more robust version check
48299         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48300         exclude an eventual cygwin 1.9.1.
48301         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48303         (gl_FUNC_STRCASESTR): Likewise.
48304         Reported by Bruno Haible.
48306 2010-10-06  Bruno Haible  <bruno@clisp.org>
48308         string, sys_select: Avoid #including large headers unless necessary.
48309         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48310         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48311         OSF/1, BeOS, Haiku.
48312         Reported by Jim Meyering.
48314 2010-10-05  Eric Blake  <eblake@redhat.com>
48316         memmem, strstr, strcasestr: fix bug with long periodic needle
48317         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48318         periodic needle having false positive.
48319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48320         and cygwin 1.7.7.
48321         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48323         (gl_FUNC_STRCASESTR): Likewise.
48324         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48325         * tests/test-memmem.c (main): Expose the bug.
48326         * tests/test-strcasestr.c (main): Likewise.
48327         * tests/test-strstr.c (main): Likewise.
48328         * tests/test-c-strcasestr.c (main): Likewise.
48329         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48330         * doc/posix-functions/strstr.texi (strstr): Likewise.
48331         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48332         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48334 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48336         parse-datetime: do some more renaming
48337         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48338         parse_datetime, not get_date.  Mention the renaming.
48339         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48340         in comments.
48341         * m4/bison.m4: Likewise.
48343 2010-10-05  Eric Blake  <eblake@redhat.com>
48345         parse-datetime: better name than get_date
48346         * NEWS: Reword the deprecation notice.
48347         * modules/get_date: Rename to modules/parse-datetime.
48348         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48349         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48350         * lib/get_date.y: Rename to lib/parse-datetime.y.
48351         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48352         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48353         * doc/getdate.texi: Provide fallback wrapper.
48354         * lib/getdate.h: Move guts, and wrap...
48355         * lib/parse-datetime.h: ...new file.
48356         * lib/parse-datetime.y (get_date): Rename...
48357         (parse_datetime): ...to this.
48358         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48359         (gl_PARSE_DATETIME): ...to this.
48360         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48361         documentation.
48362         * modules/getdate (Files): Provide fallback docs and header.
48363         (Notice, Depends-on): Update references.
48364         * tests/test-parse-datetime.c: Likewise.
48365         * DEPENDENCIES: Likewise.
48366         * MODULES.html.sh (Date and time <time.h>): Likewise.
48367         * doc/parse-datetime.texi (Date input formats)
48368         (Authors of parse_datetime): Likewise.
48369         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48370         (Include): Likewise.
48371         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48372         * gnulib-tool: Likewise.
48373         * m4/bison.m4 (gl_BISON): Likewise.
48374         Suggested by Bruno Haible.
48376 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48378         more ports to Solaris tr, which needs [] around ranges
48379         * gnulib-tool: Solaris tr needs [] around ranges.
48380         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48381         * tests/test-pipe-filter-gi1.c (main): Likewise.
48382         * tests/test-pipe-filter-ii1.c (main): Likewise.
48384 2010-10-05  Eric Blake  <eblake@redhat.com>
48386         bootstrap: fix Solaris regression
48387         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48388         around ranges.
48389         Reported by Pádraig Brady.
48391         bootstrap: work with pkg-config
48392         * build-aux/bootstrap (check_versions): Also transliterate - in
48393         prerequisite name.
48394         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48395         prerequisites that were already found, to avoid confusion.
48396         Reported by Justin Clift.
48398         faccessat: remove unused wrappers
48399         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48400         presence of these wrappers dragged in -lgen on Solaris.
48401         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48403 2010-10-05  Jim Meyering  <meyering@redhat.com>
48405         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48406         * Makefile (sc_pragma_columns): New syntax-check rule.
48408 2010-10-04  Bruno Haible  <bruno@clisp.org>
48410         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48411         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48412         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48413         Reported by Bruce Korb and Eric Blake.
48415 2010-10-04  Bruno Haible  <bruno@clisp.org>
48417         threadlib: Make option --with-libpth-prefix work.
48418         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48419         use $LIBPTH, not just -lpth.
48421 2010-10-04  Bruno Haible  <bruno@clisp.org>
48423         Avoid line length limitation from HP NonStop system header files.
48424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48425         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48426         * lib/ctype.in.h: Likewise.
48427         * lib/dirent.in.h: Likewise.
48428         * lib/errno.in.h: Likewise.
48429         * lib/fcntl.in.h: Likewise.
48430         * lib/float.in.h: Likewise.
48431         * lib/getopt.in.h: Likewise.
48432         * lib/iconv.in.h: Likewise.
48433         * lib/inttypes.in.h: Likewise.
48434         * lib/langinfo.in.h: Likewise.
48435         * lib/locale.in.h: Likewise.
48436         * lib/math.in.h: Likewise.
48437         * lib/netdb.in.h: Likewise.
48438         * lib/netinet_in.in.h: Likewise.
48439         * lib/poll.in.h: Likewise.
48440         * lib/pthread.in.h: Likewise.
48441         * lib/pty.in.h: Likewise.
48442         * lib/sched.in.h: Likewise.
48443         * lib/se-selinux.in.h: Likewise.
48444         * lib/search.in.h: Likewise.
48445         * lib/signal.in.h: Likewise.
48446         * lib/spawn.in.h: Likewise.
48447         * lib/stdarg.in.h: Likewise.
48448         * lib/stddef.in.h: Likewise.
48449         * lib/stdint.in.h: Likewise.
48450         * lib/stdio.in.h: Likewise.
48451         * lib/stdlib.in.h: Likewise.
48452         * lib/string.in.h: Likewise.
48453         * lib/strings.in.h: Likewise.
48454         * lib/sys_file.in.h: Likewise.
48455         * lib/sys_ioctl.in.h: Likewise.
48456         * lib/sys_select.in.h: Likewise.
48457         * lib/sys_socket.in.h: Likewise.
48458         * lib/sys_stat.in.h: Likewise.
48459         * lib/sys_time.in.h: Likewise.
48460         * lib/sys_times.in.h: Likewise.
48461         * lib/sys_utsname.in.h: Likewise.
48462         * lib/sys_wait.in.h: Likewise.
48463         * lib/sysexits.in.h: Likewise.
48464         * lib/termios.in.h: Likewise.
48465         * lib/time.in.h: Likewise.
48466         * lib/unistd.in.h: Likewise.
48467         * lib/wchar.in.h: Likewise.
48468         * lib/wctype.in.h: Likewise.
48469         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48470         * modules/ctype (Makefile.am): Likewise.
48471         * modules/dirent (Makefile.am): Likewise.
48472         * modules/errno (Makefile.am): Likewise.
48473         * modules/fcntl-h (Makefile.am): Likewise.
48474         * modules/float (Makefile.am): Likewise.
48475         * modules/getopt-posix (Makefile.am): Likewise.
48476         * modules/iconv-h (Makefile.am): Likewise.
48477         * modules/inttypes (Makefile.am): Likewise.
48478         * modules/langinfo (Makefile.am): Likewise.
48479         * modules/locale (Makefile.am): Likewise.
48480         * modules/math (Makefile.am): Likewise.
48481         * modules/netdb (Makefile.am): Likewise.
48482         * modules/netinet_in (Makefile.am): Likewise.
48483         * modules/poll-h (Makefile.am): Likewise.
48484         * modules/pthread (Makefile.am): Likewise.
48485         * modules/pty (Makefile.am): Likewise.
48486         * modules/sched (Makefile.am): Likewise.
48487         * modules/search (Makefile.am): Likewise.
48488         * modules/selinux-h (Makefile.am): Likewise.
48489         * modules/signal (Makefile.am): Likewise.
48490         * modules/spawn (Makefile.am): Likewise.
48491         * modules/stdarg (Makefile.am): Likewise.
48492         * modules/stddef (Makefile.am): Likewise.
48493         * modules/stdint (Makefile.am): Likewise.
48494         * modules/stdio (Makefile.am): Likewise.
48495         * modules/stdlib (Makefile.am): Likewise.
48496         * modules/string (Makefile.am): Likewise.
48497         * modules/strings (Makefile.am): Likewise.
48498         * modules/sys_file (Makefile.am): Likewise.
48499         * modules/sys_ioctl (Makefile.am): Likewise.
48500         * modules/sys_select (Makefile.am): Likewise.
48501         * modules/sys_socket (Makefile.am): Likewise.
48502         * modules/sys_stat (Makefile.am): Likewise.
48503         * modules/sys_time (Makefile.am): Likewise.
48504         * modules/sys_times (Makefile.am): Likewise.
48505         * modules/sys_utsname (Makefile.am): Likewise.
48506         * modules/sys_wait (Makefile.am): Likewise.
48507         * modules/sysexits (Makefile.am): Likewise.
48508         * modules/termios (Makefile.am): Likewise.
48509         * modules/time (Makefile.am): Likewise.
48510         * modules/unistd (Makefile.am): Likewise.
48511         * modules/wchar (Makefile.am): Likewise.
48512         * modules/wctype (Makefile.am): Likewise.
48514 2010-10-04  Bruno Haible  <bruno@clisp.org>
48516         read-file tests: Avoid a test failure on NonStop Kernel.
48517         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48518         a regular file.
48519         Reported by Joachim Schmitz <schmitz@hp.com>.
48521 2010-10-03  Bruno Haible  <bruno@clisp.org>
48523         gnulib-tool: Fixes for --create-testdir with --libtool.
48524         * gnulib-tool (func_get_automake_snippet): Don't augment
48525         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48526         an executable.
48527         (func_create_testdir): Handle module 'alloca' like func_import.
48528         Reported by Bruce Korb <bruce.korb@gmail.com>.
48530 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48532         Avoid some lines longer than 80 characters.
48533         * lib/stdint.in.h: Break long comment lines.
48534         * lib/math.in.h: Likewise.
48535         (_GL_NUM_UINT_WORDS): New macro, for readability.
48536         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48537         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48538         * lib/stdlib.in.h: Likewise.
48539         * lib/spawn.in.h: Likewise.
48540         * lib/sys_socket.in.h: Update an URL.
48541         * lib/sys_stat.in.h: Break long line.
48543 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48545         Improve pmccabe2html.
48546         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48547         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48548         when the sources change. Remove the line in the HTML about "Used
48549         ranges" (which implied that there might be other unused ranges),
48550         rename "Resume" to "Summary" (easier to understand for more users).
48551         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48552         styles, and some unnecessary blank lines.
48554 2010-10-03  Bruno Haible  <bruno@clisp.org>
48555             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48557         acl: Add support for ACLs on NonStop Kernel.
48558         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48559         Check whether the function aclsort() exists.
48560         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48561         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48562         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48563         (acl_nontrivial [HAVE_ACLSORT]: New function.
48564         (file_has_acl): Implement for NonStop Kernel.
48565         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48566         (qset_acl): Implement for NonStop Kernel.
48567         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48568         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48569         (main): Implement for NonStop Kernel.
48570         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48571         Kernel. Handle this flavor.
48572         * tests/test-set-mode-acl.sh: Likewise.
48573         * tests/test-copy-acl.sh: Likewise.
48574         * tests/test-copy-file.sh: Likewise.
48576 2010-10-03  Bruno Haible  <bruno@clisp.org>
48578         Info about ACLs on NonStop Kernel.
48579         * doc/acl-resources.txt: Add info about NonStop Kernel.
48580         References by Joachim Schmitz <schmitz@hp.com>.
48582 2010-10-02  Bruno Haible  <bruno@clisp.org>
48584         Define missing EDQUOT on NonStop Kernel.
48585         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48586         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48587         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48588         missing.
48589         * doc/posix-headers/errno.texi: Mention the NSK bug.
48590         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48591         Reported by Joachim Schmitz <schmitz@hp.com>.
48593 2010-10-02  Bruno Haible  <bruno@clisp.org>
48595         Update doc for POSIX:2008.
48596         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48597         Update URL of POSIX specification.
48599 2010-10-02  Bruno Haible  <bruno@clisp.org>
48601         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48602         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48603         from gnulib, not from Automake.
48605 2010-10-02  Bruno Haible  <bruno@clisp.org>
48607         New module 'system-posix'.
48608         * modules/system-posix: New file.
48609         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48610         module is present.
48611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48612         GNULIB_SYSTEM_POSIX.
48613         * modules/stdlib (Depends-on): Remove sys_wait.
48614         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48615         * doc/posix-functions/system.texi: Mention the new module.
48616         * doc/posix-headers/stdlib.texi: Likewise.
48617         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48618         define test_sys_wait_macros to a no-op.
48619         Reported by Sam Steingold <sds@gnu.org>.
48621 2010-09-30  Bruno Haible  <bruno@clisp.org>
48623         More renaming from 'getdate' to 'get_date'.
48624         * doc/get_date.texi: Renamed from doc/getdate.texi.
48625         * modules/get_date (Files): Update.
48626         * MODULES.html.sh (Date and time <time.h>): Update.
48627         * DEPENDENCIES: Update.
48628         * gnulib-tool: Update comment.
48629         * m4/bison.m4 (gl_BISON): Likewise.
48630         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48632 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48634         bootstrap: support ACLOCAL_FLAGS during aclocal
48635         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48636         can add additional -I dir for third-party .m4 files.
48638 2010-09-30  Eric Blake  <eblake@redhat.com>
48640         bootstrap: use glibtoolize on MacOS
48641         * build-aux/bootstrap (check_versions): Convert libtool into
48642         libtoolize.
48643         (tool search): Move libtool check earlier, and look for
48644         glibtoolize for MacOS.
48645         (gnulib_tool_options): Auto-add --libtool when appropriate.
48646         Reported by Justin Clift.
48648         poll: fix typo that broke test on MacOS
48649         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48650         Reported by Justin Clift.
48652         getdate: rename to get_date
48653         Note: getdate.h is not renamed, to minimize client impact.
48654         * modules/getdate: Mark obsolete.  Move old contents...
48655         * modules/get_date: ...to new module name.
48656         * modules/getdate-tests: Move...
48657         * modules/get_date-tests: ...here.
48658         * m4/getdate.m4: Move...
48659         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48660         * lib/getdate.y: Move...
48661         * lib/get_date.y: ...here.
48662         * tests/test-getdate.c: Move...
48663         * tests/test-get_date.c: ...here.
48664         * doc/posix-functions/getdate.texi (getdate): Update name.
48665         * NEWS: Mention the change.
48667 2010-09-29  Bruno Haible  <bruno@clisp.org>
48669         Separate the module 'waitpid' from the module 'sys_wait'.
48670         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48671         present.
48672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48673         gl_MODULE_INDICATOR_FOR_TESTS.
48674         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48675         * modules/sys_wait (Depends-on): Remove waitpid.
48676         (Makefile.am): Substitute GNULIB_WAITPID.
48677         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48678         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48679         signature only if the 'waitpid' module is present.
48680         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48681         * NEWS: Mention the change.
48682         * modules/grantpt (Depends-on): Add waitpid.
48683         * modules/wait-process (Depends-on): Likewise.
48685 2010-09-29  Bruno Haible  <bruno@clisp.org>
48687         More tests for module 'sys_wait'.
48688         * modules/sys_wait-c++-tests: New file.
48689         * tests/test-sys_wait-c++.cc: New file.
48690         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48691         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48693 2010-09-29  Bruno Haible  <bruno@clisp.org>
48695         New module 'waitpid'.
48696         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48697         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48698         Don't include <process.h>.
48699         (waitpid): Declare only, using modern idiom.
48700         * m4/waitpid.m4: New file.
48701         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48702         * modules/waitpid: New file.
48703         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48704         (Makefile.am): Update.
48705         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48707 2010-09-28  Bruno Haible  <bruno@clisp.org>
48709         poll: Assume ANSI C.
48710         * lib/poll.c (poll): Use an ANSI C declaration.
48712 2010-09-28  Bruno Haible  <bruno@clisp.org>
48714         poll-h: Create poll.h on all platforms.
48715         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48716         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48717         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48718         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48719         (gl_REPLACE_POLL_H): Don't set POLL_H.
48720         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48721         * modules/poll-h (Depends-on): Add include_next.
48722         (Makefile.am): Create poll.h unconditionally. Substitute also
48723         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48725 2010-09-28  Bruno Haible  <bruno@clisp.org>
48727         Tests for module 'poll-h'.
48728         * modules/poll-h-c++-tests: New file.
48729         * tests/test-poll-h-c++.cc: New file.
48731         Tests for module 'poll-h'.
48732         * modules/poll-h-tests: New file.
48733         * tests/test-poll-h.c: New file.
48735 2010-09-28  Bruno Haible  <bruno@clisp.org>
48737         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48738         * modules/poll-h (Depends-on): Add 'extensions'.
48740 2010-09-28  Bruno Haible  <bruno@clisp.org>
48742         New module 'poll-h'.
48743         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48744         (poll): Use modern idiom.
48745         * modules/poll-h: New file.
48746         * modules/poll (Files): Remove lib/poll.in.h.
48747         (Depends-on): Add poll-h.
48748         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48749         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48750         * m4/poll_h.m4: New file.
48751         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48752         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48753         and invoke gl_REPLACE_POLL_H.
48754         * lib/poll.c: Use common idiom.
48755         * tests/test-poll.c: Likewise.
48756         * doc/posix-headers/poll.texi: Mention the poll-h module.
48757         Suggested by Eric Blake.
48759 2010-09-26  Bruno Haible  <bruno@clisp.org>
48761         sys_wait: Implement WSTOPSIG.
48762         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48763         Reported by Simon Josefsson.
48765 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48767         stdlib, sys_wait: Avoid compilation error on mingw.
48768         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48770 2010-09-26  Bruno Haible  <bruno@clisp.org>
48772         stdlib tests: Avoid code duplication.
48773         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48774         * modules/sys_wait-tests (Files): Likewise.
48775         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48776         * tests/test-stdlib.c: Include test-sys_wait.h.
48777         (main): Invoke test_sys_wait_macros.
48778         * tests/test-sys_wait.c: Include test-sys_wait.h.
48779         (main): Invoke test_sys_wait_macros.
48781 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48783         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48784         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48785         sure Windows sockets are working before calling getaddrinfo.
48786         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48787         * doc/gnulib.texi (Windows sockets): Fix typo.
48789 2010-09-25  Bruno Haible  <bruno@clisp.org>
48791         Tests for module 'regex-quote'.
48792         * modules/regex-quote-tests: New file.
48793         * tests/test-regex-quote.c: New file.
48795         New module 'regex-quote'.
48796         * lib/regex-quote.h: New file.
48797         * lib/regex-quote.c: New file.
48798         * modules/regex-quote: New file.
48799         Suggested by Reuben Thomas <rrt@sc3d.org>.
48801 2010-09-24  Bruno Haible  <bruno@clisp.org>
48803         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48804         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48806 2010-09-23  Bruno Haible  <bruno@clisp.org>
48808         setenv: Relax license.
48809         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48810         Blake.
48811         Requested by Eric Blake.
48813 2010-09-22  Bruno Haible  <bruno@clisp.org>
48815         termios: Relax license.
48816         * modules/termios (License): Change to LGPLv2+.
48817         Requested by Eric Blake.
48819 2010-09-22  Bruno Haible  <bruno@clisp.org>
48821         threadlib: Allow the package to change the default to 'no'.
48822         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48823         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48824         Reported by Paul Eggert.
48826 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48827             Bruno Haible  <bruno@clisp.org>
48829         Fix endless loop in mbmemcasecoll.
48830         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48831         byte.
48832         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48834 2010-09-22  Bruno Haible  <bruno@clisp.org>
48836         Tests for module 'memcoll'.
48837         * modules/memcoll-tests: New file.
48838         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48840         memcoll, xmemcoll: Clarify size vs. length.
48841         * modules/memcoll.c (memcoll0): Clarify specification.
48842         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48843         passed to collate_error.
48845 2010-09-22  Bruno Haible  <bruno@clisp.org>
48847         Tests for module 'memcasecmp'.
48848         * modules/memcasecmp-tests: New file.
48849         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48851 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48853         * lib/pthread.in.h: Add split double-inclusion guard, and include
48854         system <pthread.h> if there is one.  Use @@-style as in other
48855         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48856         pthread.h doesn't.
48857         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48858         (pthread_mutexattr_settype, pthread_mutex_trylock):
48859         New static inline functions, if there's no system <pthread.h>.
48860         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48861         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48862         Approximate with mutexes if the system lacks spinlocks, as in
48863         MacOS.
48864         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48865         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48866         @@-style.  Check for spinlocks separately.
48867         (gl_PTHREAD_DEFAULTS): New macro.
48868         * modules/pthread: Redo to use a more typical style for in.h files.
48870 2010-09-21  Eric Blake  <eblake@redhat.com>
48872         net_if: enhance tests
48873         * tests/test-net_if.c (main): Move signature checks earlier.
48874         Print failures to stderr.
48875         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48876         Document the bug that we do not yet fix.
48878 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48880         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48881         about gnulib, not GSS.
48883 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48885         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48886         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48887         for Emacs.
48888         * build-aux/pmccabe2html: Make Makefile.am example code more
48889         cut-and-paste friendly.
48891 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48893         * tests/test-net_if.c: New file.
48894         * modules/net_if-tests: New file.
48896 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48898         pthread: add pthread_spin_destroy
48899         * lib/pthread.in.h (pthread_spin_destroy): New function.
48901 2010-09-19  Bruno Haible  <bruno@clisp.org>
48903         gnulib-tool: Fix --help output.
48904         * gnulib-tool (func_usage): Fix help message.
48905         Reported by Reuben Thomas <rrt@sc3d.org>.
48907 2010-09-18  Jim Meyering  <meyering@redhat.com>
48909         maint.mk: avoid unexpanded \n in two diagnostics
48910         * top/maint.mk (sc_prohibit_always_true_header_tests):
48911         Don't use a literal \n in a halt=... assignment.  It would not be
48912         expanded, and the two \n bytes would appear in the diagnostic output
48913         rather than the desired newline.  Use halt=$$(printf ... instead.
48914         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48916 2010-09-18  Bruno Haible  <bruno@clisp.org>
48918         netinet_in: Doc tweak.
48919         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48920         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48922 2010-09-18  Jim Meyering  <meyering@redhat.com>
48924         init.sh: correct an outdated comment
48925         * tests/init.sh (create_exe_shims_):  s/function/alias/
48927         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48928         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48929         a file named "*.exe" is removed between the glob expansion and the
48930         processing of that oddly named file.
48932 2010-09-17  Eric Blake  <eblake@redhat.com>
48934         mirbsd: add some more support
48935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48936         in BSD family.
48937         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48938         devices as OpenBSD.
48939         * m4/host-os.m4 (mirbsd): Add MirBSD.
48941         tests: fix unportable assumption on sys/wait.h
48942         * tests/test-sys_wait.c (main): Relax test.
48943         * tests/test-stdlib.c (main): Likewise.
48945         init.sh: accommodate directory with no .exes
48946         * tests/init.sh: Accomodate directory containing only scripts.
48948         tests: avoid compiler warning
48949         * tests/test-stdlib.c (main): Use the variable.
48951         fdutimens, fdutimensat: update signature, again
48952         * lib/utimens.h (gl_futimens): Delete, and move signature...
48953         (fdutimens): ...here.
48954         (fdutimensat): Rearrange signature.
48955         (lutimensat): Rename variable for clarity.
48956         * lib/fdutimensat.c (fdutimensat): Update signature.
48957         * lib/utimens.c (fdutimens): Likewise.
48958         (gl_futimens): Delete.
48959         (utimens, lutimens): Update callers.
48960         * lib/futimens.c (futimens): Likewise.
48961         * tests/test-fdutimensat.c: Likewise.
48962         * tests/test-utimens.c: Likewise.
48963         * tests/test-futimens.h: Update comment.
48964         * NEWS: Mention this.
48965         Suggested by Paul Eggert.
48967 2010-09-17  Bruno Haible  <bruno@clisp.org>
48969         Take over the maintenance of some older macros from Autoconf.
48970         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48971         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48972         GNU Autoconf.
48973         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48974         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48976 2010-09-17  Eric Blake  <eblake@redhat.com>
48978         fdutimensat: drop atflag validation
48979         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48980         with valid fd, to close a race scenario where futimens is
48981         unsupported and FILE was replaced by a symlink.
48982         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48983         accordingly.
48984         Suggested by Paul Eggert.
48986 2010-09-16  Bruno Haible  <bruno@clisp.org>
48988         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48989         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48991 2010-09-16  Bruno Haible  <bruno@clisp.org>
48993         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48994         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48995         login_tty exists.
48996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48998 2010-09-16  Bruno Haible  <bruno@clisp.org>
49000         login_tty: Make the replacement code work on BSD systems.
49001         * lib/login_tty.c: Include <sys/ioctl.h>.
49002         (login_tty): Use ioctl TIOCSCTTY when available.
49003         * modules/login_tty (Depends-on): Add sys_ioctl.
49004         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49006 2010-09-16  Bruno Haible  <bruno@clisp.org>
49008         login_tty: Stricter unit test.
49009         * modules/login_tty-tests (Depends-on): Add tcgetsid.
49010         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
49011         and tcgetsid() after login_tty.
49012         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49014 2010-09-16  Bruno Haible  <bruno@clisp.org>
49016         New module 'tcgetsid'.
49017         * lib/tcgetsid.c: New file.
49018         * m4/tcgetsid.m4: New file.
49019         * modules/tcgetsid: New file.
49020         * modules/termios (Depends-on): Add c++defs, warn-on-use.
49021         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
49022         GNULIB_TCGETSID, HAVE_TCGETSID.
49023         * lib/termios.in.h: Include <sys/types.h>.
49024         (tcgetsid): New declaration.
49025         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
49026         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
49027         * doc/posix-functions/tcgetsid.texi: Mention the new module.
49028         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
49030 2010-09-16  Bruno Haible  <bruno@clisp.org>
49032         Tests for module 'termios'.
49033         * modules/termios-c++-tests: New file.
49034         * modules/termios-tests: New file.
49035         * tests/test-termios-c++.cc: New file.
49036         * tests/test-termios.c: New file.
49038         New module 'termios'.
49039         * modules/termios: New file.
49040         * lib/termios.in.h: New file.
49041         * m4/termios_h.m4: New file.
49042         * doc/posix-headers/termios.texi: Mention the new module.
49044 2010-09-16  Eric Blake  <eblake@redhat.com>
49046         fdutimensat: add an atflag parameter
49047         * lib/fdutimensat.c (fdutimensat): Add new parameter.
49048         * lib/utimens.h (fdutimensat): Update prototype.
49049         * tests/test-fdutimensat.c: Adjust test to match.
49050         * NEWS: Document the change.
49051         Suggested by Paul Eggert.
49053 2010-09-16  Bruno Haible  <bruno@clisp.org>
49055         Fix typos in comments.
49056         * lib/striconveh.h: Fix typo in comment.
49057         * lib/login_tty.c (login_tty): Likewise.
49059 2010-09-15  Bruno Haible  <bruno@clisp.org>
49061         stdlib: clarify MirBSD WEXITSTATUS bug
49062         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
49063         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49065 2010-09-15  Eric Blake  <eblake@redhat.com>
49067         stdlib: work around MirBSD WEXITSTATUS bug
49068         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
49069         * modules/stdlib (Depends-on): Add sys_wait.
49070         * tests/test-sys_wait.c (main): Enhance test.
49071         * tests/test-stdlib.c (main): Likewise.
49072         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
49074         docs: mention MacOS issue with WEXITSTATUS(constant)
49075         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
49076         issue.
49077         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49079         strnlen: add tests
49080         * modules/strnlen-tests: New file.
49081         * tests/test-strnlen.c: Likewise.
49083 2010-09-14  Bruno Haible  <bruno@clisp.org>
49085         unistr/base: Avoid link errors when module 'libunistring' is also used.
49086         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
49087         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
49088         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
49089         Declare also when HAVE_LIBUNISTRING is set.
49090         Reported by Pádraig Brady <P@draigbrady.com>.
49092 2010-09-14  Eric Blake  <eblake@redhat.com>
49094         test-rawmemchr: make more robust
49095         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
49096         (Depends-on, configure.ac): Add needed prerequisites to use it.
49097         * modules/memchr-tests (Files, Depends-on, configure.ac):
49098         Likewise, to avoid implicit reliance on memchr module prereqs.
49099         * tests/test-memchr.c (main): Ensure proper masking.
49100         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
49101         reads.
49103         memchr: detect glibc Alpha bug
49104         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
49105         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49106         Alpha.
49107         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49108         * tests/test-memchr.c (main): Enhance test.
49109         Reported by Nelson H. F. Beebe.
49111 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49113         fts, getcwd, glob: audit for dirfd returning -1
49114         * lib/fts.c (opendir): Remove #define; no longer used.
49115         (opendirat): New arg PDIR_FD.  All callers changed.
49116         (fts_build, _opendir2): Use new opendirat to avoid the need for
49117         dirfd, or for checking whether dirfd returns a negative value.
49118         Don't use opendir; always use openat followed by fdopendir.
49119         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49120         it.
49121         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49122         returns -1 here.
49123         * modules/fts (Depends-on): Remove dirfd.
49124         * modules/getcwd (Depends-on): Likewise.
49126 2010-09-13  Eric Blake  <eblake@redhat.com>
49128         float: fix broken MirBSD header
49129         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49130         * doc/posix-headers/float.texi (float.h): Document it.
49132 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49134         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49135         * lib/fts.c (opendirat): New arg extra_flags.
49136         (__opendir2): Use it to avoid following symlinks when opening
49137         a directory, if symlinks are not supposed to be followed.  See
49138         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49140         fdopendir: preserve argument fd before returning
49141         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49142         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49143         (fdopendir): Use them, arranging for FD to be open to the same
49144         directory that it was when it started.  (It might be temporarily
49145         closed while fdopendir is running, so this not thread- or
49146         signal-safe.)  Be careful to do the right thing even when file
49147         descriptors are scarce and dup fails with errno == EMFILE.  See
49148         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49150 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49152         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49153         * NEWS: Document change.
49154         * m4/regex.m4: Disable test for regoff_t size.
49156 2010-09-13  Jim Meyering  <meyering@redhat.com>
49158         fts: don't operate on an invalid file descriptor after failed dup
49159         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49160         negative file descriptor.
49162 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49164         savedir: add streamsavedir, deprecate fdsavedir
49165         * NEWS: Mention deprecation of fdsavedir.
49166         * lib/savedir.c (streamsavedir): New extern function, whose name
49167         ends in "savedir" to be consistent with the others.  This differs
49168         from savedirstream in that it doesn't close its argument.  The
49169         next version of GNU tar will use this instead of fdsavedir, to
49170         avoid some race conditions and conserve file descriptors.
49171         (savedirstream): Reimplement as a wrapper around streamsavedir.
49172         (fdsavedir): Add a comment deprecating this function.  As far as
49173         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49174         * lib/savedir.h (streamsavedir): New decl.
49175         (fdsavedir): Add a comment deprecating this.
49177 2010-09-10  Bruno Haible  <bruno@clisp.org>
49179         langinfo: Fix last commit.
49180         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49181         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49184 2010-09-10  Bruno Haible  <bruno@clisp.org>
49186         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49187         * lib/progreloc.c (O_EXEC): Define fallback.
49189 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49191         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49192         * NEWS: Document recent changes to fcntl-h.
49193         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49194         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49195         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49196         Similarly for O_SEARCH; this last was already true, but not documented.
49197         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49198         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49199         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49200         Likewise.
49201         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49202         is zero, not whether it is defined.
49203         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49204         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49205         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49207 2010-09-10  Bruno Haible  <bruno@clisp.org>
49209         langinfo, nl_langinfo: Fix for IRIX 5.3.
49210         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49211         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49212         HAVE_LANGINFO_YESEXPR.
49213         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49214         HAVE_LANGINFO_YESEXPR.
49215         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49216         HAVE_LANGINFO_T_FMT_AMPM is 0.
49217         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49218         HAVE_LANGINFO_YESEXPR is 0.
49219         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49220         NOEXPR.
49221         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49222         * doc/posix-functions/nl_langinfo.texi: Likewise.
49223         Reported by Eric Blake.
49225 2010-09-10  Bruno Haible  <bruno@clisp.org>
49227         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49228         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49229         on FreeBSD 8.0 and OpenBSD 4.6.
49230         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49231         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49232         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49233         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49234         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49235         ac_includes_default.
49236         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49238 2010-09-09  Eric Blake  <eblake@redhat.com>
49240         strsignal: work around NetBSD bug
49241         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49242         * lib/string.in.h (includes): Likewise.
49243         * doc/posix-functions/strsignal.texi (strsignal): Document the
49244         bug.
49245         Reported by Nelson H. F. Beebe.
49247         gnulib-tool: work with NetBSD /bin/sh
49248         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49249         (func_get_description, func_get_comment, func_get_status)
49250         (func_get_notice, func_get_applicability, func_get_filelist)
49251         (func_get_dependencies, func_get_autoconf_early_snippet)
49252         (func_get_autoconf_snippet, func_get_automake_snippet)
49253         (func_get_include_directive, func_get_link_directive)
49254         (func_get_license, func_get_maintainer, func_import): Avoid
49255         shell syntax errors from parsing syntax extensions.
49257 2010-09-09  Bruno Haible  <bruno@clisp.org>
49259         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49260         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49261         a reliable way to determine whether the 'alias' command works.
49263 2010-09-08  Jim Meyering  <meyering@redhat.com>
49265         init.sh: penalize a set-x-impaired shell; don't disqualify it
49266         * tests/init.sh: Too many shells corrupt application stderr when
49267         you set -x, so we can't afford to disqualify them, since at least
49268         on Irix-6.5, that would disqualify all bourne shells.
49269         Instead, use a two-pass approach.
49270         On the first pass, try to find a shell that meets the stricter
49271         condition that set -x does not corrupt stderr.
49272         If no shell meets the stricter condition, retest each candidate
49273         shell, but without that extra condition.  Finally, when
49274         VERBOSE=yes is requested and set -x might cause trouble, simply
49275         issue a warning and refrain from enabling debug output.
49277 2010-09-08  Eric Blake  <eblake@redhat.com>
49279         unsetenv: fix OpenBSD bug
49280         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49281         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49282         documentation.
49283         Reported by Jim Meyering.
49285         strtod: work around IRIX 6.5 bug
49286         * lib/strtod.c (strtod): Reparse number on shorter string if
49287         exponent parse was invalid.
49288         * tests/test-strtod.c (main): Add check for "0x1p 2".
49289         Reported by Tom G. Christensen.
49291         getopt: optimize previous patch
49292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49293         empty variable.  Speed up awk script.
49294         Reported by Paolo Bonzini.
49296 2010-09-08  Jim Meyering  <meyering@redhat.com>
49298         test.sh: disqualify shells for which set -x corrupts stderr
49299         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49300         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49301         appear in stderr output.  For example, this command:
49302             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49303         prints "P=1" on those two systems:
49305 2010-09-08  Bruno Haible  <bruno@clisp.org>
49307         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49308         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49309         commands, because some shells ignore redirections when there is an
49310         error in the command lookup.
49311         Reported by Eric Blake.
49313 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49315         * lib/regex.h: Fix a mention of `regex_compile' (should be
49316         `re_compile_pattern').
49317         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49318         (re_set_registers): Correct name of parameter in comment.
49320         * doc/regex.texi: Add documentation for missing syntax flags.
49321         Remove commented-out documentation of defunct syntax option
49322         RE_NO_EMPTY_ALTS.
49323         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49324         Add documentation of re_set_registers.
49325         Document trick to re-use a pattern buffer by setting fastmap manually.
49326         Update documentation of struct re_pattern_buffer per public members.
49327         Uncomment documentation of equivalence class operators and
49328         collating symbol operators, since they are now implemented,
49329         Explain leftmost-longest matching in relation to alternatives.
49330         Tidy documentation of substring matching.
49331         Remove POSIX documentation, which is done better in
49332         glibc, and refer the reader there. Keep BSD API documentation, as
49333         that is not readily available elsewhere.
49335 2010-09-07  Eric Blake  <eblake@redhat.com>
49337         getopt: handle POSIXLY_CORRECT set but not exported
49338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49339         export state of POSIXLY_CORRECT, due to bash set -o posix.
49340         Reported by Dustin J. Mitchell.
49342 2010-09-05  Bruno Haible  <bruno@clisp.org>
49344         gnulib-tool: Highlight the changed options.
49345         * gnulib-tool (func_usage): Display the --import, --add-import,
49346         --remove-import explanations in bold font.
49348 2010-09-06  Karl Berry  <karl@gnu.org>
49350         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49352 2010-09-05  Bruno Haible  <bruno@clisp.org>
49354         uniwidth/width: Update comment.
49355         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49356         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49358 2010-09-05  Bruno Haible  <bruno@clisp.org>
49360         isinf, isnan: Relax license.
49361         * modules/isinf (License): Change from GPL to LGPL, with consent from
49362         Ben Pfaff.
49363         * modules/isnan (License): Likewise.
49364         Requested by Ludovic Courtès.
49366 2010-09-04  Bruno Haible  <bruno@clisp.org>
49368         gnulib-tool: Help migration from --import to --add-import or --update.
49369         * gnulib-tool: Emit a verbose error message when --import is used
49370         without any module name.
49372 2010-09-04  Bruno Haible  <bruno@clisp.org>
49374         Update doc about gnulib-tool.
49375         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49376         'gnulib-tool --update' in more detail.
49377         Reported by Eric Blake.
49379 2010-09-04  Bruno Haible  <bruno@clisp.org>
49381         gnulib-tool: Change --import. New options --add/remove-import.
49382         * gnulib-tool: New options --add-import, --remove-import.
49383         (func_usage): Document them.
49384         (have_associative): Define always.
49385         (func_import): In import mode, don't merge the specified settings with
49386         the cached settings. Implement remove-import mode.
49387         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49388         Explain when to use them versus --import.
49389         (Simple update): Use --add-import instead of --import.
49390         * NEWS: Mention the change.
49392 2010-09-04  Bruno Haible  <bruno@clisp.org>
49394         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49395         separate gnulib.mk.
49397 2010-09-04  Bruno Haible  <bruno@clisp.org>
49399         gnulib-tool: Don't talk about CVS any more.
49400         * gnulib-tool (func_usage, func_import): Write "version control"
49401         instead of CVS.
49403 2010-09-04  Jim Meyering  <meyering@redhat.com>
49405         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49406         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49407         false positives (whose names may be ill-chosen) when searching
49408         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49409         would cause a false-positive.
49411         avoid coreutils "make distcheck" failure
49412         Coreutils tests with an absolute build directory name that contains
49413         a space.  Not quoting this directory name caused a failure.
49414         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49415         * tests/test-vc-list-files-cvs.sh: Likewise.
49417 2010-09-04  Bruno Haible  <bruno@clisp.org>
49419         gnulib-tool: Avoid error when run in a package without Makefile.am.
49420         * gnulib-tool: When collecting the m4dirs in a package that does not
49421         have a Makefile.am, eliminate those directories that contain no
49422         gnulib-cache.m4. Fix expression that counts these directories.
49424 2010-09-04  Bruno Haible  <bruno@clisp.org>
49426         update-copyright test: Improve output when perl is missing or too old.
49427         * tests/test-update-copyright.sh: Move test of Perl version down after
49428         the test whether Perl exists. Provide an explanation relating Perl's
49429         error message to Automake's SKIP: message.
49431 2010-09-04  Bruno Haible  <bruno@clisp.org>
49433         Don't augment PATH in TESTS_ENVIRONMENT.
49434         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49435         set abs_aux_dir instead of augmenting PATH.
49436         * modules/vc-list-files-tests (Makefile.am): Likewise.
49437         * tests/test-update-copyright.sh: Augment PATH here.
49438         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49439         path_prepend_.
49440         * tests/test-vc-list-files-git.sh: Likewise.
49442 2010-09-04  Jim Meyering  <meyering@redhat.com>
49444         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49445         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49447 2010-09-04  Bruno Haible  <bruno@clisp.org>
49449         strdup: Fix compilation error in C++ mode.
49450         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49451         the macro.
49453 2010-09-04  Bruno Haible  <bruno@clisp.org>
49455         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49456         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49457         macro into a function.
49458         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49460 2010-09-04  Bruno Haible  <bruno@clisp.org>
49462         Set PATH_SEPARATOR the same way autoconf does.
49463         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49464         the value of PATH_SEPARATOR the same way autoconf-generated configure
49465         scripts do.
49466         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49469 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49471         Set PATH_SEPARATOR the same way autoconf does.
49472         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49473         the same way autoconf-generated configure scripts do.
49474         * posix-modules: Likewise.
49476 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49478         hash: fix safe_hasher const typo
49479         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49480         const; otherwise, there is a type error later.
49482 2010-09-02  Jim Meyering  <meyering@redhat.com>
49484         test-update-copyright.sh: require perl 5.8.0
49485         * tests/test-update-copyright.sh: Require 5.8.0,
49486         which Tom G. Christensen has confirmed is adequate,
49487         while 5.6.1 is not.
49489 2010-09-02  Eric Blake  <eblake@redhat.com>
49491         tests: init.sh improvements for re-exec'ing with zsh
49492         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49493         -vx through shell re-exec.
49494         Reported by Tom G. Christensen.
49496         wctype: fix typo in previous commit
49497         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49498         Reported by Ludovic Courtès.
49500 2010-09-02  Jim Meyering  <meyering@redhat.com>
49502         test-update-copyright.sh: skip test if Perl is too old
49503         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49504         Reported by Tom G. Christensen.
49506 2010-09-02  Bruno Haible  <bruno@clisp.org>
49508         wctype: Avoid compilation error on IRIX 6.5.30.
49509         * lib/wctype.in.h (iswblank): Declare with a replacement if
49510         REPLACE_ISWBLANK is set.
49511         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49512         declared. Set REPLACE_ISWBLANK.
49513         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49514         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49515         * doc/posix-headers/wctype.texi: Likewise.
49516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49518 2010-09-01  Bruno Haible  <bruno@clisp.org>
49520         New module 'socketlib'.
49521         * modules/socketlib: New file.
49522         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49523         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49524         * modules/sockets (Depends-on): Add socketlib.
49525         Suggested by Sam Steingold <sds@gnu.org>.
49527 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49529         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49531         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49532         when one needs search access to a directory but not read access.
49533         On systems where it is available, it works in some cases where
49534         O_RDONLY does not, namely on directories that are searchable but
49535         not readable, and which need only to be searchable.  If O_SEARCH
49536         is not available, fall back to the traditional method of using
49537         O_RDONLY.
49539         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49540         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49541         when opening a directory that needs only to be searchable.
49542         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49543         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49544         * lib/openat-proc.c (openat_proc_name): Likewise.
49545         * lib/openat.c (openat_needs_fchdir): Likewise.
49546         * lib/save-cwd.c (save_cwd): Likewise.
49547         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49549 2010-08-28  Bruno Haible  <bruno@clisp.org>
49551         New module 'host-cpu-c-abi'.
49552         * modules/host-cpu-c-abi: New file.
49553         * m4/host-cpu-c-abi.m4: New file, based on part of
49554         clisp/src/m4/general.m4.
49555         Requested by Sam Steingold <sds@gnu.org>.
49557 2010-08-31  Eric Blake  <eblake@redhat.com>
49558         and Jim Meyering  <meyering@redhat.com>
49560         hash: factor, and guard against misbehaving hasher function
49561         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49562         of table->hasher's return value.  Also protect against a hash value
49563         so large that adding it to table->bucket results in a NULL pointer.
49564         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49565         Use it in place of open-coded check-and-abort.
49567 2010-08-30  Bruno Haible  <bruno@clisp.org>
49569         hash: silence spurious clang warning
49570         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49571         Reported by Eric Blake.
49573 2010-08-30  Eric Blake  <eblake@redhat.com>
49575         strstr, memmem, strcasestr: avoid leaked shell message
49576         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49577         FreeBSD.
49578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49579         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49581         tests: silence clang warning
49582         * tests/test-malloca.c (do_allocation): Avoid dead store.
49584 2010-08-29  Bruno Haible  <bruno@clisp.org>
49586         gettext: Fix recent mistake.
49587         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49589 2010-08-29  Bruno Haible  <bruno@clisp.org>
49591         selinux-h: Offer a --without-selinux option.
49592         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49593         --without-selinux was specified, skip all tests and define
49594         HAVE_SELINUX_SELINUX_H to 0.
49595         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49596         set LIB_SELINUX to empty.
49597         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49598         gl_LIBSELINUX. If --without-selinux was specified, replace
49599         selinux/context.h.
49600         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49602 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49603             Bruno Haible  <bruno@clisp.org>
49605         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49606         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49607         of HAVE_REALLOC.
49608         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49609         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49610         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49611         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49613 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49614             Bruno Haible  <bruno@clisp.org>
49616         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49617         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49618         HAVE_CALLOC.
49619         * lib/xmalloc.c: Update accordingly.
49620         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49621         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49622         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49624 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49625             Bruno Haible  <bruno@clisp.org>
49627         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49628         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49629         HAVE_MALLOC.
49630         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49631         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49632         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49634 2010-08-29  Bruno Haible  <bruno@clisp.org>
49636         Update modules list.
49637         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49638         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49639         (String handling <string.h>): Add astrxfrm.
49640         (File system functions): Add readlinkat.
49642 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49644         Tests for module 'realloc-gnu'.
49645         * modules/realloc-gnu-tests: New file.
49646         * tests/test-realloc-gnu.c: New file.
49648         Tests for module 'calloc-gnu'.
49649         * modules/calloc-gnu-tests: New file.
49650         * tests/test-calloc-gnu.c: New file.
49652         Tests for module 'malloc-gnu'.
49653         * modules/malloc-gnu-tests: New file.
49654         * tests/test-malloc-gnu.c: New file.
49656 2010-08-28  Bruno Haible  <bruno@clisp.org>
49658         Rename module 'realloc' -> 'realloc-gnu'.
49659         * modules/realloc-gnu: New file, copied from modules/realloc.
49660         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49661         obsolete.
49662         * modules/mgetgroups (Depends-on): Update.
49663         * doc/posix-functions/realloc.texi: Update.
49664         * NEWS: Mention the change.
49666         Rename module 'calloc' -> 'calloc-gnu'.
49667         * modules/calloc-gnu: New file, copied from modules/calloc.
49668         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49669         obsolete.
49670         * doc/posix-functions/calloc.texi: Update.
49671         * NEWS: Mention the change.
49673         Rename module 'malloc' -> 'malloc-gnu'.
49674         * modules/malloc-gnu: New file, copied from modules/malloc.
49675         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49676         obsolete.
49677         * modules/argp (Depends-on): Update.
49678         * modules/regex (Depends-on): Update.
49679         * doc/posix-functions/malloc.texi: Update.
49680         * NEWS: Mention the change.
49682 2010-08-28  Eric Blake  <eblake@redhat.com>
49684         pread, pwrite: add missing dependency
49685         * modules/pread (Depends-on): Add extensions.
49686         * modules/pwrite (Depends-on): Likewise.
49688 2010-08-28  Bruno Haible  <bruno@clisp.org>
49690         unistr/u*-strchr: Fix tests dependencies.
49691         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49692         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49693         Reported by Ian Beckwith <ianb@erislabs.net>.
49695 2010-08-28  Bruno Haible  <bruno@clisp.org>
49697         read-file: Don't occupy too much unused memory.
49698         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49700 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49701             Eric Blake  <eblake@redhat.com>
49702             Bruno Haible  <bruno@clisp.org>
49704         read-file: Avoid memory reallocations with regular files.
49705         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49706         (fread_file): With regular files, use the remaining length as the
49707         initial buffer size.  Check against overflow.
49708         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49709         sys_stat.
49711 2010-08-28  Bruno Haible  <bruno@clisp.org>
49713         ftello: Relax license.
49714         * modules/ftello (License): Relax to LGPLv2+.
49715         Reported by Eric Blake.
49717 2010-08-28  Bruno Haible  <bruno@clisp.org>
49719         Avoid relocwrapper link errors due to gnulib replacement functions.
49720         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49721         function.
49722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49724 2010-08-28  Bruno Haible  <bruno@clisp.org>
49726         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49727         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49728         defined.
49729         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49730         Suggested by Eric Blake.
49732 2010-08-28  Bruno Haible  <bruno@clisp.org>
49734         sys_socket, netdb: Ensure socklen_t gets defined.
49735         * modules/sys_socket (Depends-on): Add socklen.
49736         * modules/netdb (Depends-on): Likewise.
49737         * modules/getaddrinfo (Depends-on): Remove socklen.
49738         * modules/getsockopt (Depends-on): Likewise.
49739         * modules/setsockopt (Depends-on): Likewise.
49740         * tests/test-sys_socket.c: Check that socklen_t is defined.
49741         * tests/test-netdb.c: Likewise.
49742         * m4/socklen.m4: Update comments.
49743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49745 2010-08-27  Eric Blake  <eblake@redhat.com>
49747         login_tty: add missing dependency
49748         * modules/login_tty (Depends-on): Add pty.
49750 2010-08-26  Eric Blake  <eblake@redhat.com>
49752         lib-symbol-versions: fix m4 quoting
49753         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49754         format for AC_LINK_IFELSE.
49756         glob: fix compile test
49757         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49759         btowc: fix missing file
49760         * modules/btowc (Files): Also ship locale-fr.m4.
49762         lseek: fix link test
49763         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49764         AC_LINK_IFELSE.
49766         include_next: silence autoconf 2.68 warning
49767         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49768         AC_COMPILE_IFELSE as special.
49769         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49770         autoconf < 2.68.
49772         acl: fix compilation test
49773         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49774         AC_COMPILE_IFELSE.
49776 2010-08-26  Bruno Haible  <bruno@clisp.org>
49778         Modernize AC_TRY_RUN invocations.
49779         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49780         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49781         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49782         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49783         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49784         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49785         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49786         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49787         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49788         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49789         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49790         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49791         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49792         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49794         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49795         gl_MBRLEN_NUL_RETVAL): Likewise.
49796         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49797         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49798         Likewise.
49799         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49800         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49801         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49802         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49803         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49804         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49805         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49806         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49807         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49808         Likewise.
49809         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49810         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49812         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49813         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49814         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49816         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49817         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49820 2010-08-26  Bruno Haible  <bruno@clisp.org>
49822         Modernize AC_TRY_LINK invocations.
49823         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49824         AC_TRY_LINK.
49825         * m4/argp.m4 (gl_ARGP): Likewise.
49826         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49827         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49828         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49830         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49831         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49832         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49833         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49834         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49835         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49836         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49837         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49838         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49839         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49840         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49841         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49842         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49843         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49844         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49845         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49846         Likewise.
49847         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49848         Likewise.
49849         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49850         Likewise.
49851         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49853         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49854         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49855         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49856         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49857         * m4/servent.m4 (gl_SERVENT): Likewise.
49858         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49859         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49861         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49862         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49863         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49864         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49865         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49866         * modules/tsearch-tests (configure.ac): Likewise.
49868 2010-08-26  Bruno Haible  <bruno@clisp.org>
49870         Modernize AC_TRY_COMPILE invocations.
49871         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49872         AC_TRY_COMPILE.
49873         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49874         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49876         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49877         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49878         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49879         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49880         * m4/lock.m4 (gl_LOCK): Likewise.
49881         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49882         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49883         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49884         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49885         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49886         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49887         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49890         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49891         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49892         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49893         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49894         extraneous semicolon.
49896 2010-08-26  Jim Meyering  <meyering@redhat.com>
49898         stat-time: relax license LGPL
49899         * modules/stat-time (License): Change from GPL to LGPL,
49900         with consent from all contributors, for use in libguile.
49901         Requested by Ludovic Courtès.
49903 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49905         poll: return immediately on POLLHUP.
49906         * lib/poll.c (poll): Always set timeout before wait_timeout is
49907         computed.
49909 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49911         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49912         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49913         rmdir ("dir/.//"), unlinkat.
49915 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49917         stdbool: avoid spurious failure with modern xlc
49918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49920 2010-08-24  Bruno Haible  <bruno@clisp.org>
49922         getloadavg: simplify code
49923         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49924         gl_have_func. Update comments.
49926 2010-08-24  Eric Blake  <eblake@redhat.com>
49928         getloadavg: don't define SVR4 on cygwin
49929         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49930         only define SVR4 when -lkvm is required.
49931         Reported by Yaakov Selkowitz.
49933 2010-08-24  Bruno Haible  <bruno@clisp.org>
49935         priv-set: fix comment
49936         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49938 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49940         priv-set: fix comments
49941         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49942         to match code, as suggested by David Bartley in:
49943         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49945 2010-08-23  Eric Blake  <eblake@redhat.com>
49947         stdbool: avoid rejecting clang
49948         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49949         * tests/test-stdbool.c: Enable more tests if using the system
49950         <stdbool.h> instead of the gnulib replacement.
49951         (main): Move xlc bug test to a runtime test for all compilers.
49952         Reported by Anders Kaseorg.
49954         argz: fix shell quoting issue
49955         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49956         Reported by Charles Wilson.
49958 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49959             Erik Faye-Lund <kusmabite@gmail.com>
49961         poll, select: handle ERROR_BROKEN_PIPE.
49962         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49963         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49964         * lib/select.c (win32_compute_revents): Do not mark a pipe
49965         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49967 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49969         fts: allow compilation with C++
49970         * lib/fts_.h: Specify extern "C" linkage with C++.
49972 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49974         Fix gnulib-tool sed script de-commentation for AIX sed.
49975         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49976         sed.
49978 2010-08-17  Eric Blake  <eblake@redhat.com>
49980         test-stddef: test for (some) offsetof bugs
49981         * tests/test-stddef.c: Enhance test to ensure correct type of
49982         offsetof.
49983         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49984         that we are not fixing at this time.
49986 2010-08-15  Bruno Haible  <bruno@clisp.org>
49988         stpncpy: Allow stpncpy to be defined as a macro.
49989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49990         if it's already correctly declared.
49991         * lib/string.in.h (stpncpy): Undefine before redefining.
49992         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49994 2010-08-14  Bruno Haible  <bruno@clisp.org>
49996         Rename module 'memxfrm' to 'amemxfrm'.
49997         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49998         (amemxfrm): Renamed from memxfrm.
49999         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
50000         (amemxfrm): Renamed from memxfrm.
50001         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
50002         * NEWS: Mention the change.
50003         * MODULES.html.sh (String handling <string.h>): Update.
50004         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
50005         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
50006         * lib/unicase/u16-casexfrm.c: Likewise.
50007         * lib/unicase/u32-casexfrm.c: Likewise.
50008         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
50009         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
50010         * lib/uninorm/u16-normxfrm.c: Likewise.
50011         * lib/uninorm/u32-normxfrm.c: Likewise.
50012         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
50013         memxfrm.
50014         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
50015         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
50016         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
50017         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
50018         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
50019         Suggested by Paul Eggert.
50021 2010-08-14  Bruno Haible  <bruno@clisp.org>
50023         Tests for module 'astrxfrm'.
50024         * modules/astrxfrm-tests: New file.
50025         * tests/test-astrxfrm.c: New file.
50027         New module 'astrxfrm'.
50028         * lib/astrxfrm.h: New file.
50029         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
50030         * modules/astrxfrm: New file.
50032 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
50034         regex: Tweak doc.
50035         * doc/regex.texi (Overview): Don't mention regex.c.
50036         (GNU Regular Expression Compiling): Likewise.
50037         (Match-end-of-line Operator): Mention 'not_eol'.
50039 2010-08-14  Brian Gough  <bjg@gnu.org>
50040             Bruno Haible  <bruno@clisp.org>
50042         git-merge-changelog: add doc relating to use with bzr and hg.
50043         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
50045 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
50047         pthread: fix pthread.h creation for srcdir != builddir
50048         * modules/pthread (Makefile.am): Fix the rule to work also in a
50049         non-srcdir build.
50051 2010-08-13  Karl Berry  <karl@gnu.org>
50053         * doc/regex.texi (Predefined Syntaxes): @smallexample.
50054         * doc/posix-*/*: force line break before @url of POSIX
50055         specifications.
50056         Suggested by Werner Lemberg.
50058 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50060         strtod: fix const diagnostic
50061         * lib/strtod.c (strtod): Don't assign const char * to char *,
50062         as this elicits a warning from GCC when warnings are enabled.
50064 2010-08-10  Pádraig Brady  <P@draigbrady.com>
50065         and Eric Blake  <eblake@redhat.com>
50067         copy-acl: ignore ENOTSUP on HP-UX
50068         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
50069         so that it is available for HP-UX.
50070         * lib/copy-acl.c (qcopy_acl): Use it.
50071         Reported by Patrick M. Callahan.
50073 2010-08-10  Eric Blake  <eblake@redhat.com>
50075         open, chown: relax license
50076         * modules/open (License): Change to LGPLv2+, with consent by all
50077         authors, for use in augeas.
50078         * modules/chown (License): Likewise.
50079         * modules/lchown (Likewise): Likewise.
50080         Requested by Adam Stokes.
50082 2010-08-09  Karl Berry  <karl@gnu.org>
50084         * build-aux/ar-lib: new file, import from Automake.
50085         * config/srclist.txt: autocheck for updates.
50087 2010-08-09  Eric Blake  <eblake@redhat.com>
50089         readlinkat: adjust client modules
50090         * modules/areadlinkat (Depends-on): Use readlinkat, not
50091         symlinkat.
50092         * modules/areadlinkat-with-size (Depends-on): Likewise.
50094         mknod: be more vocal about danger of running tests as root
50095         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
50096         root, since that is just asking for problems.
50097         Suggested by Bruno Haible, based on a report by Rainer Tammer.
50099         readlinkat: split into its own module
50100         * modules/symlinkat: Split readlinkat...
50101         * modules/readlinkat: ...into separate module.
50102         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
50103         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
50104         * lib/symlinkat.c (readlinkat): Move...
50105         * lib/readlinkat.c: ...into new file.
50106         * modules/symlinkat-tests: Split readlinkat test...
50107         * modules/readlinkat-tests: ...into separate module.
50108         * tests/test-symlinkat.c: Split...
50109         * tests/test-readlinkat.c: ...into new file.
50110         * NEWS: Document the split.
50111         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50112         * lib/unistd.in.h (readlinkat): Likewise.
50113         Suggested by Bruno Haible.
50115 2010-08-08  Bruno Haible  <bruno@clisp.org>
50117         memxfrm: Speed up.
50118         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50119         that usually only one call to strxfrm is necessary for each string
50120         part.
50121         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50123 2010-08-07  Karl Berry  <karl@gnu.org>
50125         * doc/posix-headers/limits.texi,
50126         * doc/posix-functions/malloc.texi,
50127         * doc/posix-functions/strsignal.texi: missing @item.
50128         * doc/ld-version-script.texi: spurious leading i.
50129         * doc/regex.texi (Interval Operators): no commas inside @var.
50131 2010-08-01  Bruno Haible  <bruno@clisp.org>
50133         Integrate the regex documentation.
50134         * doc/gnulib.texi: Define 'cn' index.
50135         (Regular expressions): New a chapter that includes regex.texi and
50136         regexprops-generic.texi.
50137         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50138         syntax.
50140         Whitespace cleanup.
50141         * doc/regex.texi: Remove trailing spaces.
50143         Add regex documentation.
50144         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50145         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50146         Written by Kathy A. Hargreaves and Karl Berry.
50148 2010-08-01  Bruno Haible  <bruno@clisp.org>
50150         link: Update documentation.
50151         * doc/posix-functions/link.texi: Update regarding Solaris.
50153 2010-07-31  Bruno Haible  <bruno@clisp.org>
50155         Update modules list.
50156         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50157         (String handling <string.h>): Add memcmp2, memxfrm.
50158         (Container data structures): Add xlist, xsublist, xoset.
50159         (Core language properties): Add alignof, unused-parameter.
50160         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50161         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50162         (Unibyte characters <ctype.h>): New section.
50163         (String handling <string.h>): New section.
50164         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50165         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50166         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50167         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50168         tan, tanh, tanl, y0, y1, yn.
50169         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50170         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50171         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50172         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50173         unlockpt, vdprintf, vdprintf-posix.
50174         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50175         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50176         xconcat-filename.
50177         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50178         getdtablesize, pipe2, pipe2-safer.
50179         (Security): New section.
50180         (Networking functions): Add accept4.
50181         (Signal handling): Add sigpipe.
50182         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50183         mbmemcasecoll.
50184         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50185         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50186         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50187         pipe-filter-ii.
50188         (Misc): Add argp-version-etc, login_tty, parse-duration.
50190 2010-07-31  Bruno Haible  <bruno@clisp.org>
50192         Improve doc in MODULES.html.
50193         * modules/linkat (Description): Add the word "function".
50194         * modules/mkfifo (Description): Likewise.
50195         * modules/mknod (Description): Likewise.
50196         * modules/remove (Description): Likewise.
50197         * modules/renameat (Description): Likewise.
50198         * modules/stat (Description): Likewise.
50199         * modules/symlink (Description): Likewise.
50200         * modules/unlink (Description): Likewise.
50202 2010-07-31  Bruno Haible  <bruno@clisp.org>
50204         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50205         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50206         option --enable/disable-c++ instead of --enable/disable-cxx.
50207         * NEWS: Mention the change.
50209 2010-07-31  Bruno Haible  <bruno@clisp.org>
50211         readlink, areadlink: Relax test a bit.
50212         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50213         alternative to ENOTDIR.
50214         * tests/test-areadlink.h (test_areadlink): Likewise.
50215         Reported by Rainer Tammer.
50217 2010-07-31  Bruno Haible  <bruno@clisp.org>
50219         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50220         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50221         character, perform the search using U_STRCHR.
50222         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50223         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50224         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50225         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50226         Suggested by Paolo Bonzini.
50228 2010-07-31  Bruno Haible  <bruno@clisp.org>
50230         unistr/u*-strstr: Fix dependencies.
50231         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50232         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50233         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50235 2010-07-31  Bruno Haible  <bruno@clisp.org>
50237         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50238         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50239         the beginning of the loop.
50240         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50241         cases in 'switch' statement.
50243         unistr/u8-strchr: Fix several bugs.
50244         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50245         the string. When not found, return NULL, not a pointer near the end.
50247         More tests for unistr/u8-strchr.
50248         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50249         that the function does not read past the first occurrence of the byte
50250         being searched.
50251         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50252         * tests/unistr/test-u16-strchr.c (main): New function.
50253         * tests/unistr/test-u32-strchr.c (main): New function.
50255 2010-07-31  Bruno Haible  <bruno@clisp.org>
50257         posix-modules: Ignore backup files of documentation files.
50258         * posix-modules: grep only through files named *.texi.
50260 2010-07-31  Bruno Haible  <bruno@clisp.org>
50262         symlinkat: Fix documentation.
50263         * doc/posix-functions/readlinkat.texi: Fix module name.
50265 2010-07-31  Bruno Haible  <bruno@clisp.org>
50267         fchownat: Replace also when chown has the trailing slash bug.
50268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50269         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50270         introduced on 2010-04-10.
50271         Reported by Rainer Tammer.
50273 2010-07-31  Bruno Haible  <bruno@clisp.org>
50275         linkat: Work around AIX 7.1 bug.
50276         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50277         whether linkat handles trailing slash correctly. If not, replace linkat
50278         and define LINKAT_TRAILING_SLASH_BUG.
50279         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50280         check whether (fd1,file1) points to a directory if file1 or file2 ends
50281         in a slash. Code taken from lib/link.c.
50282         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50283         Reported by Rainer Tammer.
50285 2010-07-31  Bruno Haible  <bruno@clisp.org>
50287         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50288         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50289         This disables an xlc optimization that was causing wrong test results.
50290         Reported by Rainer Tammer.
50292 2010-07-31  Bruno Haible  <bruno@clisp.org>
50294         iconv: Work around AIX 6.1..7.1 bug.
50295         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50296         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50297         cross-compiling, guess no on all versions of AIX.
50298         Reported by Rainer Tammer.
50300 2010-07-31  Bruno Haible  <bruno@clisp.org>
50302         readlink: Relax test a bit.
50303         * tests/test-readlink.h (test_readlink): Allow different errno value
50304         when readlink is called with a file name that ends in / and refers to
50305         a file.
50306         Suggested by Eric Blake.
50307         Reported by Rainer Tammer.
50309 2010-07-31  Bruno Haible  <bruno@clisp.org>
50311         copysign: Does not require -lm on glibc systems.
50312         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50313         gl_COMMON_DOUBLE_MATHFUNC.
50314         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50316 2010-07-31  Bruno Haible  <bruno@clisp.org>
50318         duplocale: Work around AIX 7.1 bug.
50319         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50320         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50321         * lib/duplocale.c (rpl_duplocale): Update comment.
50322         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50323         Reported by Rainer Tammer.
50325 2010-07-30  Bruno Haible  <bruno@clisp.org>
50327         dirfd: Avoid link error on AIX 7.1.
50328         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50329         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50330         exist, set REPLACE_DIRFD.
50331         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50332         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50333         * doc/posix-functions/dirfd.texi: Update.
50334         Reported by Rainer Tammer.
50336 2010-07-30  Eric Blake  <eblake@redhat.com>
50338         strtod: next round of AIX fixes
50339         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50340         exponent.
50341         * tests/test-strtod.c (main): Enhance tests.
50342         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50343         Reported by Rainer Tammer.
50345         futimens: fix configure check
50346         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50347         Reported by Bruno Haible.
50349 2010-07-30  Bruno Haible  <bruno@clisp.org>
50351         getline: Update regarding AIX.
50352         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50353         Reported by Rainer Tammer.
50355 2010-07-30  Bruno Haible  <bruno@clisp.org>
50357         wcwidth: Drop replacement on AIX 7.
50358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50359         AIX 7.
50360         Reported by Rainer Tammer.
50362 2010-07-30  Bruno Haible  <bruno@clisp.org>
50364         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50366         a 'char *'.
50367         Reported by Rainer Tammer.
50369 2010-07-30  Bruno Haible  <bruno@clisp.org>
50371         unlink: Update regarding AIX.
50372         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50373         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50374         Reported by Rainer Tammer.
50376 2010-07-30  Bruno Haible  <bruno@clisp.org>
50378         symlink: Update regarding AIX.
50379         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50380         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50381         Reported by Rainer Tammer.
50383 2010-07-30  Bruno Haible  <bruno@clisp.org>
50385         strndup: Update regarding AIX.
50386         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50387         AIX 7.
50388         Reported by Rainer Tammer.
50390 2010-07-30  Bruno Haible  <bruno@clisp.org>
50392         stat: Update regarding AIX.
50393         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50394         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50395         Reported by Rainer Tammer.
50397 2010-07-30  Bruno Haible  <bruno@clisp.org>
50399         truncl: Fix autoconf test.
50400         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50401         whether truncl works.
50402         Reported by Rainer Tammer.
50404 2010-07-30  Bruno Haible  <bruno@clisp.org>
50406         round: Update regarding AIX.
50407         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50408         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50409         Reported by Rainer Tammer.
50411 2010-07-30  Bruno Haible  <bruno@clisp.org>
50413         rename: Update regarding AIX.
50414         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50415         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50416         Reported by Rainer Tammer.
50418 2010-07-30  Bruno Haible  <bruno@clisp.org>
50420         printf.m4: Update regarding AIX.
50421         * m4/printf.m4: Update comments regarding AIX.
50422         Reported by Rainer Tammer.
50424 2010-07-30  Bruno Haible  <bruno@clisp.org>
50426         iconv: Update regarding AIX.
50427         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50428         AIX 7.
50429         Reported by Rainer Tammer.
50431 2010-07-30  Bruno Haible  <bruno@clisp.org>
50433         getopt: Update regarding AIX.
50434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50435         no on AIX.
50436         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50437         Reported by Rainer Tammer.
50439 2010-07-30  Bruno Haible  <bruno@clisp.org>
50441         ldexpl; Update regarding AIX.
50442         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50443         on AIX 7.
50444         Reported by Rainer Tammer.
50446 2010-07-30  Bruno Haible  <bruno@clisp.org>
50448         frexpl: Update regarding AIX.
50449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50450         on AIX 7.
50451         Reported by Rainer Tammer.
50453 2010-07-30  Bruno Haible  <bruno@clisp.org>
50455         open, fopen: Update regarding AIX.
50456         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50457         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50458         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50459         * doc/posix-functions/fopen.texi: Likewise.
50460         Reported by Rainer Tammer.
50462 2010-07-30  Bruno Haible  <bruno@clisp.org>
50464         chown: Update doc regarding AIX.
50465         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50466         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50467         Reported by Rainer Tammer.
50469 2010-07-30  Eric Blake  <eblake@redhat.com>
50471         strtod: fix bug in replacement function on AIX
50472         * lib/strtod.c (strtod): Special case broken "0x" parse in
50473         underlying strtod.
50474         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50475         * doc/posix-functions/strtod.texi (strtod): Likewise.
50476         Reported by Rainer Tammer.
50478 2010-07-30  Bruno Haible  <bruno@clisp.org>
50480         mbrlen: Fix cross-compilation guess for AIX.
50481         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50482         guess. Leftover from 2008-12-22.
50484 2010-07-30  Bruno Haible  <bruno@clisp.org>
50486         mbrtowc: Fix cross-compilation guess for AIX.
50487         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50488         guess. Leftover from 2008-12-21.
50490 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50492         init.sh: work around trap limitation of some shells
50493         * tests/init.sh (setup_): Move exit trap outside of shell function.
50495 2010-07-29  Eric Blake  <eblake@redhat.com>
50497         strtod: aid debugging
50498         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50499         understanding why strtod is rejected.
50501 2010-07-28  Bruno Haible  <bruno@clisp.org>
50503         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50504         * lib/unistr/u8-chr.c: Include <string.h>.
50505         * tests/unistr/test-u8-chr.c: Likewise.
50506         * tests/unistr/test-u16-chr.c: Likewise.
50507         * tests/unistr/test-u32-chr.c: Likewise.
50508         * tests/unistr/test-u8-strchr.c: Likewise.
50509         * tests/unistr/test-u16-strchr.c: Likewise.
50510         * tests/unistr/test-u32-strchr.c: Likewise.
50511         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50512         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50513         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50514         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50516 2010-07-28  Bruno Haible  <bruno@clisp.org>
50518         Use spaces for indentation, not tabs.
50519         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50521 2010-07-27  Bruno Haible  <bruno@clisp.org>
50523         mbspcasecmp: Fix function specification.
50524         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50525         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50526         Reported by Eric Blake <eblake@redhat.com>.
50528 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50530         timespec: use cast and not conditional, as truncation isn't possible
50531         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50532         instead of a conditional.  Comment about the situation in more detail.
50533         This undoes most of the 2009-10-29 patch.
50535 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50537         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50538         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50539         * lib/unistr/u8-strchr.c: Likewise.
50540         * modules/unistr/u8-chr: Depend on memchr.
50542         unistr/u*-strchr: add tests
50543         * modules/unistr/u8-strchr-tests: New file.
50544         * modules/unistr/u16-strchr-tests: New file.
50545         * modules/unistr/u32-strchr-tests: New file.
50546         * tests/unistr/test-strchr.h: New file.
50547         * tests/unistr/test-u8-strchr.c: New file.
50548         * tests/unistr/test-u16-strchr.c: New file.
50549         * tests/unistr/test-u32-strchr.c: New file.
50551         unistr/u*-chr: test multibyte sequences more
50552         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50553         test vector.
50554         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50555         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50556         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50558         unistr/u*-chr: test multibyte sequences
50559         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50561         unistr/u*-chr: prepare for multibyte tests
50562         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50563         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50564         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50565         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50566         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50567         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50569 2010-07-18  Bruno Haible  <bruno@clisp.org>
50571         unistr/u8-strchr: Optimize non-ASCII argument case.
50572         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50573         because the first byte often matches anyway.
50574         Reported by Pádraig Brady <P@draigbrady.com>.
50576 2010-07-15  Karl Berry  <karl@gnu.org>
50578         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50580 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50582         getcwd: on Solaris, work better if ancestors are inaccessible
50583         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50584         buffer and size, try again with a large buffer.  This works better
50585         on Solaris, since its getcwd succeeds even if the path to the root
50586         is inaccessible, and this is helpful in common cases such as .zfs
50587         hidden directories.  Problem reported by J Chapman Flack in
50588         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50589         Use system getcwd if it's declared, not merely if it's partly
50590         working; use the partly-working test only to avoid needless effort
50591         if the system getcwd fails.
50592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50593         comment that was already obsolete and is now even more obsolete.
50594         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50595         now might call strdup.
50597 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50599         pthread: Add enough so that coreutils/src/sort.c compiles.
50600         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50601         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50602         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50603         Include <sys/types.h>, in case it defines pthread_t.
50604         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50605         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50606         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50607         (pthread_rwlockattr_t, pthread_spinlock_t):
50608         New typedefs, if HAVE_PTHREAD_T is not defined.
50609         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50610         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50611         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50612         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50613         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50614         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50615         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50616         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50617         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50618         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50619         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50620         New macros.
50621         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50622         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50623         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50624         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50625         (pthread_spin_unlock): New dummy functions.
50626         (pthread_create): Return EAGAIN; don't set errno.
50627         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50628         require AC_C_INLINE.
50629         * modules/pthread (Depends-on): Add sched, time.
50630         (pthread.h): Use AM_V_GEN.
50632 2010-07-13  Bruno Haible  <bruno@clisp.org>
50634         striconveh: Don't malloc memory if the result buffer is sufficient.
50635         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50636         buffer if its size is sufficient.
50637         Reported by Ludovic Courtès <ludo@gnu.org>.
50639 2010-07-13  Bruno Haible  <bruno@clisp.org>
50641         strtod: Add safety check.
50642         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50644 2010-07-12  Bruno Haible  <bruno@clisp.org>
50646         Unify tests that set gl_cv_func_ldexpl_no_libm.
50647         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50648         gl_FUNC_LDEXPL.
50649         (gl_FUNC_LDEXPL): Invoke it.
50650         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50652 2010-07-12  Bruno Haible  <bruno@clisp.org>
50654         Unify tests that set gl_cv_func_ldexp_no_libm.
50655         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50656         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50657         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50658         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50659         * modules/strtod (Files): Add m4/ldexp.m4.
50661 2010-07-12  Bruno Haible  <bruno@clisp.org>
50663         Unify tests that set gl_cv_func_frexpl_no_libm.
50664         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50665         gl_FUNC_FREXPL_NO_LIBM.
50666         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50669 2010-07-12  Bruno Haible  <bruno@clisp.org>
50671         Unify tests that set gl_cv_func_frexp_no_libm.
50672         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50673         gl_FUNC_FREXP_NO_LIBM.
50674         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50675         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50677 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50679         memcoll: clarify sizes versus lengths, document better, and tweak perf
50680         * lib/memcoll.c (strcoll_loop, memcoll0):
50681         Improve quality of descriptive comments.  Name variables
50682         consistently as to whether they are lengths (which do not include
50683         terminating null) versus sizes (which do).
50684         * lib/xmemcoll.c (xmemcoll0): Likewise.
50685         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50686         returned when s1size == 0; this is easier to compile and saves
50687         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50689 2010-07-12  Bruno Haible  <bruno@clisp.org>
50691         Tests for module '_Exit'.
50692         * modules/_Exit-tests: New file.
50693         * tests/test-_Exit.sh: New file.
50694         * tests/test-_Exit.c: New file.
50696         New module '_Exit'.
50697         * lib/stdlib.in.h (__attribute__): New macro.
50698         (_Exit): New declaration.
50699         * lib/_Exit.c: New file.
50700         * m4/_Exit.m4: New file.
50701         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50702         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50703         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50704         * modules/_Exit: New file.
50705         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50706         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50708 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50710         strtod: make it more-accurate typically, and don't require libm
50711         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50712         Include limits.h.  Don't include string.h.
50713         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50714         (locale_isspace): New function, so that no casts are needed to
50715         check whether *s is a space.
50716         (ldexp): Provide an unused dummy if not available.
50717         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50718         (strtod): Use them.  This implementation prefers to use the
50719         underlying strtod if available, falling back on our own code
50720         only to fix known bugs.  This is more likely to produce an
50721         accurate result.  Also, it avoids the use of libm functions.
50722         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50723         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50724         was absent, but it caused a test failure with coreutils.
50725         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50726         with libm.
50727         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50728         * modules/strtod-tests (Makefile.am): Likewise.
50730 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50731             Bruno Haible  <bruno@clisp.org>
50733         unistr/u8-strchr: Optimize ASCII argument case.
50734         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50736 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50738         (x)memcoll: minor tweaks
50739         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50740         is after the type that it qualifies.
50741         (memcoll0): Likewise.
50742         * lib/memcoll.h (memcoll0): Likewise.
50743         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50744         * lib/xmemcoll.h (xmemcoll0): Likewise.
50745         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50746         differs from memcoll in that the NUL byte is part of the argument.
50747         Omit the abort-checks, as performance is a real issue here.  Plus,
50748         the checks were wrong anyway (an off-by-one error).  Omit local
50749         variable 'diff', as it's a bit clearer that way.
50750         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50751         no longer needed.
50753 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50755         (x)memcoll: speedup when input is known to be NUL delimited
50756         * lib/memcoll.c: Include stdlib.
50757         (memcoll0): New function.
50758         (strcoll_loop): New function, refactored for use in both memcoll
50759         and memcoll0.
50760         * lib/memcoll.h (memcoll0): Add prototype.
50761         * lib/xmemcoll.c (xmemcoll0): New function.
50762         (collate_error): New function, refactored for use in both xmemcoll
50763         and xmemcoll0.
50764         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50765         * m4/memcoll.m4: add inline invocation.
50767 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50769         * build-aux/bootstrap: Remove any local translations
50770         from the translation project synchronization directory,
50771         so that local only translations are not distributed.
50773 2010-07-04  Bruno Haible  <bruno@clisp.org>
50775         fsusage: Clarify which code applies to which platforms.
50776         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50777         platform.
50778         * lib/fsusage.c (get_fs_usage): Likewise.
50780 2010-07-04  Bruno Haible  <bruno@clisp.org>
50782         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50783         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50784         Reported by Martin Lambers <marlam@marlam.de>.
50786 2010-07-04  Jim Meyering  <meyering@redhat.com>
50788         hash: once again explicitly disallow insertion of NULL
50789         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50790         inserting a NULL pointer cannot work with these functions.
50791         Add a comment with details.
50792         This reverts part of the 2010-07-01 commit, 5bef1a35
50793         "hash: extend module to deal with non-pointer keys".
50795 2010-07-01  Bruno Haible  <bruno@clisp.org>
50797         stdbool: Update doc.
50798         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50799         Info from Christian Weisgerber <naddy@mips.inka.de>.
50801 2010-07-01  Jim Meyering  <meyering@redhat.com>
50803         hash: extend module to deal with non-pointer keys
50804         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50805         but that allows insertion of non-pointer entries.
50806         Do not disallow an ENTRY value of NULL.
50807         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50808         * lib/hash.h (hash_insert0): Declare.
50810 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50812         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50813         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50814         not present (i.e. with autoconf 2.59 and when using gettextize, not
50815         gnulib), require AC_GNU_SOURCE instead.
50817 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50819         idpriv-drop: Fix tests.
50820         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50821         not to the test-idpriv-droptemp program.
50823 2010-06-29  Bruno Haible  <bruno@clisp.org>
50825         string: Fix syntax error with g++ 2.96.
50826         * lib/string.in.h (__pure__): Remove definition.
50827         (_GL_ATTRIBUTE_PURE): New macro.
50828         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50829         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50830         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50832 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50834         unitypes: Fix bug introduced on 2010-05-18.
50835         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50837 2010-06-22  Eric Blake  <eblake@redhat.com>
50839         memmem: slight optimization
50840         * lib/str-two-way.h (critical_factorization): Update comments.
50841         Reduce work during factorization phase.
50842         Reported by Carlos Bueno <carlos@bueno.org>.
50844 2010-06-21  Bruno Haible  <bruno@clisp.org>
50846         Fix HAVE_CALLOC_POSIX misnomer.
50847         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50848         !HAVE_CALLOC_POSIX.
50849         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50850         HAVE_CALLOC_POSIX.
50851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50852         instead of HAVE_CALLOC_POSIX.
50853         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50854         HAVE_CALLOC_POSIX.
50856         Use modern idiom for calloc() replacement.
50857         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50858         AC_FUNC_CALLOC.
50859         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50860         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50861         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50862         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50863         (gl_REPLACE_CALLOC): New macro.
50865 2010-06-21  Bruno Haible  <bruno@clisp.org>
50867         Fix HAVE_REALLOC_POSIX misnomer.
50868         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50869         !HAVE_REALLOC_POSIX.
50870         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50871         HAVE_REALLOC_POSIX.
50872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50873         instead of HAVE_REALLOC_POSIX.
50874         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50875         HAVE_REALLOC_POSIX.
50877         Use modern idiom for realloc() replacement.
50878         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50879         AC_FUNC_REALLOC.
50880         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50881         Autoconf's AC_FUNC_REALLOC.
50882         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50883         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50884         (gl_REPLACE_REALLOC): New macro.
50885         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50887 2010-06-21  Bruno Haible  <bruno@clisp.org>
50889         Fix HAVE_MALLOC_POSIX misnomer.
50890         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50891         !HAVE_MALLOC_POSIX.
50892         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50893         HAVE_MALLOC_POSIX.
50894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50895         instead of HAVE_MALLOC_POSIX.
50896         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50897         HAVE_MALLOC_POSIX.
50899         Use modern idiom for malloc() replacement.
50900         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50901         AC_FUNC_MALLOC.
50902         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50903         Autoconf's AC_FUNC_MALLOC.
50904         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50905         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50906         (gl_REPLACE_MALLOC): New macro.
50907         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50909 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50911         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50912         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50913         This macro takes 3 arguments, not 4.
50915 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50917         ipv6: fix detection under mingw
50918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50919         in6_addr.
50921 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50923         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50924         that strtod() works when cross-compiling to a glibc version known
50925         to work.
50927 2010-06-15  Bruno Haible  <bruno@clisp.org>
50929         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50931 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50933         select: Correct timeout.
50934         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50936 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50938         git-version-gen: init shell var to avoid env var influence
50939         * build-aux/git-version-gen (v): Init shell var to empty.
50941 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50943         priv-set: Don't assume that priv.h exists merely because getppriv does.
50944         See Jan Andersen's bug report about AIX 5L in
50945         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50946         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50947         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50948         * lib/priv-set.h: Likewise.
50949         * tests/test-priv-set.c: Likewise.
50951 2010-06-13  Bruno Haible  <bruno@clisp.org>
50953         relocatable: Make it easier to test whether to install wrappers.
50954         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50955         RELOCATABLE_VIA_WRAPPER.
50957 2010-06-13  Bruno Haible  <bruno@clisp.org>
50959         gnulib-tool: Display specified modules and dependencies differently.
50960         * gnulib-tool (func_show_module_list): New function.
50961         (func_import, func_create_testdir): Invoke it.
50962         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50964 2010-06-13  Bruno Haible  <bruno@clisp.org>
50966         gnulib-tool: Align code of func_import and func_create_testdir.
50967         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50968         specified_modules.
50970 2010-06-12  Jim Meyering  <meyering@redhat.com>
50972         test-inttostr: avoid spurious failure on Solaris 9
50973         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50974         to accept "%ju".  Reported by Bruno Haible.
50976 2010-06-11  Jim Meyering  <meyering@redhat.com>
50978         test-sys_socket: mark variables as used more readably
50979         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50980         as "used" explicitly via (void) statement casts.  This is more
50981         readable than using them in an artificial return expression.
50982         Suggestion from Bruno Haible.
50984 2010-06-11  Bruno Haible  <bruno@clisp.org>
50986         Avoid some more warnings from "gcc -Wwrite-strings".
50987         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50988         to 'const char *'.
50989         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50990         * tests/test-c-strcasestr.c (main): Likewise.
50991         * tests/test-mbscasestr1.c (main): Likewise.
50992         * tests/test-mbscasestr2.c (main): Likewise.
50993         * tests/test-memmem.c (main): Likewise.
50994         * tests/test-strstr.c (main): Likewise.
50995         * tests/test-strcasestr.c (main): Likewise.
50997 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50999         init.sh: change framework_failure_ to fail with status 99, not 1
51000         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
51001         automake's parallel-tests rule that this is an unexpected failure,
51002         even if the test is listed in XFAIL_TESTS.
51004 2010-06-11  Jim Meyering  <meyering@redhat.com>
51006         test-inttostr: avoid warnings about 4-6KB literal strings
51007         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
51008         Include "macros.h", for its definition of ASSERT.
51009         (CK): s/assert/ASSERT/
51010         * modules/inttostr-tests (Files): Add macros.h.
51012         init.sh: don't use $ME_ or skip_ before they are defined
51013         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
51014         their first uses.  Also hoist their companions: warn_, fail_,
51015         framework_failure_, $stderr_fileno.  Prompted by a patch from
51016         Stefano Lattarini.
51018         test-sys_socket: avoid set-but-not-used warnings from gcc
51019         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
51020         avoid warning about set-but-not-used variables.
51022         test-xvasprintf: avoid 'const' discard warnings
51023         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
51024         "const" when assigning from literal strings.
51025         (test_xasprintf): Add "void" in function argument list to placate
51026         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
51028         tests: avoid compilation warnings in argmatch and exclude tests...
51029         in packages that define ARGMATCH_DIE_DECL, like coreutils.
51030         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
51031         Since it always exits, declare with the "noreturn" attribute.
51032         * tests/test-argmatch.c: Likewise.
51034         tests: avoid 'const' discard warnings in mbsstr tests
51035         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
51036         * tests/test-mbsstr2.c (main): Likewise.
51038         test-verify: avoid warning from gcc's -Wmissing-declarations
51039         * tests/test-verify.c (function): Declare to be static.
51041         test-inttostr.c: include <string.h> for use of strcmp
51042         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
51044         test-linkat: avoid failed assertion on "other" architectures
51045         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
51046         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
51047         sparc: https://bugs.launchpad.net/bugs/591968
51049 2010-06-11  Jim Meyering  <meyering@redhat.com>
51051         printf.m4: avoid autoconf's "Expanded Before Required" warning
51052         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
51053         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
51054         autoconf warning.
51056 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
51058         Replacement header templates are now named with ".in", not "_".
51059         * doc/gnulib-intro.texi: Correct.
51061 2010-06-10  Jim Meyering  <meyering@redhat.com>
51063         inttostr-tests: depend on snprintf, not snprintf-posix
51064         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
51065         snprintf-posix, to avoid this aclocal failure:
51066           missing file gnulib-tests/vasnprintf.c
51067           configure.ac:45: error: expected source file, required through \
51068           AC_LIBSOURCES, not found
51070 2010-06-10  Jim Meyering  <meyering@redhat.com>
51072         inttostr: add a new function, inttostr, and tests
51073         The namesake function was not available.  The existence of the
51074         template file, inttostr.c makes its addition nontrivial.
51075         * lib/anytostr.c: Rename from inttostr.c.
51076         (anytostr): Rename from inttostr.
51077         * lib/inttostr.c: New file.
51078         * modules/inttostr (Files): Add anytostr.c.
51079         (Makefile.am): Set lib_SOURCES instead of ...
51080         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
51081         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
51082         * lib/offtostr.c: Likewise.
51083         * lib/uinttostr.c: Likewise.
51084         * lib/umaxtostr.c: Likewise.
51085         * modules/inttostr-tests: New file.
51086         * tests/test-inttostr.c: New file.  Test these functions.
51088 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
51089             Bruno Haible  <bruno@clisp.org>
51091         Add "Extending Gnulib" chapter to manual.
51092         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
51093         chapter.
51094         (Extending Gnulib): New chapter.
51095         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
51096         chapter.
51098 2010-06-09  Bruno Haible  <bruno@clisp.org>
51100         Avoid relocwrapper link errors due to gnulib replacement functions.
51101         * lib/areadlink.c: Use the system's malloc, realloc functions.
51102         (areadlink): Set errno to ENOMEM explicitly.
51103         * modules/areadlink (Depends-on): Remove malloc-posix.
51104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51106 2010-06-09  Bruno Haible  <bruno@clisp.org>
51108         Avoid relocwrapper link errors due to gnulib replacement functions.
51109         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51110         * lib/malloca.c: Likewise.
51111         * lib/relocatable.c: Likewise.
51112         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51113         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51114         * lib/setenv.c: Use the system's malloc, realloc functions.
51115         * lib/strerror.c: Use the system's sprintf function.
51116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51118 2010-06-04  Bruno Haible  <bruno@clisp.org>
51120         Prefer documented low-level autoconf macro names.
51121         * m4/lib-link.m4: Use m4_translit instead of translit.
51122         * m4/environ.m4: Likewise.
51123         * m4/mathfunc.m4: Likewise.
51124         * m4/onceonly.m4: Likewise.
51125         * m4/stdint.m4: Likewise.
51126         Suggested by Eric Blake.
51128 2010-06-04  Martin Lambers  <marlam@marlam.de>
51129             Bruno Haible  <bruno@clisp.org>
51131         havelib: Allow library names with '+' characters.
51132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51133         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51135 2010-06-09  Bruno Haible  <bruno@clisp.org>
51137         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51138         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51139         realloc failed.
51141 2010-06-08  Peter Simons  <simons@cryp.to>
51143         maint.mk: make the news-check rule more configurable
51144         * top/maint.mk (news-check-lines-spec): New variable.
51145         (news-check): Use "sed -n 1,10p" in place of "head".
51147 2010-06-07  Jim Meyering  <meyering@redhat.com>
51149         do-release-commit-and-tag: fix typo in --help
51150         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51152         regex: avoid new dead-code warning with gcc-4.6.0
51153         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51154         if-block containing a while-loop.  It's been unused for at least
51155         5 years.
51157 2010-06-05  Bruno Haible  <bruno@clisp.org>
51159         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51160         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51162 2010-06-04  Bruno Haible  <bruno@clisp.org>
51164         Update to GNU gettext 0.18.1.
51165         * modules/gettext (configure.ac): Require gettext infrastructure from
51166         version 0.18.1.
51168 2010-06-03  Bruno Haible  <bruno@clisp.org>
51170         Don't use AC_LIBOBJ with file names in subdirectories.
51171         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51172         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51173         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51174         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51175         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51176         gl_LIBUNISTRING_LIBSOURCE.
51177         (Makefile.am): Augment lib_SOURCES here, conditionally.
51178         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51180 2010-06-03  Bruno Haible  <bruno@clisp.org>
51182         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51183         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51184         expansion does not end with a newline.
51185         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51186         unnecessary newline.
51188 2010-06-03  Bruno Haible  <bruno@clisp.org>
51190         Reduce dependencies.
51191         * tests/test-quotearg.h: New file, extracted from
51192         tests/test-quotearg.c.
51193         * tests/test-quotearg-simple.c: New file, extracted from
51194         tests/test-quotearg.c.
51195         * tests/test-quotearg.c: Don't include <ctype.h>.
51196         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51197         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51198         use_quote_double_quotes, use_quotearg_colon): Moved to
51199         tests/test-quotearg.h.
51200         (results_g, flag_results, custom_quotes, custom_results): Moved
51201         to tests/test-quotearg-simple.c.
51202         (main): Moved the part that does not depend on gettext to
51203         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51204         performed.
51205         * modules/quotearg-simple: New file.
51206         * modules/quotearg-simple-tests: New file.
51207         * modules/quotearg (Depends-on): Add quotearg-simple.
51208         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51209         (Files): Add tests/test-quotearg.h.
51210         Reported by Paolo Bonzini.
51212 2010-06-03  Bruno Haible  <bruno@clisp.org>
51214         Reduce dependencies.
51215         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51217 2010-06-03  Bruno Haible  <bruno@clisp.org>
51219         time: Undefine more broken macros.
51220         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51221         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51222         Reported by Eric Blake.
51224 2010-06-03  Bruno Haible  <bruno@clisp.org>
51226         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51227         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51228         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51229         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51230         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51231         Reported by Ludovic Courtès <ludo@gnu.org>.
51233 2010-06-02  Eric Blake  <eblake@redhat.com>
51235         time: work with mingw + pthreads-win32 library
51236         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51237         if timespec is defined only in pthread.h.
51238         * modules/time (Makefile.am): Substitute it.
51239         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51240         <pthread.h>, when needed.
51241         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51242         from the library.
51244 2010-05-31  Bruno Haible  <bruno@clisp.org>
51246         Avoid expanding two macros in the wrong order.
51247         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51248         gl_LIBUNISTRING if it is defined.
51249         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51250         autoconf >= 2.64.
51251         Reported by Ludovic Courtès <ludo@gnu.org>.
51253 2010-05-27  Jim Meyering  <meyering@redhat.com>
51255         maint.mk: also prohibit "#undef" of always-defined symbols
51256         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51257         Allow more than one space before the symbol name.
51258         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51259         the regexp uses alternation.
51261 2010-05-26  Eric Blake  <eblake@redhat.com>
51263         maint.mk: avoid echo -e
51264         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51265         Convert all uses of echo -* to printf.
51266         Reported by Matthias Bolte.
51268 2010-05-25  Bruno Haible  <bruno@clisp.org>
51270         Update to GNU gettext 0.18, part 2.
51271         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51272         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51274 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51276         Add missing include in test-pwrite.c.
51277         * tests/test-pwrite.c: Include string.h, for strcmp.
51279 2010-05-24  Bruno Haible  <bruno@clisp.org>
51281         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51283 2010-05-24  Bruno Haible  <bruno@clisp.org>
51285         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51286         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51287         iconveh_error argument.
51288         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51289         U_STRCONV_TO_LOCALE.
51290         * lib/unistr/u16-strcoll.c: Likewise.
51291         * lib/unistr/u32-strcoll.c: Likewise.
51292         * modules/unistr/u8-strcoll (Depends-on): Add
51293         uniconv/u8-strconv-to-enc, localcharset. Remove
51294         uniconv/u8-strconv-to-locale.
51295         (configure.ac): Bump version number.
51296         * modules/unistr/u16-strcoll (Depends-on): Add
51297         uniconv/u16-strconv-to-enc, localcharset. Remove
51298         uniconv/u16-strconv-to-locale.
51299         (configure.ac): Bump version number.
51300         * modules/unistr/u32-strcoll (Depends-on): Add
51301         uniconv/u32-strconv-to-enc, localcharset. Remove
51302         uniconv/u32-strconv-to-locale.
51303         (configure.ac): Bump version number.
51305 2010-05-24  Bruno Haible  <bruno@clisp.org>
51307         Avoid a test failure on NetBSD 5.0.
51308         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51309         an iconv() bug.
51311 2010-05-24  Bruno Haible  <bruno@clisp.org>
51313         Adjust #include directive style.
51314         * modules/regex (Includes): Recommend to write <regex.h>.
51316 2010-05-24  Bruno Haible  <bruno@clisp.org>
51318         regex: Don't require alloca.
51319         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51320         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51321         only inside if (0).
51323 2010-05-23  Jim Meyering  <meyering@redhat.com>
51325         test-renameat.c: include <sys/stat.h>
51326         * tests/test-renameat.c: Include <sys/stat.h>; required for
51327         definition of S_IS* macros.
51329 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51331         Update maintainer documentation for 'relocatable-prog' module.
51332         * doc/relocatable-maint.texi: Update.
51333         Comments by Bruno Haible.
51335 2010-05-23  Bruno Haible  <bruno@clisp.org>
51337         git-merge-changelog: Enable --split-merged-entry by default.
51338         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51339         (usage): Don't mention this option any more.
51340         Reported by Ralf Wildenhues.
51342 2010-05-23  Jim Meyering  <meyering@redhat.com>
51344         test-pwrite: do not leave behind a test file named "out"
51345         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51346         The trivial-looking use of init.sh is really necessary.
51347         It ensures that the temporary file, "out", is created in
51348         a temporary directory, and removed upon termination.
51349         * tests/test-pwrite.sh: Re-add file.
51350         * modules/pwrite-tests: Reference it.
51352 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51354         Fix output redirection buglet in init.sh.
51355         * tests/init.sh: Fix redirection of stderr.
51357 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51359         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51361 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51363         * modules/valgrind-tests: New file.
51364         * m4/valgrind-tests.m4: New file.
51365         * doc/valgrind-tests.texi: New file.
51366         * doc/gnulib.texi (Running self-tests under valgrind): New
51367         section.
51369 2010-05-19  Bruno Haible  <bruno@clisp.org>
51371         Clean up dead code in recent commit.
51372         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51373         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51374         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51375         Suggested by Paolo Bonzini.
51377 2010-05-19  Bruno Haible  <bruno@clisp.org>
51379         Avoid valgrind error reports from libunistring.
51380         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51381         * modules/libunistring (Files): Add it.
51382         * modules/libunistring-optional (Files): Likewise.
51384 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51385             Bruno Haible  <bruno@clisp.org>
51387         New module 'libunistring-optional'.
51388         * modules/libunistring-optional: New file.
51389         * m4/libunistring-base.m4: New file.
51390         * m4/libunistring-optional.m4: New file.
51391         * lib/unicase.in.h: Renamed from lib/unicase.h.
51392         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51393         * lib/unictype.in.h: Renamed from lib/unictype.h.
51394         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51395         * lib/uniname.in.h: Renamed from lib/uniname.h.
51396         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51397         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51398         * lib/unistr.in.h: Renamed from lib/unistr.h.
51399         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51400         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51401         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51402         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51403         gl_LIBUNISTRING. If the library was found, determine the installed
51404         version and set LIBUNISTRING_VERSION.
51405         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51406         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51407         handle a configuration option --with-included-libunistring.
51408         * modules/libunistring (Files): Add m4/absolute-header.m4.
51409         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51410         Add m4/libunistring-base.m4.
51411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51412         (Makefile.am): Build unicase.h from unicase.in.h.
51413         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51414         Add m4/libunistring-base.m4.
51415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51416         (Makefile.am): Build uniconv.h from uniconv.in.h.
51417         * modules/unictype/base (Files): Use unictype.in.h instead of
51418         unictype.h. Add m4/libunistring-base.m4.
51419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51420         (Makefile.am): Build unictype.h from unictype.in.h.
51421         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51422         Add m4/libunistring-base.m4.
51423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51424         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51425         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51426         Add m4/libunistring-base.m4.
51427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51428         (Makefile.am): Build uniname.h from uniname.in.h.
51429         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51430         Add m4/libunistring-base.m4.
51431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51432         (Makefile.am): Build uninorm.h from uninorm.in.h.
51433         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51434         unistdio.h. Add m4/libunistring-base.m4.
51435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51436         (Makefile.am): Build unistdio.h from unistdio.in.h.
51437         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51438         Add m4/libunistring-base.m4.
51439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51440         (Makefile.am): Build unistr.h from unistr.in.h.
51441         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51442         Add m4/libunistring-base.m4.
51443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51444         (Makefile.am): Build unitypes.h from unitypes.in.h.
51445         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51446         Add m4/libunistring-base.m4.
51447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51448         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51449         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51450         uniwidth.h. Add m4/libunistring-base.m4.
51451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51452         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51453         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51454         instead of augmenting lib_SOURCES.
51455         * modules/unicase/empty-suffix-context: Likewise.
51456         * modules/unicase/locale-language: Likewise.
51457         * modules/unicase/tolower: Likewise.
51458         * modules/unicase/totitle: Likewise.
51459         * modules/unicase/toupper: Likewise.
51460         * modules/unicase/u8-casecmp: Likewise.
51461         * modules/unicase/u8-casecoll: Likewise.
51462         * modules/unicase/u8-casefold: Likewise.
51463         * modules/unicase/u8-casexfrm: Likewise.
51464         * modules/unicase/u8-ct-casefold: Likewise.
51465         * modules/unicase/u8-ct-tolower: Likewise.
51466         * modules/unicase/u8-ct-totitle: Likewise.
51467         * modules/unicase/u8-ct-toupper: Likewise.
51468         * modules/unicase/u8-is-cased: Likewise.
51469         * modules/unicase/u8-is-casefolded: Likewise.
51470         * modules/unicase/u8-is-lowercase: Likewise.
51471         * modules/unicase/u8-is-titlecase: Likewise.
51472         * modules/unicase/u8-is-uppercase: Likewise.
51473         * modules/unicase/u8-prefix-context: Likewise.
51474         * modules/unicase/u8-suffix-context: Likewise.
51475         * modules/unicase/u8-tolower: Likewise.
51476         * modules/unicase/u8-totitle: Likewise.
51477         * modules/unicase/u8-toupper: Likewise.
51478         * modules/unicase/u16-casecmp: Likewise.
51479         * modules/unicase/u16-casecoll: Likewise.
51480         * modules/unicase/u16-casefold: Likewise.
51481         * modules/unicase/u16-casexfrm: Likewise.
51482         * modules/unicase/u16-ct-casefold: Likewise.
51483         * modules/unicase/u16-ct-tolower: Likewise.
51484         * modules/unicase/u16-ct-totitle: Likewise.
51485         * modules/unicase/u16-ct-toupper: Likewise.
51486         * modules/unicase/u16-is-cased: Likewise.
51487         * modules/unicase/u16-is-casefolded: Likewise.
51488         * modules/unicase/u16-is-lowercase: Likewise.
51489         * modules/unicase/u16-is-titlecase: Likewise.
51490         * modules/unicase/u16-is-uppercase: Likewise.
51491         * modules/unicase/u16-prefix-context: Likewise.
51492         * modules/unicase/u16-suffix-context: Likewise.
51493         * modules/unicase/u16-tolower: Likewise.
51494         * modules/unicase/u16-totitle: Likewise.
51495         * modules/unicase/u16-toupper: Likewise.
51496         * modules/unicase/u32-casecmp: Likewise.
51497         * modules/unicase/u32-casecoll: Likewise.
51498         * modules/unicase/u32-casefold: Likewise.
51499         * modules/unicase/u32-casexfrm: Likewise.
51500         * modules/unicase/u32-ct-casefold: Likewise.
51501         * modules/unicase/u32-ct-tolower: Likewise.
51502         * modules/unicase/u32-ct-totitle: Likewise.
51503         * modules/unicase/u32-ct-toupper: Likewise.
51504         * modules/unicase/u32-is-cased: Likewise.
51505         * modules/unicase/u32-is-casefolded: Likewise.
51506         * modules/unicase/u32-is-lowercase: Likewise.
51507         * modules/unicase/u32-is-titlecase: Likewise.
51508         * modules/unicase/u32-is-uppercase: Likewise.
51509         * modules/unicase/u32-prefix-context: Likewise.
51510         * modules/unicase/u32-suffix-context: Likewise.
51511         * modules/unicase/u32-tolower: Likewise.
51512         * modules/unicase/u32-totitle: Likewise.
51513         * modules/unicase/u32-toupper: Likewise.
51514         * modules/unicase/ulc-casecmp: Likewise.
51515         * modules/unicase/ulc-casecoll: Likewise.
51516         * modules/unicase/ulc-casexfrm: Likewise.
51517         * modules/uniconv/u8-conv-from-enc: Likewise.
51518         * modules/uniconv/u8-conv-to-enc: Likewise.
51519         * modules/uniconv/u8-strconv-from-enc: Likewise.
51520         * modules/uniconv/u8-strconv-from-locale: Likewise.
51521         * modules/uniconv/u8-strconv-to-enc: Likewise.
51522         * modules/uniconv/u8-strconv-to-locale: Likewise.
51523         * modules/uniconv/u16-conv-from-enc: Likewise.
51524         * modules/uniconv/u16-conv-to-enc: Likewise.
51525         * modules/uniconv/u16-strconv-from-enc: Likewise.
51526         * modules/uniconv/u16-strconv-from-locale: Likewise.
51527         * modules/uniconv/u16-strconv-to-enc: Likewise.
51528         * modules/uniconv/u16-strconv-to-locale: Likewise.
51529         * modules/uniconv/u32-conv-from-enc: Likewise.
51530         * modules/uniconv/u32-conv-to-enc: Likewise.
51531         * modules/uniconv/u32-strconv-from-enc: Likewise.
51532         * modules/uniconv/u32-strconv-from-locale: Likewise.
51533         * modules/uniconv/u32-strconv-to-enc: Likewise.
51534         * modules/uniconv/u32-strconv-to-locale: Likewise.
51535         * modules/unictype/bidicategory-byname: Likewise.
51536         * modules/unictype/bidicategory-name: Likewise.
51537         * modules/unictype/bidicategory-of: Likewise.
51538         * modules/unictype/bidicategory-test: Likewise.
51539         * modules/unictype/block-list: Likewise.
51540         * modules/unictype/block-test: Likewise.
51541         * modules/unictype/category-C: Likewise.
51542         * modules/unictype/category-Cc: Likewise.
51543         * modules/unictype/category-Cf: Likewise.
51544         * modules/unictype/category-Cn: Likewise.
51545         * modules/unictype/category-Co: Likewise.
51546         * modules/unictype/category-Cs: Likewise.
51547         * modules/unictype/category-L: Likewise.
51548         * modules/unictype/category-Ll: Likewise.
51549         * modules/unictype/category-Lm: Likewise.
51550         * modules/unictype/category-Lo: Likewise.
51551         * modules/unictype/category-Lt: Likewise.
51552         * modules/unictype/category-Lu: Likewise.
51553         * modules/unictype/category-M: Likewise.
51554         * modules/unictype/category-Mc: Likewise.
51555         * modules/unictype/category-Me: Likewise.
51556         * modules/unictype/category-Mn: Likewise.
51557         * modules/unictype/category-N: Likewise.
51558         * modules/unictype/category-Nd: Likewise.
51559         * modules/unictype/category-Nl: Likewise.
51560         * modules/unictype/category-No: Likewise.
51561         * modules/unictype/category-P: Likewise.
51562         * modules/unictype/category-Pc: Likewise.
51563         * modules/unictype/category-Pd: Likewise.
51564         * modules/unictype/category-Pe: Likewise.
51565         * modules/unictype/category-Pf: Likewise.
51566         * modules/unictype/category-Pi: Likewise.
51567         * modules/unictype/category-Po: Likewise.
51568         * modules/unictype/category-Ps: Likewise.
51569         * modules/unictype/category-S: Likewise.
51570         * modules/unictype/category-Sc: Likewise.
51571         * modules/unictype/category-Sk: Likewise.
51572         * modules/unictype/category-Sm: Likewise.
51573         * modules/unictype/category-So: Likewise.
51574         * modules/unictype/category-Z: Likewise.
51575         * modules/unictype/category-Zl: Likewise.
51576         * modules/unictype/category-Zp: Likewise.
51577         * modules/unictype/category-Zs: Likewise.
51578         * modules/unictype/category-and: Likewise.
51579         * modules/unictype/category-and-not: Likewise.
51580         * modules/unictype/category-byname: Likewise.
51581         * modules/unictype/category-name: Likewise.
51582         * modules/unictype/category-none: Likewise.
51583         * modules/unictype/category-of: Likewise.
51584         * modules/unictype/category-or: Likewise.
51585         * modules/unictype/category-test: Likewise.
51586         * modules/unictype/combining-class: Likewise.
51587         * modules/unictype/ctype-alnum: Likewise.
51588         * modules/unictype/ctype-alpha: Likewise.
51589         * modules/unictype/ctype-blank: Likewise.
51590         * modules/unictype/ctype-cntrl: Likewise.
51591         * modules/unictype/ctype-digit: Likewise.
51592         * modules/unictype/ctype-graph: Likewise.
51593         * modules/unictype/ctype-lower: Likewise.
51594         * modules/unictype/ctype-print: Likewise.
51595         * modules/unictype/ctype-punct: Likewise.
51596         * modules/unictype/ctype-space: Likewise.
51597         * modules/unictype/ctype-upper: Likewise.
51598         * modules/unictype/ctype-xdigit: Likewise.
51599         * modules/unictype/decimal-digit: Likewise.
51600         * modules/unictype/digit: Likewise.
51601         * modules/unictype/mirror: Likewise.
51602         * modules/unictype/numeric: Likewise.
51603         * modules/unictype/property-alphabetic: Likewise.
51604         * modules/unictype/property-ascii-hex-digit: Likewise.
51605         * modules/unictype/property-bidi-arabic-digit: Likewise.
51606         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51607         * modules/unictype/property-bidi-block-separator: Likewise.
51608         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51609         * modules/unictype/property-bidi-common-separator: Likewise.
51610         * modules/unictype/property-bidi-control: Likewise.
51611         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51612         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51613         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51614         * modules/unictype/property-bidi-european-digit: Likewise.
51615         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51616         * modules/unictype/property-bidi-left-to-right: Likewise.
51617         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51618         * modules/unictype/property-bidi-other-neutral: Likewise.
51619         * modules/unictype/property-bidi-pdf: Likewise.
51620         * modules/unictype/property-bidi-segment-separator: Likewise.
51621         * modules/unictype/property-bidi-whitespace: Likewise.
51622         * modules/unictype/property-byname: Likewise.
51623         * modules/unictype/property-combining: Likewise.
51624         * modules/unictype/property-composite: Likewise.
51625         * modules/unictype/property-currency-symbol: Likewise.
51626         * modules/unictype/property-dash: Likewise.
51627         * modules/unictype/property-decimal-digit: Likewise.
51628         * modules/unictype/property-default-ignorable-code-point: Likewise.
51629         * modules/unictype/property-deprecated: Likewise.
51630         * modules/unictype/property-diacritic: Likewise.
51631         * modules/unictype/property-extender: Likewise.
51632         * modules/unictype/property-format-control: Likewise.
51633         * modules/unictype/property-grapheme-base: Likewise.
51634         * modules/unictype/property-grapheme-extend: Likewise.
51635         * modules/unictype/property-grapheme-link: Likewise.
51636         * modules/unictype/property-hex-digit: Likewise.
51637         * modules/unictype/property-hyphen: Likewise.
51638         * modules/unictype/property-id-continue: Likewise.
51639         * modules/unictype/property-id-start: Likewise.
51640         * modules/unictype/property-ideographic: Likewise.
51641         * modules/unictype/property-ids-binary-operator: Likewise.
51642         * modules/unictype/property-ids-trinary-operator: Likewise.
51643         * modules/unictype/property-ignorable-control: Likewise.
51644         * modules/unictype/property-iso-control: Likewise.
51645         * modules/unictype/property-join-control: Likewise.
51646         * modules/unictype/property-left-of-pair: Likewise.
51647         * modules/unictype/property-line-separator: Likewise.
51648         * modules/unictype/property-logical-order-exception: Likewise.
51649         * modules/unictype/property-lowercase: Likewise.
51650         * modules/unictype/property-math: Likewise.
51651         * modules/unictype/property-non-break: Likewise.
51652         * modules/unictype/property-not-a-character: Likewise.
51653         * modules/unictype/property-numeric: Likewise.
51654         * modules/unictype/property-other-alphabetic: Likewise.
51655         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51656         * modules/unictype/property-other-grapheme-extend: Likewise.
51657         * modules/unictype/property-other-id-continue: Likewise.
51658         * modules/unictype/property-other-id-start: Likewise.
51659         * modules/unictype/property-other-lowercase: Likewise.
51660         * modules/unictype/property-other-math: Likewise.
51661         * modules/unictype/property-other-uppercase: Likewise.
51662         * modules/unictype/property-paired-punctuation: Likewise.
51663         * modules/unictype/property-paragraph-separator: Likewise.
51664         * modules/unictype/property-pattern-syntax: Likewise.
51665         * modules/unictype/property-pattern-white-space: Likewise.
51666         * modules/unictype/property-private-use: Likewise.
51667         * modules/unictype/property-punctuation: Likewise.
51668         * modules/unictype/property-quotation-mark: Likewise.
51669         * modules/unictype/property-radical: Likewise.
51670         * modules/unictype/property-sentence-terminal: Likewise.
51671         * modules/unictype/property-soft-dotted: Likewise.
51672         * modules/unictype/property-space: Likewise.
51673         * modules/unictype/property-terminal-punctuation: Likewise.
51674         * modules/unictype/property-test: Likewise.
51675         * modules/unictype/property-titlecase: Likewise.
51676         * modules/unictype/property-unassigned-code-value: Likewise.
51677         * modules/unictype/property-unified-ideograph: Likewise.
51678         * modules/unictype/property-uppercase: Likewise.
51679         * modules/unictype/property-variation-selector: Likewise.
51680         * modules/unictype/property-white-space: Likewise.
51681         * modules/unictype/property-xid-continue: Likewise.
51682         * modules/unictype/property-xid-start: Likewise.
51683         * modules/unictype/property-zero-width: Likewise.
51684         * modules/unictype/scripts: Likewise.
51685         * modules/unictype/syntax-c-ident: Likewise.
51686         * modules/unictype/syntax-c-whitespace: Likewise.
51687         * modules/unictype/syntax-java-ident: Likewise.
51688         * modules/unictype/syntax-java-whitespace: Likewise.
51689         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51690         * modules/unilbrk/u8-width-linebreaks: Likewise.
51691         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51692         * modules/unilbrk/u16-width-linebreaks: Likewise.
51693         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51694         * modules/unilbrk/u32-width-linebreaks: Likewise.
51695         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51696         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51697         * modules/uniname/uniname: Likewise.
51698         * modules/uninorm/canonical-decomposition: Likewise.
51699         * modules/uninorm/composition: Likewise.
51700         * modules/uninorm/decomposing-form: Likewise.
51701         * modules/uninorm/decomposition: Likewise.
51702         * modules/uninorm/filter: Likewise.
51703         * modules/uninorm/nfc: Likewise.
51704         * modules/uninorm/nfd: Likewise.
51705         * modules/uninorm/nfkc: Likewise.
51706         * modules/uninorm/nfkd: Likewise.
51707         * modules/uninorm/u8-normalize: Likewise.
51708         * modules/uninorm/u8-normcmp: Likewise.
51709         * modules/uninorm/u8-normcoll: Likewise.
51710         * modules/uninorm/u8-normxfrm: Likewise.
51711         * modules/uninorm/u16-normalize: Likewise.
51712         * modules/uninorm/u16-normcmp: Likewise.
51713         * modules/uninorm/u16-normcoll: Likewise.
51714         * modules/uninorm/u16-normxfrm: Likewise.
51715         * modules/uninorm/u32-normalize: Likewise.
51716         * modules/uninorm/u32-normcmp: Likewise.
51717         * modules/uninorm/u32-normcoll: Likewise.
51718         * modules/uninorm/u32-normxfrm: Likewise.
51719         * modules/unistdio/u8-asnprintf: Likewise.
51720         * modules/unistdio/u8-asprintf: Likewise.
51721         * modules/unistdio/u8-snprintf: Likewise.
51722         * modules/unistdio/u8-sprintf: Likewise.
51723         * modules/unistdio/u8-u8-asnprintf: Likewise.
51724         * modules/unistdio/u8-u8-asprintf: Likewise.
51725         * modules/unistdio/u8-u8-snprintf: Likewise.
51726         * modules/unistdio/u8-u8-sprintf: Likewise.
51727         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51728         * modules/unistdio/u8-u8-vasprintf: Likewise.
51729         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51730         * modules/unistdio/u8-u8-vsprintf: Likewise.
51731         * modules/unistdio/u8-vasnprintf: Likewise.
51732         * modules/unistdio/u8-vasprintf: Likewise.
51733         * modules/unistdio/u8-vsnprintf: Likewise.
51734         * modules/unistdio/u8-vsprintf: Likewise.
51735         * modules/unistdio/u16-asnprintf: Likewise.
51736         * modules/unistdio/u16-asprintf: Likewise.
51737         * modules/unistdio/u16-snprintf: Likewise.
51738         * modules/unistdio/u16-sprintf: Likewise.
51739         * modules/unistdio/u16-u16-asnprintf: Likewise.
51740         * modules/unistdio/u16-u16-asprintf: Likewise.
51741         * modules/unistdio/u16-u16-snprintf: Likewise.
51742         * modules/unistdio/u16-u16-sprintf: Likewise.
51743         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51744         * modules/unistdio/u16-u16-vasprintf: Likewise.
51745         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51746         * modules/unistdio/u16-u16-vsprintf: Likewise.
51747         * modules/unistdio/u16-vasnprintf: Likewise.
51748         * modules/unistdio/u16-vasprintf: Likewise.
51749         * modules/unistdio/u16-vsnprintf: Likewise.
51750         * modules/unistdio/u16-vsprintf: Likewise.
51751         * modules/unistdio/u32-asnprintf: Likewise.
51752         * modules/unistdio/u32-asprintf: Likewise.
51753         * modules/unistdio/u32-snprintf: Likewise.
51754         * modules/unistdio/u32-sprintf: Likewise.
51755         * modules/unistdio/u32-u32-asnprintf: Likewise.
51756         * modules/unistdio/u32-u32-asprintf: Likewise.
51757         * modules/unistdio/u32-u32-snprintf: Likewise.
51758         * modules/unistdio/u32-u32-sprintf: Likewise.
51759         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51760         * modules/unistdio/u32-u32-vasprintf: Likewise.
51761         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51762         * modules/unistdio/u32-u32-vsprintf: Likewise.
51763         * modules/unistdio/u32-vasnprintf: Likewise.
51764         * modules/unistdio/u32-vasprintf: Likewise.
51765         * modules/unistdio/u32-vsnprintf: Likewise.
51766         * modules/unistdio/u32-vsprintf: Likewise.
51767         * modules/unistdio/ulc-asnprintf: Likewise.
51768         * modules/unistdio/ulc-asprintf: Likewise.
51769         * modules/unistdio/ulc-fprintf: Likewise.
51770         * modules/unistdio/ulc-snprintf: Likewise.
51771         * modules/unistdio/ulc-sprintf: Likewise.
51772         * modules/unistdio/ulc-vasnprintf: Likewise.
51773         * modules/unistdio/ulc-vasprintf: Likewise.
51774         * modules/unistdio/ulc-vfprintf: Likewise.
51775         * modules/unistdio/ulc-vsnprintf: Likewise.
51776         * modules/unistdio/ulc-vsprintf: Likewise.
51777         * modules/unistr/u8-check: Likewise.
51778         * modules/unistr/u8-chr: Likewise.
51779         * modules/unistr/u8-cmp: Likewise.
51780         * modules/unistr/u8-cmp2: Likewise.
51781         * modules/unistr/u8-cpy: Likewise.
51782         * modules/unistr/u8-cpy-alloc: Likewise.
51783         * modules/unistr/u8-endswith: Likewise.
51784         * modules/unistr/u8-mblen: Likewise.
51785         * modules/unistr/u8-mbsnlen: Likewise.
51786         * modules/unistr/u8-mbtouc: Likewise.
51787         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51788         * modules/unistr/u8-mbtoucr: Likewise.
51789         * modules/unistr/u8-move: Likewise.
51790         * modules/unistr/u8-next: Likewise.
51791         * modules/unistr/u8-prev: Likewise.
51792         * modules/unistr/u8-set: Likewise.
51793         * modules/unistr/u8-startswith: Likewise.
51794         * modules/unistr/u8-stpcpy: Likewise.
51795         * modules/unistr/u8-stpncpy: Likewise.
51796         * modules/unistr/u8-strcat: Likewise.
51797         * modules/unistr/u8-strchr: Likewise.
51798         * modules/unistr/u8-strcmp: Likewise.
51799         * modules/unistr/u8-strcoll: Likewise.
51800         * modules/unistr/u8-strcpy: Likewise.
51801         * modules/unistr/u8-strcspn: Likewise.
51802         * modules/unistr/u8-strdup: Likewise.
51803         * modules/unistr/u8-strlen: Likewise.
51804         * modules/unistr/u8-strmblen: Likewise.
51805         * modules/unistr/u8-strmbtouc: Likewise.
51806         * modules/unistr/u8-strncat: Likewise.
51807         * modules/unistr/u8-strncmp: Likewise.
51808         * modules/unistr/u8-strncpy: Likewise.
51809         * modules/unistr/u8-strnlen: Likewise.
51810         * modules/unistr/u8-strpbrk: Likewise.
51811         * modules/unistr/u8-strrchr: Likewise.
51812         * modules/unistr/u8-strspn: Likewise.
51813         * modules/unistr/u8-strstr: Likewise.
51814         * modules/unistr/u8-strtok: Likewise.
51815         * modules/unistr/u8-to-u16: Likewise.
51816         * modules/unistr/u8-to-u32: Likewise.
51817         * modules/unistr/u8-uctomb: Likewise.
51818         * modules/unistr/u16-check: Likewise.
51819         * modules/unistr/u16-chr: Likewise.
51820         * modules/unistr/u16-cmp: Likewise.
51821         * modules/unistr/u16-cmp2: Likewise.
51822         * modules/unistr/u16-cpy: Likewise.
51823         * modules/unistr/u16-cpy-alloc: Likewise.
51824         * modules/unistr/u16-endswith: Likewise.
51825         * modules/unistr/u16-mblen: Likewise.
51826         * modules/unistr/u16-mbsnlen: Likewise.
51827         * modules/unistr/u16-mbtouc: Likewise.
51828         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51829         * modules/unistr/u16-mbtoucr: Likewise.
51830         * modules/unistr/u16-move: Likewise.
51831         * modules/unistr/u16-next: Likewise.
51832         * modules/unistr/u16-prev: Likewise.
51833         * modules/unistr/u16-set: Likewise.
51834         * modules/unistr/u16-startswith: Likewise.
51835         * modules/unistr/u16-stpcpy: Likewise.
51836         * modules/unistr/u16-stpncpy: Likewise.
51837         * modules/unistr/u16-strcat: Likewise.
51838         * modules/unistr/u16-strchr: Likewise.
51839         * modules/unistr/u16-strcmp: Likewise.
51840         * modules/unistr/u16-strcoll: Likewise.
51841         * modules/unistr/u16-strcpy: Likewise.
51842         * modules/unistr/u16-strcspn: Likewise.
51843         * modules/unistr/u16-strdup: Likewise.
51844         * modules/unistr/u16-strlen: Likewise.
51845         * modules/unistr/u16-strmblen: Likewise.
51846         * modules/unistr/u16-strmbtouc: Likewise.
51847         * modules/unistr/u16-strncat: Likewise.
51848         * modules/unistr/u16-strncmp: Likewise.
51849         * modules/unistr/u16-strncpy: Likewise.
51850         * modules/unistr/u16-strnlen: Likewise.
51851         * modules/unistr/u16-strpbrk: Likewise.
51852         * modules/unistr/u16-strrchr: Likewise.
51853         * modules/unistr/u16-strspn: Likewise.
51854         * modules/unistr/u16-strstr: Likewise.
51855         * modules/unistr/u16-strtok: Likewise.
51856         * modules/unistr/u16-to-u32: Likewise.
51857         * modules/unistr/u16-to-u8: Likewise.
51858         * modules/unistr/u16-uctomb: Likewise.
51859         * modules/unistr/u32-check: Likewise.
51860         * modules/unistr/u32-chr: Likewise.
51861         * modules/unistr/u32-cmp: Likewise.
51862         * modules/unistr/u32-cmp2: Likewise.
51863         * modules/unistr/u32-cpy: Likewise.
51864         * modules/unistr/u32-cpy-alloc: Likewise.
51865         * modules/unistr/u32-endswith: Likewise.
51866         * modules/unistr/u32-mblen: Likewise.
51867         * modules/unistr/u32-mbsnlen: Likewise.
51868         * modules/unistr/u32-mbtouc: Likewise.
51869         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51870         * modules/unistr/u32-mbtoucr: Likewise.
51871         * modules/unistr/u32-move: Likewise.
51872         * modules/unistr/u32-next: Likewise.
51873         * modules/unistr/u32-prev: Likewise.
51874         * modules/unistr/u32-set: Likewise.
51875         * modules/unistr/u32-startswith: Likewise.
51876         * modules/unistr/u32-stpcpy: Likewise.
51877         * modules/unistr/u32-stpncpy: Likewise.
51878         * modules/unistr/u32-strcat: Likewise.
51879         * modules/unistr/u32-strchr: Likewise.
51880         * modules/unistr/u32-strcmp: Likewise.
51881         * modules/unistr/u32-strcoll: Likewise.
51882         * modules/unistr/u32-strcpy: Likewise.
51883         * modules/unistr/u32-strcspn: Likewise.
51884         * modules/unistr/u32-strdup: Likewise.
51885         * modules/unistr/u32-strlen: Likewise.
51886         * modules/unistr/u32-strmblen: Likewise.
51887         * modules/unistr/u32-strmbtouc: Likewise.
51888         * modules/unistr/u32-strncat: Likewise.
51889         * modules/unistr/u32-strncmp: Likewise.
51890         * modules/unistr/u32-strncpy: Likewise.
51891         * modules/unistr/u32-strnlen: Likewise.
51892         * modules/unistr/u32-strpbrk: Likewise.
51893         * modules/unistr/u32-strrchr: Likewise.
51894         * modules/unistr/u32-strspn: Likewise.
51895         * modules/unistr/u32-strstr: Likewise.
51896         * modules/unistr/u32-strtok: Likewise.
51897         * modules/unistr/u32-to-u16: Likewise.
51898         * modules/unistr/u32-to-u8: Likewise.
51899         * modules/unistr/u32-uctomb: Likewise.
51900         * modules/uniwbrk/u8-wordbreaks: Likewise.
51901         * modules/uniwbrk/u16-wordbreaks: Likewise.
51902         * modules/uniwbrk/u32-wordbreaks: Likewise.
51903         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51904         * modules/uniwbrk/wordbreak-property: Likewise.
51905         * modules/uniwidth/u8-strwidth: Likewise.
51906         * modules/uniwidth/u8-width: Likewise.
51907         * modules/uniwidth/u16-strwidth: Likewise.
51908         * modules/uniwidth/u16-width: Likewise.
51909         * modules/uniwidth/u32-strwidth: Likewise.
51910         * modules/uniwidth/u32-width: Likewise.
51911         * modules/uniwidth/width: Likewise.
51912         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51913         with $(LIBUNISTRING).
51914         * modules/unicase/ignorable-tests: Likewise.
51915         * modules/unicase/locale-language-tests: Likewise.
51916         * modules/unicase/tolower-tests: Likewise.
51917         * modules/unicase/totitle-tests: Likewise.
51918         * modules/unicase/toupper-tests: Likewise.
51919         * modules/unicase/u8-casecmp-tests: Likewise.
51920         * modules/unicase/u8-casecoll-tests: Likewise.
51921         * modules/unicase/u8-casefold-tests: Likewise.
51922         * modules/unicase/u8-is-cased-tests: Likewise.
51923         * modules/unicase/u8-is-casefolded-tests: Likewise.
51924         * modules/unicase/u8-is-lowercase-tests: Likewise.
51925         * modules/unicase/u8-is-titlecase-tests: Likewise.
51926         * modules/unicase/u8-is-uppercase-tests: Likewise.
51927         * modules/unicase/u8-tolower-tests: Likewise.
51928         * modules/unicase/u8-totitle-tests: Likewise.
51929         * modules/unicase/u8-toupper-tests: Likewise.
51930         * modules/unicase/u16-casecmp-tests: Likewise.
51931         * modules/unicase/u16-casecoll-tests: Likewise.
51932         * modules/unicase/u16-casefold-tests: Likewise.
51933         * modules/unicase/u16-is-cased-tests: Likewise.
51934         * modules/unicase/u16-is-casefolded-tests: Likewise.
51935         * modules/unicase/u16-is-lowercase-tests: Likewise.
51936         * modules/unicase/u16-is-titlecase-tests: Likewise.
51937         * modules/unicase/u16-is-uppercase-tests: Likewise.
51938         * modules/unicase/u16-tolower-tests: Likewise.
51939         * modules/unicase/u16-totitle-tests: Likewise.
51940         * modules/unicase/u16-toupper-tests: Likewise.
51941         * modules/unicase/u32-casecmp-tests: Likewise.
51942         * modules/unicase/u32-casecoll-tests: Likewise.
51943         * modules/unicase/u32-casefold-tests: Likewise.
51944         * modules/unicase/u32-is-cased-tests: Likewise.
51945         * modules/unicase/u32-is-casefolded-tests: Likewise.
51946         * modules/unicase/u32-is-lowercase-tests: Likewise.
51947         * modules/unicase/u32-is-titlecase-tests: Likewise.
51948         * modules/unicase/u32-is-uppercase-tests: Likewise.
51949         * modules/unicase/u32-tolower-tests: Likewise.
51950         * modules/unicase/u32-totitle-tests: Likewise.
51951         * modules/unicase/u32-toupper-tests: Likewise.
51952         * modules/unicase/ulc-casecmp-tests: Likewise.
51953         * modules/unicase/ulc-casecoll-tests: Likewise.
51954         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51955         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51956         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51957         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51958         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51959         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51960         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51961         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51962         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51963         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51964         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51965         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51966         * modules/unictype/bidicategory-byname-tests: Likewise.
51967         * modules/unictype/bidicategory-name-tests: Likewise.
51968         * modules/unictype/bidicategory-of-tests: Likewise.
51969         * modules/unictype/bidicategory-test-tests: Likewise.
51970         * modules/unictype/block-list-tests: Likewise.
51971         * modules/unictype/block-of-tests: Likewise.
51972         * modules/unictype/block-test-tests: Likewise.
51973         * modules/unictype/category-C-tests: Likewise.
51974         * modules/unictype/category-Cc-tests: Likewise.
51975         * modules/unictype/category-Cf-tests: Likewise.
51976         * modules/unictype/category-Cn-tests: Likewise.
51977         * modules/unictype/category-Co-tests: Likewise.
51978         * modules/unictype/category-Cs-tests: Likewise.
51979         * modules/unictype/category-L-tests: Likewise.
51980         * modules/unictype/category-Ll-tests: Likewise.
51981         * modules/unictype/category-Lm-tests: Likewise.
51982         * modules/unictype/category-Lo-tests: Likewise.
51983         * modules/unictype/category-Lt-tests: Likewise.
51984         * modules/unictype/category-Lu-tests: Likewise.
51985         * modules/unictype/category-M-tests: Likewise.
51986         * modules/unictype/category-Mc-tests: Likewise.
51987         * modules/unictype/category-Me-tests: Likewise.
51988         * modules/unictype/category-Mn-tests: Likewise.
51989         * modules/unictype/category-N-tests: Likewise.
51990         * modules/unictype/category-Nd-tests: Likewise.
51991         * modules/unictype/category-Nl-tests: Likewise.
51992         * modules/unictype/category-No-tests: Likewise.
51993         * modules/unictype/category-P-tests: Likewise.
51994         * modules/unictype/category-Pc-tests: Likewise.
51995         * modules/unictype/category-Pd-tests: Likewise.
51996         * modules/unictype/category-Pe-tests: Likewise.
51997         * modules/unictype/category-Pf-tests: Likewise.
51998         * modules/unictype/category-Pi-tests: Likewise.
51999         * modules/unictype/category-Po-tests: Likewise.
52000         * modules/unictype/category-Ps-tests: Likewise.
52001         * modules/unictype/category-S-tests: Likewise.
52002         * modules/unictype/category-Sc-tests: Likewise.
52003         * modules/unictype/category-Sk-tests: Likewise.
52004         * modules/unictype/category-Sm-tests: Likewise.
52005         * modules/unictype/category-So-tests: Likewise.
52006         * modules/unictype/category-Z-tests: Likewise.
52007         * modules/unictype/category-Zl-tests: Likewise.
52008         * modules/unictype/category-Zp-tests: Likewise.
52009         * modules/unictype/category-Zs-tests: Likewise.
52010         * modules/unictype/category-and-not-tests: Likewise.
52011         * modules/unictype/category-and-tests: Likewise.
52012         * modules/unictype/category-byname-tests: Likewise.
52013         * modules/unictype/category-name-tests: Likewise.
52014         * modules/unictype/category-none-tests: Likewise.
52015         * modules/unictype/category-of-tests: Likewise.
52016         * modules/unictype/category-or-tests: Likewise.
52017         * modules/unictype/category-test-withtable-tests: Likewise.
52018         * modules/unictype/combining-class-tests: Likewise.
52019         * modules/unictype/ctype-alnum-tests: Likewise.
52020         * modules/unictype/ctype-alpha-tests: Likewise.
52021         * modules/unictype/ctype-blank-tests: Likewise.
52022         * modules/unictype/ctype-cntrl-tests: Likewise.
52023         * modules/unictype/ctype-digit-tests: Likewise.
52024         * modules/unictype/ctype-graph-tests: Likewise.
52025         * modules/unictype/ctype-lower-tests: Likewise.
52026         * modules/unictype/ctype-print-tests: Likewise.
52027         * modules/unictype/ctype-punct-tests: Likewise.
52028         * modules/unictype/ctype-space-tests: Likewise.
52029         * modules/unictype/ctype-upper-tests: Likewise.
52030         * modules/unictype/ctype-xdigit-tests: Likewise.
52031         * modules/unictype/decimal-digit-tests: Likewise.
52032         * modules/unictype/digit-tests: Likewise.
52033         * modules/unictype/mirror-tests: Likewise.
52034         * modules/unictype/numeric-tests: Likewise.
52035         * modules/unictype/property-alphabetic-tests: Likewise.
52036         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
52037         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
52038         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
52039         * modules/unictype/property-bidi-block-separator-tests: Likewise.
52040         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
52041         * modules/unictype/property-bidi-common-separator-tests: Likewise.
52042         * modules/unictype/property-bidi-control-tests: Likewise.
52043         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
52044         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
52045         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
52046         * modules/unictype/property-bidi-european-digit-tests: Likewise.
52047         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
52048         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
52049         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
52050         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
52051         * modules/unictype/property-bidi-pdf-tests: Likewise.
52052         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
52053         * modules/unictype/property-bidi-whitespace-tests: Likewise.
52054         * modules/unictype/property-byname-tests: Likewise.
52055         * modules/unictype/property-combining-tests: Likewise.
52056         * modules/unictype/property-composite-tests: Likewise.
52057         * modules/unictype/property-currency-symbol-tests: Likewise.
52058         * modules/unictype/property-dash-tests: Likewise.
52059         * modules/unictype/property-decimal-digit-tests: Likewise.
52060         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
52061         * modules/unictype/property-deprecated-tests: Likewise.
52062         * modules/unictype/property-diacritic-tests: Likewise.
52063         * modules/unictype/property-extender-tests: Likewise.
52064         * modules/unictype/property-format-control-tests: Likewise.
52065         * modules/unictype/property-grapheme-base-tests: Likewise.
52066         * modules/unictype/property-grapheme-extend-tests: Likewise.
52067         * modules/unictype/property-grapheme-link-tests: Likewise.
52068         * modules/unictype/property-hex-digit-tests: Likewise.
52069         * modules/unictype/property-hyphen-tests: Likewise.
52070         * modules/unictype/property-id-continue-tests: Likewise.
52071         * modules/unictype/property-id-start-tests: Likewise.
52072         * modules/unictype/property-ideographic-tests: Likewise.
52073         * modules/unictype/property-ids-binary-operator-tests: Likewise.
52074         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
52075         * modules/unictype/property-ignorable-control-tests: Likewise.
52076         * modules/unictype/property-iso-control-tests: Likewise.
52077         * modules/unictype/property-join-control-tests: Likewise.
52078         * modules/unictype/property-left-of-pair-tests: Likewise.
52079         * modules/unictype/property-line-separator-tests: Likewise.
52080         * modules/unictype/property-logical-order-exception-tests: Likewise.
52081         * modules/unictype/property-lowercase-tests: Likewise.
52082         * modules/unictype/property-math-tests: Likewise.
52083         * modules/unictype/property-non-break-tests: Likewise.
52084         * modules/unictype/property-not-a-character-tests: Likewise.
52085         * modules/unictype/property-numeric-tests: Likewise.
52086         * modules/unictype/property-other-alphabetic-tests: Likewise.
52087         * modules/unictype/property-other-default-ignorable-code-point-tests:
52088         Likewise.
52089         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
52090         * modules/unictype/property-other-id-continue-tests: Likewise.
52091         * modules/unictype/property-other-id-start-tests: Likewise.
52092         * modules/unictype/property-other-lowercase-tests: Likewise.
52093         * modules/unictype/property-other-math-tests: Likewise.
52094         * modules/unictype/property-other-uppercase-tests: Likewise.
52095         * modules/unictype/property-paired-punctuation-tests: Likewise.
52096         * modules/unictype/property-paragraph-separator-tests: Likewise.
52097         * modules/unictype/property-pattern-syntax-tests: Likewise.
52098         * modules/unictype/property-pattern-white-space-tests: Likewise.
52099         * modules/unictype/property-private-use-tests: Likewise.
52100         * modules/unictype/property-punctuation-tests: Likewise.
52101         * modules/unictype/property-quotation-mark-tests: Likewise.
52102         * modules/unictype/property-radical-tests: Likewise.
52103         * modules/unictype/property-sentence-terminal-tests: Likewise.
52104         * modules/unictype/property-soft-dotted-tests: Likewise.
52105         * modules/unictype/property-space-tests: Likewise.
52106         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52107         * modules/unictype/property-test-tests: Likewise.
52108         * modules/unictype/property-titlecase-tests: Likewise.
52109         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52110         * modules/unictype/property-unified-ideograph-tests: Likewise.
52111         * modules/unictype/property-uppercase-tests: Likewise.
52112         * modules/unictype/property-variation-selector-tests: Likewise.
52113         * modules/unictype/property-white-space-tests: Likewise.
52114         * modules/unictype/property-xid-continue-tests: Likewise.
52115         * modules/unictype/property-xid-start-tests: Likewise.
52116         * modules/unictype/property-zero-width-tests: Likewise.
52117         * modules/unictype/scripts-tests: Likewise.
52118         * modules/unictype/syntax-c-ident-tests: Likewise.
52119         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52120         * modules/unictype/syntax-java-ident-tests: Likewise.
52121         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52122         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52123         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52124         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52125         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52126         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52127         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52128         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52129         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52130         * modules/uniname/uniname-tests: Likewise.
52131         * modules/uninorm/canonical-decomposition-tests: Likewise.
52132         * modules/uninorm/compat-decomposition-tests: Likewise.
52133         * modules/uninorm/composition-tests: Likewise.
52134         * modules/uninorm/decomposing-form-tests: Likewise.
52135         * modules/uninorm/decomposition-tests: Likewise.
52136         * modules/uninorm/filter-tests: Likewise.
52137         * modules/uninorm/nfc-tests: Likewise.
52138         * modules/uninorm/nfd-tests: Likewise.
52139         * modules/uninorm/nfkc-tests: Likewise.
52140         * modules/uninorm/nfkd-tests: Likewise.
52141         * modules/uninorm/u8-normcmp-tests: Likewise.
52142         * modules/uninorm/u8-normcoll-tests: Likewise.
52143         * modules/uninorm/u16-normcmp-tests: Likewise.
52144         * modules/uninorm/u16-normcoll-tests: Likewise.
52145         * modules/uninorm/u32-normcmp-tests: Likewise.
52146         * modules/uninorm/u32-normcoll-tests: Likewise.
52147         * modules/unistdio/u8-asnprintf-tests: Likewise.
52148         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52149         * modules/unistdio/u8-vasprintf-tests: Likewise.
52150         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52151         * modules/unistdio/u8-vsprintf-tests: Likewise.
52152         * modules/unistdio/u16-asnprintf-tests: Likewise.
52153         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52154         * modules/unistdio/u16-vasprintf-tests: Likewise.
52155         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52156         * modules/unistdio/u16-vsprintf-tests: Likewise.
52157         * modules/unistdio/u32-asnprintf-tests: Likewise.
52158         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52159         * modules/unistdio/u32-vasprintf-tests: Likewise.
52160         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52161         * modules/unistdio/u32-vsprintf-tests: Likewise.
52162         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52163         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52164         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52165         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52166         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52167         * modules/unistr/u8-check-tests: Likewise.
52168         * modules/unistr/u8-chr-tests: Likewise.
52169         * modules/unistr/u8-cmp-tests: Likewise.
52170         * modules/unistr/u8-cmp2-tests: Likewise.
52171         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52172         * modules/unistr/u8-cpy-tests: Likewise.
52173         * modules/unistr/u8-mblen-tests: Likewise.
52174         * modules/unistr/u8-mbsnlen-tests: Likewise.
52175         * modules/unistr/u8-mbtouc-tests: Likewise.
52176         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52177         * modules/unistr/u8-mbtoucr-tests: Likewise.
52178         * modules/unistr/u8-move-tests: Likewise.
52179         * modules/unistr/u8-next-tests: Likewise.
52180         * modules/unistr/u8-prev-tests: Likewise.
52181         * modules/unistr/u8-set-tests: Likewise.
52182         * modules/unistr/u8-stpcpy-tests: Likewise.
52183         * modules/unistr/u8-stpncpy-tests: Likewise.
52184         * modules/unistr/u8-strcat-tests: Likewise.
52185         * modules/unistr/u8-strcmp-tests: Likewise.
52186         * modules/unistr/u8-strcoll-tests: Likewise.
52187         * modules/unistr/u8-strcpy-tests: Likewise.
52188         * modules/unistr/u8-strdup-tests: Likewise.
52189         * modules/unistr/u8-strlen-tests: Likewise.
52190         * modules/unistr/u8-strmblen-tests: Likewise.
52191         * modules/unistr/u8-strmbtouc-tests: Likewise.
52192         * modules/unistr/u8-strncat-tests: Likewise.
52193         * modules/unistr/u8-strncmp-tests: Likewise.
52194         * modules/unistr/u8-strncpy-tests: Likewise.
52195         * modules/unistr/u8-strnlen-tests: Likewise.
52196         * modules/unistr/u8-to-u16-tests: Likewise.
52197         * modules/unistr/u8-to-u32-tests: Likewise.
52198         * modules/unistr/u8-uctomb-tests: Likewise.
52199         * modules/unistr/u16-check-tests: Likewise.
52200         * modules/unistr/u16-chr-tests: Likewise.
52201         * modules/unistr/u16-cmp-tests: Likewise.
52202         * modules/unistr/u16-cmp2-tests: Likewise.
52203         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52204         * modules/unistr/u16-cpy-tests: Likewise.
52205         * modules/unistr/u16-mblen-tests: Likewise.
52206         * modules/unistr/u16-mbsnlen-tests: Likewise.
52207         * modules/unistr/u16-mbtouc-tests: Likewise.
52208         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52209         * modules/unistr/u16-mbtoucr-tests: Likewise.
52210         * modules/unistr/u16-move-tests: Likewise.
52211         * modules/unistr/u16-next-tests: Likewise.
52212         * modules/unistr/u16-prev-tests: Likewise.
52213         * modules/unistr/u16-set-tests: Likewise.
52214         * modules/unistr/u16-stpcpy-tests: Likewise.
52215         * modules/unistr/u16-stpncpy-tests: Likewise.
52216         * modules/unistr/u16-strcat-tests: Likewise.
52217         * modules/unistr/u16-strcmp-tests: Likewise.
52218         * modules/unistr/u16-strcoll-tests: Likewise.
52219         * modules/unistr/u16-strcpy-tests: Likewise.
52220         * modules/unistr/u16-strdup-tests: Likewise.
52221         * modules/unistr/u16-strlen-tests: Likewise.
52222         * modules/unistr/u16-strmblen-tests: Likewise.
52223         * modules/unistr/u16-strmbtouc-tests: Likewise.
52224         * modules/unistr/u16-strncat-tests: Likewise.
52225         * modules/unistr/u16-strncmp-tests: Likewise.
52226         * modules/unistr/u16-strncpy-tests: Likewise.
52227         * modules/unistr/u16-strnlen-tests: Likewise.
52228         * modules/unistr/u16-to-u32-tests: Likewise.
52229         * modules/unistr/u16-to-u8-tests: Likewise.
52230         * modules/unistr/u16-uctomb-tests: Likewise.
52231         * modules/unistr/u32-check-tests: Likewise.
52232         * modules/unistr/u32-chr-tests: Likewise.
52233         * modules/unistr/u32-cmp-tests: Likewise.
52234         * modules/unistr/u32-cmp2-tests: Likewise.
52235         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52236         * modules/unistr/u32-cpy-tests: Likewise.
52237         * modules/unistr/u32-mblen-tests: Likewise.
52238         * modules/unistr/u32-mbsnlen-tests: Likewise.
52239         * modules/unistr/u32-mbtouc-tests: Likewise.
52240         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52241         * modules/unistr/u32-mbtoucr-tests: Likewise.
52242         * modules/unistr/u32-move-tests: Likewise.
52243         * modules/unistr/u32-next-tests: Likewise.
52244         * modules/unistr/u32-prev-tests: Likewise.
52245         * modules/unistr/u32-set-tests: Likewise.
52246         * modules/unistr/u32-stpcpy-tests: Likewise.
52247         * modules/unistr/u32-stpncpy-tests: Likewise.
52248         * modules/unistr/u32-strcat-tests: Likewise.
52249         * modules/unistr/u32-strcmp-tests: Likewise.
52250         * modules/unistr/u32-strcoll-tests: Likewise.
52251         * modules/unistr/u32-strcpy-tests: Likewise.
52252         * modules/unistr/u32-strdup-tests: Likewise.
52253         * modules/unistr/u32-strlen-tests: Likewise.
52254         * modules/unistr/u32-strmblen-tests: Likewise.
52255         * modules/unistr/u32-strmbtouc-tests: Likewise.
52256         * modules/unistr/u32-strncat-tests: Likewise.
52257         * modules/unistr/u32-strncmp-tests: Likewise.
52258         * modules/unistr/u32-strncpy-tests: Likewise.
52259         * modules/unistr/u32-strnlen-tests: Likewise.
52260         * modules/unistr/u32-to-u16-tests: Likewise.
52261         * modules/unistr/u32-to-u8-tests: Likewise.
52262         * modules/unistr/u32-uctomb-tests: Likewise.
52263         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52264         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52265         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52266         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52267         * modules/uniwidth/u8-strwidth-tests: Likewise.
52268         * modules/uniwidth/u8-width-tests: Likewise.
52269         * modules/uniwidth/u16-strwidth-tests: Likewise.
52270         * modules/uniwidth/u16-width-tests: Likewise.
52271         * modules/uniwidth/u32-strwidth-tests: Likewise.
52272         * modules/uniwidth/u32-width-tests: Likewise.
52273         * modules/uniwidth/width-tests: Likewise.
52275 2010-05-18  Richard Jones  <rjones@redhat.com>
52277         doc: users.txt: list hivex
52278         * users.txt: Add hivex.
52280 2010-05-18  Richard Jones  <rjones@redhat.com>
52282         doc: users.txt: list febootstrap
52283         * users.txt: Add febootstrap.
52285 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52287         bootstrap: fix an error when gnulib is not used as a git submodule
52288         * build-aux/bootstrap (gnulib_path): If its length is zero then
52289         assign "gnulib" to it.
52290         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52292 2010-05-16  Bruno Haible  <bruno@clisp.org>
52294         Avoid autoconf warnings about AM_ICONV.
52295         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52296         2.64.
52298 2010-05-16  Bruno Haible  <bruno@clisp.org>
52300         absolute-header: Make the macro usable in more situations.
52301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52302         from gl_ABSOLUTE_HEADER.
52303         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52305 2010-05-16  James Youngman  <jay@gnu.org>
52307         doc: update users.txt
52308         * users.txt: Add CSSC.
52310 2010-05-16  Jim Meyering  <meyering@redhat.com>
52312         init.sh: fix an error in the previous change; add more comments
52313         * tests/init.sh: Compare exit code in loop against 9, not 2.
52314         Patch by Bruno Haible.
52315         Make the two tests more similar by adding an empty "then" clause.
52316         Add comments.
52318         init.sh: avoid unnecessary shell re-exec
52319         * tests/init.sh: Improve the re-exec-required check to first test the
52320         current shell.  If it passes the test, do not search for a shell that
52321         does pass, and do not re-exec.  This test is particularly contorted to
52322         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52323         of $(...) evokes a syntax error and causes immediate shell exit with
52324         status 2.  Bruno Haible reported that the re-exec made it impossible
52325         to single-step through any init.sh-using script.
52327 2010-05-16  Bruno Haible  <bruno@clisp.org>
52329         Fix collision between gnulib's and libintl's printf replacements.
52330         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52331         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52332         (printf): When using GNU C, map the __printf__ function to rpl_printf
52333         via __asm__. When not using GNU C, define rpl_printf instead of
52334         __printf__.
52335         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52336         commit.
52337         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52338         commit.
52339         * m4/asm-underscore.m4: New file.
52340         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52341         * modules/stdio (Files): Add m4/asm-underscore.m4.
52342         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52343         Reported by Ben Pfaff.
52345 2010-05-16  Bruno Haible  <bruno@clisp.org>
52347         verify: Avoid skipping the test on openSUSE 11.0.
52348         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52350 2010-05-13  Bruno Haible  <bruno@clisp.org>
52352         Avoid useless warnings from G++.
52353         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52354         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52355         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52357 2010-05-11  Jim Meyering  <meyering@redhat.com>
52359         maint.mk: tweak preceding change
52360         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52361         regexps tighter by anchoring at EOL, and make the new group "shy"
52362         for slightly decreased overhead.
52364 2010-05-11  Eric Blake  <eblake@redhat.com>
52366         maint.mk: gnulib doesn't guarantee NSIG
52367         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52369 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52371         test-pwrite.c: Remove unused variable declaration.
52372         * tests/test-pwrite.c (main): Remove read_buf declaration.
52374         Remove useless test-pwrite.sh file.
52375         * tests/test-pwrite.sh: Delete file.
52376         * modules/pwrite-tests: Remove references.
52377         Reported by Bruno Haible.
52379 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52381         init.sh: fix a typo
52382         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52384 2010-05-10  Jim Meyering  <meyering@redhat.com>
52386         maint.mk: avoid using a temporary file in the always-defined-macros check
52387         * top/maint.mk (.re-defmac): Remove rule.
52388         (gl_trap_): Remove definition.
52389         (sc_prohibit_always-defined_macros): Rewrite not to create and
52390         depend on a temporary file.  Instead, depend on GNU grep's ability
52391         to read a list of regular expressions from stdin when given "-f -".
52393 2010-05-09  Bruno Haible  <bruno@clisp.org>
52395         Update to GNU gettext 0.18, part 1.
52396         * m4/gettext.m4: Update to GNU gettext 0.18.
52397         * m4/intl.m4: Likewise.
52398         * m4/po.m4: Likewise.
52399         * modules/gettext (Files): Add m4/fcntl-o.m4.
52400         (configure.ac): Require gettext infrastructure from version 0.18.
52402 2010-05-09  Jim Meyering  <meyering@redhat.com>
52404         init.sh: enable MALLOC_PERTURB_
52405         * tests/init.sh: Enable glibc's malloc-perturbing option.
52407         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52408         With my recent change in init.sh from the two-line form:
52409             -#   : ${srcdir=.}
52410             -#   . "$srcdir/init.sh"; path_prepend_ .
52411             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52412         I noticed that using the one-line form would cause this test
52413         to fail with a false-positive, or to stop working altogether,
52414         depending on whether help-version changed or all the tests did.
52415         * top/maint.mk (_hv_regex): Remove this definition.
52416         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52417         (_hv_regex_strong): Use a stronger regex to check for conformance.
52418         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52419         Give a separate diagnostic for lack of conforming use.
52421         maint.mk: prohibit definition of symbols defined by gnulib
52422         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52423         definition of symbols defined by gnulib.
52425 2010-05-09  Bruno Haible  <bruno@clisp.org>
52427         acl: Avoid test failure on Cygwin-hosted mingw.
52428         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52430 2010-05-09  Bruno Haible  <bruno@clisp.org>
52432         error: Use system's fcntl function.
52433         * lib/error.c (fcntl): Undefine.
52435 2010-05-09  Jim Meyering  <meyering@redhat.com>
52437         verify: adjust formatting to be more consistent
52438         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52439         argument-list '('s, and after one comma.
52441 2010-05-09  Bruno Haible  <bruno@clisp.org>
52443         error: More reliable output on mingw.
52444         * lib/error.c: Include <windows.h>.
52445         (is_open): New function.
52446         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52447         defined.
52449 2010-05-09  Bruno Haible  <bruno@clisp.org>
52451         vasnprintf: Fix syntax errors in libintl build on mingw.
52452         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52453         pad_ourselves and prec_ourselves after use.
52455 2010-05-08  Bruno Haible  <bruno@clisp.org>
52457         * lib/config.charset: Update comments for Cygwin 1.7.
52458         * lib/localcharset.c: Likewise.
52460 2010-05-07  Jim Meyering  <meyering@redhat.com>
52462         init.sh: improve comments
52463         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52464         . "${srcdir=.}/init.sh"; path_prepend_ .
52465         Add a note about path_prepend_ and the alternative of using
52466         TESTS_ENVIRONMENT.
52468 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52470         exclude: Unescape hashed patterns in wildcard mode.
52471         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52472         to the hash list.
52473         * tests/test-exclude8.sh: New test case.
52474         * modules/exclude-tests: Add new test.
52476 2010-05-05  Eric Blake  <eblake@redhat.com>
52478         verify: automate tests
52479         * modules/verify-tests: New module.
52480         * tests/test-verify.sh: New file.
52481         * tests/test-verify.c: Guard each negative test with a unique id.
52482         Also avoid warning about unused left hand of comma expressions.
52484 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52486         Further improvements to verify.h, suggested by Eric Blake.
52487         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52488         the GL_* versions, to avoid collision with OpenGL.
52489         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52490         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52491         than testing merely whether it's defined.
52493         Modify verify.h to pacify gcc -Wredundant_decls.
52494         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52495         These use the prefix "GL_" since they're likely to be useful elsewhere.
52496         We may need to break them out into a different .h file.
52497         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52498         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52499         of verify_function__.
52501 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52503         Tests for module pwrite.
52504         * modules/pwrite-tests: New file.
52505         * tests/test-pwrite.sh: New file.
52506         * tests/test-pwrite.c: New file.
52508         New module pwrite.
52509         * lib/unistd.in.h (pwrite): New declaration.
52510         * lib/pwrite.c: New file, from glibc with modifications.
52511         * m4/pwrite.m4: New file.
52512         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52513         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52514         REPLACE_PWRITE.
52515         * modules/pwrite: New file.
52516         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52517         REPLACE_PWRITE.
52518         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52519         * doc/posix-functions/pwrite.texi: Mention the new module.
52521 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52523         pread: Update documentation.
52524         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52526 2010-05-04  Eric Blake  <eblake@redhat.com>
52528         docs: update cygwin progress
52529         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52530         this bug.
52531         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52532         Added in cygwin 1.7.2.
52533         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52534         Likewise.
52535         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52536         Likewise.
52537         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52538         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52539         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52540         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52541         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52542         Mention nproc module.
52543         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52544         bug in cygwin 1.7.5 addition.
52545         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52546         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52547         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52548         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52549         1.7.5.
52550         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52551         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52552         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52553         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52554         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52555         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52556         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52557         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52558         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52559         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52560         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52561         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52562         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52563         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52564         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52565         Likewise.
52566         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52567         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52568         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52569         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52570         Likewise.
52571         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52572         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52573         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52574         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52575         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52576         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52577         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52578         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52579         Likewise.
52580         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52581         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52582         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52583         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52584         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52585         Likewise.
52586         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52587         Likewise.
52588         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52589         Likewise.
52590         * doc/glibc-functions/xdrrec_endofrecord.texi
52591         (xdrrec_endofrecord): Likewise.
52592         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52593         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52594         Likewise.
52595         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52596         Likewise.
52598 2010-05-04  Jim Meyering  <meyering@redhat.com>
52600         gendocs.sh: make its "-s FILE" option more useful
52601         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52602         $PACKAGE to reflect the probably-different basename of "FILE".
52604 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52606         bootstrap: don't ignore download_po_files failure
52607         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52608         failure.
52610 2010-05-03  Jim Meyering  <meyering@redhat.com>
52612         maint.mk: allow to pass options to gendocs.sh
52613         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52614         (gendocs_options_): New overridable variable.
52616         gnu-web-doc-update: don't ignore configure or build failure
52617         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52619         announce-gen: backslash-escape '@'s in --help output
52620         * build-aux/announce-gen: Fix syntax errors.
52622         maint.mk, announce-gen: allow project-specific announcement mail headers
52623         * top/maint.mk (translation_project_): Define default.
52624         (announcement_Cc_, announcement_mail_headers_): Likewise.
52625         (announcement): Invoke announce-gen with new --mail-headers option.
52626         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52628         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52629         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52630         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52631         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52632         line in the "err2" output file when running "make check" in verbose
52633         mode (i.e., with set -x enabled).
52635 2010-05-03  Bruno Haible  <bruno@clisp.org>
52637         wctob: Fix for weird platforms.
52638         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52639         argument value.
52641 2010-05-03  Jim Meyering  <meyering@redhat.com>
52643         maint.mk: prohibit unwarranted use of <strings.h>
52644         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52645         strings.h in a file that does not also use strcasecmp, strncasecmp,
52646         ffs or ffsll.
52648         maint.mk: remove obsolete comments
52649         * top/maint.mk: Remove stale, commented-out rules.
52651 2010-05-02  Bruno Haible  <bruno@clisp.org>
52653         wcwidth: Declare also when it's aliased.
52654         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52655         macro.
52657 2010-05-02  Bruno Haible  <bruno@clisp.org>
52659         Fix regression from 2010-04-25.
52660         * gnulib-tool (func_modules_transitive_closure): Check the status of
52661         all modules, not only of the tests that are of the form foo-tests where
52662         foo is a module.
52664 2010-05-02  Bruno Haible  <bruno@clisp.org>
52666         wctob: Work around nasty Cygwin 1.7.2 bug.
52667         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52668         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52670 2010-05-01  Bruno Haible  <bruno@clisp.org>
52672         fpurge: Sharper test.
52673         * tests/test-fpurge.c (main): Add one more ftell check.
52674         * modules/fpurge-tests (Depends-on): Add ftell.
52675         Suggested by Eric Blake.
52677 2010-05-01  Bruno Haible  <bruno@clisp.org>
52679         ftello: Another test.
52680         * tests/test-ftello3.c: New file.
52681         * modules/ftello-tests (Files): Add it.
52682         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52683         MOSTLYCLEANFILES.
52685         ftell: Another test.
52686         * tests/test-ftell3.c: New file.
52687         * modules/ftell-tests (Files): Add it.
52688         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52689         MOSTLYCLEANFILES.
52691 2010-05-01  Bruno Haible  <bruno@clisp.org>
52693         ftell, ftello: Work around Solaris bug.
52694         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52695         * lib/ftello.c: Include stdio-impl.h.
52696         (ftello): On Solaris, when _IOWRT is set, compute the result without
52697         looking at _IOREAD.
52698         * modules/ftello (Files): Add lib/stdio-impl.h.
52699         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52700         * doc/posix-functions/ftello.texi: Likewise.
52701         Reported by Eric Blake.
52703 2010-05-01  Bruno Haible  <bruno@clisp.org>
52705         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52706         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52707         the _IOWRT flag is also set.
52709 2010-05-01  Bruno Haible  <bruno@clisp.org>
52711         Fix doc about a HP-UX stdio bug.
52712         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52713         * doc/posix-functions/ftello.texi: Likewise.
52715 2010-05-01  Bruno Haible  <bruno@clisp.org>
52717         lseek test: Fix failure on Solaris.
52718         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52719         output.
52721 2010-04-30  Jim Meyering  <meyering@redhat.com>
52723         bootstrap: don't ignore failure to generate po*/Makevars
52724         * build-aux/bootstrap (with_gettext): Don't ignore failure
52725         to create po/Makevars or runtime-po/Makevars.
52727 2010-04-29  Eric Blake  <eblake@redhat.com>
52729         headers: relax license to LGPLv2+
52730         * modules/fcntl-h (License): Relax license.
52731         * modules/getopt-posix (License): Likewise.
52732         * modules/locale (License): Likewise.
52733         * modules/math (License): Likewise.
52734         * modules/pty (License): Likewise.
52735         * modules/sched (License): Likewise.
52736         * modules/search (License): Likewise.
52737         * modules/spawn (License): Likewise.
52738         * modules/stdarg (License): Likewise.
52739         * modules/sysexits (License): Likewise.
52741 2010-04-29  Jim Meyering  <meyering@redhat.com>
52743         inttypes: relax license to LGPLv2+
52744         * modules/inttypes (License): Relax license.
52746 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52748         * top/maint.mk (indent): Run twice to produce idempotent results.
52750 2010-04-28  Bruno Haible  <bruno@clisp.org>
52752         getdate: Generate getdate.c in the source directory.
52753         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52754         MOSTLYCLEANFILES.
52755         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52757 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52759         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52760         is not declared as a const *; avoid warnings in that case.
52762 2010-04-28  Eric Blake  <eblake@redhat.com>
52764         canonicalize-lgpl: avoid compiler warning
52765         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52766         declaration' / 'extraneous semicolon' warning with some compilers.
52767         Reported by Andreas Gruenbacher.
52769 2010-04-28  Jim Meyering  <meyering@redhat.com>
52771         init.sh: ensure a more reliable exit status when exiting via trap
52772         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52773         Inspired by patches from Dmitry V. Levin.
52774         Also trap on signal 3 (SIGQUIT).
52776 2010-04-27  Bruno Haible  <bruno@clisp.org>
52778         Update doc about utimes().
52779         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52780         'utimens' module.
52781         Reported by Andreas Gruenbacher <agruen@suse.de>.
52783 2010-04-27  Eric Blake  <eblake@redhat.com>
52785         full-read, full-write: relax license
52786         * modules/full-read (License): Drop to LGPLv2+.
52787         * modules/full-write (License): Likewise.
52788         * modules/safe-read (License): Likewise.
52789         * modules/safe-write (License): Likewise.
52791         pthread: mention library for linking
52792         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52794 2010-04-27  Jim Meyering  <meyering@redhat.com>
52796         maint.mk: fix a bug introduced in last change
52797         * top/maint.mk (gl_assured_headers_): Now that all names are on
52798         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52799         is not anchored to end of word, it should be adequate.
52801         maint.mk: avoid side-effect in latest syntax-check
52802         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52803         to run commands via $(shell...), and hence to incur cost only when
52804         the new rule is actually run.
52806         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52807         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52808         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52809         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52810         (gl_assured_headers_, az_, AZ_): Define.
52811         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52813 2010-04-26  Jim Meyering  <jim@meyering.net>
52814             Bruno Haible  <bruno@clisp.org>
52816         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52817         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52818         Prompted by an exchange with Gilles Espinasse.
52820 2010-04-26  Jim Meyering  <meyering@redhat.com>
52822         git-version-gen: aesthetic tweak
52823         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52824         so that the command remains on a single line.
52826 2010-04-26  Eric Blake  <eblake@redhat.com>
52828         git-version-gen: allow use on EBCDIC hosts
52829         * build-aux/git-version-gen (dirty): Use literal rather than tying
52830         ourselves to ascii.
52831         Reported by Steve Goetze.
52833 2010-04-25  Bruno Haible  <bruno@clisp.org>
52835         netdb: Add support for GNULIB_POSIXCHECK.
52836         * lib/netdb.in.h: Include warn-on-use.h.
52837         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52838         functions are used when GNULIB_POSIXCHECK is defined and the
52839         getaddrinfo module is not in use.
52840         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52841         freeaddrinfo, gai_strerror, getnameinfo are declared.
52842         * modules/netdb (Depends-on): Add warn-on-use.
52843         (Makefile.am): Include warn-on-use.h in netdb.h.
52845 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52847         build: avoid "make check" failure without .git/ directory
52848         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52849         there is no .git/ directory.
52851 2010-04-25  Bruno Haible  <bruno@clisp.org>
52853         ptsname: Fix misuse of ttyname_r.
52854         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52855         of errno.
52857 2010-04-25  Bruno Haible  <bruno@clisp.org>
52859         ttyname_r: Make it work on Solaris 10.
52860         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52861         if the system function has the POSIX declaration. Test whether the
52862         function fails if the buffer is less than 128 bytes large.
52863         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52864         system's ttyname_r function. Provide a reasonably large buffer.
52865         * modules/ttyname_r (Depends-on): Add extensions.
52866         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52868 2010-04-25  Bruno Haible  <bruno@clisp.org>
52870         Use the 'extensions' module for some more functions on Solaris.
52871         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52872         module.
52873         * doc/posix-functions/ctime_r.texi: Likewise.
52874         * doc/posix-functions/getgrgid_r.texi: Likewise.
52875         * doc/posix-functions/getgrnam_r.texi: Likewise.
52876         * doc/posix-functions/getpwnam_r.texi: Likewise.
52877         * doc/posix-functions/getpwuid_r.texi: Likewise.
52878         * doc/posix-functions/readdir_r.texi: Likewise.
52879         * doc/posix-functions/sigwait.texi: Likewise.
52880         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52881         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52883 2010-04-25  Bruno Haible  <bruno@clisp.org>
52885         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52886         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52887         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52888         * lib/ttyname_r.c: Include <limits.h>.
52889         (ttyname_r): Define using the system's ttyname_r function, if it exists
52890         and not on Solaris.
52891         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52892         set.
52893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52894         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52895         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52896         Reported by Simon Josefsson.
52898 2010-04-25  Bruno Haible  <bruno@clisp.org>
52900         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52901         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52902         * doc/posix-functions/ctime_r.texi: Likewise.
52903         * doc/posix-functions/getgrgid_r.texi: Likewise.
52904         * doc/posix-functions/getgrnam_r.texi: Likewise.
52905         * doc/posix-functions/getlogin_r.texi: Likewise.
52906         * doc/posix-functions/getpwnam_r.texi: Likewise.
52907         * doc/posix-functions/getpwuid_r.texi: Likewise.
52908         * doc/posix-functions/readdir_r.texi: Likewise.
52909         * doc/posix-functions/sigwait.texi: Likewise.
52910         * doc/posix-functions/ttyname_r.texi: Likewise.
52911         Reported by Simon Josefsson.
52913 2010-04-25  Bruno Haible  <bruno@clisp.org>
52915         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52916         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52917         also to --create-testdir.
52918         (func_acceptable): Don't consider the status of *-tests modules here.
52919         (func_modules_transitive_closure): Consider it here, before including a
52920         test module.
52921         (func_import, func_create_testdir): Set inc_all_direct_tests,
52922         inc_all_indirect_tests.
52923         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52924         --create-testdir and --create-megatestdir.
52926 2010-04-25  Bruno Haible  <bruno@clisp.org>
52928         gnulib-tool: Add --without-*-tests options.
52929         * gnulib-tool (func_usage): Document the --without-*-tests options.
52930         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52931         excl_unportable_tests): New variables.
52932         Fail if they are specified with --import or --update.
52933         (func_acceptable): Respect the excl_*_tests variables.
52934         (func_import): Set the excl_*_tests variables to empty.
52936 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52937             Bruno Haible  <bruno@clisp.org>
52939         Work around a MacOS X 10.4 bug with openpty.
52940         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52941         * tests/test-openpty.c (main): Close the master side explicitly.
52943 2010-04-25  Bruno Haible  <bruno@clisp.org>
52945         strnlen: Fix a C++ test error on MacOS X and Solaris.
52946         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52947         the function is not declared.
52948         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52949         Simon Josefsson.
52951 2010-04-24  Bruno Haible  <bruno@clisp.org>
52953         Avoid a gcc warning.
52954         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52955         of correct type for %08lx directive.
52956         Reported by Eric Blake.
52958 2010-04-24  Bruno Haible  <bruno@clisp.org>
52960         vasnprintf: Correct errno value in case of out-of-memory.
52961         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52962         or sprintf. Use the errno value from SNPRINTF or sprintf.
52963         Reported by Ian Beckwith <ianb@erislabs.net>.
52965 2010-04-24  Bruno Haible  <bruno@clisp.org>
52967         ansi-c++-opt: Find correct compiler when cross-compiling.
52968         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52969         AC_CHECK_PROGS.
52970         Reported by Simon Josefsson.
52972 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52974         vc-list-files: Add support for subversion
52975         * build-aux/vc-list-files: Use "svn list" to generate the list of
52976         files controlled by subversion.
52978 2010-04-23  Jim Meyering  <meyering@redhat.com>
52980         vc-list-files tests: convert to use init.sh
52981         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52982         path_prepend_.
52983         Use Exit, not exit.
52984         Use skip_ rather than open coding it.
52985         Remove trap set-up and compare definitions.
52986         * tests/test-vc-list-files-git.sh: Likewise.
52987         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52989 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52991         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52992         backup files.
52994 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52996         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52998 2010-04-20  Eric Blake  <eblake@redhat.com>
53000         tests: be robust to ignored SIGPIPE
53001         * tests/test-select-in.sh: Consume all output.
53002         * tests/test-lseek.sh: Check correct exit status, while avoiding
53003         EPIPE.
53005 2010-04-20  Simon Josefsson  <simon@josefsson.org>
53006             Bruno Haible  <bruno@clisp.org>
53008         visibility: Don't use -fvisibility if it leads to a warning.
53009         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
53010         yes, don't pretend that visibility works if it leads to a warning.
53011         Reported by Mike Gran <spk121@yahoo.com>.
53013 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
53015         * build-aux/bootstrap: Use "git -h" for testing for supported options
53016         instead of "git --help".  The short-form option only shows a summary,
53017         and doesn't layout the full man page.  Grep for the full option name
53018         in the summary, too.
53020 2010-04-19  Bruno Haible  <bruno@clisp.org>
53022         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
53023         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
53024         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
53025         mention of RELOCATABLE_STRIP.
53026         Reported by Sylvain Beucler <beuc@beuc.net>.
53028 2010-04-19  Bruno Haible  <bruno@clisp.org>
53030         * lib/diffseq.h: Fix typo in comment.
53031         Reported by Eric Blake.
53033 2010-04-19  Bruno Haible  <bruno@clisp.org>
53035         ioctl: Move autoconf macro to a .m4 file.
53036         * m4/ioctl.m4: New file, extracted from modules/ioctl.
53037         * modules/ioctl (Files): Add it.
53038         (configure.ac): Simply invoke gl_FUNC_IOCTL.
53039         Reported by Ian Beckwith <ianb@erislabs.net>.
53041 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
53042             Bruno Haible  <bruno@clisp.org>
53044         diffseq: Accommodate use-case with abstract arrays.
53045         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
53046         is not defined.
53047         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
53048         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
53050 2010-04-18  Bruno Haible  <bruno@clisp.org>
53052         * doc/posix-headers/stdbool.texi: More precise wording.
53054 2010-04-17  Jim Meyering  <meyering@redhat.com>
53056         maint.mk: use gnu-style indentation in an embedded perl script
53057         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
53058         Rename variable: s/two/last_two_bytes/
53060 2010-04-16  Eric Blake  <eblake@redhat.com>
53062         test-stdbool: skip test that fails with Solaris CC
53063         * tests/test-stdbool.c (f): Skip test that causes compilation
53064         error under buggy C++ compiler.
53065         * lib/stdbool.in.h: Document the limitation.
53066         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
53068         setenv: allow compilation with C++
53069         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
53070         register keyword.
53072         stdint: allow test to pass with C++
53073         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
53075         getopt: allow compilation with C++
53076         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
53077         struct.
53078         * lib/getopt.c (_getopt_internal_r): Use correct type.
53079         Reported by Dagobert Michelson, via Joel E. Denny.
53081 2010-04-16  Bruno Haible  <bruno@clisp.org>
53083         Override netdb.h always.
53084         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
53085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
53086         Reported by Ludovic Courtès <ludo@gnu.org>.
53088 2010-04-15  Bruno Haible  <bruno@clisp.org>
53090         openpty: Fix mistake from 2010-03-21.
53091         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
53092         Reported by Simon Josefsson.
53094 2010-04-15  Eric Blake  <eblake@redhat.com>
53096         test-forkpty: fix expected signature
53097         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
53098         Reported by Simon Josefsson.
53100 2010-04-15  Jim Meyering  <meyering@redhat.com>
53102         maint.mk: texinfo_suffix_re_: correct the default regexp
53103         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
53105         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53106         make it configurable via texinfo_suffix_re_.
53108 2010-04-14  Eric Blake  <eblake@redhat.com>
53110         strtok_r: relax license to LGPLv2+
53111         * modules/strtok_r (License): Relax license.
53112         Reported by Matthias Bolte.
53114 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53116         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53117         version 1.4.4 by default instead of requiring the libgcrypt
53118         version used during build.  This makes it possible to use the
53119         application with older but still binary compatible libgcrypt
53120         versions.
53122 2010-04-13  Eric Blake  <eblake@redhat.com>
53124         getopt-gnu: match recent glibc fixes and posix ruling
53125         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53126         '+' handling, when requesting extensions.
53127         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53128         'W;' handling.
53129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53130         * doc/posix-functions/getopt.texi (getopt): Document this.
53131         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53133         Likewise.
53135         getopt: merge bug fixes from glibc
53136         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53137         diagnostics.  Honor '+:' correctly.  Reject ';'.
53139         getopt-posix: detect MacOS bug
53140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53141         optind when missing a required argument.
53142         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53143         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53144         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53145         Likewise.
53147         getopt-posix: avoid spurious failure on Solaris
53148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53149         an indicator that setting optind=1 is sufficient for reset.
53151         getopt-posix: avoid spurious failure on FreeBSD
53152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53153         in POSIX mode, since the m4 test uses it.
53155         gnulib-tool: silence warning on BSD sh
53156         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53158 2010-04-13  Jim Meyering  <meyering@redhat.com>
53160         doc: users.txt: GNU patch now uses gnulib
53161         * users.txt: Add patch.
53163 2010-04-12  Jim Meyering  <meyering@redhat.com>
53165         maint.mk: generate more concise timing data for syntax-check rules
53166         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53167         " done" from each line that reports a syntax-check test duration.
53169 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53171         git-version-gen: use "git update-index..." rather than "git status"
53172         * build-aux/git-version-gen: Use git update-index --refresh, not
53173         "git status".  With some versions of git, "git status" would fail
53174         to update the index and result in an unwarranted "-dirty" suffix.
53176 2010-04-11  Jim Meyering  <meyering@redhat.com>
53178         openat: correct formatting (no semantic change)
53179         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53180         Suggested by Bruno Haible.
53182 2010-04-11  Bruno Haible  <bruno@clisp.org>
53184         Stricter declaration checking in testdirs.
53185         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53186         If for_tests is true, augment AM_CPPFLAGS to define
53187         GNULIB_STRICT_CHECKING.
53188         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53189         GNULIB_STRICT_CHECKING is defined, verify that the function is
53190         declared.
53192 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53193             Bruno Haible  <bruno@clisp.org>
53195         libunistring: Improve configure output.
53196         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53197         Don't say "consider installing GNU libunistring" when checking again
53198         with libiconv.
53200 2010-04-11  Bruno Haible  <bruno@clisp.org>
53202         libunistring: Correct value of $LTLIBUNISTRING.
53203         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53204         correct the value of $LTLIBUNISTRING.
53206 2010-04-11  Bruno Haible  <bruno@clisp.org>
53208         havelib: Add static libraries to LIBS in the right order.
53209         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53210         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53212 2010-04-11  Bruno Haible  <bruno@clisp.org>
53214         libunistring: Detect libunistring also when it depends on libiconv.
53215         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53216         the second AC_LIB_HAVE_LINKFLAGS invocation.
53218 2010-04-11  James Youngman  <jay@gnu.org>
53220         close-stream: declare local scalars to be "const"
53221         * lib/close-stream.c (close_stream): Make boolean variables const
53222         to document the fact that we set but do not change them.
53224 2010-04-11  Bruno Haible  <bruno@clisp.org>
53226         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53228 2010-04-11  Jim Meyering  <meyering@redhat.com>
53230         maint.mk: don't include dist-check.mk
53231         * top/maint.mk: Remove bogus include directive.
53233         maint.mk: improve empty-line-at-EOF check
53234         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53235         solution, rather than tail+Perl-based one.  The latter would read
53236         a few kilobytes from the end of each file, and did not handle empty
53237         files properly.
53239         maint.mk: print the elapsed time for each syntax-check rule
53240         * top/maint.mk (sc_m_rules_): Save start time in a file.
53241         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53242         (local-check): Interpose the .z rules
53244 2010-04-11  Jim Meyering  <meyering@redhat.com>
53246         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53247         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53248         empty file with one that ends in an empty line.
53250 2010-04-10  Bruno Haible  <bruno@clisp.org>
53252         mkdir: Make it work on mingw64.
53253         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53254         * lib/mkdir.c: Update comment.
53255         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53257 2010-04-10  Bruno Haible  <bruno@clisp.org>
53259         Don't override improved macro from newer autoconf.
53260         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53261         autoconf >= 2.62.
53262         Reported by Joel E. Denny <jdenny@clemson.edu>.
53264 2010-04-10  Jim Meyering  <meyering@redhat.com>
53266         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53267         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53269         maint.mk: correct a diagnostic
53270         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53271         in diagnostic; now use $prohibit.
53273 2010-04-10  Bruno Haible  <address@hidden>
53275         fchownat: Fix a C++ test error on Solaris 8.
53276         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53277         the function does not exist.
53279 2010-04-10  Bruno Haible  <bruno@clisp.org>
53281         vasnprintf: Add more tests.
53282         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53283         (test_function): Test converting an invalid wide string.
53285         vasnprintf: Correct handling of unconvertible wide string arguments.
53286         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53287         VASNPRINTF.
53288         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53289         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53290         smaller than the expected maximum need for the directive. Set errno to
53291         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53292         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53294         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53295         * modules/vasnprintf (Files): Add m4/printf.m4.
53296         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53298 2010-04-10  Bruno Haible  <bruno@clisp.org>
53300         vasnprintf: Fix crash in %ls directive.
53301         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53302         string is passed as argument to %ls, with no precision and no width.
53303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53305 2010-04-10  Bruno Haible  <bruno@clisp.org>
53307         vasnprintf: Fix multiple test failures on mingw.
53308         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53309         _snprintf, or snwprintf, not _snwprintf.
53311 2010-04-10  Bruno Haible  <bruno@clisp.org>
53313         write: Fix a C++ test error on mingw.
53314         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53316 2010-04-10  Bruno Haible  <bruno@clisp.org>
53318         vasnprintf test: Reduce code duplication.
53319         * tests/test-vasnprintf.c (test_function): New function, extracted from
53320         test_vasnprintf.
53321         (test_vasnprintf, test_asnprintf): Invoke it.
53323 2010-04-10  Bruno Haible  <bruno@clisp.org>
53325         strnlen: Fix warning in C++ mode on MacOS X.
53326         * lib/string.in.h (strnlen): Use the modern idiom.
53327         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53328         defining strnlen as a macro already in <config.h>.
53329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53330         REPLACE_STRNLEN.
53331         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53334 2010-04-08  James Youngman  <jay@gnu.org>
53336         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53337         the example.
53339 2010-04-09  Jim Meyering  <meyering@redhat.com>
53341         maint.mk: print better diagnostic when there is no $(_hv_file)
53342         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53343         announce that when $(_hv_file) (aka help-version) does not exist.
53345         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53346         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53347         not try to interpret its random input bytes.  Jarno Rajahalme reported
53348         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53349         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53350         (mktempd_): Likewise, just in case.
53352         ftruncate: add two years to projected module removal date: 2012
53353         * m4/ftruncate.m4: Adjust comments.
53355         ftruncate: mark module as obsolete; even MinGW provides it, now
53356         * modules/ftruncate (Status): Obsolete.
53357         (Notice): Say that.
53358         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53359         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53361 2010-04-08  Bruno Haible  <bruno@clisp.org>
53363         Fix side effects from tests-related modules.
53364         * modules/dprintf-posix (Comment): New section.
53365         * modules/fprintf-posix (Comment): Likewise.
53366         * modules/obstack-printf-posix (Comment): Likewise.
53367         * modules/printf-posix (Comment): Likewise.
53368         * modules/snprintf-posix (Comment): Likewise.
53369         * modules/sprintf-posix (Comment): Likewise.
53370         * modules/vasnprintf-posix (Comment): Likewise.
53371         * modules/vasprintf-posix (Comment): Likewise.
53372         * modules/vdprintf-posix (Comment): Likewise.
53373         * modules/vfprintf-posix (Comment): Likewise.
53374         * modules/vprintf-posix (Comment): Likewise.
53375         * modules/vsnprintf-posix (Comment): Likewise.
53376         * modules/vsprintf-posix (Comment): Likewise.
53377         * modules/xprintf-posix (Comment): Likewise.
53378         * modules/xvasprintf-posix (Comment): Likewise.
53379         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53380         * modules/floorf-tests (Depends-on): Likewise.
53381         * modules/round-tests (Depends-on): Likewise.
53382         * modules/roundf-tests (Depends-on): Likewise.
53383         * modules/trunc-tests (Depends-on): Likewise.
53384         * modules/truncf-tests (Depends-on): Likewise.
53385         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53386         'fprintf-posix' module is not present.
53387         * tests/test-floorf2.c (check): Likewise.
53388         * tests/test-trunc2.c (check): Likewise.
53389         * tests/test-truncf2.c (check): Likewise.
53390         * tests/test-round2.c (equal): Likewise.
53391         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53393 2010-04-07  Karl Berry  <karl@gnu.org>
53395         * config/srclist.txt,
53396         * config/srclistvars.sh,
53397         * config/srclist-update: doc fixes.
53399 2010-04-07  Jim Meyering  <meyering@redhat.com>
53401         maint.mk: add a PATH crosschecking syntax-check rule
53402         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53403         Useful if you use a test like the one in help-version (coreutils,
53404         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53405         printed by prog --version.
53407 2010-04-06  Bruno Haible  <bruno@clisp.org>
53409         Fix link error on mingw.
53410         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53411         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53413 2010-04-06  Bruno Haible  <bruno@clisp.org>
53415         Assume rmdir exists.
53416         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53418 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53420         doc: update users.txt
53421         * users.txt: Add gcal.
53423 2010-04-06  Jim Meyering  <meyering@redhat.com>
53425         init.sh: simply unset TMPDIR rather than risking env -i
53426         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53427         although it probably works fine on all Unix-based systems, some
53428         systems (Cygwin?) cannot tolerate a totally cleared environment.
53429         Suggestion from Eric Blake.
53431 2010-04-06  Jim Meyering  <meyering@redhat.com>
53433         init.sh: portability fix: use env's POSIX-specified -i option not -u
53434         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53435         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53437 2010-04-05  Bruno Haible  <bruno@clisp.org>
53439         btowc: Work around Cygwin 1.7.2 bug.
53440         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53441         does not map NUL to 0.
53442         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53444 2010-04-05  Bruno Haible  <bruno@clisp.org>
53446         Make the multithread modules work on Cygwin 1.7.2.
53447         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53448         imported symbols can be declared weak, so that it returns "no" on
53449         Cygwin 1.7.2.
53451 2010-04-05  Bruno Haible  <bruno@clisp.org>
53453         Use the module 'strncat'.
53454         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53456         Tests for module 'strncat'.
53457         * modules/strncat-tests: New file.
53458         * tests/test-strncat.c: New file.
53460         New module 'strncat'.
53461         * lib/string.in.h (strncat): New declaration.
53462         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53463         * m4/strncat.m4: New file, based on m4/memchr.m4.
53464         * modules/strncat: New file.
53465         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53466         is declared.
53467         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53468         REPLACE_STRNCAT.
53469         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53470         REPLACE_STRNCAT.
53471         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53472         module.
53473         * tests/test-string-c++.cc: Check signature of strncat.
53475 2010-04-05  Jim Meyering  <meyering@redhat.com>
53477         xstrtoumax-tests: convert to use init.sh
53478         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53479         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53480         Use Exit, not exit.
53481         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53483         xstrtoimax-tests: convert to use init.sh
53484         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53485         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53486         Use Exit, not exit.
53487         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53489 2010-04-05  Bruno Haible  <bruno@clisp.org>
53491         sys_socket: Avoid #define replacements in C++ mode.
53492         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53493         warning to the function if possible, rather than #defining the symbol
53494         to a dysfunctional alias.
53496 2010-04-05  Bruno Haible  <bruno@clisp.org>
53498         fseeko: Fix C++ test error on mingw.
53499         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53500         gl_FUNC_FSEEKO.
53501         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53502         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53504         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53506 2010-04-05  Bruno Haible  <bruno@clisp.org>
53508         duplocale: Improve test output.
53509         * tests/test-duplocale.c (main): Print reason for skipped test.
53511 2010-04-05  Bruno Haible  <bruno@clisp.org>
53513         Assume rmdir exists.
53514         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53515         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53517 2010-04-05  Bruno Haible  <bruno@clisp.org>
53519         Fix link error on Solaris 8 with cc.
53520         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53522 2010-04-05  Bruno Haible  <bruno@clisp.org>
53524         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53525         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53527 2010-04-05  Bruno Haible  <bruno@clisp.org>
53529         vasprintf: Update documentation.
53530         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53532 2010-04-05  Bruno Haible  <bruno@clisp.org>
53534         ptsname: Improve test.
53535         * tests/test-ptsname.c (main): Also try the various master names of BSD
53536         systems.
53538 2010-04-05  Bruno Haible  <bruno@clisp.org>
53540         memchr: Avoid a possible C++ test error.
53541         * lib/string.in.h (memchr): Provide declaration if function is missing.
53542         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53543         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53545         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53547 2010-04-05  Bruno Haible  <bruno@clisp.org>
53549         strtok_r: Improve idiom.
53550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53551         AC_LIBOBJ is used.
53553 2010-04-05  Bruno Haible  <bruno@clisp.org>
53555         strdup: Improve idiom.
53556         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53557         AC_LIBOBJ is used.
53558         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53559         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53560         when AC_LIBOBJ is used.
53562 2010-04-05  Bruno Haible  <bruno@clisp.org>
53564         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53565         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53566         don't set REPLACE_MBSINIT to 1.
53567         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53568         don't set REPLACE_MBRTOWC to 1.
53569         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53570         exist, don't set REPLACE_MBSRTOWCS to 1.
53571         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53572         exist, don't set REPLACE_MBSNRTOWCS to 1.
53573         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53574         don't set REPLACE_WCRTOMB to 1.
53575         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53576         exist, don't set REPLACE_WCSRTOMBS to 1.
53577         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53578         exist, don't set REPLACE_WCSNRTOMBS to 1.
53580 2010-04-05  Bruno Haible  <bruno@clisp.org>
53582         ldexpl: Improve idiom.
53583         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53584         make sure to set HAVE_DECL_LDEXPL to 0.
53586 2010-04-05  Jim Meyering  <meyering@redhat.com>
53588         xstrtol-tests: convert to use init.sh
53589         * modules/xstrtol-tests (Files): Add tests/init.sh.
53590         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53591         Use Exit, not exit.
53592         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53594         atexit-tests: convert to use init.sh
53595         * modules/atexit-tests (Files): Add tests/init.sh.
53596         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53597         Use Exit, not exit.
53598         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53600         init.sh: fix typo
53601         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53603         init.sh: make it easier for a test script to write to the tty, ...
53604         when using automake's parallel-tests mode.
53605         * tests/init.sh (stderr_fileno_): Define overridable variable.
53606         (warn_): New function, to use it.
53607         (fail_, skip_, framework_failure_): Use warn_.
53609 2010-04-04  Bruno Haible  <bruno@clisp.org>
53611         btowc: Avoid warning.
53612         * lib/btowc.c: Include <stdlib.h>.
53613         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53615 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53616             Bruno Haible  <bruno@clisp.org>
53618         wchar: Port to NetBSD 1.5.
53619         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53620         * lib/wctype.in.h (WEOF): Likewise.
53622 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53623             Bruno Haible  <bruno@clisp.org>
53625         Port extended stdio to NetBSD 1.5.
53626         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53627         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53628         older.
53630 2010-04-04  Bruno Haible  <bruno@clisp.org>
53632         string: Remove unused substitution.
53633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53634         HAVE_DECL_STRERROR.
53635         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53637 2010-04-04  Bruno Haible  <bruno@clisp.org>
53639         strtod: Avoid a possible C++ test error.
53640         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53641         set REPLACE_STRTOD.
53643 2010-04-04  Bruno Haible  <bruno@clisp.org>
53645         strerror: Update documentation.
53646         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53648 2010-04-04  Bruno Haible  <bruno@clisp.org>
53650         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53651         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53652         _GL_CXXALIAS_SYS_CAST.
53654 2010-04-04  Bruno Haible  <bruno@clisp.org>
53656         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53657         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53658         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53659         REPLACE_FREXPL to 1.
53660         * doc/posix-functions/frexpl.texi: Update documentation.
53662 2010-04-04  Bruno Haible  <bruno@clisp.org>
53664         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53665         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53667 2010-04-04  Bruno Haible  <bruno@clisp.org>
53669         Implement nanosleep for native Windows.
53670         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53672 2010-04-04  Bruno Haible  <bruno@clisp.org>
53674         math: Fix some C++ test errors on Solaris 8.
53675         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53677 2010-04-04  Bruno Haible  <bruno@clisp.org>
53679         math: Fix some C++ test errors on Cygwin.
53680         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53681         truncl): Provide declaration if the system does not have it.
53682         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53683         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53684         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53685         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53686         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53687         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53688         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53689         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53690         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53691         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53692         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53693         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53694         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53695         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53696         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53697         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53699         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53700         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53701         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53702         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53703         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53705 2010-04-04  Bruno Haible  <bruno@clisp.org>
53707         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53708         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53709         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53710         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53711         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53712         * m4/isinf.m4 (gl_ISINF): Likewise.
53713         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53715 2010-04-04  Bruno Haible  <bruno@clisp.org>
53717         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53718         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53720 2010-04-04  Bruno Haible  <bruno@clisp.org>
53722         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53723         * modules/tmpfile (configure.ac): Update.
53725         tmpfile: Fix C++ test error on mingw.
53726         * lib/stdio.in.h (tmpfile): New declaration.
53727         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53728         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53729         * modules/tmpfile (Depends-on): Add stdio.
53730         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53731         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53733         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53734         REPLACE_TMPFILE.
53735         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53737 2010-04-04  Bruno Haible  <bruno@clisp.org>
53739         ioctl: Fix C++ test error on mingw.
53740         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53741         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53742         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53744 2010-04-03  Bruno Haible  <bruno@clisp.org>
53746         wcwidth: Fix C++ test error on mingw.
53747         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53749         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53751 2010-04-03  Bruno Haible  <bruno@clisp.org>
53753         nanosleep: Fix C++ test error on mingw.
53754         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53755         * lib/time.in.h (nanosleep): Use modern idiom.
53756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53757         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53758         REPLACE_NANOSLEEP to 1.
53759         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53760         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53762 2010-04-03  Bruno Haible  <bruno@clisp.org>
53764         strptime: Fix C++ test error on mingw.
53765         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53766         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53767         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53768         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53770         not REPLACE_STRPTIME.
53771         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53772         REPLACE_STRPTIME.
53774 2010-04-03  Bruno Haible  <bruno@clisp.org>
53776         timegm: Fix C++ test error on mingw.
53777         * lib/time.in.h (timegm): Use modern idiom.
53778         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53779         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53781         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53783 2010-04-03  Bruno Haible  <bruno@clisp.org>
53785         timegm: Assume declaration if function exists.
53786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53787         if it exists. Don't clobber ac_cv_func_timegm.
53789 2010-04-03  Bruno Haible  <bruno@clisp.org>
53791         time_r: Fix C++ test error on mingw.
53792         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53793         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53794         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53796         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53798 2010-04-03  Bruno Haible  <bruno@clisp.org>
53800         time_r: Minor updates.
53801         * modules/time_r (Description): Mention the provided functions.
53802         * lib/time_r.c: Don't include <string.h>.
53803         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53804         * doc/posix-functions/localtime_r.texi: Likewise.
53806 2010-04-03  Bruno Haible  <bruno@clisp.org>
53808         time: Fix regression introduced on 2010-03-08.
53809         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53810         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53812 2010-04-03  Jim Meyering  <meyering@redhat.com>
53814         maint.mk: don't silently disable project-specific syntax-check rules
53815         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53816         that they need to convert their project-specific syntax-check rules
53817         to use the new _sc_search_regexp.
53819 2010-04-03  Bruno Haible  <bruno@clisp.org>
53821         fchdir: Fix regression introduced on 2010-03-08.
53822         * lib/unistd.in.h (fchdir): Fix declaration.
53823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53825         REPLACE_FCHDIR.
53826         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53827         REPLACE_FCHDIR.
53829 2010-04-03  Bruno Haible  <bruno@clisp.org>
53831         getpagesize: Fix C++ test error on mingw.
53832         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53833         system does not declare the function.
53834         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53835         declared.
53836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53837         HAVE_DECL_GETPAGESIZE.
53838         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53840 2010-04-03  Bruno Haible  <bruno@clisp.org>
53842         stdio: Make C++ tests work on mingw.
53843         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53844         does not declare the function.
53846 2010-04-03  Bruno Haible  <bruno@clisp.org>
53848         ftello: Fix C++ test error on mingw.
53849         * lib/stdio.in.h (ftello): Use modern idiom.
53850         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53851         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53852         is missing and that it needs to be replaced.
53853         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53855         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53857 2010-04-03  Bruno Haible  <bruno@clisp.org>
53859         fseeko: Fix C++ test error on mingw.
53860         * lib/stdio.in.h (fseeko): Use modern idiom.
53861         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53862         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53863         is missing and that it needs to be replaced.
53864         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53866         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53868 2010-04-03  Bruno Haible  <bruno@clisp.org>
53870         mkstemp: Fix C++ test error on mingw.
53871         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53873         function is missing and that it needs to be replaced.
53874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53875         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53877 2010-04-03  Bruno Haible  <bruno@clisp.org>
53879         stpncpy: Fix C++ test error on mingw.
53880         * lib/string.in.h (stpncpy): Use modern idiom.
53881         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53882         function is missing and that it needs to be replaced.
53883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53884         REPLACE_STPNCPY.
53885         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53887 2010-04-03  Bruno Haible  <bruno@clisp.org>
53889         sys_stat: Fix C++ test error on mingw.
53890         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53891         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53893 2010-04-03  Bruno Haible  <bruno@clisp.org>
53895         pty: Update doc.
53896         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53898 2010-04-03  Bruno Haible  <bruno@clisp.org>
53900         unistd: Fix C++ test error on mingw.
53901         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53903 2010-04-03  Bruno Haible  <bruno@clisp.org>
53905         Update doc regarding mingw.
53906         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53907         * doc/glibc-functions/login_tty.texi: Likewise.
53908         * doc/glibc-functions/forkpty.texi: Likewise.
53910 2010-04-03  Bruno Haible  <bruno@clisp.org>
53912         stdlib: Avoid compilation failure of c-strtold on mingw.
53913         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53915 2010-04-03  Bruno Haible  <bruno@clisp.org>
53917         locale: Make C++ tests work on Cygwin and mingw.
53918         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53919         cannot provide the function.
53920         Reported by Simon Josefsson.
53922 2010-04-03  Bruno Haible  <bruno@clisp.org>
53924         localename: Port to MacOS X 10.6.
53925         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53926         memory layout of the locales in MacOS X 10.6 as well.
53927         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53929 2010-04-02  Bruno Haible  <bruno@clisp.org>
53931         gnulib-tool: Ensure that long-running tests are executed last.
53932         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53933         running tests after the one for the other tests.
53935 2010-04-02  Bruno Haible  <bruno@clisp.org>
53937         gnulib-tool: Ensure the tests in the main directory are executed first.
53938         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53939         start with the current directory.
53941 2010-04-02  Bruno Haible  <bruno@clisp.org>
53943         Tests for module 'havelib', moved here from GNU gettext.
53944         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53945         modifications.
53946         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53947         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53948         with modifications.
53949         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53950         modifications.
53951         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53952         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53953         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53954         with modifications.
53955         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53956         with modifications.
53957         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53958         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53959         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53960         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53961         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53962         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53963         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53964         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53965         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53966         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53967         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53968         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53969         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53970         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53971         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53972         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53973         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53974         with modifications.
53975         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53976         with modifications.
53977         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53978         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53979         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53980         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53981         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53982         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53983         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53984         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53985         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53986         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53987         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53988         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53989         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53990         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53991         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53992         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53993         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53994         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53995         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53996         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53997         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53998         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53999         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
54000         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
54001         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
54002         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
54003         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
54004         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
54005         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
54006         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
54007         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
54008         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
54009         * tests/havelib/rpathx/rpathx.c: New file, from
54010         gettext/autoconf-lib-link.
54011         * tests/havelib/rpathx/Makefile.am: New file, from
54012         gettext/autoconf-lib-link.
54013         * tests/havelib/rpathx/configure.ac: New file, from
54014         gettext/autoconf-lib-link with modifications.
54015         * tests/havelib/rpathy/rpathy.c: New file, from
54016         gettext/autoconf-lib-link.
54017         * tests/havelib/rpathy/Makefile.am: New file, from
54018         gettext/autoconf-lib-link.
54019         * tests/havelib/rpathy/configure.ac: New file, from
54020         gettext/autoconf-lib-link with modifications.
54021         * tests/havelib/rpathz/rpathz.c: New file, from
54022         gettext/autoconf-lib-link.
54023         * tests/havelib/rpathz/Makefile.am: New file, from
54024         gettext/autoconf-lib-link.
54025         * tests/havelib/rpathz/configure.ac: New file, from
54026         gettext/autoconf-lib-link with modifications.
54027         * tests/havelib/rpathlx/usex.c: New file, from
54028         gettext/autoconf-lib-link.
54029         * tests/havelib/rpathlx/Makefile.am: New file, from
54030         gettext/autoconf-lib-link.
54031         * tests/havelib/rpathlx/configure.ac: New file, from
54032         gettext/autoconf-lib-link with modifications.
54033         * tests/havelib/rpathly/usey.c: New file, from
54034         gettext/autoconf-lib-link.
54035         * tests/havelib/rpathly/Makefile.am: New file, from
54036         gettext/autoconf-lib-link.
54037         * tests/havelib/rpathly/configure.ac: New file, from
54038         gettext/autoconf-lib-link with modifications.
54039         * tests/havelib/rpathlz/usez.c: New file, from
54040         gettext/autoconf-lib-link.
54041         * tests/havelib/rpathlz/Makefile.am: New file, from
54042         gettext/autoconf-lib-link.
54043         * tests/havelib/rpathlz/configure.ac: New file, from
54044         gettext/autoconf-lib-link with modifications.
54045         * tests/havelib/rpathlyx/usey.c: New file, from
54046         gettext/autoconf-lib-link.
54047         * tests/havelib/rpathlyx/Makefile.am: New file, from
54048         gettext/autoconf-lib-link.
54049         * tests/havelib/rpathlyx/configure.ac: New file, from
54050         gettext/autoconf-lib-link with modifications.
54051         * tests/havelib/rpathlzyx/usez.c: New file, from
54052         gettext/autoconf-lib-link.
54053         * tests/havelib/rpathlzyx/Makefile.am: New file, from
54054         gettext/autoconf-lib-link.
54055         * tests/havelib/rpathlzyx/configure.ac: New file, from
54056         gettext/autoconf-lib-link with modifications.
54057         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
54058         with modifications.
54060 2010-04-02  Bruno Haible  <bruno@clisp.org>
54062         gnulib-tool: Create distributed built sources also for the tests.
54063         * gnulib-tool (func_create_testdir): Also generate distributed built
54064         sources in the tests directory.
54066 2010-04-02  Bruno Haible  <bruno@clisp.org>
54068         gnulib-tool: Obey user's environment variables.
54069         * gnulib-tool (func_create_testdir): When creating built sources,
54070         respect the environment variables for autoconf, automake, etc. given by
54071         the user.
54073 2010-04-02  Bruno Haible  <bruno@clisp.org>
54075         gnulib-tool: Provide the value of --m4-base to modules.
54076         * gnulib-tool (func_import, func_create_testdir): Emit a definition
54077         of gl_m4_base.
54079 2010-04-02  Eric Blake  <eblake@redhat.com>
54081         maint.mk: fix some fallout
54082         * NEWS: Document the incompatible change, and its effect on cfg.mk.
54083         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
54085 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54087         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
54088         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
54089         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
54090         (sc_cast_of_x_alloc_return_value): Likewise.
54091         (sc_cast_of_alloca_return_value): Likewise.
54092         (sc_space_tab): Likewise.
54093         (sc_prohibit_atoi_atof): Likewise.
54094         (sc_prohibit_magic_number_exit): Likewise.
54095         (sc_error_exit_success): Likewise.
54096         (sc_file_system): Likewise.
54097         (sc_prohibit_have_config_h): Likewise.
54098         (sc_require_config_h): Likewise.
54099         (sc_prohibit_HAVE_MBRTOWC): Likewise.
54100         (sc_obsolete_symbols): Likewise.
54101         (sc_changelog): Likewise.
54102         (sc_program_name): Likewise.
54103         (sc_the_the): Likewise.
54104         (sc_trailing_blank): Likewise.
54105         (sc_two_space_separator_in_usage): Likewise.
54106         (sc_useless_cpp_parens): Likewise.
54107         (sc_GPL_version): Likewise.
54108         (sc_GFDL_version): Likewise.
54109         (sc_texinfo_acronym): Likewise.
54110         (sc_prohibit_cvs_keyword): Likewise.
54111         (sc_prohibit_stat_st_blocks): Likewise.
54112         (sc_prohibit_S_IS_definition): Likewise.
54113         (sc_redundant_const): Likewise.
54114         (sc_makefile_TAB_only_indentation): Likewise.
54115         (sc_m4_quote_check): Likewise.
54116         (sc_makefile_path_separator_check): Likewise.
54117         (sc_copyright_check): Likewise.
54118         (sc_Wundef_boolean): Likewise.
54119         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54121         maint.mk: match 0 or more whitespace-before-function-call '('
54122         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54123         that have zero or two-and-more spaces between the function name
54124         and the open parenthesis.
54125         (sc_error_message_warn_fatal): Likewise.
54126         (sc_error_message_uppercase): Likewise.
54127         (sc_error_message_period): Likewise.
54129 2010-03-31  Eric Blake  <eblake@redhat.com>
54131         maint.mk: check for [ as well as test
54132         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54133         Based on a libvirt report by Matthias Bolte.
54135         gnumakefile: don't squelch _version output
54136         * top/GNUmakefile (_version): Create one-shot dependency rather
54137         than using $(shell) when version must be regenerated.
54138         (_autoreconf): Run verbosely, by default.
54140         sys_time: avoid compiler warnings
54141         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54142         unconditional, fixing regression from 2010-03-29.
54143         Reported by Simon Josefsson.
54145 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54147         maint.mk: s/_header_without_use/_sc_header_without_use/
54148         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54149         (sc_prohibit_assert_without_use): Use the new name.
54150         (sc_prohibit_close_stream_without_use): Likewise.
54151         (sc_prohibit_getopt_without_use): Likewise.
54152         (sc_prohibit_quotearg_without_use): Likewise.
54153         (sc_prohibit_quote_without_use): Likewise.
54154         (sc_prohibit_long_options_without_use): Likewise.
54155         (sc_prohibit_inttostr_without_use): Likewise.
54156         (sc_prohibit_ignore_value_without_use): Likewise.
54157         (sc_prohibit_error_without_use): Likewise.
54158         (sc_prohibit_xalloc_without_use): Likewise.
54159         (sc_prohibit_hash_without_use): Likewise.
54160         (sc_prohibit_hash_pjw_without_use): Likewise.
54161         (sc_prohibit_safe_read_without_use): Likewise.
54162         (sc_prohibit_argmatch_without_use): Likewise.
54163         (sc_prohibit_canonicalize_without_use): Likewise.
54164         (sc_prohibit_root_dev_ino_without_use): Likewise.
54165         (sc_prohibit_openat_without_use): Likewise.
54166         (sc_prohibit_c_ctype_without_use): Likewise.
54167         (sc_prohibit_signal_without_use): Likewise.
54168         (sc_prohibit_intprops_without_use): Likewise.
54170 2010-03-30  Eric Blake  <eblake@redhat.com>
54172         maint: improve module indicators
54173         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54174         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54175         columns, and avoid extra macro expansion.
54177         fdopendir: work around FreeBSD bug
54178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54180         * modules/dirent (Makefile.am): Substitute it.
54181         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54182         declaration.
54183         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54184         fix.
54185         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54187 2010-03-29  Bruno Haible  <bruno@clisp.org>
54189         Emit #pragma system_header after the inclusion guard, not before.
54190         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54191         guard that spans the entire file, not before. This enables an
54192         optimization in GCC's preprocessor.
54193         * lib/ctype.in.h: Likewise.
54194         * lib/dirent.in.h: Likewise.
54195         * lib/errno.in.h: Likewise.
54196         * lib/float.in.h: Likewise.
54197         * lib/getopt.in.h: Likewise.
54198         * lib/iconv.in.h: Likewise.
54199         * lib/langinfo.in.h: Likewise.
54200         * lib/locale.in.h: Likewise.
54201         * lib/math.in.h: Likewise.
54202         * lib/netdb.in.h: Likewise.
54203         * lib/netinet_in.in.h: Likewise.
54204         * lib/pty.in.h: Likewise.
54205         * lib/sched.in.h: Likewise.
54206         * lib/se-selinux.in.h: Likewise.
54207         * lib/search.in.h: Likewise.
54208         * lib/spawn.in.h: Likewise.
54209         * lib/stdarg.in.h: Likewise.
54210         * lib/stdint.in.h: Likewise.
54211         * lib/string.in.h: Likewise.
54212         * lib/strings.in.h: Likewise.
54213         * lib/sys_file.in.h: Likewise.
54214         * lib/sys_ioctl.in.h: Likewise.
54215         * lib/sys_time.in.h: Likewise.
54216         * lib/sys_times.in.h: Likewise.
54217         * lib/sys_utsname.in.h: Likewise.
54218         * lib/sys_wait.in.h: Likewise.
54219         * lib/sysexits.in.h: Likewise.
54220         * lib/wctype.in.h: Likewise.
54222 2010-03-28  James Youngman  <jay@gnu.org>
54224         save-cwd: don't leak a file descriptor when the caller execs.
54225         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54226         saved file descriptor.
54227         * modules/save-cwd (Depends-on): Depend on cloexec.
54229 2010-03-29  Bruno Haible  <bruno@clisp.org>
54231         Remove vestiges of fts-lgpl module.
54232         * lib/fts_.h: Assume GNULIB_FTS is 1.
54233         * lib/fts.c: Likewise.
54234         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54236 2010-03-28  Bruno Haible  <bruno@clisp.org>
54238         Fix definition of tests witness macro.
54239         * gnulib-tool (func_import): Fix definition of witness macro.
54241 2010-03-28  Bruno Haible  <bruno@clisp.org>
54243         Fix ioctl's protoype on glibc systems.
54244         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54245         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54246         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54247         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54248         signature. If not, arrange to replace the ioctl function.
54249         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54250         REPLACE_IOCTL.
54251         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54252         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54253         Reported by Ludovic Courtès <ludo@gnu.org>.
54255 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54257         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54258         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54259         made it so grep -r --include=GLOB* ... did not work.
54261 2010-03-26  Jim Meyering  <meyering@redhat.com>
54262             Eric Blake  <eblake@redhat.com>
54264         maint.mk: prohibit use of test's -o and -a operators
54265         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54267 2010-03-28  Bruno Haible  <bruno@clisp.org>
54269         Remove unused GNULIB_XYZ macro definitions.
54270         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54271         invocation.
54273 2010-03-28  Bruno Haible  <bruno@clisp.org>
54275         Mark privileged tests modules.
54276         * modules/idpriv-drop-tests (Status): New section.
54277         * modules/idpriv-droptemp-tests (Status): New section.
54279 2010-03-28  Bruno Haible  <bruno@clisp.org>
54281         Split C++ tests into separate tests modules.
54282         * modules/dirent-c++-tests: New file, extracted from
54283         modules/dirent-tests.
54284         * modules/dirent-tests: Depend on it.
54285         * modules/fcntl-h-c++-tests: New file, extracted from
54286         modules/fcntl-h-tests.
54287         * modules/fcntl-h-tests: Depend on it.
54288         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54289         * modules/glob-tests: Depend on it.
54290         * modules/iconv-h-c++-tests: New file, extracted from
54291         modules/iconv-h-tests.
54292         * modules/iconv-h-tests: Depend on it.
54293         * modules/langinfo-c++-tests: New file, extracted from
54294         modules/langinfo-tests.
54295         * modules/langinfo-tests: Depend on it.
54296         * modules/locale-c++-tests: New file, extracted from
54297         modules/locale-tests.
54298         * modules/locale-tests: Depend on it.
54299         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54300         * modules/math-tests: Depend on it.
54301         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54302         * modules/pty-tests: Depend on it.
54303         * modules/search-c++-tests: New file, extracted from
54304         modules/search-tests.
54305         * modules/search-tests: Depend on it.
54306         * modules/signal-c++-tests: New file, extracted from
54307         modules/signal-tests.
54308         * modules/signal-tests: Depend on it.
54309         * modules/spawn-c++-tests: New file, extracted from
54310         modules/spawn-tests.
54311         * modules/spawn-tests: Depend on it.
54312         * modules/stdio-c++-tests: New file, extracted from
54313         modules/stdio-tests.
54314         * modules/stdio-tests: Depend on it.
54315         * modules/stdlib-c++-tests: New file, extracted from
54316         modules/stdlib-tests.
54317         * modules/stdlib-tests: Depend on it.
54318         * modules/string-c++-tests: New file, extracted from
54319         modules/string-tests.
54320         * modules/string-tests: Depend on it.
54321         * modules/sys_ioctl-c++-tests: New file, extracted from
54322         modules/sys_ioctl-tests.
54323         * modules/sys_ioctl-tests: Depend on it.
54324         * modules/sys_select-c++-tests: New file, extracted from
54325         modules/sys_select-tests.
54326         * modules/sys_select-tests: Depend on it.
54327         * modules/sys_socket-c++-tests: New file, extracted from
54328         modules/sys_socket-tests.
54329         * modules/sys_socket-tests: Depend on it.
54330         * modules/sys_stat-c++-tests: New file, extracted from
54331         modules/sys_stat-tests.
54332         * modules/sys_stat-tests: Depend on it.
54333         * modules/sys_time-c++-tests: New file, extracted from
54334         modules/sys_time-tests.
54335         * modules/sys_time-tests: Depend on it.
54336         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54337         * modules/time-tests: Depend on it.
54338         * modules/unistd-c++-tests: New file, extracted from
54339         modules/unistd-tests.
54340         * modules/unistd-tests: Depend on it.
54341         * modules/wchar-c++-tests: New file, extracted from
54342         modules/wchar-tests.
54343         * modules/wchar-tests: Depend on it.
54344         * modules/wctype-c++-tests: New file, extracted from
54345         modules/wctype-tests.
54346         * modules/wctype-tests: Depend on it.
54347         Reported by Simon Josefsson.
54349 2010-03-28  Bruno Haible  <bruno@clisp.org>
54351         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54352         * gnulib-tool (func_exists_module): New function, extracted from
54353         func_verify_module.
54354         (func_verify_module): Use it.
54355         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54356         'foo' only if 'foo' exists.
54357         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54358         module.
54360 2010-03-28  Bruno Haible  <bruno@clisp.org>
54362         gnulib-tool: Add support for special categories of tests.
54363         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54364         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54365         (func_usage): Document them.
54366         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54367         inc_unportable_tests, inc_all_tests): New variables.
54368         (func_acceptable): Consider these variables.
54369         (func_modules_transitive_closure): Make it work when the 'Status' field
54370         consists of multiple words.
54371         (func_import): Store and restore the values of inc_cxx_tests,
54372         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54373         inc_all_tests in gnulib-comp.m4.
54374         (func_create_testdir): Set inc_all_tests to true.
54375         * doc/gnulib.texi (Extra tests modules): New section.
54376         Suggested by Jim Meyering.
54378 2010-03-28  Bruno Haible  <bruno@clisp.org>
54380         ansi-c++-opt: Allow turning off the C++ build by default.
54381         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54382         gl_CXX_CHOICE_DEFAULT_NO is defined.
54383         Requested by Eric Blake.
54385 2010-03-28  Bruno Haible  <bruno@clisp.org>
54387         unistd: Avoid #define replacements in C++ mode.
54388         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54389         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54390         setsockopt, shutdown, select): In C++, attach a warning to the function
54391         if possible, rather than #defining the symbol to a dysfunctional alias.
54392         Reported by John W. Eaton <jwe@gnu.org>.
54394 2010-03-28  Bruno Haible  <bruno@clisp.org>
54396         Fix link errors on mingw.
54397         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54398         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54399         $(LIBSOCKET).
54400         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54401         $(LIBSOCKET).
54403 2010-03-28  Bruno Haible  <bruno@clisp.org>
54404             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54406         lib-ignore: Determine different options for different compilers.
54407         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54408         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54409         Add comments.
54410         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54411         * NEWS: Mention the change.
54413 2010-03-27  Bruno Haible  <bruno@clisp.org>
54415         Remove unused GNULIB_XYZ macro definitions.
54416         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54417         * modules/fseek (configure.ac): Likewise.
54418         * modules/ioctl (configure.ac): Likewise.
54419         * modules/open (configure.ac): Likewise.
54420         * modules/stdlib-safer (configure.ac): Likewise.
54422 2010-03-27  Bruno Haible  <bruno@clisp.org>
54424         Add a remark about certain modules.
54425         * modules/malloc (Comment): New section.
54426         * modules/realloc (Comment): Likewise.
54427         * modules/sigpipe (Comment): Likewise.
54429 2010-03-27  Bruno Haible  <bruno@clisp.org>
54431         Resolve conflict between the two kinds of module indicators.
54432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54433         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54434         * modules/canonicalize (configure.ac): Invoke
54435         gl_MODULE_INDICATOR_FOR_TESTS.
54436         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54437         GNULIB_XYZ.
54438         * tests/test-dirent-c++.cc: Likewise.
54439         * tests/test-dirent-safer.c: Likewise.
54440         * tests/test-dup2.c: Likewise.
54441         * tests/test-fchdir.c: Likewise.
54442         * tests/test-fcntl-h-c++.cc: Likewise.
54443         * tests/test-getopt.c: Likewise.
54444         * tests/test-getopt.h: Likewise.
54445         * tests/test-langinfo-c++.cc: Likewise.
54446         * tests/test-locale-c++.cc: Likewise.
54447         * tests/test-math-c++.cc: Likewise.
54448         * tests/test-pty-c++.cc: Likewise.
54449         * tests/test-search-c++.cc: Likewise.
54450         * tests/test-signal-c++.cc: Likewise.
54451         * tests/test-spawn-c++.cc: Likewise.
54452         * tests/test-stdio-c++.cc: Likewise.
54453         * tests/test-stdlib-c++.cc: Likewise.
54454         * tests/test-string-c++.cc: Likewise.
54455         * tests/test-sys_ioctl-c++.cc: Likewise.
54456         * tests/test-sys_select-c++.cc: Likewise.
54457         * tests/test-sys_socket-c++.cc: Likewise.
54458         * tests/test-sys_stat-c++.cc: Likewise.
54459         * tests/test-sys_time-c++.cc: Likewise.
54460         * tests/test-time-c++.cc: Likewise.
54461         * tests/test-unistd-c++.cc: Likewise.
54462         * tests/test-wchar-c++.cc: Likewise.
54463         * tests/uninorm/test-u8-nfc.c: Likewise.
54464         * tests/uninorm/test-u8-nfd.c: Likewise.
54465         * tests/uninorm/test-u8-nfkc.c: Likewise.
54466         * tests/uninorm/test-u8-nfkd.c: Likewise.
54467         * tests/uninorm/test-u16-nfc.c: Likewise.
54468         * tests/uninorm/test-u16-nfd.c: Likewise.
54469         * tests/uninorm/test-u16-nfkc.c: Likewise.
54470         * tests/uninorm/test-u16-nfkd.c: Likewise.
54471         * tests/uninorm/test-u32-nfc.c: Likewise.
54472         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54473         * tests/uninorm/test-u32-nfd.c: Likewise.
54474         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54475         * tests/uninorm/test-u32-nfkc.c: Likewise.
54476         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54477         * tests/uninorm/test-u32-nfkd.c: Likewise.
54478         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54479         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54481 2010-03-27  Bruno Haible  <bruno@clisp.org>
54483         Distinguish two kinds of module indicators.
54484         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54485         gl_MODULE_INDICATOR.
54486         (gl_MODULE_INDICATOR): New macro.
54487         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54488         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54489         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54490         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54491         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54492         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54493         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54494         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54495         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54496         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54497         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54498         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54499         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54500         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54501         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54503         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54504         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54505         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54506         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54507         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54508         * modules/cloexec (configure.ac): Likewise.
54509         * modules/getopt-gnu (configure.ac): Likewise.
54510         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54511         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54512         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54513         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54515 2010-03-27  Bruno Haible  <bruno@clisp.org>
54517         New module description field 'Comment'.
54518         * gnulib-tool: New option --extract-comment.
54519         (func_usage): Document it.
54520         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54521         (func_get_comment): New function.
54522         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54524 2010-03-27  Bruno Haible  <bruno@clisp.org>
54526         Addendum to 2010-02-07 commit.
54527         * gnulib-tool (func_usage): Document --extract-applicability option.
54529 2010-03-27  Bruno Haible  <bruno@clisp.org>
54531         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54532         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54533         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54534         rather than link errors.
54536 2010-03-27  Bruno Haible  <bruno@clisp.org>
54538         Avoid side effects from tests-related modules on the compilation of lib.
54539         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54540         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54541         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54542         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54543         macro.
54544         (func_import): Define a witness macro. Assign it a value that depends
54545         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54546         tests-related modules.
54547         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54548         Reported by Jim Meyering.
54550 2010-03-27  Bruno Haible  <bruno@clisp.org>
54552         Factorize common .m4 code.
54553         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54554         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54555         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54556         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54557         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54558         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54559         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54560         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54561         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54562         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54563         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54564         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54565         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54566         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54567         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54568         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54569         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54570         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54572         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54573         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54575         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54576         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54577         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54578         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54579         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54580         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54581         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54582         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54583         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54584         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54586 2010-03-27  Bruno Haible  <bruno@clisp.org>
54588         Fix a compilation error on Cygwin with g++ >= 4.3.
54589         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54590         if it is undefined or if we alias it to chmod.
54591         (lstat): Don't warn about the use of this function if it is undefined
54592         or if we alias it to stat.
54593         Reported by Simon Josefsson.
54595 2010-03-27  Bruno Haible  <bruno@clisp.org>
54597         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54598         * modules/getlogin (configure.ac): Update.
54600         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54601         * modules/getlogin_r (configure.ac): Update.
54603         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54605         * modules/inet_ntop (configure.ac): Update.
54607         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54608         * modules/inet_pton (configure.ac): Update.
54610         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54611         * modules/mbslen (configure.ac): Update.
54613         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54614         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54615         * modules/forkpty (configure.ac): Update.
54616         * modules/openpty (configure.ac): Update.
54618 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54620         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54621         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54623 2010-03-25  Eric Blake  <eblake@redhat.com>
54625         maint: use pragma consistently across replacement headers
54626         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54627         * lib/dirent.in.h (system_header): Likewise.
54628         * lib/errno.in.h (system_header): Likewise.
54629         * lib/float.in.h (system_header): Likewise.
54630         * lib/getopt.in.h (system_header): Likewise.
54631         * lib/iconv.in.h (system_header): Likewise.
54632         * lib/inttypes.in.h (system_header): Likewise.
54633         * lib/langinfo.in.h (system_header): Likewise.
54634         * lib/locale.in.h (system_header): Likewise.
54635         * lib/math.in.h (system_header): Likewise.
54636         * lib/netdb.in.h (system_header): Likewise.
54637         * lib/netinet_in.in.h (system_header): Likewise.
54638         * lib/pty.in.h (system_header): Likewise.
54639         * lib/sched.in.h (system_header): Likewise.
54640         * lib/se-selinux.in.h (system_header): Likewise.
54641         * lib/search.in.h (system_header): Likewise.
54642         * lib/spawn.in.h (system_header): Likewise.
54643         * lib/stdarg.in.h (system_header): Likewise.
54644         * lib/stdint.in.h (system_header): Likewise.
54645         * lib/string.in.h (system_header): Likewise.
54646         * lib/strings.in.h (system_header): Likewise.
54647         * lib/sys_file.in.h (system_header): Likewise.
54648         * lib/sys_ioctl.in.h (system_header): Likewise.
54649         * lib/sys_socket.in.h (system_header): Likewise.
54650         * lib/sys_times.in.h (system_header): Likewise.
54651         * lib/sys_utsname.in.h (system_header): Likewise.
54652         * lib/sys_wait.in.h (system_header): Likewise.
54653         * lib/sysexits.in.h (system_header): Likewise.
54654         * lib/unistd.in.h (system_header): Likewise.
54655         * lib/wctype.in.h (system_header): Likewise.
54657         arpa/inet: fix mingw compilation warning
54658         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54659         Reported by Matthew Bolte.
54661 2010-03-25  Bruno Haible  <bruno@clisp.org>
54663         Avoid collision between gnulib wrapper and libintl wrapper.
54664         * lib/printf.c (printf): Don't define if a printf wrapper is already
54665         defined in intl/printf.c.
54666         Reported by Michel Boaventura <michel@michelboaventura.com>.
54668 2010-03-25  Bruno Haible  <bruno@clisp.org>
54670         Use ANSI C.
54671         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54673 2010-03-25  Bruno Haible  <bruno@clisp.org>
54675         Minor formatting changes.
54676         * lib/acosl.c: Insert space before function argument list.
54677         * lib/argz.c: Likewise.
54678         * lib/asinl.c: Likewise.
54679         * lib/expl.c: Likewise.
54680         * lib/gen-uni-tables.c: Likewise.
54681         * lib/gettext.h: Likewise.
54682         * lib/glthread/lock.h: Likewise.
54683         * lib/tanl.c: Likewise.
54684         * lib/uniname/uniname.c: Likewise.
54685         * tests/test-idpriv-drop.c: Likewise.
54686         * tests/test-idpriv-droptemp.c: Likewise.
54687         * tests/test-lock.c: Likewise.
54688         * tests/test-tls.c: Likewise.
54689         * lib/argp-help.c: Insert space before function-like macro argument
54690         list.
54691         * lib/memcmp.c: Likewise.
54692         * tests/test-base64.c: Likewise.
54693         * lib/localename.c: Insert space before sizeof's argument list.
54694         * lib/safe-alloc.h: Likewise.
54695         * lib/file-set.h: Insert space before macro argument list.
54696         * tests/test-argp.c: Likewise.
54697         * lib/argp-namefrob.h: Insert space before function parameter list.
54698         * lib/getaddrinfo.c: Likewise.
54699         * lib/netdb.in.h: Likewise.
54700         * lib/parse-duration.h: Likewise.
54701         * lib/parse-duration.c: Likewise.
54702         * lib/poll.c: Likewise.
54703         * lib/select.c: Likewise.
54704         * lib/trim.h: Likewise.
54705         * tests/test-usleep.c: Likewise.
54706         * lib/ldexpl.c: Insert space before function parameter list and before
54707         function argument list.
54708         * lib/logl.c: Likewise.
54709         * lib/sqrtl.c: Likewise.
54710         * lib/trim.c: Likewise.
54711         * lib/cosl.c: Use GNU style indentation. Insert space before function
54712         argument list.
54713         * lib/sinl.c: Likewise.
54714         * lib/tsearch.c: Insert space after 'for'.
54715         Reported by Jim Meyering.
54717 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54719         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54720         config header before grepping, as it's not present before
54721         autoreconf/configure are run.  Reported by Simon Josefsson.
54723 2010-03-23  Bruno Haible  <bruno@clisp.org>
54725         pt_chown: Make it work with automake < 1.11.
54726         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54727         Reported by Simon Josefsson.
54729 2010-03-23  Bruno Haible  <bruno@clisp.org>
54731         pt_chown: Don't depend on GPLed modules.
54732         * lib/pt_chown.c: Don't include idpriv.h.
54733         (main): Don't drop privileges.
54734         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54735         Reported by Simon Josefsson.
54737 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54739         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54740         suggestions from karl@freefriends.org (Karl Berry).
54742 2010-03-22  Eric Blake  <eblake@redhat.com>
54744         gethostname: further tweaks
54745         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54746         are overriding gethostname.
54747         Suggested by Bruno Haible.
54749 2010-03-21  Bruno Haible  <bruno@clisp.org>
54751         Fix comments.
54752         * lib/forkpty.c (rpl_forkpty): Fix comment.
54753         * lib/openpty.c (rpl_openpty): Likewise.
54754         Reported by Eric Blake.
54756 2010-03-22  Eric Blake  <eblake@redhat.com>
54758         gethostname: fix build on mingw
54759         * lib/unistd.in.h (includes): Work around fact that mingw
54760         <winsock2.h> re-includes <unistd.h>, by avoiding any
54761         redeclarations if we are being included by <winsock2.h>.
54762         Reported by Matthias Bolte.
54764 2010-03-21  Bruno Haible  <bruno@clisp.org>
54766         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54767         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54768         modifications.
54769         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54770         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54771         provide the replacement.
54772         * modules/forkpty (Depends-on): Add openpty, login_tty.
54773         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54774         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54775         * doc/glibc-functions/forkpty.texi: More supported platforms.
54776         * config/srclist.txt: Add forkpty.c (commented).
54778 2010-03-21  Bruno Haible  <bruno@clisp.org>
54780         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54781         (Makefile.am): Verify that PTY_LIB is defined.
54783         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54785 2010-03-21  Bruno Haible  <bruno@clisp.org>
54787         Tests for module 'login_tty'.
54788         * modules/login_tty-tests: New file.
54789         * tests/test-login_tty.c: New file.
54791         New module 'login_tty'.
54792         * lib/login_tty.c: New file.
54793         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54794         * modules/login_tty: New file.
54795         * doc/glibc-functions/login_tty.texi: Mention the new module.
54797 2010-03-21  Bruno Haible  <bruno@clisp.org>
54799         login_tty: Documentation.
54800         * doc/glibc-functions/login_tty.texi: New file.
54801         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54803 2010-03-21  Bruno Haible  <bruno@clisp.org>
54805         pty: Consistent macro naming.
54806         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54807         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54808         * modules/pty (configure.ac): Update.
54810 2010-03-21  Bruno Haible  <bruno@clisp.org>
54812         Tests for openpty: Make stricter.
54813         * tests/test-openpty.c (main): Add test of canonical processing and
54814         erase.
54815         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54817         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54818         * lib/openpty.c (openpty): New replacement function.
54819         * lib/pty.in.h: Include <termios.h>.
54820         (openpty): Update declaration. Add comments.
54821         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54822         is not declared, arrange to provide the replacement. Check for _getpty
54823         and posix_openpt.
54824         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54826         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54827         * modules/pty-tests (test_pty_c___LDADD): New variable.
54828         * doc/glibc-functions/openpty.texi: More supported platforms.
54830 2010-03-21  Bruno Haible  <bruno@clisp.org>
54832         setenv: Tweaks.
54833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54834         the test program.
54835         * doc/posix-functions/setenv.texi: Update platforms list.
54837 2010-03-21  Bruno Haible  <bruno@clisp.org>
54839         New module 'unlockpt'.
54840         * lib/unlockpt.c: New file, from glibc with modifications.
54841         * m4/unlockpt.m4: New file.
54842         * modules/unlockpt: New file.
54843         * lib/stdlib.in.h (unlockpt): New declaration.
54844         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54845         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54846         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54847         HAVE_UNLOCKPT.
54848         * doc/posix-functions/unlockpt.texi: Mention the new module.
54849         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54850         * config/srclist.txt: Add unlockpt.c (commented).
54852 2010-03-21  Jim Meyering  <meyering@redhat.com>
54854         maint.mk: prohibit inclusion of "intprops.h" without use
54855         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54857 2010-03-21  Bruno Haible  <bruno@clisp.org>
54859         New module 'grantpt'.
54860         * lib/grantpt.c: New file, from glibc with modifications.
54861         * m4/grantpt.m4: New file.
54862         * modules/grantpt: New file.
54863         * lib/stdlib.in.h (grantpt): New declaration.
54864         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54865         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54866         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54867         HAVE_GRANTPT.
54868         * doc/posix-functions/grantpt.texi: Mention the new module.
54869         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54870         * config/srclist.txt: Add grantpt.c (commented).
54872 2010-03-21  Bruno Haible  <bruno@clisp.org>
54874         New module 'pt_chown'.
54875         * lib/pt_chown.c: New file, from glibc with modifications.
54876         * lib/pty-private.h: New file, from glibc with modifications.
54877         * modules/pt_chown: New file.
54878         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54880 2010-03-21  Bruno Haible  <bruno@clisp.org>
54882         Tests for module 'ptsname'.
54883         * modules/ptsname-tests: New file.
54884         * tests/test-ptsname.c: New file.
54886         New module 'ptsname'.
54887         * lib/ptsname.c: New file, from glibc with modifications.
54888         * m4/ptsname.m4: New file.
54889         * modules/ptsname: New file.
54890         * lib/stdlib.in.h (ptsname): New declaration.
54891         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54892         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54893         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54894         HAVE_PTSNAME.
54895         * doc/posix-functions/ptsname.texi: Mention the new module.
54896         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54897         * config/srclist.txt: Add ptsname.c (commented).
54899 2010-03-21  Bruno Haible  <bruno@clisp.org>
54901         Tests for module 'ttyname_r'.
54902         * modules/ttyname_r-tests: New file.
54903         * tests/test-ttyname_r.c: New file.
54905         New module 'ttyname_r'.
54906         * lib/ttyname_r.c: New file.
54907         * m4/ttyname_r.m4: New file.
54908         * modules/ttyname_r: New file.
54909         * lib/unistd.in.h (ttyname_r): New declaration.
54910         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54911         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54912         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54913         HAVE_TTYNAME_R.
54914         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54915         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54917 2010-03-20  Bruno Haible  <bruno@clisp.org>
54919         signal: Undefine macro definitions in C++ mode.
54920         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54921         sigfillset): Undefine macro definitions from the system header in C++
54922         mode.
54923         Reported by John W. Eaton <jwe@gnu.org>.
54925 2010-03-20  Bruno Haible  <bruno@clisp.org>
54927         Ensure no #include statements inside extern "C" { ... }.
54928         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54929         contain #include statements.
54930         * lib/time.in.h: Likewise.
54932 2010-03-20  Bruno Haible  <bruno@clisp.org>
54934         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54935         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54936         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54937         Reported by John W. Eaton <jwe@gnu.org>.
54939 2010-03-20  Bruno Haible  <bruno@clisp.org>
54941         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54942         Reported by Jim Meyering.
54944 2010-03-20  Bruno Haible  <bruno@clisp.org>
54946         pipe: Set errno upon failure.
54947         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54948         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54949         errno value in error message.
54951 2010-03-20  Bruno Haible  <bruno@clisp.org>
54952             Jim Meyering  <meyering@redhat.com>
54954         lchown: Avoid "unused variable" warning.
54955         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54957 2010-03-20  Bruno Haible  <bruno@clisp.org>
54959         Work around unlink() bug on MacOS X 10.5.6.
54960         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54961         attempting to unlink a parent directory.
54962         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54963         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54964         activate for the replacement function.
54965         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54967 2010-03-20  Bruno Haible  <bruno@clisp.org>
54969         Fix link errors on Solaris 8.
54970         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54971         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54973 2010-03-19  Jim Meyering  <meyering@redhat.com>
54975         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54976         The _LIBC implementation of build_range_exp correctly honors the
54977         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54978         However, the non-_LIBC implementation would ignore that syntax-bit
54979         flag and return REG_ERANGE unconditionally.
54980         This change makes it honor that flag.
54981         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54982         Make two pointer parameters "const".
54983         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54984         (parse_bracket_exp): Update caller.
54986         regex.m4: correct the reversed range endpoint ([b-a]) test
54987         * m4/regex.m4: When requiring that [b-a] evoke failure,
54988         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54989         test pass once again for x86-based systems.
54991 2010-03-19  Bruno Haible  <bruno@clisp.org>
54993         scandir: Fix link error on Solaris 8.
54994         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54995         macros.
54997 2010-03-19  Bruno Haible  <bruno@clisp.org>
54999         getusershell: Fix documentation.
55000         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
55001         module.
55002         * doc/glibc-functions/setusershell.texi: Likewise.
55004         getusershell: Provide declaration, missing on Solaris 9.
55005         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
55006         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
55007         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
55008         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
55009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55010         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
55011         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
55012         HAVE_GETUSERSHELL.
55013         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
55015 2010-03-19  Bruno Haible  <bruno@clisp.org>
55017         wctype: Provide iswblank function.
55018         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
55019         exists and is fine.
55020         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
55021         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
55022         * tests/test-wctype.c (main): Re-enable the iswblank tests.
55023         * doc/posix-functions/iswblank.texi: Update.
55025 2010-03-19  Bruno Haible  <bruno@clisp.org>
55027         Tests of module 'pty' in C++ mode.
55028         * modules/pty-tests: New file.
55029         * tests/test-pty-c++.cc: New file.
55030         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55032 2010-03-19  Eric Blake  <eblake@redhat.com>
55034         logb: fix documentation
55035         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
55036         1.5 declaration bug.
55038         forkpty, openpty: prefer glibc's const-safe prototype
55039         * lib/forkpty.c (rpl_forkpty): New file.
55040         * lib/openpty.c (rpl_openpty): Likewise.
55041         * modules/forkpty (Files): Distribute it.
55042         * modules/openpty (Files): Likewise.
55043         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
55044         check...
55045         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
55046         replacement for non-const BSD signature.
55047         * modules/pty (Makefile.am): Substitute witnesses.
55048         * lib/pty.in.h (forkpty, openpty): Declare replacements.
55049         * tests/test-forkpty.c: Update signature check.
55050         * tests/test-openpty.c: Likewise.
55051         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
55052         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55054         forkpty, openpty: split functions into new modules
55055         * modules/pty (Makefile.am): Substitute new witnesses.
55056         (Libraries): Move library detection...
55057         * modules/forkpty: ...into new module.
55058         * modules/openpty: Another new module.
55059         * modules/pty-tests: Rename and split...
55060         * modules/forkpty-tests: ...to this...
55061         * modules/openpty-tests: ...and this.
55062         * tests/test-pty.c: Rename and split...
55063         * tests/test-forkpty.c: ...to this...
55064         * tests/test-openpty.c: ...and this.
55065         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
55066         (gl_PTY): Split library searching...
55067         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
55068         (gl_FORKPTY, gl_OPENPTY): New macros.
55069         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
55070         * NEWS: Mention the split.
55071         * MODULES.html.sh (Misc): Document the modules.
55072         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
55073         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55075         pty: improve replacement header
55076         * lib/pty.in.h: New file.
55077         * modules/pty (Files): Ship it.
55078         (Makefile.am): Always build replacement.
55079         * m4/pty.m4: Rename...
55080         * m4/pty_h.m4: ...to this.
55081         (gl_PTY): Modernize setting of witness macros; update check of
55082         forkpty to take proper advantage of cache.
55083         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
55085         getopt: avoid compiler warning
55086         * lib/getopt.c (attribute_hidden): Remove unused macro.
55088 2010-03-18  Bruno Haible  <bruno@clisp.org>
55090         Fix link errors on Solaris 8.
55091         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
55092         * modules/search-tests (test_search_c___LDADD): Likewise.
55093         * modules/signal-tests (test_signal_c___LDADD): Likewise.
55094         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
55095         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
55096         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
55097         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
55098         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
55099         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
55101 2010-03-18  Bruno Haible  <bruno@clisp.org>
55103         Fix bug introduced on 2010-03-14.
55104         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
55105         (gl_SPAWN_H): Require it.
55106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55107         Reported by Simon Josefsson.
55109 2010-03-18  Bruno Haible  <bruno@clisp.org>
55111         Fix typo introduced on 2009-12-31.
55112         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55113         posix_spawn_file_actions_adddup2.
55115 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55116         and Eric Blake  <eblake@redhat.com>
55118         test-vc-list-files-git: make more robust
55119         * tests/test-vc-list-files-git.sh: Unset problematic environment
55120         variables.  Chain commands together.
55122 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55124         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55125         `AC_CHECK_DECL' invocation.
55127 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55129         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55130         appears before executable statements. Suggested by Petr Sumbera
55131         <Petr.Sumbera@Sun.COM>.
55133 2010-03-14  Bruno Haible  <bruno@clisp.org>
55135         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55136         portability problems. Instead use a simpler test.
55137         (main): Check that invalid arguments are rejected only on Linux.
55139 2010-03-14  Bruno Haible  <bruno@clisp.org>
55141         Fix bug introduced on 2009-12-31.
55142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55143         gl_PREREQ_SYS_H_WINSOCK2 always.
55144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55145         SYS_SOCKET_H variable.
55146         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55147         Update comments.
55148         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55149         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55150         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55151         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55152         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55154 2010-03-14  Bruno Haible  <bruno@clisp.org>
55156         Fix values returned by sinl, cosl.
55157         * lib/trigl.h: Add specification comments.
55158         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55159         that combines the values from the precomputed table with the values of
55160         the Chebyshev polynomials.
55162 2010-03-14  Bruno Haible  <bruno@clisp.org>
55164         Fix compilation error when modules 'posix_spawn[p]' are not used.
55165         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55166         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55168 2010-03-14  Bruno Haible  <bruno@clisp.org>
55170         Fix compilation error on mingw when module 'time_r' is not used.
55171         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55172         is 1.
55173         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55174         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55175         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55176         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55178 2010-03-14  Bruno Haible  <bruno@clisp.org>
55180         Fix compilation error with Sun C.
55181         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55182         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55183         instead of GCC specific ULONG_LONG_MAX.
55184         * lib/xstrtoll.c: Likewise.
55185         * lib/xstrtoull.c: Likewise.
55187 2010-03-13  Bruno Haible  <bruno@clisp.org>
55189         Allow the user to disable C++ code and tests.
55190         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55191         (gl_PROG_ANSI_CXX): Require it.
55193 2010-03-13  Bruno Haible  <bruno@clisp.org>
55195         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55196         cases.
55198 2010-03-13  Bruno Haible  <bruno@clisp.org>
55200         Test that gnulib does not break the standard C++ headers.
55201         * tests/test-locale-c++2.cc: New file.
55202         * modules/locale-tests (Files): Add it.
55203         (Makefile.am): Compile it for test-locale-c++.
55204         * tests/test-math-c++2.cc: New file.
55205         * modules/math-tests (Files): Add it.
55206         (Makefile.am): Compile it for test-math-c++.
55207         * tests/test-signal-c++2.cc: New file.
55208         * modules/signal-tests (Files): Add it.
55209         (Makefile.am): Compile it for test-signal-c++.
55210         * tests/test-stdio-c++2.cc: New file.
55211         * modules/stdio-tests (Files): Add it.
55212         (Makefile.am): Compile it for test-stdio-c++.
55213         * tests/test-stdlib-c++2.cc: New file.
55214         * modules/stdlib-tests (Files): Add it.
55215         (Makefile.am): Compile it for test-stdlib-c++.
55216         * tests/test-string-c++2.cc: New file.
55217         * modules/string-tests (Files): Add it.
55218         (Makefile.am): Compile it for test-string-c++.
55219         * tests/test-time-c++2.cc: New file.
55220         * modules/time-tests (Files): Add it.
55221         (Makefile.am): Compile it for test-time-c++.
55222         Reported by John W. Eaton <jwe@gnu.org>.
55224 2010-03-13  Bruno Haible  <bruno@clisp.org>
55226         * gnulib-tool (func_usage): Clarify which options are available for
55227         --create-testdir and --create-megatestdir.
55229 2010-03-13  Bruno Haible  <bruno@clisp.org>
55231         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55232         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55233         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55234         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55235         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55236         when appropriate.
55237         Reported by Jim Meyering.
55239 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55241         * gnulib-tool (func_import): Explain origin of code.
55243 2010-03-12  Bruno Haible  <bruno@clisp.org>
55245         Fix problem with automake's definition of CXXLINK.
55246         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55247         Reported by Simon Josefsson and Ludovic Courtès.
55249 2010-03-12  Bruno Haible  <bruno@clisp.org>
55251         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55252         stable releases.
55254 2010-03-11  Bruno Haible  <bruno@clisp.org>
55256         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55257         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55258         whether the system provides one variant or multiple variants of the
55259         function.
55260         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55261         C++ compilers.
55262         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55263         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55264         Reported by Jim Meyering.
55266 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55268         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55270 2010-03-08  Bruno Haible  <bruno@clisp.org>
55272         gnulib-tool: Add support for --libtool in --create-testdir.
55273         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55274         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55276 2010-03-08  Eric Blake  <eblake@redhat.com>
55278         gnulib-tool.texi: mention possibility of git submodule
55279         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55280         submodules.
55281         * doc/.gitignore: Ignore another generated file.
55283 2010-03-08  Karl Berry  <karl@gnu.org>
55285         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55286         of committing gnulib files while skipping others.
55288 2010-03-07  Bruno Haible  <bruno@clisp.org>
55290         Tests of module 'wctype' in C++ mode.
55291         * tests/test-wctype-c++.cc: New file.
55292         * modules/wctype-tests (Files): Add it and tests/signature.h.
55293         (Depends-on): Add ansi-c++-opt.
55294         (Makefile.am): Arrange to compile and run test-wctype-c++.
55296         Tests of module 'wchar' in C++ mode.
55297         * tests/test-wchar-c++.cc: New file.
55298         * modules/wchar-tests (Files): Add it and tests/signature.h.
55299         (Depends-on): Add ansi-c++-opt.
55300         (Makefile.am): Arrange to compile and run test-wchar-c++.
55301         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55302         gl_MODULE_INDICATOR.
55304         Tests of module 'unistd' in C++ mode.
55305         * tests/test-unistd-c++.cc: New file.
55306         * modules/unistd-tests (Files): Add it and tests/signature.h.
55307         (Depends-on): Add ansi-c++-opt.
55308         (Makefile.am): Arrange to compile and run test-unistd-c++.
55309         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55310         gl_MODULE_INDICATOR.
55312         Tests of module 'time' in C++ mode.
55313         * tests/test-time-c++.cc: New file.
55314         * modules/time-tests (Files): Add it and tests/signature.h.
55315         (Depends-on): Add ansi-c++-opt.
55316         (Makefile.am): Arrange to compile and run test-time-c++.
55317         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55319         Tests of module 'sys_time' in C++ mode.
55320         * tests/test-sys_time-c++.cc: New file.
55321         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55322         (Depends-on): Add ansi-c++-opt.
55323         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55324         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55325         gl_MODULE_INDICATOR.
55327         Tests of module 'sys_stat' in C++ mode.
55328         * tests/test-sys_stat-c++.cc: New file.
55329         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55330         (Depends-on): Add ansi-c++-opt.
55331         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55332         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55333         gl_MODULE_INDICATOR.
55335         Tests of module 'sys_socket' in C++ mode.
55336         * tests/test-sys_socket-c++.cc: New file.
55337         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55338         (Depends-on): Add ansi-c++-opt.
55339         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55341         gl_MODULE_INDICATOR.
55343         Tests of module 'sys_select' in C++ mode.
55344         * tests/test-sys_select-c++.cc: New file.
55345         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55346         (Depends-on): Add ansi-c++-opt.
55347         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55348         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55349         gl_MODULE_INDICATOR.
55351         Tests of module 'sys_ioctl' in C++ mode.
55352         * tests/test-sys_ioctl-c++.cc: New file.
55353         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55354         (Depends-on): Add ansi-c++-opt.
55355         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55357         gl_MODULE_INDICATOR.
55359         Tests of module 'string' in C++ mode.
55360         * tests/test-string-c++.cc: New file.
55361         * modules/string-tests (Files): Add it and tests/signature.h.
55362         (Depends-on): Add ansi-c++-opt.
55363         (Makefile.am): Arrange to compile and run test-string-c++.
55364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55365         gl_MODULE_INDICATOR.
55367         Tests of module 'stdlib' in C++ mode.
55368         * tests/test-stdlib-c++.cc: New file.
55369         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55370         (Depends-on): Add ansi-c++-opt.
55371         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55372         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55373         gl_MODULE_INDICATOR.
55375         Tests of module 'stdio' in C++ mode.
55376         * tests/test-stdio-c++.cc: New file.
55377         * modules/stdio-tests (Files): Add it and tests/signature.h.
55378         (Depends-on): Add ansi-c++-opt.
55379         (Makefile.am): Arrange to compile and run test-stdio-c++.
55380         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55381         gl_MODULE_INDICATOR.
55383         Tests of module 'spawn' in C++ mode.
55384         * tests/test-spawn-c++.cc: New file.
55385         * modules/spawn-tests (Files): Add it and tests/signature.h.
55386         (Depends-on): Add ansi-c++-opt.
55387         (Makefile.am): Arrange to compile and run test-spawn-c++.
55388         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55389         gl_MODULE_INDICATOR.
55391         Tests of module 'signal' in C++ mode.
55392         * tests/test-signal-c++.cc: New file.
55393         * modules/signal-tests (Files): Add it and tests/signature.h.
55394         (Depends-on): Add ansi-c++-opt.
55395         (Makefile.am): Arrange to compile and run test-signal-c++.
55396         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55397         gl_MODULE_INDICATOR.
55399         Tests of module 'search' in C++ mode.
55400         * tests/test-search-c++.cc: New file.
55401         * modules/search-tests (Files): Add it and tests/signature.h.
55402         (Depends-on): Add ansi-c++-opt.
55403         (Makefile.am): Arrange to compile and run test-search-c++.
55404         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55405         gl_MODULE_INDICATOR.
55407         Tests of module 'math' in C++ mode.
55408         * tests/test-math-c++.cc: New file.
55409         * modules/math-tests (Files): Add it and tests/signature.h.
55410         (Depends-on): Add ansi-c++-opt.
55411         (Makefile.am): Arrange to compile and run test-math-c++.
55412         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55414         Tests of module 'locale' in C++ mode.
55415         * tests/test-locale-c++.cc: New file.
55416         * modules/locale-tests (Files): Add it and tests/signature.h.
55417         (Depends-on): Add ansi-c++-opt.
55418         (Makefile.am): Arrange to compile and run test-locale-c++.
55419         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55420         gl_MODULE_INDICATOR.
55422         Tests of module 'langinfo' in C++ mode.
55423         * tests/test-langinfo-c++.cc: New file.
55424         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55425         (Depends-on): Add ansi-c++-opt.
55426         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55427         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55428         gl_MODULE_INDICATOR.
55430         Tests of module 'iconv-h' in C++ mode.
55431         * tests/test-iconv-h-c++.cc: New file.
55432         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55433         (Depends-on): Add ansi-c++-opt.
55434         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55436         Tests of module 'glob' in C++ mode.
55437         * tests/test-glob-c++.cc: New file.
55438         * modules/glob-tests (Files): Add it.
55439         (Depends-on): Add ansi-c++-opt.
55440         (Makefile.am): Arrange to compile and run test-glob-c++.
55442         Tests of module 'fcntl-h' in C++ mode.
55443         * tests/test-fcntl-h-c++.cc: New file.
55444         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55445         (Depends-on): Add ansi-c++-opt.
55446         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55447         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55448         gl_MODULE_INDICATOR.
55450         Tests of module 'dirent' in C++ mode.
55451         * tests/test-dirent-c++.cc: New file.
55452         * modules/dirent-tests (Files): Add it and tests/signature.h.
55453         (Depends-on): Add ansi-c++-opt.
55454         (Makefile.am): Arrange to compile and run test-dirent-c++.
55455         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55456         gl_MODULE_INDICATOR.
55458         New module 'ansi-c++-opt'.
55459         * modules/ansi-c++-opt: New file.
55460         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55462         Document C++ namespace mode.
55463         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55465         wctype: Avoid #define replacements in C++ mode.
55466         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55467         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55468         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55469         In C++, define a namespaced alias symbol.
55470         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55471         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55472         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55473         rule.
55475         wchar: Avoid #define replacements in C++ mode.
55476         * lib/wchar.in.h: Include c++defs.h.
55477         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55478         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55479         symbol.
55480         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55481         * modules/wchar (Depends-on): Add c++defs.
55482         (Makefile.am): Update wchar.h rule.
55484         unistd: Avoid #define replacements in C++ mode.
55485         * lib/unistd.in.h: Include c++defs.h.
55486         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55487         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55488         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55489         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55490         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55491         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55492         symbol.
55493         (environ): Update.
55494         * modules/unistd (Depends-on): Add c++defs.
55495         (Makefile.am): Update unistd.h rule.
55497         time: Avoid #define replacements in C++ mode.
55498         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55499         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55500         define a namespaced alias symbol.
55501         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55502         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55503         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55504         * modules/time (Depends-on): Add c++defs, warn-on-use.
55505         (Makefile.am): Update time.h rule.
55506         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55507         * modules/nanosleep (configure.ac): Likewise.
55508         * modules/strptime (configure.ac): Likewise.
55509         * modules/timegm (configure.ac): Likewise.
55511         sys_time: Avoid #define replacements in C++ mode.
55512         * lib/sys_time.in.h: Include c++defs.h.
55513         (gettimeofday): In C++, define a namespaced alias symbol.
55514         * modules/sys_time (Depends-on): Add c++defs.
55515         (Makefile.am): Update sys/time.h rule.
55517         sys_stat: Avoid #define replacements in C++ mode.
55518         * lib/sys_stat.in.h: Include c++defs.h.
55519         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55520         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55521         namespaced alias symbol.
55522         In C++, define a namespaced alias symbol.
55523         * modules/sys_stat (Depends-on): Add c++defs.
55524         (Makefile.am): Update sys/stat.h rule.
55526         sys_socket: Avoid #define replacements in C++ mode.
55527         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55528         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55529         definitions also when the system has a <sys/socket.h>.
55530         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55531         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55532         In C++, define a namespaced alias symbol.
55533         * modules/sys_socket (Depends-on): Add c++defs.
55534         (Makefile.am): Update sys/socket.h rule.
55536         sys_select: Avoid #define replacements in C++ mode.
55537         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55538         definitions also when the system has a <sys/select.h>.
55539         (select): In C++, define a namespaced alias symbol.
55540         * modules/sys_select (Depends-on): Add c++defs.
55541         (Makefile.am): Update sys/select.h rule.
55543         sys_ioctl: Avoid #define replacements in C++ mode.
55544         * lib/sys_ioctl.in.h: Include c++defs.h.
55545         (ioctl): In C++, define a namespaced alias symbol.
55546         * modules/sys_ioctl (Depends-on): Add c++defs.
55547         (Makefile.am): Update sys/ioctl.h rule.
55549         string: Avoid #define replacements in C++ mode.
55550         * lib/string.in.h: Include c++defs.h.
55551         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55552         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55553         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55554         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55555         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55556         * modules/string (Depends-on): Add c++defs.
55557         (Makefile.am): Update string.h rule.
55559         stdlib: Avoid #define replacements in C++ mode.
55560         * lib/stdlib.in.h: Include c++defs.h.
55561         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55562         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55563         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55564         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55565         symbol.
55566         * modules/stdlib (Depends-on): Add c++defs.
55567         (Makefile.am): Update stdlib.h rule.
55569         stdio: Avoid #define replacements in C++ mode.
55570         * lib/stdio.in.h: Include c++defs.h.
55571         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55572         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55573         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55574         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55575         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55576         namespaced alias symbol.
55577         * modules/stdio (Depends-on): Add c++defs.
55578         (Makefile.am): Update stdio.h rule.
55580         spawn: Avoid #define replacements in C++ mode.
55581         * lib/spawn.in.h: Include c++defs.h.
55582         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55583         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55584         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55585         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55586         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55587         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55588         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55589         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55590         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55591         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55592         In C++, define a namespaced alias symbol.
55593         * modules/spawn (Depends-on): Add c++defs.
55594         (Makefile.am): Update spawn.h rule.
55596         signal: Avoid #define replacements in C++ mode.
55597         * lib/signal.in.h: Include c++defs.h.
55598         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55599         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55600         namespaced alias symbol.
55601         * modules/signal (Depends-on): Add c++defs.
55602         (Makefile.am): Update signal.h rule.
55604         search: Avoid #define replacements in C++ mode.
55605         * lib/search.in.h: Include c++defs.h.
55606         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55607         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55608         symbol.
55609         * modules/search (Depends-on): Add c++defs.
55610         (Makefile.am): Update search.h rule.
55612         math: Avoid #define replacements in C++ mode.
55613         * lib/math.in.h: Include c++defs.h.
55614         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55615         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55616         trunc, truncl): In C++, define a namespaced alias symbol.
55617         * modules/math (Depends-on): Add c++defs.
55618         (Makefile.am): Update math.h rule.
55620         locale: Avoid #define replacements in C++ mode.
55621         * lib/locale.in.h: Include c++defs.h.
55622         (duplocale): In C++, define a namespaced alias symbol.
55623         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55624         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55625         * modules/locale (Depends-on): Add c++defs.
55626         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55628         langinfo: Avoid #define replacements in C++ mode.
55629         * lib/langinfo.in.h: Include c++defs.h.
55630         (nl_langinfo): In C++, define a namespaced alias symbol.
55631         * modules/langinfo (Depends-on): Add c++defs.
55632         (Makefile.am): Update langinfo.h rule.
55634         iconv-h: Avoid #define replacements in C++ mode.
55635         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55636         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55637         symbol.
55638         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55639         whenever iconv is present.
55640         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55641         (Makefile.am): Update iconv.h rule.
55643         glob: Avoid #define replacements in C++ mode.
55644         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55645         (_gl_glob_errfunc_fn): New type.
55646         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55647         symbol.
55648         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55649         (Makefile.am): Update glob.h rule.
55651         fcntl-h: Avoid #define replacements in C++ mode.
55652         * lib/fcntl.in.h: Include c++defs.h.
55653         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55654         * modules/fcntl-h (Depends-on): Add c++defs.
55655         (Makefile.am): Update fcntl.h rule.
55657         dirent: Avoid #define replacements in C++ mode.
55658         * lib/dirent.in.h: Include c++defs.h.
55659         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55660         namespaced alias symbol.
55661         (dirfd): Update declaration.
55662         * modules/dirent (Depends-on): Add c++defs.
55663         (Makefile.am): Update dirent.h rule.
55665         ctype: Make it usable in C++ code.
55666         * lib/ctype.in.h: Include c++defs.h.
55667         (isblank): Declare as extern "C".
55668         * modules/ctype (Depends-on): Add c++defs.
55669         (Makefile.am): Update ctype.h rule.
55671         New module 'c++defs'.
55672         * modules/c++defs: New file.
55673         * build-aux/c++defs.h: New file.
55674         Reported by John W. Eaton <jwe@gnu.org>.
55676 2010-03-07  Bruno Haible  <bruno@clisp.org>
55678         logb: Provide missing declaration for Cygwin.
55679         * lib/math.in.h (logb): New declaration.
55680         * m4/logb.m4: New file.
55681         * modules/logb (Files): Add m4/logb.m4.
55682         (Depends-on): Add math.
55683         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55684         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55686         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55687         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55689 2010-03-07  Bruno Haible  <bruno@clisp.org>
55691         Fix test-cond link error.
55692         * tests/test-cond.c: Include <stdio.h>.
55694 2010-03-07  Bruno Haible  <bruno@clisp.org>
55696         Fix test-dirent-safer link error.
55697         * modules/dirent-safer-tests (Makefile.am): Define
55698         test_dirent_safer_LDADD.
55700 2010-03-07  Bruno Haible  <bruno@clisp.org>
55702         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55703         among default module list.
55705 2010-03-07  Bruno Haible  <bruno@clisp.org>
55707         Fix link error on platforms with GNU libiconv.
55708         * modules/unistr/u8-strcoll-tests (Makefile): Define
55709         test_u8_strcoll_LDADD.
55710         * modules/unistr/u16-strcoll-tests (Makefile): Define
55711         test_u16_strcoll_LDADD.
55712         * modules/unistr/u32-strcoll-tests (Makefile): Define
55713         test_u32_strcoll_LDADD.
55715 2010-03-07  Bruno Haible  <bruno@clisp.org>
55717         Use POSIX declarations for socket functions.
55718         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55719         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55720         rpl_sendto): Change declaration to match POSIX.
55721         * lib/connect.c (rpl_connect): Likewise.
55722         * lib/accept.c (rpl_accept): Likewise.
55723         * lib/bind.c (rpl_bind): Likewise.
55724         * lib/getpeername.c (rpl_getpeername): Likewise.
55725         * lib/getsockname.c (rpl_getsockname): Likewise.
55726         * lib/recv.c (rpl_recv): Likewise.
55727         * lib/send.c (rpl_send): Likewise.
55728         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55729         * lib/sendto.c (rpl_sendto): Likewise.
55731 2010-03-06  Bruno Haible  <bruno@clisp.org>
55733         Clarify access, euidaccess, faccessat.
55734         * doc/posix-functions/faccessat.texi: Mention security problem under
55735         "Other problems", not "Portability problems".
55736         * doc/posix-functions/access.texi: Likewise. Mention a related security
55737         problem.
55738         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55739         * lib/euidaccess.c: Add comments about platforms.
55740         * lib/unistd.in.h (access, euidaccess): Add warnings.
55742 2010-03-07  Bruno Haible  <bruno@clisp.org>
55744         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55745         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55746         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55747         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55748         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55749         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55750         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55751         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55752         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55753         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55754         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55755         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55756         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55757         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55758         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55759         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55760         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55761         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55762         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55763         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55764         Likewise.
55765         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55766         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55767         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55768         Likewise.
55769         * tests/test-spawn.c (main): Make it work when
55770         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55772 2010-03-07  Bruno Haible  <bruno@clisp.org>
55774         Fix incorrect Makefile.am generation in German locale.
55775         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55776         Execute sed command with character range in C locale.
55778 2010-03-06  Bruno Haible  <bruno@clisp.org>
55780         Tests for module 'iconv-h'.
55781         * modules/iconv-h-tests: New file.
55782         * tests/test-iconv-h.c: New file.
55784         New module 'iconv-h'.
55785         * modules/iconv-h: New file.
55786         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55787         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55788         (configure.ac): Remove gl_ICONV_H.
55789         (Makefile.am): Remove rule for iconv.h.
55791 2010-03-06  Bruno Haible  <bruno@clisp.org>
55793         More consistent naming of *.m4 files.
55794         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55795         * modules/wctype (Files): Update.
55797         More consistent naming of *.m4 files.
55798         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55799         * modules/wchar (Files): Update.
55801 2010-03-06  Jim Meyering  <meyering@redhat.com>
55803         euidaccess: relax license to LGPLv2+
55804         * modules/euidaccess (License): Relax to LGPLv2+.
55806 2010-03-06  Bruno Haible  <bruno@clisp.org>
55808         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55809         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55810         (Makefile.am): Augment lib_SOURCES instead.
55812 2010-03-04  Jim Meyering  <meyering@redhat.com>
55814         utime: remove obsolete module
55815         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55816         unnecessary for years, and has been marked as obsolete for 10 months.
55817         * modules/utime: Remove file.
55818         * lib/utime.c: Remove file.
55819         * m4/utime.m4: Remove file.
55820         * m4/utimes-null.m4: Remove file.
55821         * doc/posix-functions/utime.texi (utime): Remove reference to
55822         the module.  Move the sole "fixed by gnulib" item into the
55823         "problems not fixed by Gnulib" list.
55824         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55826 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55828         * modules/exit (License): Relax license to LGPLv2+.
55829         (Status): Mark as obsolete.
55830         * NEWS: Mention deprecated 'exit' module.
55831         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55832         of now obsolete 'exit'.
55834 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55836         fts-lgpl: remove unused module
55837         * modules/fts-lgpl: Remove.
55838         * MODULES.html.sh (func_all_modules): Adjust.
55839         * check-module (find_included_lib_files): Adjust.
55840         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55842 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55844         copy-acl: enhance Solaris ACL error handling
55845         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55846         * lib/set-mode-acl.c (qset_acl): Likewise.
55848 2010-03-02  Bruno Haible  <bruno@clisp.org>
55850         spawn: Don't override the system defined values on FreeBSD 8.
55851         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55852         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55853         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55854         if HAVE_POSIX_SPAWN is 1.
55855         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55857 2010-03-01  Bruno Haible  <bruno@clisp.org>
55859         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55860         regarding Automake.
55862 2010-02-25  Bruno Haible  <bruno@clisp.org>
55864         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55865         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55866         setting, not afterwards.
55867         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55869 2010-02-24  Eric Blake  <eblake@redhat.com>
55871         bootstrap, git-version-gen: use timestamp
55872         * build-aux/git-version-gen (scriptversion): Force UTC.
55873         * build-aux/bootstrap (scriptversion): New variable.
55875         bootstrap: allow older git
55876         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55877         older than 1.6.4.  Requested by the libvirt project.
55879 2010-02-23  Eric Blake  <eblake@redhat.com>
55881         warn-on-use: work with old autoconf
55882         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55883         AS_VAR semantics of autoconf 2.60.
55884         Reported by Bruno Haible.
55886         bootstrap: improve some comments
55887         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55888         clarification comments.
55890         gettimeofday: provide correct function
55891         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55892         when replacement is declared, otherwise provide gettimeofday.
55893         Reported by Michael Goffioul.
55895 2010-02-23  Jim Meyering  <meyering@redhat.com>
55897         lib-ignore: relax license to "unlimited", not LGPLv2+
55898         * modules/lib-ignore (License): Relax to "unlimited".
55900 2010-02-23  Jim Meyering  <meyering@redhat.com>
55902         lib-ignore: relax license to LGPLv2+
55903         * modules/lib-ignore (License): Relax to LGPLv2+.
55905 2010-02-22  Eric Blake  <eblake@redhat.com>
55907         lseek: avoid bash 3.2 broken pipe bug
55908         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55909         warning from bash 3.2.
55910         Reported by Ben Pfaff, with analysis from Bruno Haible.
55912         bootstrap: support non-FSF copyright holder
55913         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55914         bootstrap.conf override of COPYRIGHT_HOLDER.
55915         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55917         bootstrap: interoperate with gettext 0.14.1
55918         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55920         bootstrap: allow for alternate submodule location
55921         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55922         hardcoding submodule location.
55923         (gnulib_mk): Allow direct use of Makefile.am.
55925         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55926         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55927         rather than reconfiguring where the submodule points.
55929         gettimeofday: restore support for platforms that lack function
55930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55931         replacement if function is missing.
55932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55933         * modules/sys_time (Makefile.am): Substitute it.
55934         * lib/sys_time.in.h (gettimeofday): Check it.
55935         Reported by Michael Goffioul.
55937 2010-02-21  Bruno Haible  <bruno@clisp.org>
55939         * lib/stdio.in.h (obstack_printf): Fix typo.
55941 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55943         vc-list-files: use bzr ls's -R option
55944         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55945         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55947 2010-02-21  Jim Meyering  <meyering@redhat.com>
55949         init.sh: fix EXEEXT shims to work also for names like test-prog
55950         * tests/init.sh: Re-exec a better shell, when needed.
55951         If the current shell lacks support for posix $(...), an init.sh-using
55952         test will now try to find a shell that supports that.  If EXEEXT is
55953         nonempty, we also require support for hyphen-in-alias-name and shell
55954         substitutions like ${var#glob}.  Failure to find such a shell results
55955         in a skipped test.
55957 2010-02-21  Bruno Haible  <bruno@clisp.org>
55959         Really work around "broken pipe" error message from bash 3.2.
55960         * gnulib-tool (func_reset_sigpipe): Remove function.
55961         (echo): In bash 3.2, define to a function that uses printf.
55962         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55964 2010-02-20  Bruno Haible  <bruno@clisp.org>
55966         Restore support for automake 1.9.6 with autoconf 2.61.
55967         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55968         Reported by James Youngman <jay@gnu.org>.
55970 2010-02-20  Bruno Haible  <bruno@clisp.org>
55972         Improve *printf warning condition.
55973         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55974         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55975         and the function is overridden due to SIGPIPE emulation.
55977 2010-02-20  Bruno Haible  <bruno@clisp.org>
55979         * lib/stdio.in.h: Tweak comments.
55981 2010-02-19  Bruno Haible  <bruno@clisp.org>
55983         Make it easier to find modules. New gnulib-tool option '--find'.
55984         * gnulib-tool: New option --find.
55985         (func_usage): Document it.
55986         (func_sanitize_modulelist): New function, extracted from
55987         func_all_modules.
55988         (func_all_modules): Invoke it.
55989         * doc/gnulib-tool.texi (Which modules?): New node.
55991 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55993         * lib/sys_select.in.h: Provide select replacement even if
55994         sys/select.h exists on a system, for Interix.
55996 2010-02-18  Jim Meyering  <meyering@redhat.com>
55998         init.sh: don't use $(...) just yet
55999         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
56000         to accommodate e.g., Solaris' /bin/sh.
56002 2010-02-17  Bruno Haible  <bruno@clisp.org>
56004         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
56005         Reported by Ludovic Courtès <ludo@gnu.org>.
56007 2010-02-16  Simon Josefsson  <simon@josefsson.org>
56009         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
56010         linking with -lintl.
56012 2010-02-17  Simon Josefsson  <simon@josefsson.org>
56014         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
56015         if not provided by the system's netdb.h.  Reported by
56016         ludo@gnu.org (Ludovic Courtès).
56018 2010-02-15  Jim Meyering  <meyering@redhat.com>
56020         init.sh: improve portability and efficiency
56021         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
56022         "dummy" in a for loop.
56023         Use '!', not '^' to select the complement of a character set used
56024         in a "case" statement.
56025         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
56026         Suggestions from Eric Blake.
56028         init.sh: automatically accommodate programs with the .exe suffix
56029         Automatically arrange for an invocation of "prog" to execute the
56030         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
56031         may use the simpler "prog", yet still work when built on a system
56032         that requires specifying the added suffix.
56033         Do this by constructing a function named "prog" that invokes
56034         "prog.exe" for each .exe file in selected directories.
56035         * tests/init.sh (find_exe_basenames_): New function.
56036         (create_exe_shim_functions_): New function.
56037         (path_prepend_): Use it.
56039         maint.mk: mark syntax-check sc_*.m rules as .PHONY
56040         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
56041         "make -t syntax-check" doesn't create a ton of sc_*.m files.
56043 2010-02-14  Jim Meyering  <meyering@redhat.com>
56045         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
56046         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
56047         (sc_prohibit_hash_pjw_without_use): New rule.
56049         maint.mk: allow the default upload destination dir to be overridden
56050         * top/maint.mk (upload_dest_dir_): Define with a default that
56051         preserves the status quo.
56052         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
56053         Reported by Peter Simons.
56055         maint.mk: prohibit inclusion of "hash.h" without_use
56056         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
56058 2010-02-10  Jim Meyering  <meyering@redhat.com>
56060         maint.mk: prohibit inclusion of "ignore-value.h" without_use
56061         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
56063 2010-02-09  Eric Blake  <ebb9@byu.net>
56064         and Bruno Haible  <bruno@clisp.org>
56066         obstack-printf-posix: ensure declaration
56067         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
56068         extracted from gl_FUNC_OBSTACK_PRINTF.
56069         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
56070         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56071         Likewise.
56072         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
56073         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
56074         0.
56076 2010-02-08  Bruno Haible  <bruno@clisp.org>
56078         gnulib-tool: Fix typo in 2010-02-07 commit.
56079         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
56080         Reported by Eric Blake.
56082 2010-02-07  Bruno Haible  <bruno@clisp.org>
56084         gnulib-tool: Fix up caching patches.
56085         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
56086         option --no-cache. Use associative arrays when supported by the shell.
56087         (sed_comments): New variable.
56088         (modcache): Renamed from do_cache.
56089         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
56090         abbreviate unnecessarily.
56091         (have_associative): New variable.
56092         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
56093         way also for ksh and zsh.
56094         (func_init_sed_convert_to_cache_statements): New function, extracted
56095         from func_cache_lookup_module. Add support for associative arrays.
56096         Don't set the c_MODULE_cached variable here. Ignore all lines before
56097         the first field header. Remove only the final newline, not all trailing
56098         newlines. Support empty fields correctly. Limit the use of 'eval' to
56099         assignments.
56100         (func_get_description, func_get_status, func_get_notice,
56101         func_get_applicability, func_get_filelist, func_get_dependencies,
56102         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
56103         func_get_automake_snippet, func_get_include_directive,
56104         func_get_link_directive, func_get_license, func_get_maintainer):
56105         Update documentation. List the unoptimized code first. Add support for
56106         associative arrays. Limit the use of 'eval' to assignments.
56107         (func_get_applicability): Undo stylistic pessimisations.
56108         (func_get_automake_snippet, func_get_include_directive): Reduce code
56109         duplication.
56110         (func_modules_transitive_closure, func_modules_add_dummy,
56111         func_modules_notice, func_modules_to_filelist, func_add_file,
56112         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56113         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56114         func_create_testdir, func_create_megatestdir): Update documentation.
56116 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56118         * gnulib-tool (func_cache_lookup_module): Store the module name
56119         belonging to the cache variable; error out if two different
56120         module names map to the same cache variable name.
56122 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56124         gnulib-tool: Make caching optional.
56125         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56126         Update matching short versions of --no-changelog.
56127         (func_usage): Update.
56128         (sed_extract_cache_prog): Renamed from ...
56129         (sed_extract_prog): ... this; revert to old extraction script.
56130         (func_get_description, func_get_status)
56131         (func_get_notice, func_get_applicability, func_get_filelist)
56132         (func_get_dependencies, func_get_autoconf_early_snippet)
56133         (func_get_autoconf_snippet, func_get_automake_snippet)
56134         (func_get_include_directive, func_get_link_directive)
56135         (func_get_license, func_get_maintainer): If $do_cache is false,
56136         use old, non-caching extraction scripts.
56137         Suggestion by Bruno Haible.
56139 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56141         gnulib-tool: cache module metainformation.
56142         * gnulib-tool (sed_extract_prog): Match newline before each
56143         header, and rewrite header to a shell variable suffix.
56144         (func_cache_var, func_cache_lookup_module): New functions,
56145         to turn a module name into a cache variable prefix, and to
56146         look up and cache module metainformation.
56147         (func_get_description, func_get_status)
56148         (func_get_notice, func_get_applicability, func_get_filelist)
56149         (func_get_dependencies, func_get_autoconf_early_snippet)
56150         (func_get_autoconf_snippet, func_get_automake_snippet)
56151         (func_get_include_directive, func_get_link_directive)
56152         (func_get_license, func_get_maintainer): Use
56153         func_cache_lookup_module.
56155 2010-02-07  Bruno Haible  <bruno@clisp.org>
56157         fnctl: Fix missing dependency.
56158         * modules/fcntl (Depends-on): Add getdtablesize.
56159         Reported by John W. Eaton <jwe@gnu.org>.
56161 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56163         Argp: fix recognition of short alias options.
56165         * lib/argp-parse.c (convert_options): Fix improper use of
56166         `|' between character values.
56167         * tests/test-argp.c (group1_option): New alias option
56168         --read (-r).
56169         (group1_parser): Special handling for 'r'.
56170         (test15): New test case.
56171         (test_fun): Add test15.
56172         * tests/test-argp-2.sh: Update expected --help and --usage
56173         outputs.
56175 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56177         * tests/test-argp.c: Fix indentation.
56179 2010-02-04  Eric Blake  <ebb9@byu.net>
56181         gettimeofday: expose type of second argument
56182         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56183         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56184         * tests/test-gettimeofday.c: Use it to silence warning.
56185         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56186         the issue.
56188 2010-02-03  Jim Meyering  <meyering@redhat.com>
56190         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56191         * lib/regcomp.c (TYPE_SIGNED): Define.
56192         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56194         regcomp.c: avoid a new -Wshadow warning
56195         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56197 2010-02-01  Jim Meyering  <meyering@redhat.com>
56199         removing useless parentheses in cpp #define directives
56200         For motivation, see commit c0221df4, "define STREQ(a,b)
56201         consistently, removing useless parentheses"
56202         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56203         * lib/mountlist.c (MNT_IGNORE): Likewise.
56204         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56206 2010-02-01  Eric Blake  <ebb9@byu.net>
56208         sys_time: use link-warning
56209         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56210         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56211         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56212         * modules/sys_time (Depends-on): Add warn-on-use.
56213         (Makefile.am): Always build replacement.
56214         (configure.ac): Update substitutions.
56215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56216         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56217         bother with SYS_TIME_H.
56218         * modules/gettimeofday (configure.ac): Declare indicator.
56219         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56220         in use.
56222         closein-tests: silence compiler warning
56223         * tests/test-closein.c (main): Ignore fread result.
56224         * modules/closein-tests (Depends-on): Add ignore-value.
56226         tests: silence warning about system return
56227         * tests/test-areadlink-with-size.c (main): Ignore system result.
56228         * tests/test-areadlink.c (main): Likewise.
56229         * tests/test-areadlinkat-with-size.c (main): Likewise.
56230         * tests/test-areadlinkat.c (main): Likewise.
56231         * tests/test-canonicalize-lgpl.c (main): Likewise.
56232         * tests/test-canonicalize.c (main): Likewise.
56233         * tests/test-chown.c (main): Likewise.
56234         * tests/test-fchownat.c (main): Likewise.
56235         * tests/test-fdutimensat.c (main): Likewise.
56236         * tests/test-fstatat.c (main): Likewise.
56237         * tests/test-futimens.c (main): Likewise.
56238         * tests/test-lchown.c (main): Likewise.
56239         * tests/test-link.c (main): Likewise.
56240         * tests/test-linkat.c (main): Likewise.
56241         * tests/test-lstat.c (main): Likewise.
56242         * tests/test-mkdir.c (main): Likewise.
56243         * tests/test-mkdirat.c (main): Likewise.
56244         * tests/test-mkfifo.c (main): Likewise.
56245         * tests/test-mkfifoat.c (main): Likewise.
56246         * tests/test-mknod.c (main): Likewise.
56247         * tests/test-readlink.c (main): Likewise.
56248         * tests/test-remove.c (main): Likewise.
56249         * tests/test-rename.c (main): Likewise.
56250         * tests/test-renameat.c (main): Likewise.
56251         * tests/test-rmdir.c (main): Likewise.
56252         * tests/test-symlink.c (main): Likewise.
56253         * tests/test-symlinkat.c (main): Likewise.
56254         * tests/test-unlink.c (main): Likewise.
56255         * tests/test-unlinkat.c (main): Likewise.
56256         * tests/test-utimens.c (main): Likewise.
56257         * tests/test-utimensat.c (main): Likewise.
56258         * modules/areadlink-tests (Depends-on): Add ignore-value.
56259         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56260         * modules/areadlinkat-tests (Depends-on): Likewise.
56261         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56262         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56263         * modules/canonicalize-tests (Depends-on): Likewise.
56264         * modules/chown-tests (Depends-on): Likewise.
56265         * modules/fdutimensat-tests (Depends-on): Likewise.
56266         * modules/futimens-tests (Depends-on): Likewise.
56267         * modules/lchown-tests (Depends-on): Likewise.
56268         * modules/link-tests (Depends-on): Likewise.
56269         * modules/linkat-tests (Depends-on): Likewise.
56270         * modules/lstat-tests (Depends-on): Likewise.
56271         * modules/mkdir-tests (Depends-on): Likewise.
56272         * modules/mkfifo-tests (Depends-on): Likewise.
56273         * modules/mkfifoat-tests (Depends-on): Likewise.
56274         * modules/mknod-tests (Depends-on): Likewise.
56275         * modules/openat-tests (Depends-on): Likewise.
56276         * modules/readlink-tests (Depends-on): Likewise.
56277         * modules/remove-tests (Depends-on): Likewise.
56278         * modules/rename-tests (Depends-on): Likewise.
56279         * modules/renameat-tests (Depends-on): Likewise.
56280         * modules/rmdir-tests (Depends-on): Likewise.
56281         * modules/symlink-tests (Depends-on): Likewise.
56282         * modules/symlinkat-tests (Depends-on): Likewise.
56283         * modules/unlink-tests (Depends-on): Likewise.
56284         * modules/utimens-tests (Depends-on): Likewise.
56285         * modules/utimensat-tests (Depends-on): Likewise.
56287 2010-01-31  Bruno Haible  <bruno@clisp.org>
56289         Perform the same test for many <math.h> functions.
56290         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56291         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56292         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56293         of gl_MATHFUNC.
56294         * modules/acos (configure.ac): Likewise.
56295         * modules/asin (configure.ac): Likewise.
56296         * modules/atan (configure.ac): Likewise.
56297         * modules/atan2 (configure.ac): Likewise.
56298         * modules/cbrt (configure.ac): Likewise.
56299         * modules/copysign (configure.ac): Likewise.
56300         * modules/cos (configure.ac): Likewise.
56301         * modules/cosh (configure.ac): Likewise.
56302         * modules/erf (configure.ac): Likewise.
56303         * modules/erfc (configure.ac): Likewise.
56304         * modules/exp (configure.ac): Likewise.
56305         * modules/fmod (configure.ac): Likewise.
56306         * modules/hypot (configure.ac): Likewise.
56307         * modules/j0 (configure.ac): Likewise.
56308         * modules/j1 (configure.ac): Likewise.
56309         * modules/jn (configure.ac): Likewise.
56310         * modules/lgamma (configure.ac): Likewise.
56311         * modules/log (configure.ac): Likewise.
56312         * modules/log10 (configure.ac): Likewise.
56313         * modules/log1p (configure.ac): Likewise.
56314         * modules/pow (configure.ac): Likewise.
56315         * modules/remainder (configure.ac): Likewise.
56316         * modules/sin (configure.ac): Likewise.
56317         * modules/sinh (configure.ac): Likewise.
56318         * modules/tan (configure.ac): Likewise.
56319         * modules/tanh (configure.ac): Likewise.
56320         * modules/y0 (configure.ac): Likewise.
56321         * modules/y1 (configure.ac): Likewise.
56322         * modules/yn (configure.ac): Likewise.
56323         Suggested by Paolo Bonzini.
56325 2010-01-31  Bruno Haible  <bruno@clisp.org>
56327         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56329 2010-01-31  Bruno Haible  <bruno@clisp.org>
56331         Work around getdelim() bug on FreeBSD 8.0.
56332         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56333         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56334         not work.
56335         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56336         is 1.
56337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56338         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56339         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56340         a non-zero size.
56341         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56343 2010-01-31  Bruno Haible  <bruno@clisp.org>
56345         Work around getline() bug on FreeBSD 8.0.
56346         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56347         and a non-zero size.
56348         * tests/test-getline.c (main): Likewise.
56349         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56350         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56352 2010-01-28  Eric Blake  <ebb9@byu.net>
56354         regex: fix build failure
56355         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56356         platforms.
56358 2010-01-28  Jim Meyering  <meyering@redhat.com>
56360         regex: do not ignore memory allocation failure
56361         * lib/regex_internal.c (create_cd_newstate): Detect
56362         re_node_set_init_copy failure.   Extracted from glibc commit
56363         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56365         regex: sync more white-space changes from libc
56366         * lib/regex_internal.c: White-space only changes.
56367         * lib/regexec.c: Likewise.
56369         regex: add many uses of __attribute_warn_unused_result__
56370         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56371         * lib/regexec.c: Likewise.
56372         Extracted from a messy glibc commit.
56374         regcomp.c: spelling and merge-artifact from glibc
56375         * lib/regcomp.c: Merge remainder of glibc's
56376         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56378         regcomp.c: sync white-space changes from glibc
56379         * lib/regcomp.c: Merge to accommodate white space
56380         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56382         regcomp.c: do not ignore internal return values
56383         * lib/regcomp.c: Do not ignore internal return values.
56384         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56385         but without its white-space changes and spelling fixes.
56387         regex_internal.h: define __attribute_warn_unused_result__
56388         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56390         maint: add a syntax-check rule to check for vulnerable Makefile.in
56391         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56393 2010-01-27  Jim Meyering  <meyering@redhat.com>
56395         ncftpput-ftp: clean up spaces
56396         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56397         Remove trailing blanks.
56399 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56401         * build-aux/git-version-gen: Fix copyright statement.
56402         * build-aux/gnupload: Likewise.
56403         * tests/test-arcfour.c: Likewise.
56404         * tests/test-arctwo.c: Likewise.
56405         * tests/test-count-one-bits.c: Likewise.
56406         * tests/test-crc.c: Likewise.
56407         * tests/test-des.c: Likewise.
56408         * tests/test-gc-arcfour.c: Likewise.
56409         * tests/test-gc-arctwo.c: Likewise.
56410         * tests/test-gc-des.c: Likewise.
56411         * tests/test-gc-hmac-md5.c: Likewise.
56412         * tests/test-gc-hmac-sha1.c: Likewise.
56413         * tests/test-gc-md2.c: Likewise.
56414         * tests/test-gc-md4.c: Likewise.
56415         * tests/test-gc-md5.c: Likewise.
56416         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56417         * tests/test-gc-rijndael.c: Likewise.
56418         * tests/test-gc-sha1.c: Likewise.
56419         * tests/test-gc.c: Likewise.
56420         * tests/test-gethostname.c: Likewise.
56421         * tests/test-gettimeofday.c: Likewise.
56422         * tests/test-hash.c: Likewise.
56423         * tests/test-hmac-md5.c: Likewise.
56424         * tests/test-hmac-sha1.c: Likewise.
56425         * tests/test-md2.c: Likewise.
56426         * tests/test-md4.c: Likewise.
56427         * tests/test-md5.c: Likewise.
56428         * tests/test-memchr.c: Likewise.
56429         * tests/test-memchr2.c: Likewise.
56430         * tests/test-memcmp.c: Likewise.
56431         * tests/test-memmem.c: Likewise.
56432         * tests/test-memrchr.c: Likewise.
56433         * tests/test-rawmemchr.c: Likewise.
56434         * tests/test-read-file.c: Likewise.
56435         * tests/test-rijndael.c: Likewise.
56436         * tests/test-sockets.c: Likewise.
56437         * tests/test-strchrnul.c: Likewise.
56438         * tests/test-strstr.c: Likewise.
56439         * tests/test-strtod.c: Likewise.
56440         * build-aux/ncftpput-ftp: Likewise.
56442 2010-01-26  Eric Blake  <ebb9@byu.net>
56444         ignore-value: update recommended header name
56445         * modules/ignore-value (Include): Only use <> for headers that
56446         exist in glibc.
56448 2010-01-26  Jim Meyering  <meyering@redhat.com>
56450         test-userspec.c: avoid compiler warnings
56451         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56452         and "initialization discards qualifiers..." warnings.
56453         Put the first "uid" in its own scope, and make char* members "const".
56455 2010-01-25  Bruno Haible  <bruno@clisp.org>
56457         gnulib-tool: Make warning diagnostics consistent.
56458         * gnulib-tool (func_warning): New function.
56459         Use it everywhere where gnulib-tool produces output to stderr and it is
56460         not a fatal error.
56462 2010-01-25  Bruno Haible  <bruno@clisp.org>
56464         Fix test dependencies.
56465         * modules/xstrtol-tests (Depends-on): Add inttypes.
56466         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56468 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56470         syntax-check: detect incorrect boolean macro values in config.h
56471         * modules/maintainer-makefile (configure.ac): Parameterize the location
56472         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56473         The logic is from Eric Blake and the location indicated by Jim Meyering.
56474         Note the more natural CONFIG_HEADER name is prohibited by automake
56475         for backwards compatibility reasons.
56476         * top/maint.mk (sc_Wundef_boolean): New rule.
56478 2010-01-25  Jim Meyering  <meyering@redhat.com>
56480         bootstrap: detect MacOS 10.6's shasum, too
56481         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56482         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56484 2010-01-23  Jim Meyering  <meyering@redhat.com>
56486         xstrtoll: new module
56487         * modules/xstrtoll: New file.
56488         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56489         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56490         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56491         ./configure fails if you use this module and lack "long long".
56492         * modules/xstrtoll-tests: New module.
56493         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56494         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56495         new init.sh-based test framework.
56497 2010-01-24  Bruno Haible  <bruno@clisp.org>
56499         Tests for module 'yn'.
56500         * modules/yn-tests: New file.
56501         * tests/test-yn.c: New file.
56503         Tests for module 'y1'.
56504         * modules/y1-tests: New file.
56505         * tests/test-y1.c: New file.
56507         Tests for module 'y0'.
56508         * modules/y0-tests: New file.
56509         * tests/test-y0.c: New file.
56511         Tests for module 'tanh'.
56512         * modules/tanh-tests: New file.
56513         * tests/test-tanh.c: New file.
56515         Tests for module 'tan'.
56516         * modules/tan-tests: New file.
56517         * tests/test-tan.c: New file.
56519         Tests for module 'sqrt'.
56520         * modules/sqrt-tests: New file.
56521         * tests/test-sqrt.c: New file.
56523         Tests for module 'sinh'.
56524         * modules/sinh-tests: New file.
56525         * tests/test-sinh.c: New file.
56527         Tests for module 'sin'.
56528         * modules/sin-tests: New file.
56529         * tests/test-sin.c: New file.
56531         Tests for module 'rint'.
56532         * modules/rint-tests: New file.
56533         * tests/test-rint.c: New file.
56535         Tests for module 'remainder'.
56536         * modules/remainder-tests: New file.
56537         * tests/test-remainder.c: New file.
56539         Tests for module 'pow'.
56540         * modules/pow-tests: New file.
56541         * tests/test-pow.c: New file.
56543         Tests for module 'nextafter'.
56544         * modules/nextafter-tests: New file.
56545         * tests/test-nextafter.c: New file.
56547         Tests for module 'modf'.
56548         * modules/modf-tests: New file.
56549         * tests/test-modf.c: New file.
56551         Tests for module 'logb'.
56552         * modules/logb-tests: New file.
56553         * tests/test-logb.c: New file.
56555         Tests for module 'log1p'.
56556         * modules/log1p-tests: New file.
56557         * tests/test-log1p.c: New file.
56559         Tests for module 'log10'.
56560         * modules/log10-tests: New file.
56561         * tests/test-log10.c: New file.
56563         Tests for module 'log'.
56564         * modules/log-tests: New file.
56565         * tests/test-log.c: New file.
56567         Tests for module 'lgamma'.
56568         * modules/lgamma-tests: New file.
56569         * tests/test-lgamma.c: New file.
56571         Tests for module 'ldexp'.
56572         * modules/ldexp-tests: New file.
56573         * tests/test-ldexp.c: New file.
56575         Tests for module 'jn'.
56576         * modules/jn-tests: New file.
56577         * tests/test-jn.c: New file.
56579         Tests for module 'j1'.
56580         * modules/j1-tests: New file.
56581         * tests/test-j1.c: New file.
56583         Tests for module 'j0'.
56584         * modules/j0-tests: New file.
56585         * tests/test-j0.c: New file.
56587         Tests for module 'hypot'.
56588         * modules/hypot-tests: New file.
56589         * tests/test-hypot.c: New file.
56591         Tests for module 'fmod'.
56592         * modules/fmod-tests: New file.
56593         * tests/test-fmod.c: New file.
56595         Tests for module 'fabs'.
56596         * modules/fabs-tests: New file.
56597         * tests/test-fabs.c: New file.
56599         Tests for module 'exp'.
56600         * modules/exp-tests: New file.
56601         * tests/test-exp.c: New file.
56603         Tests for module 'erfc'.
56604         * modules/erfc-tests: New file.
56605         * tests/test-erfc.c: New file.
56607         Tests for module 'erf'.
56608         * modules/erf-tests: New file.
56609         * tests/test-erf.c: New file.
56611         Tests for module 'cosh'.
56612         * modules/cosh-tests: New file.
56613         * tests/test-cosh.c: New file.
56615         Tests for module 'cos'.
56616         * modules/cos-tests: New file.
56617         * tests/test-cos.c: New file.
56619         Tests for module 'copysign'.
56620         * modules/copysign-tests: New file.
56621         * tests/test-copysign.c: New file.
56623         Tests for module 'cbrt'.
56624         * modules/cbrt-tests: New file.
56625         * tests/test-cbrt.c: New file.
56627         Tests for module 'atan2'.
56628         * modules/atan2-tests: New file.
56629         * tests/test-atan2.c: New file.
56631         Tests for module 'atan'.
56632         * modules/atan-tests: New file.
56633         * tests/test-atan.c: New file.
56635         Tests for module 'asin'.
56636         * modules/asin-tests: New file.
56637         * tests/test-asin.c: New file.
56639         Tests for module 'acos'.
56640         * modules/acos-tests: New file.
56641         * tests/test-acos.c: New file.
56643 2010-01-24  Bruno Haible  <bruno@clisp.org>
56645         Fix tests for common <math.h> functions.
56646         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56647         code snippet that references the function pointer, rather than merely
56648         calling the function. Substitute the FUNC_LIBM variable.
56649         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56650         * modules/acos (configure.ac): Likewise.
56651         * modules/asin (configure.ac): Likewise.
56652         * modules/atan (configure.ac): Likewise.
56653         * modules/atan2 (configure.ac): Likewise.
56654         * modules/cbrt (configure.ac): Likewise.
56655         * modules/copysign (configure.ac): Likewise.
56656         * modules/cos (configure.ac): Likewise.
56657         * modules/cosh (configure.ac): Likewise.
56658         * modules/erf (configure.ac): Likewise.
56659         * modules/erfc (configure.ac): Likewise.
56660         * modules/exp (configure.ac): Likewise.
56661         * modules/fabs (configure.ac): Likewise.
56662         * modules/fmod (configure.ac): Likewise.
56663         * modules/hypot (configure.ac): Likewise.
56664         * modules/j0 (configure.ac): Likewise.
56665         * modules/j1 (configure.ac): Likewise.
56666         * modules/jn (configure.ac): Likewise.
56667         * modules/ldexp (configure.ac): Likewise.
56668         * modules/lgamma (configure.ac): Likewise.
56669         * modules/log (configure.ac): Likewise.
56670         * modules/log10 (configure.ac): Likewise.
56671         * modules/log1p (configure.ac): Likewise.
56672         * modules/logb (configure.ac): Likewise.
56673         * modules/modf (configure.ac): Likewise.
56674         * modules/nextafter (configure.ac): Likewise.
56675         * modules/pow (configure.ac): Likewise.
56676         * modules/remainder (configure.ac): Likewise.
56677         * modules/rint (configure.ac): Likewise.
56678         * modules/sin (configure.ac): Likewise.
56679         * modules/sinh (configure.ac): Likewise.
56680         * modules/tan (configure.ac): Likewise.
56681         * modules/tanh (configure.ac): Likewise.
56682         * modules/y0 (configure.ac): Likewise.
56683         * modules/y1 (configure.ac): Likewise.
56684         * modules/yn (configure.ac): Likewise.
56686 2010-01-24  Bruno Haible  <bruno@clisp.org>
56688         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56689         * tests/test-acosl.c (x): New variable.
56690         (main): Store argument in x and fetch it from x.
56691         * tests/test-asinl.c (x): New variable.
56692         (main): Store argument in x and fetch it from x.
56693         * tests/test-atanl.c (x): New variable.
56694         (main): Store argument in x and fetch it from x.
56695         * tests/test-cosl.c (x): New variable.
56696         (main): Store argument in x and fetch it from x.
56697         * tests/test-expl.c (x): New variable.
56698         (main): Store argument in x and fetch it from x.
56699         * tests/test-logl.c (x): New variable.
56700         (main): Store argument in x and fetch it from x.
56701         * tests/test-sinl.c (x): New variable.
56702         (main): Store argument in x and fetch it from x.
56703         * tests/test-sqrtl.c (x): New variable.
56704         (main): Store argument in x and fetch it from x.
56705         * tests/test-tanl.c (x): New variable.
56706         (main): Store argument in x and fetch it from x.
56708 2010-01-24  Bruno Haible  <bruno@clisp.org>
56710         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56711         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56712         assignments to the initial TESTS_ENVIRONMENT.
56713         * doc/gnulib.texi (Unit test modules): Document it.
56714         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56715         TESTS_ENVIRONMENT.
56716         * modules/btowc-tests (Makefile.am): Likewise.
56717         * modules/c-stack-tests (Makefile.am): Likewise.
56718         * modules/c-strcase-tests (Makefile.am): Likewise.
56719         * modules/copy-file-tests (Makefile.am): Likewise.
56720         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56721         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56722         * modules/mbrtowc-tests (Makefile.am): Likewise.
56723         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56724         * modules/mbscasestr-tests (Makefile.am): Likewise.
56725         * modules/mbschr-tests (Makefile.am): Likewise.
56726         * modules/mbscspn-tests (Makefile.am): Likewise.
56727         * modules/mbsinit-tests (Makefile.am): Likewise.
56728         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56729         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56730         * modules/mbspbrk-tests (Makefile.am): Likewise.
56731         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56732         * modules/mbsrchr-tests (Makefile.am): Likewise.
56733         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56734         * modules/mbsspn-tests (Makefile.am): Likewise.
56735         * modules/mbsstr-tests (Makefile.am): Likewise.
56736         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56737         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56738         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56739         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56740         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56741         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56742         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56743         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56744         * modules/wcrtomb-tests (Makefile.am): Likewise.
56745         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56746         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56747         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56748         assignments from TESTS_ENVIRONMENT.
56749         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56750         augmentation.
56751         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56752         * modules/atexit-tests (Makefile.am): Likewise.
56753         * modules/binary-io-tests (Makefile.am): Likewise.
56754         * modules/closein-tests (Makefile.am): Likewise.
56755         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56756         * modules/exclude-tests (Makefile.am): Likewise.
56757         * modules/fflush-tests (Makefile.am): Likewise.
56758         * modules/fpending-tests (Makefile.am): Likewise.
56759         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56760         * modules/freadahead-tests (Makefile.am): Likewise.
56761         * modules/freadptr-tests (Makefile.am): Likewise.
56762         * modules/freadseek-tests (Makefile.am): Likewise.
56763         * modules/fseek-tests (Makefile.am): Likewise.
56764         * modules/fseeko-tests (Makefile.am): Likewise.
56765         * modules/ftell-tests (Makefile.am): Likewise.
56766         * modules/ftello-tests (Makefile.am): Likewise.
56767         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56768         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56769         * modules/lseek-tests (Makefile.am): Likewise.
56770         * modules/parse-duration-tests (Makefile.am): Likewise.
56771         * modules/perror-tests (Makefile.am): Likewise.
56772         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56773         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56774         * modules/pipe-tests (Makefile.am): Likewise.
56775         * modules/pread-tests (Makefile.am): Likewise.
56776         * modules/printf-posix-tests (Makefile.am): Likewise.
56777         * modules/select-tests (Makefile.am): Likewise.
56778         * modules/sigpipe-tests (Makefile.am): Likewise.
56779         * modules/tsearch-tests (Makefile.am): Likewise.
56780         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56781         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56782         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56783         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56784         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56785         * modules/version-etc-tests (Makefile.am): Likewise.
56786         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56787         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56788         * modules/xalloc-die-tests (Makefile.am): Likewise.
56789         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56790         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56791         * modules/xstrtol-tests (Makefile.am): Likewise.
56792         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56793         * modules/yesno-tests (Makefile.am): Likewise.
56794         Suggested by Jim Meyering.
56796 2010-01-24  Bruno Haible  <bruno@clisp.org>
56798         More documentation.
56799         * doc/gnulib.texi (Writing modules): New chapter.
56800         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56801         the new chapter.
56803 2010-01-24  Jim Meyering  <meyering@redhat.com>
56805         maint.mk: do not prepend "./" after filtering
56806         * top/maint.mk (_prepend_srcdir_prefix): New variable
56807         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56808         "./" when $(srcdir) is ".".
56810         define STREQ(a,b) consistently, removing useless parentheses
56811         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56812         since the only risk is that "a" or "b" contains an unparenthesized
56813         comma, but if either did that, STREQ would have 3 or more arguments.
56814         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56815         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56816         * lib/hash-triple.c (STREQ): Likewise.
56817         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56818         * lib/getugroups.c (STREQ): Likewise.
56820 2010-01-23  Jim Meyering  <meyering@redhat.com>
56822         maint.mk: fix syntax-check in a non-srcdir build directory
56823         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56824         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56826 2010-01-22  Jim Meyering  <meyering@redhat.com>
56828         userspec: add unit tests
56829         * tests/test-userspec.c: New file.
56830         * modules/userspec-tests: Likewise.
56832 2010-01-21  Jim Meyering  <meyering@redhat.com>
56834         maint.mk: handle source file names containing "." robustly
56835         * top/maint.mk (_dot_escaped_srcdir): Define.
56836         (VC_LIST): Use it in LHS of sed substitution.
56838 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56840         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56841         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56842         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56843         from a non-srcdir build.
56845 2010-01-20  Eric Blake  <ebb9@byu.net>
56847         warn-on-use: use instead of link-warning
56848         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56849         * modules/unistd (Depends-on, Makefile.am): Likewise.
56850         * modules/arpa_inet (Depends-on): Replace link-warning with
56851         warn-on-use.
56852         (Makefile.am): Update rules accordingly.
56853         * modules/ctype (Depends-on, Makefile.am): Likewise.
56854         * modules/dirent (Depends-on, Makefile.am): Likewise.
56855         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56856         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56857         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56858         * modules/locale (Depends-on, Makefile.am): Likewise.
56859         * modules/math (Depends-on, Makefile.am): Likewise.
56860         * modules/search (Depends-on, Makefile.am): Likewise.
56861         * modules/signal (Depends-on, Makefile.am): Likewise.
56862         * modules/spawn (Depends-on, Makefile.am): Likewise.
56863         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56864         * modules/string (Depends-on, Makefile.am): Likewise.
56865         * modules/strings (Depends-on, Makefile.am): Likewise.
56866         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56867         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56868         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56869         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56870         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56871         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56872         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56873         * modules/wchar (Depends-on, Makefile.am): Likewise.
56874         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56875         should be poisoned.
56876         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56877         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56878         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56879         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56880         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56881         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56882         * m4/math_h.m4 (gl_MATH_H): Likewise.
56883         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56884         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56885         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56886         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56887         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56888         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56889         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56890         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56891         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56893         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56895         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56896         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56897         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56898         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56899         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56900         GL_LINK_WARNING.
56901         * lib/ctype.in.h: Likewise.
56902         * lib/dirent.in.h: Likewise.
56903         * lib/fcntl.in.h: Likewise.
56904         * lib/inttypes.in.h: Likewise.
56905         * lib/langinfo.in.h: Likewise.
56906         * lib/locale.in.h: Likewise.
56907         * lib/math.in.h: Likewise.
56908         * lib/search.in.h: Likewise.
56909         * lib/signal.in.h: Likewise.
56910         * lib/spawn.in.h: Likewise.
56911         * lib/stdio.in.h: Likewise.
56912         * lib/stdlib.in.h: Likewise.
56913         * lib/string.in.h: Likewise.
56914         * lib/strings.in.h: Likewise.
56915         * lib/sys_file.in.h: Likewise.
56916         * lib/sys_ioctl.in.h: Likewise.
56917         * lib/sys_select.in.h: Likewise.
56918         * lib/sys_socket.in.h: Likewise.
56919         * lib/sys_stat.in.h: Likewise.
56920         * lib/sys_times.in.h: Likewise.
56921         * lib/sys_utsname.in.h: Likewise.
56922         * lib/unistd.in.h: Likewise.
56923         * lib/wchar.in.h: Likewise.
56925 2010-01-20  Bruno Haible  <bruno@clisp.org>
56927         Avoid duplicate -lm.
56928         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56929         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56930         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56932         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56933         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56934         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56935         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56936         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56937         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56938         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56939         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56940         Reported by Paolo Bonzini.
56942 2010-01-19  Bruno Haible  <bruno@clisp.org>
56944         langinfo, nl_langinfo: Relicense under LGPLv2+.
56945         * modules/langinfo (License): Change to LGPLv2+.
56946         * modules/nl_langinfo (License): Likewise.
56947         Patch by David Lutterkort <lutter@redhat.com>.
56949 2010-01-19  Bruno Haible  <bruno@clisp.org>
56951         Avoid compilation error with cc on OSF/1 5.1.
56952         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56953         statement, not before.
56954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56956 2010-01-18  Bruno Haible  <bruno@clisp.org>
56958         Avoid a link error due to the __printf__ symbol.
56959         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56960         and 2.6.x.
56961         (__format__, __printf__): Remove definitions.
56962         * lib/argp-fmtstream.h: Likewise.
56963         * lib/argp.h: Likewise.
56964         * lib/error.h: Likewise.
56965         * lib/vasnprintf.h: Likewise.
56966         * lib/xprintf.h: Likewise.
56967         * lib/xvasprintf.h: Likewise.
56968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56970 2010-01-18  Bruno Haible  <bruno@clisp.org>
56972         Tests for module 'tanl'.
56973         * modules/tanl-tests: New file.
56974         * tests/test-tanl.c: New file.
56976         Tests for module 'sqrtl'.
56977         * modules/sqrtl-tests: New file.
56978         * tests/test-sqrtl.c: New file.
56980         Tests for module 'sinl'.
56981         * modules/sinl-tests: New file.
56982         * tests/test-sinl.c: New file.
56984         Tests for module 'logl'.
56985         * modules/logl-tests: New file.
56986         * tests/test-logl.c: New file.
56988         Tests for module 'expl'.
56989         * modules/expl-tests: New file.
56990         * tests/test-expl.c: New file.
56992         Tests for module 'cosl'.
56993         * modules/cosl-tests: New file.
56994         * tests/test-cosl.c: New file.
56996         Tests for module 'atanl'.
56997         * modules/atanl-tests: New file.
56998         * tests/test-atanl.c: New file.
57000         Tests for module 'asinl'.
57001         * modules/asinl-tests: New file.
57002         * tests/test-asinl.c: New file.
57004         Tests for module 'acosl'.
57005         * modules/acosl-tests: New file.
57006         * tests/test-acosl.c: New file.
57008         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57009         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
57010         tanl): Use the standard gnulib idiom.
57011         * lib/cosl.c: Don't include trigl.c and sincosl.c.
57012         * lib/sinl.c: Likewise.
57013         * lib/tanl.c: Don't include trigl.c.
57014         (kernel_tanl): Make static.
57015         * lib/sincosl.c: Include trigl.h first.
57016         * lib/trigl.c: Likewise.
57017         * m4/acosl.m4: New file.
57018         * m4/asinl.m4: New file.
57019         * m4/atanl.m4: New file.
57020         * m4/cosl.m4: New file.
57021         * m4/expl.m4: New file.
57022         * m4/logl.m4: New file.
57023         * m4/sinl.m4: New file.
57024         * m4/sqrtl.m4: New file.
57025         * m4/tanl.m4: New file.
57026         * m4/mathl.m4: Remove file.
57027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
57028         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57029         Don't initialize GNULIB_MATHL.
57030         * modules/acosl: New file.
57031         * modules/asinl: New file.
57032         * modules/atanl: New file.
57033         * modules/cosl: New file.
57034         * modules/expl: New file.
57035         * modules/logl: New file.
57036         * modules/sinl: New file.
57037         * modules/sqrtl: New file.
57038         * modules/tanl: New file.
57039         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
57040         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
57041         substitute GNULIB_MATHL.
57042         * modules/mathl: Rewritten.
57043         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
57044         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
57045         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
57046         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
57047         * doc/posix-functions/expl.texi: Mention the 'expl' module.
57048         * doc/posix-functions/logl.texi: Mention the 'logl' module.
57049         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
57050         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
57051         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
57053 2010-01-18  Bruno Haible  <bruno@clisp.org>
57055         sqrt: Make gl_FUNC_SQRT requirable.
57056         * m4/sqrt.m4: New file.
57057         * modules/sqrt (Files): Add it.
57058         (configure.ac): Invoke gl_FUNC_SQRT.
57060 2010-01-18  Bruno Haible  <bruno@clisp.org>
57062         New modules for common <math.h> functions.
57063         * m4/mathfunc.m4: New file.
57064         * modules/acos: New file.
57065         * modules/asin: New file.
57066         * modules/atan: New file.
57067         * modules/atan2: New file.
57068         * modules/cbrt: New file.
57069         * modules/copysign: New file.
57070         * modules/cos: New file.
57071         * modules/cosh: New file.
57072         * modules/erf: New file.
57073         * modules/erfc: New file.
57074         * modules/exp: New file.
57075         * modules/fabs: New file.
57076         * modules/fmod: New file.
57077         * modules/hypot: New file.
57078         * modules/j0: New file.
57079         * modules/j1: New file.
57080         * modules/jn: New file.
57081         * modules/ldexp: New file.
57082         * modules/lgamma: New file.
57083         * modules/log: New file.
57084         * modules/log10: New file.
57085         * modules/log1p: New file.
57086         * modules/logb: New file.
57087         * modules/modf: New file.
57088         * modules/nextafter: New file.
57089         * modules/pow: New file.
57090         * modules/remainder: New file.
57091         * modules/rint: New file.
57092         * modules/sin: New file.
57093         * modules/sinh: New file.
57094         * modules/sqrt: New file.
57095         * modules/tan: New file.
57096         * modules/tanh: New file.
57097         * modules/y0: New file.
57098         * modules/y1: New file.
57099         * modules/yn: New file.
57100         * doc/posix-functions/acos.texi: Mention the 'acos' module.
57101         * doc/posix-functions/asin.texi: Mention the 'asin' module.
57102         * doc/posix-functions/atan.texi: Mention the 'atan' module.
57103         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
57104         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
57105         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57106         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57107         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57108         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57109         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57110         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57111         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57112         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57113         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57114         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57115         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57116         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57117         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57118         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57119         * doc/posix-functions/log.texi: Mention the 'log' module.
57120         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57121         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57122         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57123         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57124         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57125         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57126         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57127         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57128         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57129         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57130         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57131         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57132         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57133         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57134         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57135         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57137 2010-01-18  Jim Meyering  <meyering@redhat.com>
57139         ignore-value: relax license to LGPLv2+
57140         * modules/ignore-value (License): Relax to LGPLv2+.
57142         getdate: don't leak when TZ contains two or more '"'s
57143         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57144         double quote in TZ after the first one.
57146         readtokens: do not leak internal token_lengths buffer
57147         * lib/readtokens.c (readtokens): Free the local, lengths,
57148         when the supplied "token_lengths" parameter is NULL.
57150 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57152         Fix a couple of missing LIBTHREAD link failures on AIX.
57153         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57154         $(LIBTHREAD).
57155         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57157         Link test-poll against INET_PTON_LIB.
57158         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57159         for inet_pton on Solaris 10.
57161 2010-01-17  Bruno Haible  <bruno@clisp.org>
57163         unistdio/*-sprintf: Fix typo in module description.
57164         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57165         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57166         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57167         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57168         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57169         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57170         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57173 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57175         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57176         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57177         variables in shell case patterns, for AIX and HP-UX ksh.
57179         Split large sed scripts, for HP-UX sed.
57180         * modules/stdio: Split sed scripts around 50 sed commands,
57181         to avoid HP-UX limit of 99 commands, in the near future.
57182         * modules/string: Likewise.
57183         * modules/unistd: Likewise.
57185         gnulib-tool: avoid writing in the current directory.
57186         * gnulib-tool (func_emit_lib_Makefile_am)
57187         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57188         not in the current directory, so concurrent gnulib-tool
57189         instances do not interfere.
57191 2010-01-16  Jim Meyering  <meyering@redhat.com>
57193         doc: update users.txt
57194         * users.txt: Add grep.
57195         (diffutils, gzip): Update URLs.
57197 2010-01-12  Bruno Haible  <bruno@clisp.org>
57199         posix_spawn: Avoid test failure on Cygwin.
57200         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57201         characters.
57202         Reported by Simon Josefsson.
57204 2010-01-12  Bruno Haible  <bruno@clisp.org>
57206         * tests/test-cond.c (main): When skipping the test, show the reason.
57208 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57210         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57212 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57214         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57215         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57217 2010-01-12  Eric Blake  <ebb9@byu.net>
57219         build: guarantee AS_VAR_IF
57220         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57221         (gl_AS_VAR_IF): Move...
57222         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57223         Reported by Simon Josefsson.
57225 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57227         * lib/stdio.in.h: Fix typo.
57229 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57231         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57232         libgpg-error.
57234 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57236         * tests/test-xalloc-die.sh: Use $EXEEXT.
57238 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57239             Bruno Haible  <bruno@clisp.org>
57241         getlogin, getlogin_r: Avoid test failure.
57242         * tests/test-getlogin.c: Include <stdio.h>.
57243         (main): Skip the test when the function fails because stdin is not a
57244         tty.
57245         * tests/test-getlogin_r.c: Include <stdio.h>.
57246         (main): Skip the test when the function fails because stdin is not a
57247         tty.
57249 2010-01-11  Eric Blake  <ebb9@byu.net>
57251         tests: avoid more large file warnings
57252         * tests/test-fflush.c: Avoid warning about ftell use.
57253         * tests/test-fseek.c: Avoid warning about fseek use.
57255 2010-01-10  Bruno Haible  <bruno@clisp.org>
57257         nproc: Work better on Linux when /proc and /sys are not mounted.
57258         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57259         as lower bound when, on glibc/Linux systems,
57260         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57261         Suggested by Pádraig Brady <P@draigbrady.com>.
57262         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57264         nproc: Refactor.
57265         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57266         extracted from num_processors.
57267         (num_processors): Call it.
57269 2010-01-11  Jim Meyering  <meyering@redhat.com>
57271         utimecmp: avoid new warning from upcoming gcc-4.5.0
57272         * lib/utimecmp.c (BILLION): Define using #define rather than an
57273         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57275 2010-01-11  Eric Blake  <ebb9@byu.net>
57277         math: add portability warnings for classification macros
57278         * modules/math (Depends-on): Add warn-on-use.
57279         (Makefile.am): Provide new substitutions.
57280         * m4/math_h.m4 (gl_MATH_H): Require inline.
57281         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57282         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57283         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57284         implement warnings.
57286         unistd: warn on use of environ without module
57287         * modules/unistd (Depends-on): Add warn-on-use.
57288         (Makefile.am): Provide new substitutions.
57289         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57290         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57292         stdio: warn on suspicious uses
57293         * modules/stdio (Depends-on): Add warn-on-use.
57294         (Makefile.am): Provide new substitutions.
57295         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57296         fseeko.
57297         * lib/stdio.in.h (gets): Always warn on use.
57298         (fseek, ftell): Adjust when warnings are issued, and honor
57299         _GL_NO_LARGE_FILES as a way to silence the warning.
57300         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57301         any warning about large file offsets.
57302         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57303         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57304         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57305         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57306         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57307         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57308         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57309         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57311         warn-on-use: new module
57312         * modules/warn-on-use: New file.
57313         * build-aux/warn-on-use.h: Likewise.
57314         * m4/warn-on-use.m4: Likewise.
57315         * MODULES.html.sh (Support for building): Mention it.
57317 2010-01-10  Bruno Haible  <bruno@clisp.org>
57319         Tests for module 'unistr/u32-strdup'.
57320         * modules/unistr/u32-strdup-tests: New file.
57321         * tests/unistr/test-u32-strdup.c: New file.
57323         Tests for module 'unistr/u16-strdup'.
57324         * modules/unistr/u16-strdup-tests: New file.
57325         * tests/unistr/test-u16-strdup.c: New file.
57327         Tests for module 'unistr/u8-strdup'.
57328         * modules/unistr/u8-strdup-tests: New file.
57329         * tests/unistr/test-u8-strdup.c: New file.
57330         * tests/unistr/test-strdup.h: New file.
57332         Tests for module 'unistr/u32-strncmp'.
57333         * modules/unistr/u32-strncmp-tests: New file.
57334         * tests/unistr/test-u32-strncmp.c: New file.
57336         Tests for module 'unistr/u16-strncmp'.
57337         * modules/unistr/u16-strncmp-tests: New file.
57338         * tests/unistr/test-u16-strncmp.c: New file.
57340         Tests for module 'unistr/u8-strncmp'.
57341         * modules/unistr/u8-strncmp-tests: New file.
57342         * tests/unistr/test-u8-strncmp.c: New file.
57343         * tests/unistr/test-strncmp.h: New file.
57345         Tests for module 'unistr/u32-strcoll'.
57346         * modules/unistr/u32-strcoll-tests: New file.
57347         * tests/unistr/test-u32-strcoll.c: New file.
57349         Tests for module 'unistr/u16-strcoll'.
57350         * modules/unistr/u16-strcoll-tests: New file.
57351         * tests/unistr/test-u16-strcoll.c: New file.
57353         Tests for module 'unistr/u8-strcoll'.
57354         * modules/unistr/u8-strcoll-tests: New file.
57355         * tests/unistr/test-u8-strcoll.c: New file.
57357         Tests for module 'unistr/u32-strcmp'.
57358         * modules/unistr/u32-strcmp-tests: New file.
57359         * tests/unistr/test-u32-strcmp.c: New file.
57360         * tests/unistr/test-u32-strcmp.h: New file.
57362         Tests for module 'unistr/u16-strcmp'.
57363         * modules/unistr/u16-strcmp-tests: New file.
57364         * tests/unistr/test-u16-strcmp.c: New file.
57365         * tests/unistr/test-u16-strcmp.h: New file.
57367         Tests for module 'unistr/u8-strcmp'.
57368         * modules/unistr/u8-strcmp-tests: New file.
57369         * tests/unistr/test-u8-strcmp.c: New file.
57370         * tests/unistr/test-u8-strcmp.h: New file.
57371         * tests/unistr/test-strcmp.h: New file.
57373         Tests for module 'unistr/u32-strncat'.
57374         * modules/unistr/u32-strncat-tests: New file.
57375         * tests/unistr/test-u32-strncat.c: New file.
57377         Tests for module 'unistr/u16-strncat'.
57378         * modules/unistr/u16-strncat-tests: New file.
57379         * tests/unistr/test-u16-strncat.c: New file.
57381         Tests for module 'unistr/u8-strncat'.
57382         * modules/unistr/u8-strncat-tests: New file.
57383         * tests/unistr/test-u8-strncat.c: New file.
57384         * tests/unistr/test-strncat.h: New file.
57386         Tests for module 'unistr/u32-strcat'.
57387         * modules/unistr/u32-strcat-tests: New file.
57388         * tests/unistr/test-u32-strcat.c: New file.
57390         Tests for module 'unistr/u16-strcat'.
57391         * modules/unistr/u16-strcat-tests: New file.
57392         * tests/unistr/test-u16-strcat.c: New file.
57394         Tests for module 'unistr/u8-strcat'.
57395         * modules/unistr/u8-strcat-tests: New file.
57396         * tests/unistr/test-u8-strcat.c: New file.
57397         * tests/unistr/test-strcat.h: New file.
57399         Tests for module 'unistr/u32-stpncpy'.
57400         * modules/unistr/u32-stpncpy-tests: New file.
57401         * tests/unistr/test-u32-stpncpy.c: New file.
57403         Tests for module 'unistr/u16-stpncpy'.
57404         * modules/unistr/u16-stpncpy-tests: New file.
57405         * tests/unistr/test-u16-stpncpy.c: New file.
57407         Tests for module 'unistr/u8-stpncpy'.
57408         * modules/unistr/u8-stpncpy-tests: New file.
57409         * tests/unistr/test-u8-stpncpy.c: New file.
57410         * tests/unistr/test-stpncpy.h: New file.
57412         Tests for module 'unistr/u32-strncpy'.
57413         * modules/unistr/u32-strncpy-tests: New file.
57414         * tests/unistr/test-u32-strncpy.c: New file.
57416         Tests for module 'unistr/u16-strncpy'.
57417         * modules/unistr/u16-strncpy-tests: New file.
57418         * tests/unistr/test-u16-strncpy.c: New file.
57420         Tests for module 'unistr/u8-strncpy'.
57421         * modules/unistr/u8-strncpy-tests: New file.
57422         * tests/unistr/test-u8-strncpy.c: New file.
57423         * tests/unistr/test-strncpy.h: New file.
57425         Tests for module 'unistr/u32-stpcpy'.
57426         * modules/unistr/u32-stpcpy-tests: New file.
57427         * tests/unistr/test-u32-stpcpy.c: New file.
57429         Tests for module 'unistr/u16-stpcpy'.
57430         * modules/unistr/u16-stpcpy-tests: New file.
57431         * tests/unistr/test-u16-stpcpy.c: New file.
57433         Tests for module 'unistr/u8-stpcpy'.
57434         * modules/unistr/u8-stpcpy-tests: New file.
57435         * tests/unistr/test-u8-stpcpy.c: New file.
57436         * tests/unistr/test-stpcpy.h: New file.
57438         Tests for module 'unistr/u32-strcpy'.
57439         * modules/unistr/u32-strcpy-tests: New file.
57440         * tests/unistr/test-u32-strcpy.c: New file.
57442         Tests for module 'unistr/u16-strcpy'.
57443         * modules/unistr/u16-strcpy-tests: New file.
57444         * tests/unistr/test-u16-strcpy.c: New file.
57446         Tests for module 'unistr/u8-strcpy'.
57447         * modules/unistr/u8-strcpy-tests: New file.
57448         * tests/unistr/test-u8-strcpy.c: New file.
57449         * tests/unistr/test-strcpy.h: New file.
57451         Tests for module 'unistr/u32-strnlen'.
57452         * modules/unistr/u32-strnlen-tests: New file.
57453         * tests/unistr/test-u32-strnlen.c: New file.
57455         Tests for module 'unistr/u16-strnlen'.
57456         * modules/unistr/u16-strnlen-tests: New file.
57457         * tests/unistr/test-u16-strnlen.c: New file.
57459         Tests for module 'unistr/u8-strnlen'.
57460         * modules/unistr/u8-strnlen-tests: New file.
57461         * tests/unistr/test-u8-strnlen.c: New file.
57462         * tests/unistr/test-strnlen.h: New file.
57464         Tests for module 'unistr/u32-strlen'.
57465         * modules/unistr/u32-strlen-tests: New file.
57466         * tests/unistr/test-u32-strlen.c: New file.
57468         Tests for module 'unistr/u16-strlen'.
57469         * modules/unistr/u16-strlen-tests: New file.
57470         * tests/unistr/test-u16-strlen.c: New file.
57472         Tests for module 'unistr/u8-strlen'.
57473         * modules/unistr/u8-strlen-tests: New file.
57474         * tests/unistr/test-u8-strlen.c: New file.
57476         Tests for module 'unistr/u32-prev'.
57477         * modules/unistr/u32-prev-tests: New file.
57478         * tests/unistr/test-u32-prev.c: New file.
57480         Tests for module 'unistr/u16-prev'.
57481         * modules/unistr/u16-prev-tests: New file.
57482         * tests/unistr/test-u16-prev.c: New file.
57484         Tests for module 'unistr/u8-prev'.
57485         * modules/unistr/u8-prev-tests: New file.
57486         * tests/unistr/test-u8-prev.c: New file.
57488         Tests for module 'unistr/u32-next'.
57489         * modules/unistr/u32-next-tests: New file.
57490         * tests/unistr/test-u32-next.c: New file.
57492         Tests for module 'unistr/u16-next'.
57493         * modules/unistr/u16-next-tests: New file.
57494         * tests/unistr/test-u16-next.c: New file.
57496         Tests for module 'unistr/u8-next'.
57497         * modules/unistr/u8-next-tests: New file.
57498         * tests/unistr/test-u8-next.c: New file.
57500         Tests for module 'unistr/u32-strmbtouc'.
57501         * modules/unistr/u32-strmbtouc-tests: New file.
57502         * tests/unistr/test-u32-strmbtouc.c: New file.
57504         Tests for module 'unistr/u16-strmbtouc'.
57505         * modules/unistr/u16-strmbtouc-tests: New file.
57506         * tests/unistr/test-u16-strmbtouc.c: New file.
57508         Tests for module 'unistr/u8-strmbtouc'.
57509         * modules/unistr/u8-strmbtouc-tests: New file.
57510         * tests/unistr/test-u8-strmbtouc.c: New file.
57512         Tests for module 'unistr/u32-strmblen'.
57513         * modules/unistr/u32-strmblen-tests: New file.
57514         * tests/unistr/test-u32-strmblen.c: New file.
57516         Tests for module 'unistr/u16-strmblen'.
57517         * modules/unistr/u16-strmblen-tests: New file.
57518         * tests/unistr/test-u16-strmblen.c: New file.
57520         Tests for module 'unistr/u8-strmblen'.
57521         * modules/unistr/u8-strmblen-tests: New file.
57522         * tests/unistr/test-u8-strmblen.c: New file.
57524         Tests for module 'unistr/u32-cpy-alloc'.
57525         * modules/unistr/u32-cpy-alloc-tests: New file.
57526         * tests/unistr/test-u32-cpy-alloc.c: New file.
57528         Tests for module 'unistr/u16-cpy-alloc'.
57529         * modules/unistr/u16-cpy-alloc-tests: New file.
57530         * tests/unistr/test-u16-cpy-alloc.c: New file.
57532         Tests for module 'unistr/u8-cpy-alloc'.
57533         * modules/unistr/u8-cpy-alloc-tests: New file.
57534         * tests/unistr/test-u8-cpy-alloc.c: New file.
57535         * tests/unistr/test-cpy-alloc.h: New file.
57537         Tests for module 'unistr/u32-mbsnlen'.
57538         * modules/unistr/u32-mbsnlen-tests: New file.
57539         * tests/unistr/test-u32-mbsnlen.c: New file.
57541         Tests for module 'unistr/u16-mbsnlen'.
57542         * modules/unistr/u16-mbsnlen-tests: New file.
57543         * tests/unistr/test-u16-mbsnlen.c: New file.
57545         Tests for module 'unistr/u8-mbsnlen'.
57546         * modules/unistr/u8-mbsnlen-tests: New file.
57547         * tests/unistr/test-u8-mbsnlen.c: New file.
57549         Tests for module 'unistr/u32-chr'.
57550         * modules/unistr/u32-chr-tests: New file.
57551         * tests/unistr/test-u32-chr.c: New file.
57553         Tests for module 'unistr/u16-chr'.
57554         * modules/unistr/u16-chr-tests: New file.
57555         * tests/unistr/test-u16-chr.c: New file.
57557         Tests for module 'unistr/u8-chr'.
57558         * modules/unistr/u8-chr-tests: New file.
57559         * tests/unistr/test-u8-chr.c: New file.
57560         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57562         Tests for module 'unistr/u32-cmp2'.
57563         * modules/unistr/u32-cmp2-tests: New file.
57564         * tests/unistr/test-u32-cmp2.c: New file.
57566         Tests for module 'unistr/u16-cmp2'.
57567         * modules/unistr/u16-cmp2-tests: New file.
57568         * tests/unistr/test-u16-cmp2.c: New file.
57570         Tests for module 'unistr/u8-cmp2'.
57571         * modules/unistr/u8-cmp2-tests: New file.
57572         * tests/unistr/test-u8-cmp2.c: New file.
57573         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57575         Tests for module 'unistr/u32-cmp'.
57576         * modules/unistr/u32-cmp-tests: New file.
57577         * tests/unistr/test-u32-cmp.c: New file.
57579         Tests for module 'unistr/u16-cmp'.
57580         * modules/unistr/u16-cmp-tests: New file.
57581         * tests/unistr/test-u16-cmp.c: New file.
57583         Tests for module 'unistr/u8-cmp'.
57584         * modules/unistr/u8-cmp-tests: New file.
57585         * tests/unistr/test-u8-cmp.c: New file.
57586         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57588         Tests for module 'unistr/u32-set'.
57589         * modules/unistr/u32-set-tests: New file.
57590         * tests/unistr/test-u32-set.c: New file.
57592         Tests for module 'unistr/u16-set'.
57593         * modules/unistr/u16-set-tests: New file.
57594         * tests/unistr/test-u16-set.c: New file.
57596         Tests for module 'unistr/u8-set'.
57597         * modules/unistr/u8-set-tests: New file.
57598         * tests/unistr/test-u8-set.c: New file.
57599         * tests/unistr/test-set.h: New file.
57601         Tests for module 'unistr/u32-move'.
57602         * modules/unistr/u32-move-tests: New file.
57603         * tests/unistr/test-u32-move.c: New file.
57605         Tests for module 'unistr/u16-move'.
57606         * modules/unistr/u16-move-tests: New file.
57607         * tests/unistr/test-u16-move.c: New file.
57609         Tests for module 'unistr/u8-move'.
57610         * modules/unistr/u8-move-tests: New file.
57611         * tests/unistr/test-u8-move.c: New file.
57612         * tests/unistr/test-move.h: New file.
57614         Tests for module 'unistr/u32-cpy'.
57615         * modules/unistr/u32-cpy-tests: New file.
57616         * tests/unistr/test-u32-cpy.c: New file.
57618         Tests for module 'unistr/u16-cpy'.
57619         * modules/unistr/u16-cpy-tests: New file.
57620         * tests/unistr/test-u16-cpy.c: New file.
57622         Tests for module 'unistr/u8-cpy'.
57623         * modules/unistr/u8-cpy-tests: New file.
57624         * tests/unistr/test-u8-cpy.c: New file.
57625         * tests/unistr/test-cpy.h: New file.
57627 2010-01-09  Bruno Haible  <bruno@clisp.org>
57629         Tests for module 'unistr/u32-uctomb'.
57630         * modules/unistr/u32-uctomb-tests: New file.
57631         * tests/unistr/test-u32-uctomb.c: New file.
57633         Tests for module 'unistr/u16-uctomb'.
57634         * modules/unistr/u16-uctomb-tests: New file.
57635         * tests/unistr/test-u16-uctomb.c: New file.
57637         Tests for module 'unistr/u8-uctomb'.
57638         * modules/unistr/u8-uctomb-tests: New file.
57639         * tests/unistr/test-u8-uctomb.c: New file.
57641         Tests for module 'unistr/u32-mbtoucr'.
57642         * modules/unistr/u32-mbtoucr-tests: New file.
57643         * tests/unistr/test-u32-mbtoucr.c: New file.
57645         Tests for module 'unistr/u16-mbtoucr'.
57646         * modules/unistr/u16-mbtoucr-tests: New file.
57647         * tests/unistr/test-u16-mbtoucr.c: New file.
57649         Tests for module 'unistr/u8-mbtoucr'.
57650         * modules/unistr/u8-mbtoucr-tests: New file.
57651         * tests/unistr/test-u8-mbtoucr.c: New file.
57653         Tests for module 'unistr/u32-mbtouc'.
57654         * modules/unistr/u32-mbtouc-tests: New file.
57655         * tests/unistr/test-u32-mbtouc.c: New file.
57657         Tests for module 'unistr/u16-mbtouc'.
57658         * modules/unistr/u16-mbtouc-tests: New file.
57659         * tests/unistr/test-u16-mbtouc.c: New file.
57661         Tests for module 'unistr/u8-mbtouc'.
57662         * modules/unistr/u8-mbtouc-tests: New file.
57663         * tests/unistr/test-u8-mbtouc.c: New file.
57665         Tests for module 'unistr/u32-mbtouc-unsafe'.
57666         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57667         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57668         * tests/unistr/test-u32-mbtouc.h: New file.
57670         Tests for module 'unistr/u16-mbtouc-unsafe'.
57671         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57672         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57673         * tests/unistr/test-u16-mbtouc.h: New file.
57675         Tests for module 'unistr/u8-mbtouc-unsafe'.
57676         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57677         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57678         * tests/unistr/test-u8-mbtouc.h: New file.
57680         Tests for module 'unistr/u32-mblen'.
57681         * modules/unistr/u32-mblen-tests: New file.
57682         * tests/unistr/test-u32-mblen.c: New file.
57684         Tests for module 'unistr/u16-mblen'.
57685         * modules/unistr/u16-mblen-tests: New file.
57686         * tests/unistr/test-u16-mblen.c: New file.
57688         Tests for module 'unistr/u8-mblen'.
57689         * modules/unistr/u8-mblen-tests: New file.
57690         * tests/unistr/test-u8-mblen.c: New file.
57692         Tests for module 'unistr/u32-to-u16'.
57693         * modules/unistr/u32-to-u16-tests: New file.
57694         * tests/unistr/test-u32-to-u16.c: New file.
57696         Tests for module 'unistr/u32-to-u8'.
57697         * modules/unistr/u32-to-u8-tests: New file.
57698         * tests/unistr/test-u32-to-u8.c: New file.
57700         Tests for module 'unistr/u16-to-u32'.
57701         * modules/unistr/u16-to-u32-tests: New file.
57702         * tests/unistr/test-u16-to-u32.c: New file.
57704         Tests for module 'unistr/u16-to-u8'.
57705         * modules/unistr/u16-to-u8-tests: New file.
57706         * tests/unistr/test-u16-to-u8.c: New file.
57708         Tests for module 'unistr/u8-to-u32'.
57709         * modules/unistr/u8-to-u32-tests: New file.
57710         * tests/unistr/test-u8-to-u32.c: New file.
57712         Tests for module 'unistr/u8-to-u16'.
57713         * modules/unistr/u8-to-u16-tests: New file.
57714         * tests/unistr/test-u8-to-u16.c: New file.
57716         Tests for module 'unistr/u32-check'.
57717         * modules/unistr/u32-check-tests: New file.
57718         * tests/unistr/test-u32-check.c: New file.
57720         Tests for module 'unistr/u16-check'.
57721         * modules/unistr/u16-check-tests: New file.
57722         * tests/unistr/test-u16-check.c: New file.
57724         Tests for module 'unistr/u8-check'.
57725         * modules/unistr/u8-check-tests: New file.
57726         * tests/unistr/test-u8-check.c: New file.
57728         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57729         (category_equals): New function.
57730         (main): Add more tests.
57731         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57733         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57735 2010-01-10  Bruno Haible  <bruno@clisp.org>
57737         unistr/u*-strcoll: Try harder to distinguish different strings.
57738         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57739         compare s1 and s2 to see if they are different.
57741 2010-01-10  Bruno Haible  <bruno@clisp.org>
57743         unistr/u*-stpncpy: Fix the return value.
57744         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57745         description of the return value consistent with stpncpy in glibc.
57746         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57747         written non-NUL unit.
57749 2010-01-10  Bruno Haible  <bruno@clisp.org>
57751         unistr/u*-next: Add missing dependencies.
57752         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57753         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57754         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57756 2010-01-10  Bruno Haible  <bruno@clisp.org>
57758         unistr/u8-mbsnlen: Fix return value for incomplete character.
57759         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57760         u8_mblen.
57761         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57762         Remove unistr/u8-mblen.
57763         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57764         u16_mblen.
57765         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57766         Remove unistr/u16-mblen.
57768 2010-01-10  Bruno Haible  <bruno@clisp.org>
57770         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57771         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57772         Reported by Brian Gough <bjg@gnu.org> and
57773         Chris Clayton <chris2553@googlemail.com> via
57774         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57776 2010-01-09  Bruno Haible  <bruno@clisp.org>
57778         unistr/u16-to-u32: Reject invalid input.
57779         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57780         u16_mbtouc.
57781         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57782         Remove unistr/u16-mbtouc.
57784         unistr/u16-to-u8: Reject invalid input.
57785         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57786         u16_mbtouc.
57787         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57788         Remove unistr/u16-mbtouc.
57790         unistr/u8-to-u32: Reject invalid input.
57791         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57792         u8_mbtouc.
57793         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57794         Remove unistr/u8-mbtouc.
57796         unistr/u8-to-u16: Reject invalid input.
57797         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57798         u8_mbtouc.
57799         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57800         Remove unistr/u8-mbtouc.
57802 2010-01-09  Bruno Haible  <bruno@clisp.org>
57804         Tests for module 'getlogin'.
57805         * modules/getlogin-tests: New file.
57806         * tests/test-getlogin.c: New file.
57808         New module 'getlogin'.
57809         * lib/unistd.in.h (getlogin): New declaration.
57810         * lib/getlogin.c: New file.
57811         * m4/getlogin.m4: New file.
57812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57813         HAVE_GETLOGIN.
57814         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57815         HAVE_GETLOGIN.
57816         * modules/getlogin: New file.
57817         * doc/posix-functions/getlogin.texi: Mention the new module.
57818         Reported by John W. Eaton <jwe@gnu.org>.
57820 2010-01-09  Bruno Haible  <bruno@clisp.org>
57822         getlogin_r: Support for native Windows.
57823         * lib/getlogin_r.c: Include <windows.h>
57824         (getlogin_r): Implement for native Windows.
57825         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57826         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57827         via John W. Eaton <jwe@gnu.org>.
57829 2010-01-09  Bruno Haible  <bruno@clisp.org>
57831         getlogin_r: Small fixes.
57832         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57833         succeeds.
57834         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57835         before testing whether getlogin_r is declared. No need to set
57836         HAVE_DECL_GETLOGIN_R to 1.
57837         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57839 2010-01-09  Bruno Haible  <bruno@clisp.org>
57841         * lib/unistd.in.h (getlogin_r): Add comment.
57843 2010-01-09  Bruno Haible  <bruno@clisp.org>
57845         Tests for module 'getlogin_r'.
57846         * modules/getlogin_r-tests: New file.
57847         * tests/test-getlogin_r.c: New file.
57849 2010-01-09  Jim Meyering  <meyering@redhat.com>
57851         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57852         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57853         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57855 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57857         * lib/dup2.c (rpl_dup2): Improve comment.
57859 2010-01-08  Eric Blake  <ebb9@byu.net>
57861         maint.mk: allow packages to add makefile @@ exceptions
57862         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57863         (sc_makefile_check): Rename...
57864         (sc_makefile_at_at_check): ...to this, and use hook.
57866         dup2: work around mingw bug
57867         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57868         Reported by Simon Josefsson.
57870 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57872         glob: Fix C++ compilation.
57873         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57874         C++.
57876 2010-01-07  Bruno Haible  <bruno@clisp.org>
57878         Fix indentation of wctype.in.h, broken since 2007-01-06.
57879         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57881 2010-01-07  Bruno Haible  <bruno@clisp.org>
57883         mbslen: Avoid collision with system function.
57884         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57885         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57886         * m4/mbslen.m4: New file.
57887         * modules/mbslen (Files): Add it.
57888         (configure.ac): Invoke gl_MBSLEN.
57889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57890         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57891         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57892         via Ian Beckwith <ianb@erislabs.net>.
57894 2010-01-07  Bruno Haible  <bruno@clisp.org>
57896         dirent: Document the last fix.
57897         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57899 2010-01-07  Bruno Haible  <bruno@clisp.org>
57901         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57902         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57903         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57904         va_list are defined.
57905         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57906         Reported by Eric Blake.
57908 2010-01-07  Bruno Haible  <bruno@clisp.org>
57910         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57911         * modules/xlist (Depends-on): Add 'list',
57912         * modules/xoset (Depends-on): Add 'oset'.
57913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57915 2010-01-07  Bruno Haible  <bruno@clisp.org>
57917         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57918         * doc/posix-functions/strncasecmp.texi: Likewise.
57920 2010-01-07  Bruno Haible  <bruno@clisp.org>
57922         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57924 2010-01-07  John W. Eaton  <jwe@octave.org>
57926         wctype: allow C++ use
57927         * lib/wctype.in.h: Add extern "C" block for C++.
57929 2010-01-06  Eric Blake  <ebb9@byu.net>
57931         maint.mk: detect incorrect GFDL usage
57932         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57934 2010-01-06  Jim Meyering  <meyering@redhat.com>
57935         and Eric Blake  <ebb9@byu.net>
57937         maint.mk: ignore multi-line copyright in NEWS
57938         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57940 2010-01-06  Eric Blake  <ebb9@byu.net>
57942         select: add missing dependency
57943         * modules/select-tests (Depends-on): Move sockets dependency...
57944         * modules/select (Depends-on): ...here.
57945         Reported by Ian Beckwith.
57947         doc: regenerate INSTALL
57948         * doc/INSTALL: Reflect recent autoconf update.
57949         * doc/INSTALL.ISO: Likewise.
57950         * doc/INSTALL.UTF-8: Likewise.
57952         pread: fix compilation on glibc
57953         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57954         Reported by Ralf Wildenhues.
57956         dirent: fix test failure
57957         * lib/dirent.in.h (includes): Guarantee ino_t.
57958         Reported by Ralf Wildenhues.
57960 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57962         linkat, renameat: avoid bad free
57963         * lib/at-func2.c (at_func2): Fix typo.
57964         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57966 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57968         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57969         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57970         to avoid failure of symlink test later.
57972 2010-01-06  Eric Blake  <ebb9@byu.net>
57974         stdio, unistd: guarantee ssize_t
57975         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57976         2008 are exposed when needed.
57977         * lib/stdio.in.h (includes): Likewise.
57978         Reported by Ralf Wildenhues.
57980 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57982         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57983         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57984         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57986 2010-01-06  Jim Meyering  <meyering@redhat.com>
57988         readtokens: this module *does* require xalloc.h
57989         It uses only functions that were omitted by the old syntax-check rule.
57990         * lib/readtokens.c: Include "xalloc.h" once again.
57991         * modules/readtokens (Depends-on): Add xalloc.
57992         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57994 2010-01-05  Eric Blake  <ebb9@byu.net>
57996         maint: support 'make announcement' from a VPATH build
57997         * top/maint.mk (announcement): Look for correct NEWS file.
57999 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
58001         utimens (fdutimens): ignore a negative FD, per contract
58002         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
58003         when we have a valid file descriptor.  Otherwise, using a brand
58004         new glibc (with just-patched futimens that now fails with EBADF)
58005         would cause this function to fail with ENOSYS.
58006         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
58007         See also http://bugzilla.redhat.com/552320.
58009 2010-01-05  Eric Blake  <ebb9@byu.net>
58011         strcase: document what it provides
58012         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
58013         gnulib module.
58014         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
58015         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
58017 2010-01-05  Jim Meyering  <meyering@redhat.com>
58019         maint: remove useless inclusions of "xalloc.h"
58020         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
58021         * lib/readtokens.c: Likewise.
58022         * lib/same.c: Likewise.
58023         * modules/getloadavg (Depends-on): Remove xalloc.
58024         * modules/readtokens: Likewise.
58025         * modules/same: Likewise.
58027         maint.mk: include 4 more function names in alloca.h-checking regexp
58028         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
58029         regexp.  Before, we would give a false-positive (saying alloca.h
58030         is included unnecessarily) when the only uses involved omitted symbols.
58032         xalloc.h: use consistent formatting
58033         * lib/xalloc.h: Move declarations to start in the first column.
58035 2010-01-05  Eric Blake  <ebb9@byu.net>
58037         mkdir: avoid xalloc
58038         * lib/mkdir.c (includes): Drop unused header.
58039         Reported by John W. Eaton.
58041 2010-01-04  Jim Meyering  <meyering@redhat.com>
58043         nl_langinfo: avoid configure-time syntax error
58044         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
58045         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
58046         the empty string.  Don't let that provoke a shell syntax error.
58048         regcomp, regexec, fnmatch: avoid array bounds read error
58049         * lib/regcomp.c (build_equiv_class): From glibc:
58050         Use only the low 24 bits of a findidx return value as an index
58051         into the weights array.  Patch by Ulrich Drepper:
58052         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
58053         * lib/regexec.c (check_node_accept_bytes): Likewise.
58054         * lib/fnmatch_loop.c (FCT): Likewise.
58056         regcomp: skip collseq lookup when there are no rules
58057         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
58058         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
58060         regcomp: recognize ill-formed { } expressions
58061         * lib/regcomp.c (parse_dup_op): From glibc:
58062         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
58064         regcomp: fix typo in comment
58065         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
58066         s/satisfy/satisfies/.
58068         regcomp: sync from glibc: remove dead store
58069         * lib/regcomp.c (duplicate_node_closure): Remove useless
58070         search_duplicated_node call and dead store.
58072         regcomp: sync from glibc; always use nl_langinfo
58073         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
58074         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
58075         * modules/regex (Depends-on): Add nl_langinfo.
58077 2010-01-04  Eric Blake  <ebb9@byu.net>
58079         fdopendir: fix configure test
58080         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
58082 2010-01-01  Bruno Haible  <bruno@clisp.org>
58084         wchar: Remove unused configure check.
58085         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
58087 2010-01-01  Eric Blake  <ebb9@byu.net>
58089         headers: make check of system header explicit
58090         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
58091         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
58092         ourselves.
58093         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58095         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58096         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
58097         internals.
58098         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
58099         missing.
58100         Suggested by Bruno Haible.
58102 2010-01-01  Jim Meyering  <meyering@redhat.com>
58104         ChangeLog: tweak to eliminate unnecessary copyright line
58105         * ChangeLog: Remove a copyright line that was mistakenly updated
58106         by today's update-copyright run.  Reported by Eric Blake.
58108         test-update-copyright: don't let envvar setting cause test failure
58109         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58111 2010-01-01  Bruno Haible  <bruno@clisp.org>
58113         localename: Avoid gcc warning.
58114         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58115         function if it is not used.
58117 2010-01-01  Jim Meyering  <meyering@redhat.com>
58119         update nearly all FSF copyright year lists to include 2010
58120         Use the same procedure as for 2009, outlined in
58121         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58123         version-etc: set COPYRIGHT_YEAR to 2010
58124         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58126 2009-12-31  Eric Blake  <ebb9@byu.net>
58128         doc: correct availability of cygwin 1.5.x getopt
58129         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58130         variables.
58131         * doc/posix-functions/opterr.texi (opterr): Likewise.
58132         * doc/posix-functions/optind.texi (optind): Likewise.
58133         * doc/posix-functions/optopt.texi (optopt): Likewise.
58134         * doc/posix-functions/tzname.texi (tzname): Likewise.
58136         openat: update maintainer
58137         * modules/openat (Maintainer): Add myself.
58139         utimens: avoid shadowing warning
58140         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58141         buffers into one, to avoid shadowing, as well as avoiding a
58142         redundant stat.
58143         Reported by Jim Meyering.
58145         test-dup2: avoid compiler warning
58146         * tests/test-dup2.c (is_inheritable): Only define if used.
58148 2010-01-01  Bruno Haible  <bruno@clisp.org>
58150         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58151         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58152         defined, use wctomb instead of wcrtomb.
58154 2010-01-01  Bruno Haible  <bruno@clisp.org>
58156         iconv: Reject native Solaris iconv.
58157         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58158         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58160 2009-12-31  Bruno Haible  <bruno@clisp.org>
58162         * tests/test-signal.c (main): Remove test of 'SIG'.
58164 2009-12-31  Bruno Haible  <bruno@clisp.org>
58166         spawn: Fix incomplete fix.
58167         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58168         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58169         warnings for GNULIB_POSIXCHECK again.
58170         Reported by Eric Blake.
58172 2009-12-31  Bruno Haible  <bruno@clisp.org>
58174         Avoid namespace pollution on glibc systems.
58175         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58176         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58177         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58178         glibc systems.
58180 2009-12-31  Bruno Haible  <bruno@clisp.org>
58182         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58183         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58184         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58185         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58186         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58187         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58188         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58190 2009-12-31  Bruno Haible  <bruno@clisp.org>
58192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58193         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58194         afterwards.
58196 2009-12-31  Bruno Haible  <bruno@clisp.org>
58198         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58199         SYS_UTSNAME_H.
58201 2009-12-31  Bruno Haible  <bruno@clisp.org>
58203         spawn: Fix misapplied patch.
58204         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58205         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58206         warnings for GNULIB_POSIXCHECK.
58208 2009-12-31  Bruno Haible  <bruno@clisp.org>
58210         times: Update after sys_times changed.
58211         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58212         * modules/times (Files): Add it.
58213         (configure.ac): Invoke gl_FUNC_TIMES.
58215 2009-12-31  Bruno Haible  <bruno@clisp.org>
58217         Use AC_C_INLINE where necessary.
58218         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58219         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58221         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58222         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58223         * m4/mbiter.m4 (gl_MBITER): Likewise.
58224         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58225         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58226         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58227         * modules/u64 (configure.ac): Likewise.
58229 2009-12-31  Bruno Haible  <bruno@clisp.org>
58231         Use AC_C_INLINE instead of module 'inline' where possible.
58232         * modules/inline (Description): Clarify purpose.
58233         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58234         * modules/count-one-bits (Depends-on): Remove inline.
58235         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58236         * modules/openat (Depends-on): Remove inline.
58237         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58238         instead of depending on module 'inline'.
58239         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58240         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58241         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58242         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58243         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58244         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58245         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58246         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58247         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58248         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58249         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58250         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58251         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58252         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58253         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58254         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58255         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58256         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58257         Likewise.
58258         * modules/unictype/property-ascii-hex-digit (Depends-on,
58259         configure.ac): Likewise.
58260         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58261         configure.ac): Likewise.
58262         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58263         configure.ac): Likewise.
58264         * modules/unictype/property-bidi-block-separator (Depends-on,
58265         configure.ac): Likewise.
58266         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58267         configure.ac): Likewise.
58268         * modules/unictype/property-bidi-common-separator (Depends-on,
58269         configure.ac): Likewise.
58270         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58271         Likewise.
58272         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58273         configure.ac): Likewise.
58274         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58275         configure.ac): Likewise.
58276         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58277         configure.ac): Likewise.
58278         * modules/unictype/property-bidi-european-digit (Depends-on,
58279         configure.ac): Likewise.
58280         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58281         configure.ac): Likewise.
58282         * modules/unictype/property-bidi-left-to-right (Depends-on,
58283         configure.ac): Likewise.
58284         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58285         configure.ac): Likewise.
58286         * modules/unictype/property-bidi-other-neutral (Depends-on,
58287         configure.ac): Likewise.
58288         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58289         Likewise.
58290         * modules/unictype/property-bidi-segment-separator (Depends-on,
58291         configure.ac): Likewise.
58292         * modules/unictype/property-bidi-whitespace (Depends-on,
58293         configure.ac): Likewise.
58294         * modules/unictype/property-combining (Depends-on, configure.ac):
58295         Likewise.
58296         * modules/unictype/property-composite (Depends-on, configure.ac):
58297         Likewise.
58298         * modules/unictype/property-currency-symbol (Depends-on,
58299         configure.ac): Likewise.
58300         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58301         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58302         Likewise.
58303         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58304         configure.ac): Likewise.
58305         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58306         Likewise.
58307         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58308         Likewise.
58309         * modules/unictype/property-extender (Depends-on, configure.ac):
58310         Likewise.
58311         * modules/unictype/property-format-control (Depends-on, configure.ac):
58312         Likewise.
58313         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58314         Likewise.
58315         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58316         Likewise.
58317         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58318         Likewise.
58319         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58320         Likewise.
58321         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58322         Likewise.
58323         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58324         Likewise.
58325         * modules/unictype/property-id-start (Depends-on, configure.ac):
58326         Likewise.
58327         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58328         Likewise.
58329         * modules/unictype/property-ids-binary-operator (Depends-on,
58330         configure.ac): Likewise.
58331         * modules/unictype/property-ids-trinary-operator (Depends-on,
58332         configure.ac): Likewise.
58333         * modules/unictype/property-ignorable-control (Depends-on,
58334         configure.ac): Likewise.
58335         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58336         Likewise.
58337         * modules/unictype/property-join-control (Depends-on, configure.ac):
58338         Likewise.
58339         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58340         Likewise.
58341         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58342         Likewise.
58343         * modules/unictype/property-logical-order-exception (Depends-on,
58344         configure.ac): Likewise.
58345         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58346         Likewise.
58347         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58348         * modules/unictype/property-non-break (Depends-on, configure.ac):
58349         Likewise.
58350         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58351         Likewise.
58352         * modules/unictype/property-numeric (Depends-on, configure.ac):
58353         Likewise.
58354         * modules/unictype/property-other-alphabetic (Depends-on,
58355         configure.ac): Likewise.
58356         * modules/unictype/property-other-default-ignorable-code-point
58357         (Depends-on, configure.ac): Likewise.
58358         * modules/unictype/property-other-grapheme-extend (Depends-on,
58359         configure.ac): Likewise.
58360         * modules/unictype/property-other-id-continue (Depends-on,
58361         configure.ac): Likewise.
58362         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58363         Likewise.
58364         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58365         Likewise.
58366         * modules/unictype/property-other-math (Depends-on, configure.ac):
58367         Likewise.
58368         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58369         Likewise.
58370         * modules/unictype/property-paired-punctuation (Depends-on,
58371         configure.ac): Likewise.
58372         * modules/unictype/property-paragraph-separator (Depends-on,
58373         configure.ac): Likewise.
58374         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58375         Likewise.
58376         * modules/unictype/property-pattern-white-space (Depends-on,
58377         configure.ac): Likewise.
58378         * modules/unictype/property-private-use (Depends-on, configure.ac):
58379         Likewise.
58380         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58381         Likewise.
58382         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58383         Likewise.
58384         * modules/unictype/property-radical (Depends-on, configure.ac):
58385         Likewise.
58386         * modules/unictype/property-sentence-terminal (Depends-on,
58387         configure.ac): Likewise.
58388         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58389         Likewise.
58390         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58391         * modules/unictype/property-terminal-punctuation (Depends-on,
58392         configure.ac): Likewise.
58393         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58394         Likewise.
58395         * modules/unictype/property-unassigned-code-value (Depends-on,
58396         configure.ac): Likewise.
58397         * modules/unictype/property-unified-ideograph (Depends-on,
58398         configure.ac): Likewise.
58399         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58400         Likewise.
58401         * modules/unictype/property-variation-selector (Depends-on,
58402         configure.ac): Likewise.
58403         * modules/unictype/property-white-space (Depends-on, configure.ac):
58404         Likewise.
58405         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58406         Likewise.
58407         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58408         Likewise.
58409         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58410         Likewise.
58411         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58412         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58413         Likewise.
58415 2009-12-31  Bruno Haible  <bruno@clisp.org>
58417         Remove unnecessary AC_C_INLINE invocation.
58418         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58419         since 2009-08-21.
58421 2009-12-31  Jim Meyering  <meyering@redhat.com>
58423         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58424         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58425         With this change, we can all remove the gpg_key_ID = ... definition
58426         from our respective cfg.mk files.
58428         maint.mk: create announcement template in ~/, not in /tmp
58429         * top/maint.mk (emit_upload_commands): Adjust.
58430         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58431         Remove temporary file, .ci-msg.
58433 2009-12-31  Eric Blake  <ebb9@byu.net>
58435         link-warning: always build headers with link warnings
58436         * modules/arpa_inet (Makefile.am): Always build replacement
58437         header.
58438         * modules/ctype (Makefile.am): Likewise.
58439         * modules/dirent (Makefile.am): Likewise.
58440         * modules/inttypes (Makefile.am): Likewise.
58441         * modules/langinfo (Makefile.am): Likewise.
58442         * modules/locale (Makefile.am): Likewise.
58443         * modules/spawn (Makefile.am): Likewise.
58444         * modules/sys_file (Makefile.am): Likewise.
58445         * modules/sys_ioctl (Makefile.am): Likewise.
58446         * modules/sys_select (Makefile.am): Likewise.
58447         * modules/sys_socket (Makefile.am): Likewise.
58448         * modules/sys_times (Makefile.am): Likewise.
58449         * modules/sys_utsname (Makefile.am): Likewise.
58450         * modules/sys_wait (Makefile.am): Likewise.
58451         * modules/wchar (Makefile.am): Likewise.
58452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58453         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58454         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58455         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58456         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58457         Likewise.
58458         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58459         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58460         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58461         Likewise.
58462         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58463         Likewise.
58464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58466         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58468         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58470         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58471         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58472         (gl_WCHAR_H_DEFAULTS): Likewise.
58474 2009-12-31  Eric Blake  <ebb9@byu.net>
58476         signal, spawn: use link warnings
58477         * lib/signal.in.h (sigset_t): Make unconditional.
58478         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58479         (sigpending, sigprocmask, sigaction): Add link warnings.
58480         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58481         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58482         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58483         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58484         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58485         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58486         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58487         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58488         (posix_spawn_file_actions_destroy)
58489         (posix_spawn_file_actions_addopen)
58490         (posix_spawn_file_actions_addclose)
58491         (posix_spawn_file_actions_adddup2): Likewise.
58492         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58493         * tests/test-signal.c (main): Enhance test.
58495         spawn: improve wrapper support
58496         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58497         (gl_SPAWN_H_DEFAULTS): New defaults.
58498         * modules/spawn (Makefile.am): Substitute them.
58499         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58500         Only declare if missing or broken.
58502         sys_times, sys_utsname: use include_next
58503         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58504         header.
58505         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58506         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58507         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58508         * modules/sys_times (Depends-on): Add include_next.
58509         (Makefile.am): Substitute additional values.
58510         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58511         * lib/sys_times.in.h (includes): Include native header, if
58512         available.
58513         * lib/sys_utsname.in.h (includes): Likewise.
58514         * tests/test-sys_times.c (main): Enhance test.
58516         fdutimensat: revert prior patch
58517         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58518         utimens.h.
58519         Reported by Bruno Haible.
58521 2009-12-30  Eric Blake  <ebb9@byu.net>
58523         sys_wait: drop link-warning dependency
58524         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58525         link-warning efforts.
58526         * lib/sys_wait.in.h: Likewise.
58528         fdutimensat: remove bogus dependency
58529         * modules/fdutimensat (Depends-on): Drop inline.
58531         unistd: fix typo
58532         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58534 2009-12-30  Bruno Haible  <bruno@clisp.org>
58536         Fix compilation error with Solaris cc.
58537         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58538         * lib/unicase/u16-is-invariant.c: Likewise.
58539         * lib/unicase/u32-is-invariant.c: Likewise.
58540         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58542 2009-12-30  Bruno Haible  <bruno@clisp.org>
58544         Fix test crash.
58545         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58546         locales.
58547         Reported by Simon Josefsson <simon@josefsson.org>.
58549 2009-12-30  Bruno Haible  <bruno@clisp.org>
58551         Fix compilation error on most platforms.
58552         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58553         Reported by Simon Josefsson <simon@josefsson.org>
58554         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58556 2009-12-30  Eric Blake  <ebb9@byu.net>
58558         futimens, utimensat: work around ntfs-3g bug
58559         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58560         a ctime bug is present, and expand workaround to cover ntfs-3g.
58561         * lib/utimens.c (fdutimens, lutimens): Likewise.
58562         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58563         (validate_timespec): Adjust return value.
58564         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58565         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58566         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58568 2009-12-29  Eric Blake  <ebb9@byu.net>
58570         link-warning: make usage consistent
58571         * modules/ctype (Depends-on): Add link-warning.
58572         (Makefile.am): Update rules accordingly.
58573         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58574         * modules/locale (Depends-on, Makefile.am): Likewise.
58575         * modules/sys_file (Makefile.am): Likewise.
58576         * modules/getopt-posix (Makefile.am): Delete unused link warning
58577         efforts.
58578         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58579         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58580         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58581         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58583         stdio: remove unused variables
58584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58586         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58588         tests: test more substitute headers
58589         * modules/ctype-tests: New file.
58590         * modules/dirent-tests: Likewise.
58591         * modules/spawn-tests: Likewise.
58592         * modules/sys_file-tests: Likewise.
58593         * modules/sys_ioctl-tests: Likewise.
58594         * modules/sys_wait-tests: Likewise.
58595         * tests/test-ctype.c: Likewise.
58596         * tests/test-dirent.c: Likewise.
58597         * tests/test-spawn.c: Likewise.
58598         * tests/test-sys_file.c: Likewise.
58599         * tests/test-sys_ioctl.c: Likewise.
58600         * tests/test-sys_wait.c: Likewise.
58601         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58602         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58603         whether or not flock is in use.
58605         tests: remove License section from module
58606         * modules/arpa_inet-tests: Remove unneeded section.
58607         * modules/byteswap-tests: Likewise.
58608         * modules/ceilf-tests: Likewise.
58609         * modules/ceill-tests: Likewise.
58610         * modules/crypto/des-tests: Likewise.
58611         * modules/crypto/gc-arcfour-tests: Likewise.
58612         * modules/crypto/gc-arctwo-tests: Likewise.
58613         * modules/crypto/gc-des-tests: Likewise.
58614         * modules/crypto/gc-hmac-md5-tests: Likewise.
58615         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58616         * modules/crypto/gc-md2-tests: Likewise.
58617         * modules/crypto/gc-md4-tests: Likewise.
58618         * modules/crypto/gc-md5-tests: Likewise.
58619         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58620         * modules/crypto/gc-rijndael-tests: Likewise.
58621         * modules/crypto/gc-sha1-tests: Likewise.
58622         * modules/crypto/gc-tests: Likewise.
58623         * modules/crypto/md2-tests: Likewise.
58624         * modules/crypto/md4-tests: Likewise.
58625         * modules/fcntl-h-tests: Likewise.
58626         * modules/floorf-tests: Likewise.
58627         * modules/floorl-tests: Likewise.
58628         * modules/frexp-nolibm-tests: Likewise.
58629         * modules/frexp-tests: Likewise.
58630         * modules/frexpl-nolibm-tests: Likewise.
58631         * modules/frexpl-tests: Likewise.
58632         * modules/getaddrinfo-tests: Likewise.
58633         * modules/inttypes-tests: Likewise.
58634         * modules/isfinite-tests: Likewise.
58635         * modules/isinf-tests: Likewise.
58636         * modules/ldexpl-tests: Likewise.
58637         * modules/locale-tests: Likewise.
58638         * modules/math-tests: Likewise.
58639         * modules/netdb-tests: Likewise.
58640         * modules/netinet_in-tests: Likewise.
58641         * modules/printf-frexp-tests: Likewise.
58642         * modules/printf-frexpl-tests: Likewise.
58643         * modules/priv-set-tests: Likewise.
58644         * modules/random_r-tests: Likewise.
58645         * modules/round-tests: Likewise.
58646         * modules/roundf-tests: Likewise.
58647         * modules/roundl-tests: Likewise.
58648         * modules/search-tests: Likewise.
58649         * modules/select-tests: Likewise.
58650         * modules/signal-tests: Likewise.
58651         * modules/stdbool-tests: Likewise.
58652         * modules/stddef-tests: Likewise.
58653         * modules/stdint-tests: Likewise.
58654         * modules/stdio-tests: Likewise.
58655         * modules/stdlib-tests: Likewise.
58656         * modules/string-tests: Likewise.
58657         * modules/strings-tests: Likewise.
58658         * modules/sys_select-tests: Likewise.
58659         * modules/sys_socket-tests: Likewise.
58660         * modules/sys_stat-tests: Likewise.
58661         * modules/sys_time-tests: Likewise.
58662         * modules/sys_utsname-tests: Likewise.
58663         * modules/sysexits-tests: Likewise.
58664         * modules/time-tests: Likewise.
58665         * modules/trunc-tests: Likewise.
58666         * modules/truncf-tests: Likewise.
58667         * modules/truncl-tests: Likewise.
58668         * modules/tsearch-tests: Likewise.
58669         * modules/unistd-tests: Likewise.
58670         * modules/wchar-tests: Likewise.
58671         * modules/wctype-tests: Likewise.
58673         tests: fix license on several tests
58674         * tests/test-des.c: Update to GPLv3+.
58675         * tests/test-flock.c: Likewise.
58676         * tests/test-fsync.c: Likewise.
58677         * tests/test-futimens.h: Likewise.
58678         * tests/test-gc-arcfour.c: Likewise.
58679         * tests/test-gc-arctwo.c: Likewise.
58680         * tests/test-gc-des.c: Likewise.
58681         * tests/test-gc-hmac-md5.c: Likewise.
58682         * tests/test-gc-hmac-sha1.c: Likewise.
58683         * tests/test-gc-md2.c: Likewise.
58684         * tests/test-gc-md4.c: Likewise.
58685         * tests/test-gc-md5.c: Likewise.
58686         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58687         * tests/test-gc-rijndael.c: Likewise.
58688         * tests/test-gc-sha1.c: Likewise.
58689         * tests/test-gc.c: Likewise.
58690         * tests/test-getcwd.c: Likewise.
58691         * tests/test-link.c: Likewise.
58692         * tests/test-link.h: Likewise.
58693         * tests/test-lutimens.h: Likewise.
58694         * tests/test-md2.c: Likewise.
58695         * tests/test-md4.c: Likewise.
58696         * tests/test-mkdir.h: Likewise.
58697         * tests/test-rename.c: Likewise.
58698         * tests/test-rename.h: Likewise.
58699         * tests/test-safe-alloc.c: Likewise.
58700         * tests/test-utimens-common.h: Likewise.
58701         * tests/test-utimens.h: Likewise.
58703         maint: sync license texts
58704         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58705         * doc/gpl-3.0.texi: Revert copyright year update.
58706         * doc/lgpl-3.0.texi: Likewise.
58708 2009-12-29  Jim Meyering  <meyering@redhat.com>
58710         update nearly all FSF copyright year lists to include 2009
58711         The files named by the following are exempted:
58712             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58713               test -f "$dst" && { echo "$dst"; continue; }
58714               test -d "$dst" || continue
58715               echo "$dst"/$(basename "$src")
58716             done > exempt
58717             git ls-files tests/unictype >> exempt
58718         In the remaining files, convert to all-interval notation if
58719         - there is already at least one year interval like 2000-2003
58720         - the file is maintained by me
58721         - the file is in lib/uni*/, where that style already prevails
58722         Otherwise, use update-copyright's default.
58724 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58725         and Eric Blake  <ebb9@byu.net>
58727         tests: don't require debug system() to pass
58728         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58729         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58730         * tests/test-unlink.h (test_unlink_func): Likewise.
58731         * tests/test-fstatat.c (main): ...into callers.
58732         * tests/test-lstat.c (main): Likewise.
58733         * tests/test-rmdir.c (main): Likewise.
58734         * tests/test-unlink.c (main): Likewise.
58735         * tests/test-unlinkat.c (main): Likewise.
58736         * tests/test-areadlink-with-size.c (main): Don't require a
58737         debug-only system call to pass, aiding cross-testing to mingw.
58738         * tests/test-areadlink.c (main): Likewise.
58739         * tests/test-areadlinkat-with-size.c (main): Likewise.
58740         * tests/test-areadlinkat.c (main): Likewise.
58741         * tests/test-canonicalize-lgpl.c (main): Likewise.
58742         * tests/test-canonicalize.c (main): Likewise.
58743         * tests/test-chown.c (main): Likewise.
58744         * tests/test-fchownat.c (main): Likewise.
58745         * tests/test-lchown.c (main): Likewise.
58746         * tests/test-fdutimensat.c (main): Likewise.
58747         * tests/test-futimens.c (main): Likewise.
58748         * tests/test-link.c (main): Likewise.
58749         * tests/test-linkat.c (main): Likewise.
58750         * tests/test-mkdir.c (main): Likewise.
58751         * tests/test-mkdirat.c (main): Likewise.
58752         * tests/test-mkfifo.c (main): Likewise.
58753         * tests/test-mkfifoat.c (main): Likewise.
58754         * tests/test-mknod.c (main): Likewise.
58755         * tests/test-readlink.c (main): Likewise.
58756         * tests/test-remove.c (main): Likewise.
58757         * tests/test-rename.c (main): Likewise.
58758         * tests/test-renameat.c (main): Likewise.
58759         * tests/test-symlink.c (main): Likewise.
58760         * tests/test-symlinkat.c (main): Likewise.
58761         * tests/test-utimens.c (main): Likewise.
58762         * tests/test-utimensat.c (main): Likewise.
58764 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58766         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58767         on $(UNUSED_PARAMETER_H) to avoid build failure.
58769 2009-12-28  Jim Meyering  <meyering@redhat.com>
58771         update-copyright: you may specify a max. line length other than 72
58772         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58774         maint: use consistent FSF copyright line syntax
58775         * lib/posixtm.c: Add missing comma in FSF copyright line.
58776         * lib/posixtm.h: Likewise.
58777         * lib/getugroups.c: Add missing ", Inc.".
58779         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58780         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58781         FSF copyright line.  Remove trailing blanks.
58783 2009-12-28  Eric Blake  <ebb9@byu.net>
58785         test-dup2: reduce dependencies
58786         * modules/cloexec (Configure.ac): Set witness.
58787         * modules/dup2-tests (Depends-on): Drop cloexec.
58788         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58789         not present.
58790         Suggested by Bruno Haible.
58792 2009-12-26  Bruno Haible  <bruno@clisp.org>
58794         Remove an unneeded dependency.
58795         * modules/fseterr (Depends-on): Remove dup2.
58797 2009-12-26  Eric Blake  <ebb9@byu.net>
58799         tests: use macros.h in more places
58800         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58801         (ASSERT_STREAM): Provide default of stderr.
58802         * tests/test-dirent-safer.c: Include macros.h, using alternate
58803         stream for assertions.
58804         * tests/test-dup-safer.c: Likewise.
58805         * tests/test-freopen-safer.c: Likewise.
58806         * tests/test-getopt.c: Likewise.
58807         * tests/test-openat-safer.c: Likewise.
58808         * tests/test-pipe.c: Likewise.
58809         * tests/test-popen-safer.c: Likewise.
58810         * modules/dirent-safer-tests (Files): Include macros.h.
58811         * modules/unistd-safer-tests (Files): Likewise.
58812         * modules/freopen-safer-tests (Files): Likewise.
58813         * modules/getopt-posix-tests (Files): Likewise.
58814         * modules/openat-safer-tests (Files): Likewise.
58815         * modules/pipe-tests (Files): Likewise.
58817 2009-12-26  Bruno Haible  <bruno@clisp.org>
58819         javacomp-script: Portability fix.
58820         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58821         that it also works on Solaris.
58823 2009-12-26  Bruno Haible  <bruno@clisp.org>
58825         localename: Fix storage allocation of gl_locale_name_thread's result.
58826         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58827         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58828         all platforms that have 'uselocale'.
58829         (gl_locale_name_thread_unsafe): New function, extracted from
58830         gl_locale_name_thread.
58831         (gl_locale_name_thread): Call struniq on all platforms that have
58832         'uselocale'.
58833         * tests/test-localename.c (test_locale_name_thread): Check that the
58834         resulting strings are permanently allocated.
58835         * modules/localename-tests (Depends-on): Add strdup.
58837 2009-12-26  Bruno Haible  <bruno@clisp.org>
58839         * tests/test-localename.c (categories): Fill in the strings.
58841 2009-12-26  Jim Meyering  <meyering@redhat.com>
58843         isdir: complete the removal of m4/isdir.m4
58844         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58846         isdir: clean up, since at least grep still uses it
58847         * lib/isdir.c: Include "isdir.h".
58848         (S_ISDIR): Remove now-unneeded definition.
58849         * modules/isdir (Files): Add lib/isdir.h.
58850         * lib/isdir.h: New file, with declaration.
58851         * m4/isdir.m4: Remove file -- unneeded.
58853 2009-12-25  Bruno Haible  <bruno@clisp.org>
58855         selinux-h: Make generated .h files standalone.
58856         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58857         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58858         * lib/se-selinux.in.h: Likewise.
58859         * modules/selinux-h (Depends-on): Add unused-parameter.
58860         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58861         selinux/selinux.h and selinux/context.h.
58862         Suggested by Eric Blake.
58864 2009-12-25  Bruno Haible  <bruno@clisp.org>
58866         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58867         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58868         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58869         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58870         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58872 2009-12-24  Bruno Haible  <bruno@clisp.org>
58874         openat: Fix warning.
58875         * lib/openat-proc.c: Include <unistd.h>.
58877 2009-12-24  Bruno Haible  <bruno@clisp.org>
58879         New module 'unused-parameter'.
58880         * build-aux/unused-parameter.h: New file, extracted from earlier
58881         gnulib-common.m4.
58882         * modules/unused-parameter: New file.
58883         * lib/unistr.h: Include unused-parameter.h.
58884         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58885         _GL_UNUSED.
58886         * modules/unistr/base (Depends-on): Add unused-parameter.
58888 2009-12-24  Bruno Haible  <bruno@clisp.org>
58890         Add missing dependencies to 'extensions' module.
58891         * m4/extensions.m4: Add comment.
58892         * modules/accept4 (Depends-on): Add extensions.
58893         * modules/dup3 (Depends-on): Likewise.
58894         * modules/fcntl (Depends-on): Likewise.
58895         * modules/futimens (Depends-on): Likewise.
58896         * modules/mknod (Depends-on): Likewise.
58897         * modules/pipe2 (Depends-on): Likewise.
58898         * modules/stat-time (Depends-on): Likewise.
58899         * modules/strcasestr-simple (Depends-on): Likewise.
58900         * modules/strsignal (Depends-on): Likewise.
58901         * modules/utimensat (Depends-on): Likewise.
58902         * modules/localcharset (Depends-on): Likewise. Needed because of
58903         gl_FCNTL_O_FLAGS.
58904         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58905         AC_TYPE_MBSTATE_T.
58906         * modules/wcsnrtombs (Depends-on): Likewise.
58907         * modules/wcsrtombs (Depends-on): Likewise.
58909 2009-12-24  Bruno Haible  <bruno@clisp.org>
58911         binary-io: Avoid gcc warning due to SET_BINARY.
58912         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58913         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58915 2009-12-24  Bruno Haible  <bruno@clisp.org>
58917         Avoid future namespace pollution on glibc systems.
58918         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58919         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58920         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58921         glibc systems.
58923 2009-12-24  Bruno Haible  <bruno@clisp.org>
58925         Refactor common macros used in tests.
58926         * tests/macros.h: New file.
58927         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58928         and/or <stdlib.h>, if appropriate.
58929         (ASSERT, SIZEOF): Remove macros.
58930         * tests/test-areadlink-with-size.c: Likewise.
58931         * tests/test-areadlinkat.c: Likewise.
58932         * tests/test-areadlinkat-with-size.c: Likewise.
58933         * tests/test-argmatch.c: Likewise.
58934         * tests/test-argv-iter.c: Likewise.
58935         * tests/test-array-mergesort.c: Likewise.
58936         * tests/test-array_list.c: Likewise.
58937         * tests/test-array_oset.c: Likewise.
58938         * tests/test-avltree_list.c: Likewise.
58939         * tests/test-avltree_oset.c: Likewise.
58940         * tests/test-avltreehash_list.c: Likewise.
58941         * tests/test-base64.c: Likewise.
58942         * tests/test-binary-io.c: Likewise.
58943         * tests/test-bitrotate.c: Likewise.
58944         * tests/test-btowc.c: Likewise.
58945         * tests/test-byteswap.c: Likewise.
58946         * tests/test-c-ctype.c: Likewise.
58947         * tests/test-c-stack.c: Likewise.
58948         * tests/test-c-strcasecmp.c: Likewise.
58949         * tests/test-c-strcasestr.c: Likewise.
58950         * tests/test-c-strncasecmp.c: Likewise.
58951         * tests/test-c-strstr.c: Likewise.
58952         * tests/test-canonicalize-lgpl.c: Likewise.
58953         * tests/test-canonicalize.c: Likewise.
58954         * tests/test-carray_list.c: Likewise.
58955         * tests/test-ceilf1.c: Likewise.
58956         * tests/test-ceilf2.c: Likewise.
58957         * tests/test-ceill.c: Likewise.
58958         * tests/test-chown.c: Likewise.
58959         * tests/test-cloexec.c: Likewise.
58960         * tests/test-copy-acl.c: Likewise.
58961         * tests/test-copy-file.c: Likewise.
58962         * tests/test-count-one-bits.c: Likewise.
58963         * tests/test-dprintf-posix.c: Likewise.
58964         * tests/test-dup2.c: Likewise.
58965         * tests/test-dup3.c: Likewise.
58966         * tests/test-duplocale.c: Likewise.
58967         * tests/test-fbufmode.c: Likewise.
58968         * tests/test-fchdir.c: Likewise.
58969         * tests/test-fchownat.c: Likewise.
58970         * tests/test-fcntl-safer.c: Likewise.
58971         * tests/test-fcntl.c: Likewise.
58972         * tests/test-fdopendir.c: Likewise.
58973         * tests/test-fdutimensat.c: Likewise.
58974         * tests/test-fflush2.c: Likewise.
58975         * tests/test-file-has-acl.c: Likewise.
58976         * tests/test-filevercmp.c: Likewise.
58977         * tests/test-flock.c: Likewise.
58978         * tests/test-floorf1.c: Likewise.
58979         * tests/test-floorf2.c: Likewise.
58980         * tests/test-floorl.c: Likewise.
58981         * tests/test-fnmatch.c: Likewise.
58982         * tests/test-fopen.h: Likewise.
58983         * tests/test-fpending.c: Likewise.
58984         * tests/test-fprintf-posix.c: Likewise.
58985         * tests/test-fpurge.c: Likewise.
58986         * tests/test-freadable.c: Likewise.
58987         * tests/test-freadahead.c: Likewise.
58988         * tests/test-freading.c: Likewise.
58989         * tests/test-freadptr.c: Likewise.
58990         * tests/test-freadptr2.c: Likewise.
58991         * tests/test-freadseek.c: Likewise.
58992         * tests/test-freopen.c: Likewise.
58993         * tests/test-frexp.c: Likewise.
58994         * tests/test-frexpl.c: Likewise.
58995         * tests/test-fseek.c: Likewise.
58996         * tests/test-fseeko.c: Likewise.
58997         * tests/test-fstatat.c: Likewise.
58998         * tests/test-fstrcmp.c: Likewise.
58999         * tests/test-fsync.c: Likewise.
59000         * tests/test-ftell.c: Likewise.
59001         * tests/test-ftello.c: Likewise.
59002         * tests/test-func.c: Likewise.
59003         * tests/test-futimens.c: Likewise.
59004         * tests/test-fwritable.c: Likewise.
59005         * tests/test-fwriting.c: Likewise.
59006         * tests/test-getcwd.c: Likewise.
59007         * tests/test-getdate.c: Likewise.
59008         * tests/test-getdelim.c: Likewise.
59009         * tests/test-getdtablesize.c: Likewise.
59010         * tests/test-getgroups.c: Likewise.
59011         * tests/test-getline.c: Likewise.
59012         * tests/test-getndelim2.c: Likewise.
59013         * tests/test-glob.c: Likewise.
59014         * tests/test-hash.c: Likewise.
59015         * tests/test-i-ring.c: Likewise.
59016         * tests/test-iconv-utf.c: Likewise.
59017         * tests/test-iconv.c: Likewise.
59018         * tests/test-idpriv-drop.c: Likewise.
59019         * tests/test-idpriv-droptemp.c: Likewise.
59020         * tests/test-inet_ntop.c: Likewise.
59021         * tests/test-inet_pton.c: Likewise.
59022         * tests/test-isblank.c: Likewise.
59023         * tests/test-isfinite.c: Likewise.
59024         * tests/test-isinf.c: Likewise.
59025         * tests/test-isnan.c: Likewise.
59026         * tests/test-isnand.h: Likewise.
59027         * tests/test-isnanf.h: Likewise.
59028         * tests/test-isnanl.h: Likewise.
59029         * tests/test-lchown.c: Likewise.
59030         * tests/test-ldexpl.c: Likewise.
59031         * tests/test-link.c: Likewise.
59032         * tests/test-linkat.c: Likewise.
59033         * tests/test-linked_list.c: Likewise.
59034         * tests/test-linkedhash_list.c: Likewise.
59035         * tests/test-localename.c: Likewise.
59036         * tests/test-lseek.c: Likewise.
59037         * tests/test-lstat.c: Likewise.
59038         * tests/test-mbmemcasecmp.c: Likewise.
59039         * tests/test-mbmemcasecoll.c: Likewise.
59040         * tests/test-mbrtowc.c: Likewise.
59041         * tests/test-mbscasecmp.c: Likewise.
59042         * tests/test-mbscasestr1.c: Likewise.
59043         * tests/test-mbscasestr2.c: Likewise.
59044         * tests/test-mbscasestr3.c: Likewise.
59045         * tests/test-mbscasestr4.c: Likewise.
59046         * tests/test-mbschr.c: Likewise.
59047         * tests/test-mbscspn.c: Likewise.
59048         * tests/test-mbsinit.c: Likewise.
59049         * tests/test-mbsncasecmp.c: Likewise.
59050         * tests/test-mbsnrtowcs.c: Likewise.
59051         * tests/test-mbspbrk.c: Likewise.
59052         * tests/test-mbspcasecmp.c: Likewise.
59053         * tests/test-mbsrchr.c: Likewise.
59054         * tests/test-mbsrtowcs.c: Likewise.
59055         * tests/test-mbsspn.c: Likewise.
59056         * tests/test-mbsstr1.c: Likewise.
59057         * tests/test-mbsstr2.c: Likewise.
59058         * tests/test-mbsstr3.c: Likewise.
59059         * tests/test-memchr.c: Likewise.
59060         * tests/test-memchr2.c: Likewise.
59061         * tests/test-memcmp.c: Likewise.
59062         * tests/test-memmem.c: Likewise.
59063         * tests/test-memrchr.c: Likewise.
59064         * tests/test-mkdir.c: Likewise.
59065         * tests/test-mkdirat.c: Likewise.
59066         * tests/test-mkfifo.c: Likewise.
59067         * tests/test-mkfifoat.c: Likewise.
59068         * tests/test-mknod.c: Likewise.
59069         * tests/test-nanosleep.c: Likewise.
59070         * tests/test-nl_langinfo.c: Likewise.
59071         * tests/test-obstack-printf.c: Likewise.
59072         * tests/test-open.c: Likewise.
59073         * tests/test-openat.c: Likewise.
59074         * tests/test-pipe-filter-gi1.c: Likewise.
59075         * tests/test-pipe-filter-gi2-main.c: Likewise.
59076         * tests/test-pipe-filter-ii1.c: Likewise.
59077         * tests/test-pipe-filter-ii2-main.c: Likewise.
59078         * tests/test-pipe2.c: Likewise.
59079         * tests/test-popen.h: Likewise.
59080         * tests/test-posixtm.c: Likewise.
59081         * tests/test-pread.c: Likewise.
59082         * tests/test-printf-frexp.c: Likewise.
59083         * tests/test-printf-frexpl.c: Likewise.
59084         * tests/test-printf-posix.c: Likewise.
59085         * tests/test-priv-set.c: Likewise.
59086         * tests/test-quotearg.c: Likewise.
59087         * tests/test-random_r.c: Likewise.
59088         * tests/test-rawmemchr.c: Likewise.
59089         * tests/test-rbtree_list.c: Likewise.
59090         * tests/test-rbtree_oset.c: Likewise.
59091         * tests/test-rbtreehash_list.c: Likewise.
59092         * tests/test-readlink.c: Likewise.
59093         * tests/test-remove.c: Likewise.
59094         * tests/test-rename.c: Likewise.
59095         * tests/test-renameat.c: Likewise.
59096         * tests/test-rmdir.c: Likewise.
59097         * tests/test-round1.c: Likewise.
59098         * tests/test-roundf1.c: Likewise.
59099         * tests/test-roundl.c: Likewise.
59100         * tests/test-safe-alloc.c: Likewise.
59101         * tests/test-sameacls.c: Likewise.
59102         * tests/test-set-mode-acl.c: Likewise.
59103         * tests/test-setenv.c: Likewise.
59104         * tests/test-sigaction.c: Likewise.
59105         * tests/test-signbit.c: Likewise.
59106         * tests/test-sleep.c: Likewise.
59107         * tests/test-snprintf-posix.c: Likewise.
59108         * tests/test-snprintf.c: Likewise.
59109         * tests/test-sprintf-posix.c: Likewise.
59110         * tests/test-stat-time.c: Likewise.
59111         * tests/test-stat.c: Likewise.
59112         * tests/test-strcasestr.c: Likewise.
59113         * tests/test-strchrnul.c: Likewise.
59114         * tests/test-strerror.c: Likewise.
59115         * tests/test-striconv.c: Likewise.
59116         * tests/test-striconveh.c: Likewise.
59117         * tests/test-striconveha.c: Likewise.
59118         * tests/test-strsignal.c: Likewise.
59119         * tests/test-strstr.c: Likewise.
59120         * tests/test-strtod.c: Likewise.
59121         * tests/test-strverscmp.c: Likewise.
59122         * tests/test-symlink.c: Likewise.
59123         * tests/test-symlinkat.c: Likewise.
59124         * tests/test-trunc1.c: Likewise.
59125         * tests/test-trunc2.c: Likewise.
59126         * tests/test-truncf1.c: Likewise.
59127         * tests/test-truncf2.c: Likewise.
59128         * tests/test-truncl.c: Likewise.
59129         * tests/test-uname.c: Likewise.
59130         * tests/test-unlink.c: Likewise.
59131         * tests/test-unlinkat.c: Likewise.
59132         * tests/test-unsetenv.c: Likewise.
59133         * tests/test-usleep.c: Likewise.
59134         * tests/test-utimens.c: Likewise.
59135         * tests/test-utimensat.c: Likewise.
59136         * tests/test-vasnprintf-posix.c: Likewise.
59137         * tests/test-vasnprintf-posix2.c: Likewise.
59138         * tests/test-vasnprintf.c: Likewise.
59139         * tests/test-vasprintf-posix.c: Likewise.
59140         * tests/test-vasprintf.c: Likewise.
59141         * tests/test-vdprintf-posix.c: Likewise.
59142         * tests/test-vfprintf-posix.c: Likewise.
59143         * tests/test-vprintf-posix.c: Likewise.
59144         * tests/test-vsnprintf-posix.c: Likewise.
59145         * tests/test-vsnprintf.c: Likewise.
59146         * tests/test-vsprintf-posix.c: Likewise.
59147         * tests/test-wcrtomb.c: Likewise.
59148         * tests/test-wcsnrtombs.c: Likewise.
59149         * tests/test-wcsrtombs.c: Likewise.
59150         * tests/test-wctype.c: Likewise.
59151         * tests/test-wcwidth.c: Likewise.
59152         * tests/test-xfprintf-posix.c: Likewise.
59153         * tests/test-xmemdup0.c: Likewise.
59154         * tests/test-xprintf-posix.c: Likewise.
59155         * tests/test-xvasprintf.c: Likewise.
59156         * tests/unicase/test-locale-language.c: Likewise.
59157         * tests/unicase/test-mapping-part1.h: Likewise.
59158         * tests/unicase/test-predicate-part1.h: Likewise.
59159         * tests/unicase/test-u8-casecmp.c: Likewise.
59160         * tests/unicase/test-u8-casecoll.c: Likewise.
59161         * tests/unicase/test-u8-casefold.c: Likewise.
59162         * tests/unicase/test-u8-is-cased.c: Likewise.
59163         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59164         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59165         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59166         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59167         * tests/unicase/test-u8-tolower.c: Likewise.
59168         * tests/unicase/test-u8-totitle.c: Likewise.
59169         * tests/unicase/test-u8-toupper.c: Likewise.
59170         * tests/unicase/test-u16-casecmp.c: Likewise.
59171         * tests/unicase/test-u16-casecoll.c: Likewise.
59172         * tests/unicase/test-u16-casefold.c: Likewise.
59173         * tests/unicase/test-u16-is-cased.c: Likewise.
59174         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59175         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59176         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59177         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59178         * tests/unicase/test-u16-tolower.c: Likewise.
59179         * tests/unicase/test-u16-totitle.c: Likewise.
59180         * tests/unicase/test-u16-toupper.c: Likewise.
59181         * tests/unicase/test-u32-casecmp.c: Likewise.
59182         * tests/unicase/test-u32-casecoll.c: Likewise.
59183         * tests/unicase/test-u32-casefold.c: Likewise.
59184         * tests/unicase/test-u32-is-cased.c: Likewise.
59185         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59186         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59187         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59188         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59189         * tests/unicase/test-u32-tolower.c: Likewise.
59190         * tests/unicase/test-u32-totitle.c: Likewise.
59191         * tests/unicase/test-u32-toupper.c: Likewise.
59192         * tests/unicase/test-ulc-casecmp.c: Likewise.
59193         * tests/unicase/test-ulc-casecoll.c: Likewise.
59194         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59195         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59196         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59197         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59198         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59199         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59200         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59201         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59202         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59203         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59204         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59205         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59206         * tests/unictype/test-bidi_byname.c: Likewise.
59207         * tests/unictype/test-bidi_name.c: Likewise.
59208         * tests/unictype/test-bidi_of.c: Likewise.
59209         * tests/unictype/test-bidi_test.c: Likewise.
59210         * tests/unictype/test-block_list.c: Likewise.
59211         * tests/unictype/test-block_of.c: Likewise.
59212         * tests/unictype/test-block_test.c: Likewise.
59213         * tests/unictype/test-categ_and.c: Likewise.
59214         * tests/unictype/test-categ_and_not.c: Likewise.
59215         * tests/unictype/test-categ_byname.c: Likewise.
59216         * tests/unictype/test-categ_name.c: Likewise.
59217         * tests/unictype/test-categ_none.c: Likewise.
59218         * tests/unictype/test-categ_of.c: Likewise.
59219         * tests/unictype/test-categ_or.c: Likewise.
59220         * tests/unictype/test-categ_test_withtable.c: Likewise.
59221         * tests/unictype/test-combining.c: Likewise.
59222         * tests/unictype/test-decdigit.c: Likewise.
59223         * tests/unictype/test-digit.c: Likewise.
59224         * tests/unictype/test-mirror.c: Likewise.
59225         * tests/unictype/test-numeric.c: Likewise.
59226         * tests/unictype/test-pr_byname.c: Likewise.
59227         * tests/unictype/test-pr_test.c: Likewise.
59228         * tests/unictype/test-predicate-part1.h: Likewise.
59229         * tests/unictype/test-scripts.c: Likewise.
59230         * tests/unictype/test-sy_c_ident.c: Likewise.
59231         * tests/unictype/test-sy_java_ident.c: Likewise.
59232         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59233         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59234         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59235         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59236         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59237         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59238         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59239         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59240         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59241         * tests/uninorm/test-compat-decomposition.c: Likewise.
59242         * tests/uninorm/test-composition.c: Likewise.
59243         * tests/uninorm/test-decomposing-form.c: Likewise.
59244         * tests/uninorm/test-decomposition.c: Likewise.
59245         * tests/uninorm/test-u8-nfc.c: Likewise.
59246         * tests/uninorm/test-u8-nfd.c: Likewise.
59247         * tests/uninorm/test-u8-nfkc.c: Likewise.
59248         * tests/uninorm/test-u8-nfkd.c: Likewise.
59249         * tests/uninorm/test-u8-normcmp.c: Likewise.
59250         * tests/uninorm/test-u8-normcoll.c: Likewise.
59251         * tests/uninorm/test-u16-nfc.c: Likewise.
59252         * tests/uninorm/test-u16-nfd.c: Likewise.
59253         * tests/uninorm/test-u16-nfkc.c: Likewise.
59254         * tests/uninorm/test-u16-nfkd.c: Likewise.
59255         * tests/uninorm/test-u16-normcmp.c: Likewise.
59256         * tests/uninorm/test-u16-normcoll.c: Likewise.
59257         * tests/uninorm/test-u32-nfc.c: Likewise.
59258         * tests/uninorm/test-u32-nfd.c: Likewise.
59259         * tests/uninorm/test-u32-nfkc.c: Likewise.
59260         * tests/uninorm/test-u32-nfkd.c: Likewise.
59261         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59262         * tests/uninorm/test-u32-normcmp.c: Likewise.
59263         * tests/uninorm/test-u32-normcoll.c: Likewise.
59264         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59265         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59266         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59267         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59268         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59269         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59270         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59271         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59272         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59273         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59274         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59275         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59276         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59277         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59278         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59279         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59280         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59281         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59282         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59283         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59284         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59285         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59286         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59287         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59288         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59289         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59290         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59291         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59292         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59293         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59294         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59295         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59296         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59297         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59298         * tests/uniwidth/test-u8-width.c: Likewise.
59299         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59300         * tests/uniwidth/test-u16-width.c: Likewise.
59301         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59302         * tests/uniwidth/test-u32-width.c: Likewise.
59303         * tests/uniwidth/test-uc_width.c: Likewise.
59304         * tests/uniwidth/test-uc_width2.c: Likewise.
59305         * modules/acl-tests (Files): Add tests/macros.h.
59306         * modules/areadlink-tests (Files): Likewise.
59307         * modules/areadlink-with-size-tests (Files): Likewise.
59308         * modules/areadlinkat-tests (Files): Likewise.
59309         * modules/areadlinkat-with-size-tests (Files): Likewise.
59310         * modules/argmatch-tests (Files): Likewise.
59311         * modules/argv-iter-tests (Files): Likewise.
59312         * modules/array-list-tests (Files): Likewise.
59313         * modules/array-mergesort-tests (Files): Likewise.
59314         * modules/array-oset-tests (Files): Likewise.
59315         * modules/avltree-list-tests (Files): Likewise.
59316         * modules/avltree-oset-tests (Files): Likewise.
59317         * modules/avltreehash-list-tests (Files): Likewise.
59318         * modules/base64-tests (Files): Likewise.
59319         * modules/binary-io-tests (Files): Likewise.
59320         * modules/bitrotate-tests (Files): Likewise.
59321         * modules/btowc-tests (Files): Likewise.
59322         * modules/byteswap-tests (Files): Likewise.
59323         * modules/c-ctype-tests (Files): Likewise.
59324         * modules/c-stack-tests (Files): Likewise.
59325         * modules/c-strcase-tests (Files): Likewise.
59326         * modules/c-strcasestr-tests (Files): Likewise.
59327         * modules/c-strstr-tests (Files): Likewise.
59328         * modules/canonicalize-lgpl-tests (Files): Likewise.
59329         * modules/canonicalize-tests (Files): Likewise.
59330         * modules/carray-list-tests (Files): Likewise.
59331         * modules/ceilf-tests (Files): Likewise.
59332         * modules/ceill-tests (Files): Likewise.
59333         * modules/chown-tests (Files): Likewise.
59334         * modules/cloexec-tests (Files): Likewise.
59335         * modules/copy-file-tests (Files): Likewise.
59336         * modules/count-one-bits-tests (Files): Likewise.
59337         * modules/dprintf-posix-tests (Files): Likewise.
59338         * modules/dup2-tests (Files): Likewise.
59339         * modules/dup3-tests (Files): Likewise.
59340         * modules/duplocale-tests (Files): Likewise.
59341         * modules/fbufmode-tests (Files): Likewise.
59342         * modules/fchdir-tests (Files): Likewise.
59343         * modules/fcntl-safer-tests (Files): Likewise.
59344         * modules/fcntl-tests (Files): Likewise.
59345         * modules/fdopendir-tests (Files): Likewise.
59346         * modules/fdutimensat-tests (Files): Likewise.
59347         * modules/fflush-tests (Files): Likewise.
59348         * modules/filevercmp-tests (Files): Likewise.
59349         * modules/flock-tests (Files): Likewise.
59350         * modules/floorf-tests (Files): Likewise.
59351         * modules/floorl-tests (Files): Likewise.
59352         * modules/fnmatch-tests (Files): Likewise.
59353         * modules/fopen-safer-tests (Files): Likewise.
59354         * modules/fopen-tests (Files): Likewise.
59355         * modules/fpending-tests (Files): Likewise.
59356         * modules/fprintf-posix-tests (Files): Likewise.
59357         * modules/fpurge-tests (Files): Likewise.
59358         * modules/freadable-tests (Files): Likewise.
59359         * modules/freadahead-tests (Files): Likewise.
59360         * modules/freading-tests (Files): Likewise.
59361         * modules/freadptr-tests (Files): Likewise.
59362         * modules/freadseek-tests (Files): Likewise.
59363         * modules/freopen-tests (Files): Likewise.
59364         * modules/frexp-nolibm-tests (Files): Likewise.
59365         * modules/frexp-tests (Files): Likewise.
59366         * modules/frexpl-nolibm-tests (Files): Likewise.
59367         * modules/frexpl-tests (Files): Likewise.
59368         * modules/fseek-tests (Files): Likewise.
59369         * modules/fseeko-tests (Files): Likewise.
59370         * modules/fstrcmp-tests (Files): Likewise.
59371         * modules/fsync-tests (Files): Likewise.
59372         * modules/ftell-tests (Files): Likewise.
59373         * modules/ftello-tests (Files): Likewise.
59374         * modules/func-tests (Files): Likewise.
59375         * modules/futimens-tests (Files): Likewise.
59376         * modules/fwritable-tests (Files): Likewise.
59377         * modules/fwriting-tests (Files): Likewise.
59378         * modules/getcwd-tests (Files): Likewise.
59379         * modules/getdate-tests (Files): Likewise.
59380         * modules/getdelim-tests (Files): Likewise.
59381         * modules/getdtablesize-tests (Files): Likewise.
59382         * modules/getgroups-tests (Files): Likewise.
59383         * modules/getline-tests (Files): Likewise.
59384         * modules/getndelim2-tests (Files): Likewise.
59385         * modules/glob-tests (Files): Likewise.
59386         * modules/hash-tests (Files): Likewise.
59387         * modules/i-ring-tests (Files): Likewise.
59388         * modules/iconv-tests (Files): Likewise.
59389         * modules/iconv_open-utf-tests (Files): Likewise.
59390         * modules/idpriv-drop-tests (Files): Likewise.
59391         * modules/idpriv-droptemp-tests (Files): Likewise.
59392         * modules/inet_ntop-tests (Files): Likewise.
59393         * modules/inet_pton-tests (Files): Likewise.
59394         * modules/isblank-tests (Files): Likewise.
59395         * modules/isfinite-tests (Files): Likewise.
59396         * modules/isinf-tests (Files): Likewise.
59397         * modules/isnan-tests (Files): Likewise.
59398         * modules/isnand-nolibm-tests (Files): Likewise.
59399         * modules/isnand-tests (Files): Likewise.
59400         * modules/isnanf-nolibm-tests (Files): Likewise.
59401         * modules/isnanf-tests (Files): Likewise.
59402         * modules/isnanl-nolibm-tests (Files): Likewise.
59403         * modules/isnanl-tests (Files): Likewise.
59404         * modules/lchown-tests (Files): Likewise.
59405         * modules/ldexpl-tests (Files): Likewise.
59406         * modules/link-tests (Files): Likewise.
59407         * modules/linkat-tests (Files): Likewise.
59408         * modules/linked-list-tests (Files): Likewise.
59409         * modules/linkedhash-list-tests (Files): Likewise.
59410         * modules/localename-tests (Files): Likewise.
59411         * modules/lseek-tests (Files): Likewise.
59412         * modules/lstat-tests (Files): Likewise.
59413         * modules/mbmemcasecmp-tests (Files): Likewise.
59414         * modules/mbmemcasecoll-tests (Files): Likewise.
59415         * modules/mbrtowc-tests (Files): Likewise.
59416         * modules/mbscasecmp-tests (Files): Likewise.
59417         * modules/mbscasestr-tests (Files): Likewise.
59418         * modules/mbschr-tests (Files): Likewise.
59419         * modules/mbscspn-tests (Files): Likewise.
59420         * modules/mbsinit-tests (Files): Likewise.
59421         * modules/mbsncasecmp-tests (Files): Likewise.
59422         * modules/mbsnrtowcs-tests (Files): Likewise.
59423         * modules/mbspbrk-tests (Files): Likewise.
59424         * modules/mbspcasecmp-tests (Files): Likewise.
59425         * modules/mbsrchr-tests (Files): Likewise.
59426         * modules/mbsrtowcs-tests (Files): Likewise.
59427         * modules/mbsspn-tests (Files): Likewise.
59428         * modules/mbsstr-tests (Files): Likewise.
59429         * modules/memchr-tests (Files): Likewise.
59430         * modules/memchr2-tests (Files): Likewise.
59431         * modules/memcmp-tests (Files): Likewise.
59432         * modules/memmem-tests (Files): Likewise.
59433         * modules/memrchr-tests (Files): Likewise.
59434         * modules/mkdir-tests (Files): Likewise.
59435         * modules/mkfifo-tests (Files): Likewise.
59436         * modules/mkfifoat-tests (Files): Likewise.
59437         * modules/mknod-tests (Files): Likewise.
59438         * modules/nanosleep-tests (Files): Likewise.
59439         * modules/nl_langinfo-tests (Files): Likewise.
59440         * modules/obstack-printf-tests (Files): Likewise.
59441         * modules/open-tests (Files): Likewise.
59442         * modules/openat-tests (Files): Likewise.
59443         * modules/pipe-filter-gi-tests (Files): Likewise.
59444         * modules/pipe-filter-ii-tests (Files): Likewise.
59445         * modules/pipe2-tests (Files): Likewise.
59446         * modules/popen-safer-tests (Files): Likewise.
59447         * modules/popen-tests (Files): Likewise.
59448         * modules/posixtm-tests (Files): Likewise.
59449         * modules/pread-tests (Files): Likewise.
59450         * modules/printf-frexp-tests (Files): Likewise.
59451         * modules/printf-frexpl-tests (Files): Likewise.
59452         * modules/printf-posix-tests (Files): Likewise.
59453         * modules/priv-set-tests (Files): Likewise.
59454         * modules/quotearg-tests (Files): Likewise.
59455         * modules/random_r-tests (Files): Likewise.
59456         * modules/rawmemchr-tests (Files): Likewise.
59457         * modules/rbtree-list-tests (Files): Likewise.
59458         * modules/rbtree-oset-tests (Files): Likewise.
59459         * modules/rbtreehash-list-tests (Files): Likewise.
59460         * modules/readlink-tests (Files): Likewise.
59461         * modules/remove-tests (Files): Likewise.
59462         * modules/rename-tests (Files): Likewise.
59463         * modules/renameat-tests (Files): Likewise.
59464         * modules/rmdir-tests (Files): Likewise.
59465         * modules/round-tests (Files): Likewise.
59466         * modules/roundf-tests (Files): Likewise.
59467         * modules/roundl-tests (Files): Likewise.
59468         * modules/safe-alloc-tests (Files): Likewise.
59469         * modules/setenv-tests (Files): Likewise.
59470         * modules/sigaction-tests (Files): Likewise.
59471         * modules/signbit-tests (Files): Likewise.
59472         * modules/sleep-tests (Files): Likewise.
59473         * modules/snprintf-posix-tests (Files): Likewise.
59474         * modules/snprintf-tests (Files): Likewise.
59475         * modules/sprintf-posix-tests (Files): Likewise.
59476         * modules/stat-tests (Files): Likewise.
59477         * modules/stat-time-tests (Files): Likewise.
59478         * modules/strcasestr-tests (Files): Likewise.
59479         * modules/strchrnul-tests (Files): Likewise.
59480         * modules/strerror-tests (Files): Likewise.
59481         * modules/striconv-tests (Files): Likewise.
59482         * modules/striconveh-tests (Files): Likewise.
59483         * modules/striconveha-tests (Files): Likewise.
59484         * modules/strsignal-tests (Files): Likewise.
59485         * modules/strstr-tests (Files): Likewise.
59486         * modules/strtod-tests (Files): Likewise.
59487         * modules/strverscmp-tests (Files): Likewise.
59488         * modules/symlink-tests (Files): Likewise.
59489         * modules/symlinkat-tests (Files): Likewise.
59490         * modules/trunc-tests (Files): Likewise.
59491         * modules/truncf-tests (Files): Likewise.
59492         * modules/truncl-tests (Files): Likewise.
59493         * modules/uname-tests (Files): Likewise.
59494         * modules/unicase/cased-tests (Files): Likewise.
59495         * modules/unicase/ignorable-tests (Files): Likewise.
59496         * modules/unicase/locale-language-tests (Files): Likewise.
59497         * modules/unicase/tolower-tests (Files): Likewise.
59498         * modules/unicase/totitle-tests (Files): Likewise.
59499         * modules/unicase/toupper-tests (Files): Likewise.
59500         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59501         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59502         * modules/unicase/u8-casefold-tests (Files): Likewise.
59503         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59504         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59505         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59506         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59507         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59508         * modules/unicase/u8-tolower-tests (Files): Likewise.
59509         * modules/unicase/u8-totitle-tests (Files): Likewise.
59510         * modules/unicase/u8-toupper-tests (Files): Likewise.
59511         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59512         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59513         * modules/unicase/u16-casefold-tests (Files): Likewise.
59514         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59515         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59516         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59517         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59518         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59519         * modules/unicase/u16-tolower-tests (Files): Likewise.
59520         * modules/unicase/u16-totitle-tests (Files): Likewise.
59521         * modules/unicase/u16-toupper-tests (Files): Likewise.
59522         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59523         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59524         * modules/unicase/u32-casefold-tests (Files): Likewise.
59525         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59526         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59527         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59528         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59529         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59530         * modules/unicase/u32-tolower-tests (Files): Likewise.
59531         * modules/unicase/u32-totitle-tests (Files): Likewise.
59532         * modules/unicase/u32-toupper-tests (Files): Likewise.
59533         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59534         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59535         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59536         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59537         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59538         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59539         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59540         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59541         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59542         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59543         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59544         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59545         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59546         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59547         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59548         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59549         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59550         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59551         * modules/unictype/block-list-tests (Files): Likewise.
59552         * modules/unictype/block-of-tests (Files): Likewise.
59553         * modules/unictype/block-test-tests (Files): Likewise.
59554         * modules/unictype/category-C-tests (Files): Likewise.
59555         * modules/unictype/category-Cc-tests (Files): Likewise.
59556         * modules/unictype/category-Cf-tests (Files): Likewise.
59557         * modules/unictype/category-Cn-tests (Files): Likewise.
59558         * modules/unictype/category-Co-tests (Files): Likewise.
59559         * modules/unictype/category-Cs-tests (Files): Likewise.
59560         * modules/unictype/category-L-tests (Files): Likewise.
59561         * modules/unictype/category-Ll-tests (Files): Likewise.
59562         * modules/unictype/category-Lm-tests (Files): Likewise.
59563         * modules/unictype/category-Lo-tests (Files): Likewise.
59564         * modules/unictype/category-Lt-tests (Files): Likewise.
59565         * modules/unictype/category-Lu-tests (Files): Likewise.
59566         * modules/unictype/category-M-tests (Files): Likewise.
59567         * modules/unictype/category-Mc-tests (Files): Likewise.
59568         * modules/unictype/category-Me-tests (Files): Likewise.
59569         * modules/unictype/category-Mn-tests (Files): Likewise.
59570         * modules/unictype/category-N-tests (Files): Likewise.
59571         * modules/unictype/category-Nd-tests (Files): Likewise.
59572         * modules/unictype/category-Nl-tests (Files): Likewise.
59573         * modules/unictype/category-No-tests (Files): Likewise.
59574         * modules/unictype/category-P-tests (Files): Likewise.
59575         * modules/unictype/category-Pc-tests (Files): Likewise.
59576         * modules/unictype/category-Pd-tests (Files): Likewise.
59577         * modules/unictype/category-Pe-tests (Files): Likewise.
59578         * modules/unictype/category-Pf-tests (Files): Likewise.
59579         * modules/unictype/category-Pi-tests (Files): Likewise.
59580         * modules/unictype/category-Po-tests (Files): Likewise.
59581         * modules/unictype/category-Ps-tests (Files): Likewise.
59582         * modules/unictype/category-S-tests (Files): Likewise.
59583         * modules/unictype/category-Sc-tests (Files): Likewise.
59584         * modules/unictype/category-Sk-tests (Files): Likewise.
59585         * modules/unictype/category-Sm-tests (Files): Likewise.
59586         * modules/unictype/category-So-tests (Files): Likewise.
59587         * modules/unictype/category-Z-tests (Files): Likewise.
59588         * modules/unictype/category-Zl-tests (Files): Likewise.
59589         * modules/unictype/category-Zp-tests (Files): Likewise.
59590         * modules/unictype/category-Zs-tests (Files): Likewise.
59591         * modules/unictype/category-and-not-tests (Files): Likewise.
59592         * modules/unictype/category-and-tests (Files): Likewise.
59593         * modules/unictype/category-byname-tests (Files): Likewise.
59594         * modules/unictype/category-name-tests (Files): Likewise.
59595         * modules/unictype/category-none-tests (Files): Likewise.
59596         * modules/unictype/category-of-tests (Files): Likewise.
59597         * modules/unictype/category-or-tests (Files): Likewise.
59598         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59599         * modules/unictype/combining-class-tests (Files): Likewise.
59600         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59601         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59602         * modules/unictype/ctype-blank-tests (Files): Likewise.
59603         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59604         * modules/unictype/ctype-digit-tests (Files): Likewise.
59605         * modules/unictype/ctype-graph-tests (Files): Likewise.
59606         * modules/unictype/ctype-lower-tests (Files): Likewise.
59607         * modules/unictype/ctype-print-tests (Files): Likewise.
59608         * modules/unictype/ctype-punct-tests (Files): Likewise.
59609         * modules/unictype/ctype-space-tests (Files): Likewise.
59610         * modules/unictype/ctype-upper-tests (Files): Likewise.
59611         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59612         * modules/unictype/decimal-digit-tests (Files): Likewise.
59613         * modules/unictype/digit-tests (Files): Likewise.
59614         * modules/unictype/mirror-tests (Files): Likewise.
59615         * modules/unictype/numeric-tests (Files): Likewise.
59616         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59617         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59618         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59619         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59620         Likewise.
59621         * modules/unictype/property-bidi-block-separator-tests (Files):
59622         Likewise.
59623         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59624         Likewise.
59625         * modules/unictype/property-bidi-common-separator-tests (Files):
59626         Likewise.
59627         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59628         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59629         Likewise.
59630         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59631         Likewise.
59632         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59633         Likewise.
59634         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59635         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59636         Likewise.
59637         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59638         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59639         Likewise.
59640         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59641         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59642         * modules/unictype/property-bidi-segment-separator-tests (Files):
59643         Likewise.
59644         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59645         * modules/unictype/property-byname-tests (Files): Likewise.
59646         * modules/unictype/property-combining-tests (Files): Likewise.
59647         * modules/unictype/property-composite-tests (Files): Likewise.
59648         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59649         * modules/unictype/property-dash-tests (Files): Likewise.
59650         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59651         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59652         Likewise.
59653         * modules/unictype/property-deprecated-tests (Files): Likewise.
59654         * modules/unictype/property-diacritic-tests (Files): Likewise.
59655         * modules/unictype/property-extender-tests (Files): Likewise.
59656         * modules/unictype/property-format-control-tests (Files): Likewise.
59657         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59658         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59659         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59660         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59661         * modules/unictype/property-hyphen-tests (Files): Likewise.
59662         * modules/unictype/property-id-continue-tests (Files): Likewise.
59663         * modules/unictype/property-id-start-tests (Files): Likewise.
59664         * modules/unictype/property-ideographic-tests (Files): Likewise.
59665         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59666         * modules/unictype/property-ids-trinary-operator-tests (Files):
59667         Likewise.
59668         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59669         * modules/unictype/property-iso-control-tests (Files): Likewise.
59670         * modules/unictype/property-join-control-tests (Files): Likewise.
59671         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59672         * modules/unictype/property-line-separator-tests (Files): Likewise.
59673         * modules/unictype/property-logical-order-exception-tests (Files):
59674         Likewise.
59675         * modules/unictype/property-lowercase-tests (Files): Likewise.
59676         * modules/unictype/property-math-tests (Files): Likewise.
59677         * modules/unictype/property-non-break-tests (Files): Likewise.
59678         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59679         * modules/unictype/property-numeric-tests (Files): Likewise.
59680         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59681         * modules/unictype/property-other-default-ignorable-code-point-tests
59682         (Files): Likewise.
59683         * modules/unictype/property-other-grapheme-extend-tests (Files):
59684         Likewise.
59685         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59686         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59687         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59688         * modules/unictype/property-other-math-tests (Files): Likewise.
59689         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59690         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59691         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59692         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59693         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59694         * modules/unictype/property-private-use-tests (Files): Likewise.
59695         * modules/unictype/property-punctuation-tests (Files): Likewise.
59696         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59697         * modules/unictype/property-radical-tests (Files): Likewise.
59698         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59699         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59700         * modules/unictype/property-space-tests (Files): Likewise.
59701         * modules/unictype/property-terminal-punctuation-tests (Files):
59702         Likewise.
59703         * modules/unictype/property-test-tests (Files): Likewise.
59704         * modules/unictype/property-titlecase-tests (Files): Likewise.
59705         * modules/unictype/property-unassigned-code-value-tests (Files):
59706         Likewise.
59707         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59708         * modules/unictype/property-uppercase-tests (Files): Likewise.
59709         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59710         * modules/unictype/property-white-space-tests (Files): Likewise.
59711         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59712         * modules/unictype/property-xid-start-tests (Files): Likewise.
59713         * modules/unictype/property-zero-width-tests (Files): Likewise.
59714         * modules/unictype/scripts-tests (Files): Likewise.
59715         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59716         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59717         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59718         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59719         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59720         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59721         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59722         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59723         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59724         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59725         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59726         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59727         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59728         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59729         * modules/uninorm/composition-tests (Files): Likewise.
59730         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59731         * modules/uninorm/decomposition-tests (Files): Likewise.
59732         * modules/uninorm/filter-tests (Files): Likewise.
59733         * modules/uninorm/nfc-tests (Files): Likewise.
59734         * modules/uninorm/nfd-tests (Files): Likewise.
59735         * modules/uninorm/nfkc-tests (Files): Likewise.
59736         * modules/uninorm/nfkd-tests (Files): Likewise.
59737         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59738         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59739         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59740         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59741         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59742         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59743         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59744         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59745         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59746         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59747         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59748         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59749         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59750         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59751         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59752         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59753         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59754         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59755         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59756         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59757         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59758         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59759         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59760         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59761         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59762         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59763         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59764         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59765         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59766         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59767         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59768         * modules/uniwidth/u8-width-tests (Files): Likewise.
59769         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59770         * modules/uniwidth/u16-width-tests (Files): Likewise.
59771         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59772         * modules/uniwidth/u32-width-tests (Files): Likewise.
59773         * modules/uniwidth/width-tests (Files): Likewise.
59774         * modules/unlink-tests (Files): Likewise.
59775         * modules/unsetenv-tests (Files): Likewise.
59776         * modules/usleep-tests (Files): Likewise.
59777         * modules/utimens-tests (Files): Likewise.
59778         * modules/utimensat-tests (Files): Likewise.
59779         * modules/vasnprintf-posix-tests (Files): Likewise.
59780         * modules/vasnprintf-tests (Files): Likewise.
59781         * modules/vasprintf-posix-tests (Files): Likewise.
59782         * modules/vasprintf-tests (Files): Likewise.
59783         * modules/vdprintf-posix-tests (Files): Likewise.
59784         * modules/vfprintf-posix-tests (Files): Likewise.
59785         * modules/vprintf-posix-tests (Files): Likewise.
59786         * modules/vsnprintf-posix-tests (Files): Likewise.
59787         * modules/vsnprintf-tests (Files): Likewise.
59788         * modules/vsprintf-posix-tests (Files): Likewise.
59789         * modules/wcrtomb-tests (Files): Likewise.
59790         * modules/wcsnrtombs-tests (Files): Likewise.
59791         * modules/wcsrtombs-tests (Files): Likewise.
59792         * modules/wctype-tests (Files): Likewise.
59793         * modules/wcwidth-tests (Files): Likewise.
59794         * modules/xmemdup0-tests (Files): Likewise.
59795         * modules/xprintf-posix-tests (Files): Likewise.
59796         * modules/xvasprintf-tests (Files): Likewise.
59798 2009-12-24  Eric Blake  <ebb9@byu.net>
59800         test-nanosleep: fix typo
59801         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59802         patch.
59803         Reported by Bruno Haible.
59805 2009-12-24  Bruno Haible  <bruno@clisp.org>
59807         Reduce namespace pollution on glibc systems.
59808         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59809         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59810         systems.
59811         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59812         <getopt.h> on glibc systems.
59813         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59814         systems.
59815         * lib/fcntl.c: Include <unistd.h> here instead.
59817 2009-12-24  Bruno Haible  <bruno@clisp.org>
59819         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59821 2009-12-24  Eric Blake  <ebb9@byu.net>
59823         tests: add signature checks
59824         * tests/signature.h (SIGNATURE_CHECK): New file.
59825         * modules/atexit-tests (Files): Use it.
59826         * modules/btowc-tests (Files): Likewise.
59827         * modules/canonicalize-lgpl-tests (Files): Likewise.
59828         * modules/ceilf-tests (Files): Likewise.
59829         * modules/ceill-tests (Files): Likewise.
59830         * modules/chown-tests (Files): Likewise.
59831         * modules/dprintf-posix-tests (Files): Likewise.
59832         * modules/dup2-tests (Files): Likewise.
59833         * modules/dup3-tests (Files): Likewise.
59834         * modules/duplocale-tests (Files): Likewise.
59835         * modules/fchdir-tests (Files): Likewise.
59836         * modules/fcntl-tests (Files): Likewise.
59837         * modules/fdopendir-tests (Files): Likewise.
59838         * modules/fflush-tests (Files): Likewise.
59839         * modules/flock-tests (Files): Likewise.
59840         * modules/floorf-tests (Files): Likewise.
59841         * modules/floorl-tests (Files): Likewise.
59842         * modules/fnmatch-tests (Files): Likewise.
59843         * modules/fopen-tests (Files): Likewise.
59844         * modules/fprintf-posix-tests (Files): Likewise.
59845         * modules/freopen-tests (Files): Likewise.
59846         * modules/frexp-nolibm-tests (Files): Likewise.
59847         * modules/frexp-tests (Files): Likewise.
59848         * modules/frexpl-nolibm-tests (Files): Likewise.
59849         * modules/frexpl-tests (Files): Likewise.
59850         * modules/fseek-tests (Files): Likewise.
59851         * modules/fseeko-tests (Files): Likewise.
59852         * modules/fsync-tests (Files): Likewise.
59853         * modules/ftell-tests (Files): Likewise.
59854         * modules/ftello-tests (Files): Likewise.
59855         * modules/futimens-tests (Files): Likewise.
59856         * modules/getaddrinfo-tests (Files): Likewise.
59857         * modules/getcwd-tests (Files): Likewise.
59858         * modules/getdelim-tests (Files): Likewise.
59859         * modules/getdtablesize-tests (Files): Likewise.
59860         * modules/getgroups-tests (Files): Likewise.
59861         * modules/gethostname-tests (Files): Likewise.
59862         * modules/getline-tests (Files): Likewise.
59863         * modules/getopt-posix-tests (Files): Likewise.
59864         * modules/gettimeofday-tests (Files): Likewise.
59865         * modules/glob-tests (Files): Likewise.
59866         * modules/iconv-tests (Files): Likewise.
59867         * modules/inet_ntop-tests (Files): Likewise.
59868         * modules/inet_pton-tests (Files): Likewise.
59869         * modules/isblank-tests (Files): Likewise.
59870         * modules/lchown-tests (Files): Likewise.
59871         * modules/ldexpl-tests (Files): Likewise.
59872         * modules/link-tests (Files): Likewise.
59873         * modules/linkat-tests (Files): Likewise.
59874         * modules/lseek-tests (Files): Likewise.
59875         * modules/lstat-tests (Files): Likewise.
59876         * modules/mbrtowc-tests (Files): Likewise.
59877         * modules/mbsinit-tests (Files): Likewise.
59878         * modules/mbsnrtowcs-tests (Files): Likewise.
59879         * modules/mbsrtowcs-tests (Files): Likewise.
59880         * modules/memchr-tests (Files): Likewise.
59881         * modules/memcmp-tests (Files): Likewise.
59882         * modules/memmem-tests (Files): Likewise.
59883         * modules/memrchr-tests (Files): Likewise.
59884         * modules/mkdir-tests (Files): Likewise.
59885         * modules/mkfifo-tests (Files): Likewise.
59886         * modules/mkfifoat-tests (Files): Likewise.
59887         * modules/mknod-tests (Files): Likewise.
59888         * modules/nanosleep-tests (Files): Likewise.
59889         * modules/nl_langinfo-tests (Files): Likewise.
59890         * modules/obstack-printf-tests (Files): Likewise.
59891         * modules/open-tests (Files): Likewise.
59892         * modules/openat-tests (Files): Likewise.
59893         * modules/perror-tests (Files): Likewise.
59894         * modules/pipe2-tests (Files): Likewise.
59895         * modules/poll-tests (Files): Likewise.
59896         * modules/popen-tests (Files): Likewise.
59897         * modules/posix_spawn-tests (Files): Likewise.
59898         * modules/posix_spawnp-tests (Files): Likewise.
59899         * modules/pread-tests (Files): Likewise.
59900         * modules/printf-posix-tests (Files): Likewise.
59901         * modules/pty-tests (Files): Likewise.
59902         * modules/random_r-tests (Files): Likewise.
59903         * modules/rawmemchr-tests (Files): Likewise.
59904         * modules/readlink-tests (Files): Likewise.
59905         * modules/remove-tests (Files): Likewise.
59906         * modules/rename-tests (Files): Likewise.
59907         * modules/renameat-tests (Files): Likewise.
59908         * modules/rmdir-tests (Files): Likewise.
59909         * modules/round-tests (Files): Likewise.
59910         * modules/roundf-tests (Files): Likewise.
59911         * modules/roundl-tests (Files): Likewise.
59912         * modules/select-tests (Files): Likewise.
59913         * modules/setenv-tests (Files): Likewise.
59914         * modules/sigaction-tests (Files): Likewise.
59915         * modules/sleep-tests (Files): Likewise.
59916         * modules/snprintf-posix-tests (Files): Likewise.
59917         * modules/snprintf-tests (Files): Likewise.
59918         * modules/sprintf-posix-tests (Files): Likewise.
59919         * modules/stat-tests (Files): Likewise.
59920         * modules/strcasestr-tests (Files): Likewise.
59921         * modules/strchrnul-tests (Files): Likewise.
59922         * modules/strerror-tests (Files): Likewise.
59923         * modules/strsignal-tests (Files): Likewise.
59924         * modules/strstr-tests (Files): Likewise.
59925         * modules/strtod-tests (Files): Likewise.
59926         * modules/strverscmp-tests (Files): Likewise.
59927         * modules/symlink-tests (Files): Likewise.
59928         * modules/symlinkat-tests (Files): Likewise.
59929         * modules/times-tests (Files): Likewise.
59930         * modules/trunc-tests (Files): Likewise.
59931         * modules/truncf-tests (Files): Likewise.
59932         * modules/truncl-tests (Files): Likewise.
59933         * modules/tsearch-tests (Files): Likewise.
59934         * modules/uname-tests (Files): Likewise.
59935         * modules/unlink-tests (Files): Likewise.
59936         * modules/unsetenv-tests (Files): Likewise.
59937         * modules/usleep-tests (Files): Likewise.
59938         * modules/utimensat-tests (Files): Likewise.
59939         * modules/vasprintf-tests (Files): Likewise.
59940         * modules/vdprintf-posix-tests (Files): Likewise.
59941         * modules/vfprintf-posix-tests (Files): Likewise.
59942         * modules/vprintf-posix-tests (Files): Likewise.
59943         * modules/vsnprintf-posix-tests (Files): Likewise.
59944         * modules/vsnprintf-tests (Files): Likewise.
59945         * modules/vsprintf-posix-tests (Files): Likewise.
59946         * modules/wcrtomb-tests (Files): Likewise.
59947         * modules/wcsnrtombs-tests (Files): Likewise.
59948         * modules/wcsrtombs-tests (Files): Likewise.
59949         * modules/wcwidth-tests (Files): Likewise.
59950         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59951         * tests/test-isinf.c (isinf): Likewise.
59952         * tests/test-isnan.c (isnan): Likewise.
59953         * tests/test-signbit.c (signbit): Likewise.
59954         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59955         declaration, either as macro or with correct signature.
59956         (select): Ensure function under test is declared with correct
59957         signature in correct header.
59958         * tests/test-atexit.c (atexit): Likewise.
59959         * tests/test-btowc.c (btowc): Likewise.
59960         * tests/test-canonicalize-lgpl.c (realpath)
59961         (canonicalize_file_name): Likewise.
59962         * tests/test-ceilf1.c (ceilf): Likewise.
59963         * tests/test-ceill.c (ceill): Likewise.
59964         * tests/test-chown.c (chown): Likewise.
59965         * tests/test-dprintf-posix.c (dprintf): Likewise.
59966         * tests/test-dup2.c (dup2): Likewise.
59967         * tests/test-dup3.c (dup3): Likewise.
59968         * tests/test-duplocale.c (duplocale): Likewise.
59969         * tests/test-fchdir.c (fchdir): Likewise.
59970         * tests/test-fchownat.c (fchownat): Likewise.
59971         * tests/test-fcntl.c (fcntl): Likewise.
59972         * tests/test-fdopendir.c (fdopendir): Likewise.
59973         * tests/test-fflush.c (fflush): Likewise.
59974         * tests/test-flock.c (flock): Likewise.
59975         * tests/test-floorf1.c (floorf): Likewise.
59976         * tests/test-floorl.c (floorl): Likewise.
59977         * tests/test-fnmatch.c (fnmatch): Likewise.
59978         * tests/test-fopen.c (fopen): Likewise.
59979         * tests/test-fprintf-posix.c (fprintf): Likewise.
59980         * tests/test-freopen.c (freopen): Likewise.
59981         * tests/test-frexp.c (frexp): Likewise.
59982         * tests/test-frexpl.c (frexpl): Likewise.
59983         * tests/test-fseek.c (fseek): Likewise.
59984         * tests/test-fseeko.c (fseeko): Likewise.
59985         * tests/test-fstatat.c (fstatat): Likewise.
59986         * tests/test-fsync.c (fsync): Likewise.
59987         * tests/test-ftell.c (ftell): Likewise.
59988         * tests/test-ftello.c (ftello): Likewise.
59989         * tests/test-futimens.c (futimens): Likewise.
59990         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59991         (gai_strerror): Likewise.
59992         * tests/test-getcwd.c (getcwd): Likewise.
59993         * tests/test-getdelim.c (getdelim): Likewise.
59994         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59995         * tests/test-getgroups.c (getgroups): Likewise.
59996         * tests/test-gethostname.c (gethostname): Likewise.
59997         * tests/test-getline.c (getline): Likewise.
59998         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59999         Likewise.
60000         * tests/test-gettimeofday.c (gettimeofday): Likewise.
60001         * tests/test-glob.c (glob, globfree): Likewise.
60002         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
60003         * tests/test-inet_ntop.c (inet_ntop): Likewise.
60004         * tests/test-inet_pton.c (inet_pton): Likewise.
60005         * tests/test-isblank.c (isblank): Likewise.
60006         * tests/test-lchown.c (lchown): Likewise.
60007         * tests/test-ldexpl.c (ldexpl): Likewise.
60008         * tests/test-link.c (link): Likewise.
60009         * tests/test-linkat.c (linkat): Likewise.
60010         * tests/test-lseek.c (lseek): Likewise.
60011         * tests/test-lstat.c (lstat): Likewise.
60012         * tests/test-mbrtowc.c (mbrtowc): Likewise.
60013         * tests/test-mbsinit.c (mbsinit): Likewise.
60014         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
60015         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
60016         * tests/test-memchr.c (memchr): Likewise.
60017         * tests/test-memcmp.c (memcmp): Likewise.
60018         * tests/test-memmem.c (memmem): Likewise.
60019         * tests/test-memrchr.c (memrchr): Likewise.
60020         * tests/test-mkdir.c (mkdir): Likewise.
60021         * tests/test-mkdirat.c (mkdirat): Likewise.
60022         * tests/test-mkfifo.c (mkfifo): Likewise.
60023         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
60024         * tests/test-mknod.c (mknod): Likewise.
60025         * tests/test-nanosleep.c (nanosleep): Likewise.
60026         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
60027         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
60028         Likewise.
60029         * tests/test-open.c (open): Likewise.
60030         * tests/test-openat.c (openat): Likewise.
60031         * tests/test-perror.c (perror): Likewise.
60032         * tests/test-pipe2.c (pipe2): Likewise.
60033         * tests/test-poll.c (poll): Likewise.
60034         * tests/test-popen.c (popen, pclose): Likewise.
60035         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
60036         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
60037         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
60038         (posix_spawn_file_actions_destroy)
60039         (posix_spawn_file_actions_addclose)
60040         (posix_spawn_file_actions_addopen)
60041         (posix_spawn_file_actions_adddup2): Likewise.
60042         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
60043         * tests/test-pread.c (pread): Likewise.
60044         * tests/test-printf-posix.c (printf): Likewise.
60045         * tests/test-pty.c (openpty, forkpty): Likewise.
60046         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
60047         (random_r): Likewise.
60048         * tests/test-rawmemchr.c (rawmemchr): Likewise.
60049         * tests/test-readlink.c (readlink): Likewise.
60050         * tests/test-remove.c (remove): Likewise.
60051         * tests/test-rename.c (rename): Likewise.
60052         * tests/test-renameat.c (renameat): Likewise.
60053         * tests/test-rmdir.c (rmdir): Likewise.
60054         * tests/test-round1.c (round): Likewise.
60055         * tests/test-roundf1.c (roundf): Likewise.
60056         * tests/test-roundl.c (roundl): Likewise.
60057         * tests/test-setenv.c (setenv): Likewise.
60058         * tests/test-sigaction.c (sigaction): Likewise.
60059         * tests/test-sleep.c (sleep): Likewise.
60060         * tests/test-snprintf.c (snprintf): Likewise.
60061         * tests/test-sprintf-posix.c (sprintf): Likewise.
60062         * tests/test-stat.c (stat): Likewise.
60063         * tests/test-stpncpy.c (stpncpy): Likewise.
60064         * tests/test-strcasestr.c (strcasestr): Likewise.
60065         * tests/test-strchrnul.c (strchrnul): Likewise.
60066         * tests/test-strerror.c (strerror): Likewise.
60067         * tests/test-strsignal.c (strsignal): Likewise.
60068         * tests/test-strstr.c (strstr): Likewise.
60069         * tests/test-strtod.c (strtod): Likewise.
60070         * tests/test-strverscmp.c (strverscmp): Likewise.
60071         * tests/test-symlink.c (symlink): Likewise.
60072         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
60073         * tests/test-times.c (times): Likewise.
60074         * tests/test-trunc1.c (trunc): Likewise.
60075         * tests/test-truncf1.c (truncf): Likewise.
60076         * tests/test-truncl.c (truncl): Likewise.
60077         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
60078         Likewise.
60079         * tests/test-uname.c (uname): Likewise.
60080         * tests/test-unlink.c (unlink): Likewise.
60081         * tests/test-unlinkat.c (unlinkat): Likewise.
60082         * tests/test-unsetenv.c (unsetenv): Likewise.
60083         * tests/test-usleep.c (usleep): Likewise.
60084         * tests/test-utimensat.c (utimensat): Likewise.
60085         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
60086         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
60087         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
60088         * tests/test-vprintf-posix.c (vprintf): Likewise.
60089         * tests/test-vsnprintf.c (vsnprintf): Likewise.
60090         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
60091         * tests/test-wcrtomb.c (wcrtomb): Likewise.
60092         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
60093         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
60094         * tests/test-wcwidth.c (wcwidth): Likewise.
60096         build: pull in conditional headers during GNULIB_POSIXCHECK
60097         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
60098         definitions from any conditionally-included headers.
60099         * lib/stdlib.in.h (includes): Likewise.
60100         * lib/unistd.in.h (includes): Likewise.
60102 2009-12-24  Bruno Haible  <bruno@clisp.org>
60104         * tests/test-argv-iter.c: Include header file being tested immediately
60105         after config.h.
60106         * tests/test-base64.c: Likewise.
60107         * tests/test-flock.c: Likewise.
60108         * tests/test-fsync.c: Likewise.
60109         * tests/test-getdate.c: Likewise.
60110         * tests/test-getndelim2.c: Likewise.
60111         * tests/test-isfinite.c: Likewise.
60112         * tests/test-isinf.c: Likewise.
60113         * tests/test-strerror.c: Likewise.
60114         * tests/test-strsignal.c: Likewise.
60116 2009-12-23  Eric Blake  <ebb9@byu.net>
60118         unistd: work around cygwin bug
60119         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60120         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60121         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60123 2009-12-23  Bruno Haible  <bruno@clisp.org>
60125         localename: More tests.
60126         * tests/test-localename.c (SIZEOF): New macro.
60127         (categories): New variable.
60128         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60129         test_locale_name_default): Add test w.r.t. thread locale.
60130         (test_locale_name_thread): New function.
60131         (main): Invoke it.
60133         localename: Make aware of thread locale.
60134         * lib/localename.h (gl_locale_name_thread): New declaration.
60135         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60136         behaviour with respect to thread locale.
60137         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60138         <langinfo.h>, glthread/lock.h.
60139         (SIZE_BITS): New macro.
60140         (string_hash): New function.
60141         (struct hash_node): New type.
60142         (HASH_TABLE_SIZE): New macro.
60143         (struniq_hash_table, struniq_lock): New variables.
60144         (struniq): New function.
60145         (gl_locale_name_thread): New function.
60146         (gl_locale_name): Invoke it.
60147         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60148         * modules/localename (Depends-on): Add lock.
60149         Reported by Mike Gran <spk121@yahoo.com>.
60151 2009-12-23  Eric Blake  <ebb9@byu.net>
60153         va-args: new module
60154         * modules/va-args: New file.
60155         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60156         * MODULES.html.sh (Core language properties): Mention it.
60158         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60159         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60160         named alias for __attribute__((__unused__)).
60161         * lib/chown.c: Update client.
60162         * lib/fchmodat.c: Likewise.
60163         * lib/fts.c: Likewise.
60164         * lib/getdate.y: Likewise.
60165         * lib/getgroups.c: Likewise.
60166         * lib/getopt.c: Likewise.
60167         * lib/getugroups.c: Likewise.
60168         * lib/mkdir.c: Likewise.
60169         * lib/mkfifo.c: Likewise.
60170         * lib/mkfifoat.c: Likewise.
60171         * lib/mknod.c: Likewise.
60172         * lib/mknodat.c: Likewise.
60173         * lib/readlink.c: Likewise.
60174         * lib/se-context.in.h: Likewise.
60175         * lib/se-selinux.in.h: Likewise.
60176         * lib/sockets.c: Likewise.
60177         * lib/symlink.c: Likewise.
60178         * lib/symlinkat.c: Likewise.
60179         * lib/unicodeio.c: Likewise.
60180         * lib/unistr.h: Likewise.
60181         * tests/test-areadlink.c: Likewise.
60182         * tests/test-areadlinkat.c: Likewise.
60183         * tests/test-filenamecat.c: Likewise.
60184         * tests/test-fseeko.c: Likewise.
60185         * tests/test-ftello.c: Likewise.
60186         * tests/test-getdate.c: Likewise.
60187         * tests/test-getgroups.c: Likewise.
60188         * tests/test-gethostname.c: Likewise.
60189         * tests/test-quotearg.c: Likewise.
60190         * tests/test-version-etc.c: Likewise.
60191         * tests/test-xalloc-die.c: Likewise.
60192         * tests/test-xfprintf-posix.c: Likewise.
60193         * tests/test-xprintf-posix.c: Likewise.
60194         * tests/test-xvasprintf.c: Likewise.
60196         tests: avoid compiler warnings
60197         * tests/test-fcntl.c (main): Delete unused parameters.
60198         * tests/test-freopen-safer.c (main): Likewise.
60199         * tests/test-xalloc-die.c (main): Mark unused parameters.
60200         * tests/test-fseeko.c (main): Likewise.
60201         * tests/test-ftello.c (main): Likewise.
60202         * tests/test-nanosleep.c (main): Avoid declaration warning.
60203         * tests/test-sleep.c (main): Likewise.
60204         * tests/test-unsetenv.c (main): Silence warning about string
60205         literal.
60206         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60208 2009-12-23  Bruno Haible  <bruno@clisp.org>
60210         * tests/test-localename.c (test_locale_name): New function, extracted
60211         from main. Also test mixed situations.
60212         (test_locale_name_posix, test_locale_name_environ,
60213         test_locale_name_default): New functions.
60214         (main): Invoke them all.
60215         * modules/localename-tests (configure.ac): Test for newlocale.
60217 2009-12-23  Bruno Haible  <bruno@clisp.org>
60219         unistd: Ensure getcwd gets declared before being overridden.
60220         * lib/unistd.in.h: Conditionally include <io.h>.
60222 2009-12-22  Bruno Haible  <bruno@clisp.org>
60224         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60225         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60226         (gl_WCHAR_H): Invoke it.
60227         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60228         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60229         Reported by Karl Berry <karl@freefriends.org>.
60231 2009-12-22  Eric Blake  <ebb9@byu.net>
60233         math, unistd: avoid redundant includes
60234         * lib/math.in.h (isnan): No need to re-include <math.h>.
60235         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60237         getsubopt: work around cygwin bug
60238         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60239         avoid conflicting with system getsubopt.
60240         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60241         bug.
60243         getopt: synchronize from glibc
60244         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60245         parameter order.  Adjust all callers.
60246         (_getopt_internal_r, main): Adjust quoting in error messages.
60247         Drop considerations for outdated POSIX 1003.2 error message.
60248         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60249         callers.
60250         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60252         test-getopt: test stderr behavior
60253         * modules/getopt-posix-tests (Depends-on): Add dup2.
60254         * tests/test-getopt.c (ASSERT): Avoid stderr.
60255         (main): Move stderr to a temporary file.
60256         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60257         Instead, add parameter to inform caller if output occurred.
60258         (test_getopt): Adjust all existing tests to expect silence, and
60259         add new tests of leading ":".
60260         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60261         glibc shortcomings with leading "-:" or "+:" in optstring.
60262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60263         Likewise.
60264         * doc/posix-functions/getopt.texi (getopt): Likewise.
60266         test-getopt: enhance test
60267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60268         supports optind=0.
60269         * tests/test-getopt.c (OPTIND_MIN): Move...
60270         * tests/test-getopt.h (OPTIND_MIN): ...here.
60271         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60272         Require that optind=0 works, since modern BSD supports it in
60273         addition to optreset, and since coreutils expects it.
60274         (test_getopt_long_only): New test.
60275         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60276         glibc shortcomings with 'W;', and enforcement of optind=0.
60277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60278         Likewise.
60280 2009-12-21  Bruno Haible  <bruno@clisp.org>
60282         localename: Improvements for MacOS X and Cygwin.
60283         * lib/localename.h (gl_locale_name_environ): New declaration.
60284         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60285         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60286         (gl_locale_name_posix): Invoke it.
60287         (gl_locale_name_default): Add comments. Use Windows native API also on
60288         Cygwin.
60290 2009-12-21  Bruno Haible  <bruno@clisp.org>
60292         Update list of Win32 locale ids.
60293         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60294         (LANG_SAMI): Renamed from LANG_SAAMI.
60295         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60296         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60297         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60298         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60299         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60300         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60301         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60302         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60303         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60304         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60305         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60306         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60307         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60308         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60309         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60310         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60311         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60312         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60313         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60314         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60315         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60316         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60317         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60318         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60319         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60320         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60321         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60322         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60323         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60324         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60325         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60326         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60327         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60328         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60329         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60330         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60331         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60332         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60333         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60334         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60335         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60336         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60337         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60338         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60339         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60340         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60341         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60342         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60343         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60344         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60345         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60346         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60347         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60348         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60349         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60350         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60351         Add more languages and countries for Sami, Sorbian. Add more countries
60352         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60353         for Pashto. Change country for Syriac, Tswana.
60355 2009-12-21  Eric Blake  <ebb9@byu.net>
60357         test-utimens: avoid spurious failure
60358         * tests/test-chown.h (nap): Factor...
60359         * tests/nap.h: ...into new file.
60360         * tests/test-lchown.h (nap): Avoid duplication.
60361         * tests/test-utimens-common.h (nap): Use shared implementation,
60362         necessary on file systems with 1-second resolution.
60363         * modules/chown-tests (Files): Include new file.
60364         * modules/fdutimensat-tests (Files): Likewise.
60365         * modules/futimens-tests (Files): Likewise.
60366         * modules/lchown-tests (Files): Likewise.
60367         * modules/openat-tests (Files): Likewise.
60368         * modules/utimens-tests (Files): Likewise.
60369         * modules/utimensat-tests (Files): Likewise.
60371 2009-12-19  Eric Blake  <ebb9@byu.net>
60373         futimens, utimensat: work around Linux bug
60374         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60375         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60376         * lib/utimensat.c (rpl_utimensat): Work around it.
60377         * lib/futimens.c (rpl_futimens): Adjust comment.
60379         utimens: work around Linux ctime bug
60380         * lib/utimens.c (detect_ctime_bug): New helper function.
60381         (update_timespec): Differentiate between workaround needed for
60382         this bug vs. what is needed for systems that lack utimensat.
60383         (fdutimens, lutimens): Work around bug.
60385         utimens: check for ctime update
60386         * tests/test-utimens-common.h (check_ctime): Define.
60387         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60388         * tests/test-futimens.h (test_futimens): Likewise.
60389         * tests/test-lutimens.h (test_lutimens): Likewise.
60390         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60391         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60393 2009-12-19  Bruno Haible  <bruno@clisp.org>
60395         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60396         * tests/test-dprintf-posix2.sh: New file.
60397         * tests/test-dprintf-posix2.c: New file.
60398         * modules/dprintf-posix-tests (Files): Add them.
60399         (configure.ac): Check for getrlimit and setrlimit.
60400         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60402 2009-12-19  Bruno Haible  <bruno@clisp.org>
60404         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60405         * tests/test-fprintf-posix3.sh: New file.
60406         * tests/test-fprintf-posix3.c: New file.
60407         * modules/fprintf-posix-tests (Files): Add them.
60408         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60410 2009-12-19  Eric Blake  <ebb9@byu.net>
60412         dirfd: fix prototype
60413         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60414         * lib/dirfd.c (dirfd): Likewise.
60416         canonicalize: reduce memory usage
60417         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60418         allocation to size.
60419         Reported by Solar Designer <solar@openwall.com>.
60421 2009-12-19  Bruno Haible  <bruno@clisp.org>
60423         New module attribute 'Applicability'.
60424         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60425         * gnulib-tool: New option --extract-applicability.
60426         (func_usage): Document it.
60427         (sed_extract_prog): Recognize it.
60428         (func_get_applicability): New function.
60429         (func_import): Generalize handling of 'link-warning' module.
60430         * modules/link-warning (Applicability): New section.
60431         * modules/arg-nonnull (Applicability): New section.
60432         Repoted by Simon Josefsson <simon@josefsson.org>.
60434 2009-12-19  Bruno Haible  <bruno@clisp.org>
60436         fflush: tweak
60437         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60438         * lib/fseeko.c (rpl_fseeko): Likewise.
60440 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60442         * lib/gl_list.h: Fix typo in comment.
60444 2009-12-16  Eric Blake  <ebb9@byu.net>
60446         fcntl: use to simplify other modules
60447         * modules/cloexec (Depends-on): Add fcntl.
60448         * modules/fchdir (Depends-on): Likewise.
60449         * modules/fd-safer-flag (Depends-on): Likewise.
60450         * modules/unistd-safer (Depends-on): Likewise.
60451         * modules/dup3 (configure.ac): Set module indicator.
60452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60453         missing.
60454         * lib/fchdir.c (_gl_register_dup): Fix comment.
60455         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60456         * lib/dup-safer.c (dup_safer): Likewise.
60457         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60458         * lib/dup3.c (dup3): Likewise.
60459         * tests/test-fchdir.c (main): Enhance test.
60460         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60462         fcntl: port portions of fcntl to mingw
60463         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60464         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60465         replacement for mingw.
60466         * modules/fcntl (Description): Update.
60467         (Depends-on): Add dup2.
60468         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60469         * modules/fcntl-h (Makefile.am): Substitute it.
60470         * lib/fcntl.in.h (fcntl): Update declaration.
60471         (F_DUPFD, F_GETFD): New macros, when needed.
60472         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60473         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60474         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60475         we now guarantee.
60477         fcntl: work around cygwin bug in F_DUPFD
60478         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60479         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60480         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60481         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60482         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60484         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60485         * modules/fcntl (Files): List new files.
60486         (configure.ac): Run a test.
60487         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60488         * lib/fcntl.c (rpl_fcntl): Likewise.
60489         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60490         (gl_FCNTL_H): Always replace fcntl.h.
60491         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60492         * lib/fcntl.in.h (fcntl): Declare replacement.
60493         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60494         needed, plus a witness.
60495         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60496         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60497         * tests/test-fcntl.c: New file.
60498         * modules/fcntl-tests: Likewise.
60500         binary-io: avoid potential compilation warning
60501         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60502         directives.
60504         fflush: avoid compilation error on NetBSD
60505         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60506         between off_t and fpos_t, since the latter is sometimes a struct.
60507         * lib/fseeko.c (rpl_fseeko): Likewise.
60508         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60510 2009-12-15  Eric Blake  <ebb9@byu.net>
60512         fcntl-h, stdio, sys_ioctl: fix declarations
60513         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60514         function must not take arguments.
60515         * lib/sys_ioctl.in.h (ioctl): Likewise.
60516         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60517         (open): Add a link warning.
60519 2009-12-15  Jim Meyering  <meyering@redhat.com>
60521         areadlink, areadlink-with-size: relax license to LGPLv2+
60522         * modules/areadlink (License): Relax to LGPLv2+.
60523         * modules/areadlink-with-size (License): Likewise.
60525 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60526             Bruno Haible  <bruno@clisp.org>
60528         *printf: Fix memory leak.
60529         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60530         * lib/vfprintf.c (vfprintf): Likewise.
60531         * lib/dprintf.c (dprintf): Likewise.
60532         * lib/vdprintf.c (vdprintf): Likewise.
60534 2009-12-14  Eric Blake  <ebb9@byu.net>
60536         accept4: adjust module dependencies
60537         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60539         utimens: one more try at avoiding compiler warning
60540         * lib/utimens.c (lutimens): Lower scope of result.
60542 2009-12-13  Bruno Haible  <bruno@clisp.org>
60544         Move the malloc checking from module 'list' to new module 'xlist'.
60545         * modules/xlist: New file.
60546         * lib/gl_xlist.h: New file.
60547         * lib/gl_xlist.c: New file.
60548         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60549         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60550         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60551         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60552         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60553         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60554         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60555         gl_sortedlist_nx_add): New declarations.
60556         (struct gl_list_implementation): Rename and change methods accordingly.
60557         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60558         (gl_list_nx_create): Renamed from gl_list_create.
60559         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60560         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60561         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60562         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60563         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60564         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60565         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60566         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60567         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60568         gl_list_create_empty.
60569         (gl_list_nx_create): Renamed from gl_list_create.
60570         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60571         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60572         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60573         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60574         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60575         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60576         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60577         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60578         * lib/gl_array_list.c: Don't include xalloc.h.
60579         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60580         NULL upon out-of-memory.
60581         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60582         out-of-memory.
60583         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60584         Change return type to 'int'.
60585         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60586         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60587         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60588         upon out-of-memory.
60589         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60590         upon out-of-memory.
60591         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60592         upon out-of-memory.
60593         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60594         upon out-of-memory.
60595         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60596         out-of-memory.
60597         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60598         Update.
60599         (gl_array_list_implementation): Update.
60600         * lib/gl_carray_list.c: Don't include xalloc.h.
60601         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60602         Return NULL upon out-of-memory.
60603         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60604         out-of-memory.
60605         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60606         Change return type to 'int'.
60607         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60608         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60609         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60610         upon out-of-memory.
60611         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60612         upon out-of-memory.
60613         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60614         out-of-memory.
60615         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60616         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60617         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60618         Update.
60619         (gl_carray_list_implementation): Update.
60620         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60621         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60622         gl_linked_create_empty. Return NULL upon out-of-memory.
60623         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60624         out-of-memory.
60625         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60626         Change return type to 'int'. Return -1 upon out-of-memory.
60627         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60628         out-of-memory.
60629         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60630         upon out-of-memory.
60631         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60632         upon out-of-memory.
60633         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60634         NULL upon out-of-memory.
60635         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60636         upon out-of-memory.
60637         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60638         out-of-memory.
60639         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60640         Update.
60641         * lib/gl_linked_list.c: Don't include xalloc.h.
60642         (gl_linked_list_implementation): Update.
60643         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60644         (add_to_bucket): Change return type to 'int'.
60645         (gl_linkedhash_list_implementation): Update.
60646         * lib/gl_anytree_list1.h (free_subtree): New function.
60647         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60648         gl_tree_create_empty. Return NULL upon out-of-memory.
60649         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60650         Change return type to 'int'. Return -1 upon out-of-memory.
60651         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60652         out-of-memory.
60653         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60654         (gl_tree_remove_node): New function, moved here from
60655         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60656         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60657         Update.
60658         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60659         malloc, not xmalloc. Return NULL upon out-of-memory.
60660         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60661         out-of-memory.
60662         (gl_tree_remove_node_from_tree): New function, extracted from
60663         gl_tree_remove_node.
60664         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60665         upon out-of-memory.
60666         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60667         out-of-memory.
60668         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60669         upon out-of-memory.
60670         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60671         upon out-of-memory.
60672         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60673         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60674         not xmalloc. Return NULL upon out-of-memory.
60675         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60676         out-of-memory.
60677         (gl_tree_remove_node_from_tree): New function, extracted from
60678         gl_tree_remove_node.
60679         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60680         upon out-of-memory.
60681         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60682         out-of-memory.
60683         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60684         upon out-of-memory.
60685         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60686         upon out-of-memory.
60687         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60688         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60689         gl_anytree_list1.h before gl_anyavltree_list2.h.
60690         (gl_avltree_list_implementation): Update.
60691         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60692         gl_anytree_list1.h before gl_anyavltree_list2.h.
60693         (gl_rbtree_list_implementation): Update.
60694         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60695         Change return type to 'int'. Return -1 upon out-of-memory. Use
60696         __builtin_expect.
60697         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60698         (gl_avltreehash_list_implementation): Update.
60699         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60700         (gl_rbtreehash_list_implementation): Update.
60701         * modules/array-list (Depends-on): Remove xalloc.
60702         * modules/carray-list (Depends-on): Likewise.
60703         * modules/linked-list (Depends-on): Likewise.
60704         * modules/linkedhash-list (Depends-on): Likewise.
60705         * modules/avltree-list (Depends-on): Likewise.
60706         * modules/rbtree-list (Depends-on): Likewise.
60707         * modules/avltreehash-list (Depends-on): Likewise.
60708         * modules/rbtreehash-list (Depends-on): Likewise.
60710         * modules/xsublist: New file.
60711         * lib/gl_xsublist.h: New file.
60712         * lib/gl_xsublist.c: New file.
60713         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60714         (gl_sublist_nx_create): New declaration.
60715         * lib/gl_sublist.c: Don't include xalloc.h.
60716         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60717         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60718         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60719         Change return type to 'int'. Return -1 upon out-of-memory.
60720         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60721         upon out-of-memory.
60722         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60723         NULL upon out-of-memory.
60724         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60725         upon out-of-memory.
60726         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60727         NULL upon out-of-memory.
60728         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60729         NULL upon out-of-memory.
60730         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60731         upon out-of-memory.
60732         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60733         (gl_sublist_list_implementation): Update.
60734         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60735         upon out-of-memory.
60736         * modules/sublist (Depends-on): Remove xalloc.
60738         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60739         * tests/test-carray_list.c: Likewise.
60740         * tests/test-linked_list.c: Likewise.
60741         * tests/test-linkedhash_list.c: Likewise.
60742         * tests/test-avltree_list.c: Likewise.
60743         * tests/test-rbtree_list.c: Likewise.
60744         * tests/test-avltreehash_list.c: Likewise.
60745         * tests/test-rbtreehash_list.c: Likewise.
60746         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60747         * modules/carray-list-tests (Makefile.am): Likewise.
60748         * modules/linked-list-tests (Makefile.am): Likewise.
60749         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60750         * modules/avltree-list-tests (Makefile.am): Likewise.
60751         * modules/rbtree-list-tests (Makefile.am): Likewise.
60752         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60753         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60755         * NEWS: Mention the changes.
60757         * lib/clean-temp.c: Include gl_xlist.h.
60758         * modules/clean-temp (Depends-on): Add xlist.
60760         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60761         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60763         * tests/test-array_oset.c: Include gl_xlist.h.
60764         * modules/array-oset-tests (Depends-on): Add xlist.
60766         Reported by José E. Marchesi <jemarch@gnu.org>.
60768 2009-12-13  Bruno Haible  <bruno@clisp.org>
60770         Move the malloc checking from module 'oset' to new module 'xoset'.
60771         * modules/xoset: New file.
60772         * lib/gl_xoset.h: New file.
60773         * lib/gl_xoset.c: New file.
60774         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60775         declarations.
60776         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60777         (struct gl_oset_implementation): Rename and change methods accordingly.
60778         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60779         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60780         'int'. Mark as __warn_unused_result__.
60781         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60782         gl_oset_create_empty.
60783         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60784         'int'.
60785         * lib/gl_array_oset.c: Don't include xalloc.h.
60786         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60787         malloc, not xmalloc.
60788         (grow): Change return type to 'int'. Don't call xalloc_die.
60789         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60790         to 'int'.
60791         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60792         'int'.
60793         (gl_array_oset_implementation): Update.
60794         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60795         gl_tree_create_empty.
60796         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60797         'int'.
60798         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60800         xmalloc.
60801         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60802         not xmalloc.
60803         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60804         xmalloc.
60805         (gl_avltree_oset_implementation): Update.
60806         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60807         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60808         xmalloc.
60809         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60810         not xmalloc.
60811         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60812         xmalloc.
60813         (gl_rbtree_oset_implementation): Update.
60814         * modules/array-oset (Depends-on): Remove xalloc.
60815         * modules/avltree-oset (Depends-on): Likewise.
60816         * modules/rbtree-oset (Depends-on): Likewise.
60817         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60818         * tests/test-avltree_oset.c: Likewise.
60819         * tests/test-rbtree_oset.c: Likewise.
60820         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60821         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60822         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60823         * NEWS: Mention the change.
60825 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60827         maint.mk: allow a project to override release-prep commands
60828         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60829         commands into a new rule.
60830         (release-prep): New rule.
60831         (release-prep-hook): New overridable variable.
60833 2009-12-13  Bruno Haible  <bruno@clisp.org>
60835         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60837 2009-12-13  Jim Meyering  <meyering@redhat.com>
60839         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60840         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60842 2009-12-12  Bruno Haible  <bruno@clisp.org>
60844         duplocale: Tweak.
60845         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60847 2009-12-12  Karl Berry  <karl@gnu.org>
60849         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60851 2009-12-12  Bruno Haible  <bruno@clisp.org>
60853         * m4/po.m4: Undo incorrect untabification.
60855 2009-12-12  Bruno Haible  <bruno@clisp.org>
60857         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60858         * modules/c-strtod (Depends-on): Add locale.
60859         * modules/c-strtold (Depends-on): Likewise.
60861 2009-12-12  Bruno Haible  <bruno@clisp.org>
60863         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60865 2009-12-11  Eric Blake  <ebb9@byu.net>
60867         setenv: relax requirement in light of POSIX ruling
60868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60869         not NULL.
60870         * tests/test-setenv.c (main): Relax test.
60871         * tests/test-unsetenv.c (main): Likewise.
60872         * doc/posix-functions/setenv.texi (setenv): Document this.
60873         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60875 2009-12-11  Bruno Haible  <bruno@clisp.org>
60877         New module 'fd-safer-flag'.
60878         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60879         * lib/dup-safer.c (dup_safer_flag): Remove function.
60880         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60881         * lib/fd-safer.c (fd_safer_flag): Remove function.
60882         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60883         * modules/cloexec (configure.ac): Drop indicator macro.
60884         * modules/fd-safer-flag: New file.
60885         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60886         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60887         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60889 2009-12-11  Bruno Haible  <bruno@clisp.org>
60891         Tests for module 'nl_langinfo'.
60892         * modules/nl_langinfo-tests: New file.
60893         * tests/test-nl_langinfo.sh: New file.
60894         * tests/test-nl_langinfo.c: New file.
60896         New module 'nl_langinfo'.
60897         * lib/nl_langinfo.c: New file.
60898         * m4/nl_langinfo.m4: New file.
60899         * modules/nl_langinfo: New file.
60900         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60902 2009-12-11  Bruno Haible  <bruno@clisp.org>
60904         Tests for module 'langinfo'.
60905         * modules/langinfo-tests: New file.
60906         * tests/test-langinfo.c: New file.
60908         New module 'langinfo'.
60909         * lib/langinfo.in.h: New file.
60910         * m4/langinfo_h.m4: New file.
60911         * modules/langinfo: New file.
60912         * doc/posix-headers/langinfo.texi: Mention the new module.
60914 2009-12-11  Bruno Haible  <bruno@clisp.org>
60916         * lib/config.charset: Untabify.
60918 2009-12-11  Bruno Haible  <bruno@clisp.org>
60920         * modules/unistd-safer (configure.ac): Drop indicator macro.
60922 2009-12-11  Bruno Haible  <bruno@clisp.org>
60924         Move pipe2-safer code to its own file.
60925         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60926         * lib/pipe-safer.c (pipe2_safer): Remove function.
60927         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60928         (Makefile.am): Add it to lib_SOURCES.
60930 2009-12-10  Bruno Haible  <bruno@clisp.org>
60932         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60934 2009-12-10  Bruno Haible  <bruno@clisp.org>
60936         Declare which arguments expect non-NULL values, for GCC and clang.
60937         * build-aux/arg-nonnull.h: New file.
60938         * modules/arg-nonnull: New file.
60939         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60940         (inet_ntop, inet_pton): Use it.
60941         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60942         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60943         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60944         (open, openat): Use it.
60945         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60946         (fnmatch): Use it.
60947         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60948         (getopt, getopt_long, getopt_long_only): Use it.
60949         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60950         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60951         Use it.
60952         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60953         (iconv_open): Use it.
60954         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60955         (strtoimax, strtoumax): Use it.
60956         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60957         (duplocale): Use it.
60958         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60959         (frexp, frexpl): Use it.
60960         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60961         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60962         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60963         (tsearch, tfind, tdelete, twalk): Use it.
60964         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60965         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60966         sigpending): Use it.
60967         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60968         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60969         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60970         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60971         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60972         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60973         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60974         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60975         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60976         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60977         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60978         Use it.
60979         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60980         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60981         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60982         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60983         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60984         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60985         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60986         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60987         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60988         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60989         strtoull, unsetenv): Use it.
60990         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60991         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60992         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60993         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60994         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60995         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60996         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60997         (strcasecmp, strncasecmp): Use it.
60998         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60999         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
61000         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
61001         rpl_setsockopt): Use it.
61002         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
61003         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
61004         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
61005         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
61006         (gettimeofday): Use it.
61007         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
61008         (times): Use it.
61009         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
61010         (uname): Use it.
61011         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
61012         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
61013         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
61014         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
61015         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
61016         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
61017         unlinkat, write): Use it.
61018         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
61019         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
61020         * lib/argv-iter.h: Include arg-nonnull.h.
61021         (_ATTRIBUTE_NONNULL_): Remove macro.
61022         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
61023         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
61024         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
61025         optimization.
61026         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
61027         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
61028         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
61029         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
61030         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
61031         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
61032         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
61033         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
61034         * modules/arpa_inet (Depends-on): Add arg-nonnull.
61035         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
61036         * modules/dirent (Depends-on): Add arg-nonnull.
61037         (Makefile.am): Insert arg-nonnull.h into dirent.h.
61038         * modules/fcntl-h (Depends-on): Add arg-nonnull.
61039         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
61040         * modules/fnmatch (Depends-on): Add arg-nonnull.
61041         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
61042         * modules/getopt-posix (Depends-on): Add arg-nonnull.
61043         (Makefile.am): Insert arg-nonnull.h into getopt.h.
61044         * modules/glob (Depends-on): Add arg-nonnull.
61045         (Makefile.am): Insert arg-nonnull.h into glob.h.
61046         * modules/iconv_open (Depends-on): Add arg-nonnull.
61047         (Makefile.am): Insert arg-nonnull.h into iconv.h.
61048         * modules/inttypes (Depends-on): Add arg-nonnull.
61049         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
61050         * modules/locale (Depends-on): Add arg-nonnull.
61051         (Makefile.am): Insert arg-nonnull.h into locale.h.
61052         * modules/math (Depends-on): Add arg-nonnull.
61053         (Makefile.am): Insert arg-nonnull.h into math.h.
61054         * modules/netdb (Depends-on): Add arg-nonnull.
61055         (Makefile.am): Insert arg-nonnull.h into netdb.h.
61056         * modules/search (Depends-on): Add arg-nonnull.
61057         (Makefile.am): Insert arg-nonnull.h into search.h.
61058         * modules/signal (Depends-on): Add arg-nonnull.
61059         (Makefile.am): Insert arg-nonnull.h into signal.h.
61060         * modules/spawn (Depends-on): Add arg-nonnull.
61061         (Makefile.am): Insert arg-nonnull.h into spawn.h.
61062         * modules/stdio (Depends-on): Add arg-nonnull.
61063         (Makefile.am): Insert arg-nonnull.h into stdio.h.
61064         * modules/stdlib (Depends-on): Add arg-nonnull.
61065         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
61066         * modules/string (Depends-on): Add arg-nonnull.
61067         (Makefile.am): Insert arg-nonnull.h into string.h.
61068         * modules/strings (Depends-on): Add arg-nonnull.
61069         (Makefile.am): Insert arg-nonnull.h into strings.h.
61070         * modules/sys_socket (Depends-on): Add arg-nonnull.
61071         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
61072         * modules/sys_stat (Depends-on): Add arg-nonnull.
61073         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
61074         * modules/sys_time (Depends-on): Add arg-nonnull.
61075         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
61076         * modules/sys_times (Depends-on): Add arg-nonnull.
61077         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
61078         * modules/sys_utsname (Depends-on): Add arg-nonnull.
61079         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
61080         * modules/time (Depends-on): Add arg-nonnull.
61081         (Makefile.am): Insert arg-nonnull.h into time.h.
61082         * modules/unistd (Depends-on): Add arg-nonnull.
61083         (Makefile.am): Insert arg-nonnull.h into unistd.h.
61084         * modules/wchar (Depends-on): Add arg-nonnull.
61085         (Makefile.am): Insert arg-nonnull.h into wchar.h.
61086         * modules/argv-iter (Depends-on): Add arg-nonnull.
61087         * tests/test-canonicalize.c (null_ptr): New function.
61088         (main): Use it.
61089         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
61090         (main): Use it.
61091         * tests/test-memmem.c (null_ptr): New function.
61092         (main): Use it.
61093         Reported by Jim Meyering.
61095 2009-12-10  Bruno Haible  <bruno@clisp.org>
61097         Use spaces for indentation, not tabs.
61098         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
61099         * m4/*.m4: Untabify.
61100         * build-aux/*.h: Untabify.
61101         * tests/**/*.[hc]: Untabify.
61102         * README: New section "Indent with spaces, not TABs", based on
61103         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
61104         * NEWS: Mention the change.
61106 2009-12-10  Bruno Haible  <bruno@clisp.org>
61108         pty test: Fix link error.
61109         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61110         test_pty_LDADD.
61112 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61114         * modules/pty: New file.
61115         * modules/pty-tests: New file.
61116         * m4/pty.m4: New file.
61117         * tests/test-pty.c: New file.
61118         * doc/glibc-headers/pty.texi: Modified.
61119         * doc/glibc-functions/forkpty.texi: Modified.
61120         * doc/glibc-functions/openpty.texi: Modified.
61122 2009-12-10  Bruno Haible  <bruno@clisp.org>
61124         Avoid syntax error in C++ mode.
61125         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61127 2009-12-10  Bruno Haible  <bruno@clisp.org>
61129         Use sed with option -e.
61130         * gnulib-tool (func_version, func_emit_copyright_notice,
61131         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61132         option -e to sed.
61133         * modules/link-warning (Makefile.am): Likewise.
61135 2009-12-10  Jim Meyering  <meyering@redhat.com>
61137         mgetgroups: do not write bytes beyond end of malloc'd buffer
61138         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61139         username, we call getgroups with a one-element-shorter buffer,
61140         but still told it the length was original, max_n_groups.
61142 2009-12-09  Eric Blake  <ebb9@byu.net>
61144         cloexec: relax license
61145         * modules/cloexec (Maintainer): Add myself.
61146         (License): Use LGPL, not GPL.
61148         link-warning: optimize generation
61149         * modules/link-warning (Makefile.am): Reduce process usage.
61151 2009-12-09  Bruno Haible  <bruno@clisp.org>
61153         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61154         workaround was added on 2009-11-17.
61156 2009-12-09  Jim Meyering  <meyering@redhat.com>
61157             Bruno Haible  <bruno@clisp.org>
61159         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61160         * modules/link-warning (Makefile.am): Make the comment-removing sed
61161         command more robust in the face of bootstrap-prepended comment lines.
61163 2009-12-09  Bruno Haible  <bruno@clisp.org>
61165         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61166         most one group.
61168 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61169             Bruno Haible  <bruno@clisp.org>
61171         * build-aux/link-warning.h: Add copyright notice.
61172         * modules/link-warning (Makefile.am): Generate link-warning.h from
61173         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61174         * NEWS: Mention change in link-warning module.
61175         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61176         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61177         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61178         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61179         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61180         * modules/math (Makefile.am): Add dependency to math.h.
61181         * modules/search (Makefile.am): Add dependency to search.h.
61182         * modules/signal (Makefile.am): Add dependency to signal.h.
61183         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61184         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61185         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61186         * modules/string (Makefile.am): Add dependency to string.h.
61187         * modules/strings (Makefile.am): Add dependency to strings.h.
61188         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61189         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61190         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61191         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61192         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61193         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61194         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61195         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61196         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61198 2009-12-09  Bruno Haible  <bruno@clisp.org>
61200         fchdir: Optimize away rpl_fstat when possible.
61201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61202         REPLACE_OPEN_DIRECTORY.
61203         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61205 2009-12-09  Bruno Haible  <bruno@clisp.org>
61207         * lib/fchdir.c: Update comment.
61209 2009-12-09  Bruno Haible  <bruno@clisp.org>
61211         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61213 2009-12-08  Eric Blake  <ebb9@byu.net>
61215         fchdir: avoid memory leak on re-registration.
61216         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61218 2009-12-08  Jim Meyering  <meyering@redhat.com>
61220         init.sh: avoid Solaris 10 /bin/sh portability problem
61221         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61222         sourced script:
61223           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61224           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61225           bar
61226         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61227         and two tests used that idiom.
61228         * tests/init.sh: Update suggested usage comments.
61229         (path_prepend_): New function, to be used in place
61230         of the --src-path=DIR option.
61231         (setup_): Move PATH-prepending code into path_prepend_.
61232         * tests/test-pread.sh: Adapt to new usage.
61233         * tests/test-xalloc-die.sh: Likewise.
61235 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61237         * doc/gnulib.texi (Glibc pty.h): Add.
61238         * doc/glibc-functions/forkpty.texi: Add.
61239         * doc/glibc-functions/openpty.texi: Add.
61240         Suggested by Bruno Haible.
61242 2009-12-08  Eric Blake  <ebb9@byu.net>
61244         fchdir: fix logic bugs
61245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61246         * tests/test-fchdir.c (main): Enhance test.
61247         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61248         is in use.
61250         dup2: fix logic bugs
61251         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61252         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61253         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61254         exists.
61255         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61257 2009-12-07  Eric Blake  <ebb9@byu.net>
61259         unlink: fix m4 detection
61260         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61262         unistd-safer: add unit test
61263         * modules/unistd-safer-tests: New file.
61264         * tests/test-dup-safer.c: Likewise.
61265         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61266         * tests/test-dup2.c (setmode): Likewise.
61267         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61269         cloexec: preserve text vs. binary across dup_cloexec
61270         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61271         mode.
61272         * modules/dup2-tests (Depends-on): Add binary-io.
61273         * modules/cloexec-tests (Depends-on): Likewise.
61274         * tests/test-dup2.c (setmode, is_mode): New helpers.
61275         (main): Add tests that translation mode is preserved.
61276         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61277         Reported by Bruno Haible.
61279         mgetgroups: reduce duplicate listings
61280         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61281         resulting array.
61282         * tests/test-chown.h (test_chown): Simplify client.
61283         * tests/test-lchown.h (test_lchown): Likewise.
61285 2009-12-06  Bruno Haible  <bruno@clisp.org>
61287         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61288         value.
61290 2009-12-06  Bruno Haible  <bruno@clisp.org>
61292         * lib/progname.c: Include stdio.h, stdlib.h.
61293         (set_program_name): Reject a NULL argument.
61295 2009-12-05  Eric Blake  <ebb9@byu.net>
61297         pipe2-safer: new module
61298         * modules/pipe2-safer: New file.
61299         * lib/unistd-safer.h (pipe2_safer): New prototype.
61300         * lib/unistd--.h (pipe2): New wrapper.
61301         * lib/pipe-safer.c (pipe2_safer): New function.
61302         * modules/pipe (Depends-on): Add pipe2-safer.
61303         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61305         stdlib-safer: preserve cloexec flag for mkostemp[s]
61306         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61307         fd_safer_flag.
61309         unistd-safer: allow preservation of cloexec status via flag
61310         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61311         prototypes.
61312         * lib/dup-safer.c (dup_safer_flag): New function.
61313         * lib/fd-safer.c (fd_safer_flag): Likewise.
61314         * modules/cloexec (configure.ac): Set witness.
61316         test-dup2: enhance test
61317         * modules/dup2-tests (Depends-on): Add cloexec.
61318         * tests/test-dup2.c (main): Enhance test.
61320         cloexec: add dup_cloexec
61321         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61322         header and comments.
61323         * lib/cloexec.c (set_cloexec_flag): Add comments.
61324         (dup_cloexec): New function, with mingw implementation borrowed
61325         from...
61326         * lib/w32spawn.h (dup_noinherit): ...here.
61327         * modules/execute (Depends-on): Add cloexec.
61328         * modules/pipe (Depends-on): Likewise.
61329         * modules/cloexec (Depends-on): Add dup2.
61330         * modules/cloexec-tests (Files): New file.
61331         * tests/test-cloexec.c: Likewise.
61333         test-xalloc-die: fix test for mingw
61334         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61335         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61336         directory and .exe suffix off argv[0] output.
61338         test-fseeko: fix test for mingw
61339         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61340         than undefining fseek, so test will pass on mingw.
61342 2009-12-05  Bruno Haible  <bruno@clisp.org>
61344         * lib/progname.h (set_program_name): Clarify specification.
61345         * lib/progname.c (set_program_name): Likewise.
61346         Reported by Jim Meyering.
61348 2009-12-05  Jim Meyering  <meyering@redhat.com>
61350         maint.mk: backslash-escape parens in default regexp
61351         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61352         backslash-escape the literal parentheses.
61354         maint.mk: news-date-check: use grep -E
61355         * top/maint.mk (today): Define a Make variable, not a...
61356         (news-date-check): ...shell variable.
61357         (news-date-regexp): Use the Make variable.
61358         Use grep's -E option.  Change the failing diagnostic to mention
61359         the variable, $(news-date-regexp).
61361 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61363         maintainer-makefile: allow customization of NEWS entry format
61364         * top/maint.mk (news-date-regexp): New overridable variable.
61365         (news-date-check): Use it.
61367 2009-12-04  Eric Blake  <ebb9@byu.net>
61369         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61370         * lib/mgetgroups.h (xgetgroups): New prototype.
61371         * lib/mgetgroups.c (xgetgroups): New wrapper.
61372         (mgetgroups): Handle ENOSYS.
61373         * modules/mgetgroups (Depends-on): Add realloc.
61374         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61376         mgetgroups: avoid argument promotion issues with -1
61377         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61378         for invalid gid_t.
61379         * tests/test-chown.h (getegid, test_chown): Likewise.
61380         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61382 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61384         exclude: Fix header file problems.
61385         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61387 2009-12-01  Jim Meyering  <meyering@redhat.com>
61389         fts: fts_open: do not let an empty string cause immediate failure
61390         This is required in support of GNU rm, for which the command
61391         "rm A '' B" must process and remove both A and B, in spite of
61392         the empty string argument.
61393         * lib/fts.c (fts_open): Do not let the presence of an empty string
61394         cause fts_open to fail immediately.  Most fts-using tools must be
61395         able to process all arguments, in order, and can be expected to
61396         diagnose such arguments themselves.
61398 2009-11-30  Eric Blake  <ebb9@byu.net>
61400         utimens: fix compilation error
61401         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61402         Declare variable at right scope.
61404 2009-11-29  Jim Meyering  <meyering@redhat.com>
61406         bootstrap: handle perl-5.11's changed --version output
61407         * build-aux/bootstrap (get_version): Handle perl separately,
61408         since perl-5.11's --version output is different.
61410 2009-11-28  Jim Meyering  <meyering@redhat.com>
61412         userspec: depend on the inttostr module, too
61413         * modules/userspec (Depends-on): Add inttostr.
61415         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61416         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61417         number of MAXUID when it evaluates to (uid_t) -1.
61418         Likewise for group ID.  Reported by Matt McCutchen in
61419         <http://savannah.gnu.org/bugs/?28113>
61421         userspec: reformat to use spaces, not TABs
61422         * lib/userspec.c: Expand TABs to spaces.
61423         Add Emacs' "indent-tabs-mode: nil" hint.
61425 2009-11-27  Eric Blake  <ebb9@byu.net>
61427         getopt-gnu: flush out another BSD bug
61428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61429         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61430         flush out BSD bug.
61431         * tests/test-getopt.h (test_getopt): End lists with NULL.
61432         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61433         (test_getopt_long_posix): Enhance test.
61434         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61435         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61436         getopt-gnu.
61437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61438         Likewise.
61440 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61442         * modules/idpriv-droptemp-tests (Notice): Fix text.
61444 2009-11-27  Jim Meyering  <meyering@redhat.com>
61446         test-xalloc-die: avoid spurious failure due to libtool argv difference
61447         In a libtool-enabled project, this test would fail due to a difference
61448         in the emitted program name, e.g.,
61449         -test-xalloc-die: memory exhausted
61450         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61451         Use program to avoid that.
61452         * modules/xalloc-die-tests (Depends-on): Add progname.
61453         * tests/test-xalloc-die.c: Include progname.h".
61454         (program_name): Remove decl.
61455         (main): Call set_program_name.
61456         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61458 2009-11-26  Richard Jones  <rjones@redhat.com>
61460         w32sock: leave win32 error in place.
61461         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61463 2009-11-26  Eric Blake  <ebb9@byu.net>
61465         init.sh: suggest to use skip_ and fail_ functions in comments
61466         * tests/init.sh: Add a sentence.
61468 2009-11-25  Bruno Haible  <bruno@clisp.org>
61470         init.sh: add documentation in comments
61471         * tests/init.sh: Add some developer and user documentation.
61473 2009-11-26  Jim Meyering  <meyering@redhat.com>
61475         init.sh: accommodate even those who specify bogus srcdir manually
61476         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61477         configure-time tests to be sanitized, so that there is no need to
61478         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61479         (with no double quotes) suffices.  However, since tests may be
61480         invoked manually, and since you may explicitly set srcdir to the
61481         name of a directory containing spaces, do quote its uses here.
61482         * tests/test-pread.sh: Likewise.
61483         Suggested by Bruno Haible.
61485         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61486         * tests/test-pread.sh: Write no data into the pipe, because
61487         test-pread actually reads none.  This avoids a diagnostic,
61488         "bash: echo: write error: Broken pipe", that arises in the unusual
61489         event something is ignoring SIGPIPE, and might be interpreted
61490         as some sort of failure.  Reported by Bruno Haible.
61492 2009-11-25  Jim Meyering  <meyering@redhat.com>
61494         test-pread: cover failure with ESPIPE and EINVAL
61495         * tests/test-pread.c (main): Test for failure, too.
61496         * tests/test-pread.sh: Invoke with stdin on a pipe.
61497         Suggested by Eric Blake.
61499         pread: improvement and fix
61500         * modules/pread (Depends-on): Depend on lseek, for portability to
61501         e.g., mingw.  Suggested by Eric Blake.
61502         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61504         unistd.in.h: correct declaration of pread
61505         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61506         Reported by Richard W.M. Jones.
61508         test-pread.sh: distribute the test script
61509         * modules/pread-tests (Files): Include test-pread.sh.
61511         test-pread.sh: clean up
61512         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61513         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61514         That is unnecessary, since it's always ".".
61515         Suggestion from Eric Blake.
61517         test-pread.sh: make executable
61518         * tests/test-pread.sh: Set executable bit.
61519         Reported by Eric Blake.
61521         correct typo in test-pread.sh
61522         * tests/test-pread.sh: Add #! line.
61524         test pread
61525         * tests/test-pread.c: New file.
61526         * tests/test-pread.sh: Likewise.
61527         * modules/pread-tests: Likewise.
61529         pread: new module
61530         * modules/pread: New file.
61531         * lib/unistd.in.h (pread): Define/declare.
61532         * lib/pread.c (pread): New file.
61533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61534         * modules/unistd (Makefile.am): Substitute witnesses.
61535         * doc/posix-functions/pread.texi (pread): Update.
61536         * MODULES.html.sh: Add pread.
61538 2009-11-25  Jim Meyering  <meyering@redhat.com>
61540         tests/init.sh: new file to be used via most *.sh tests
61541         * tests/init.sh: New file.
61543 2009-11-25  Eric Blake  <ebb9@byu.net>
61545         utimens: work around older Linux failure with symlinks
61546         * lib/utimens.c (lutimensat_works_really): New variable.
61547         (fdutimens, lutimens): Use it to manage kernels that support
61548         nanosecond times on files, but not on symlinks.
61549         Reported by Ondřej Vašík.
61551         utimes: fix configure grammar
61552         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61554 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61556         regex: Fix fastmap for multibyte character ranges.
61557         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61558         characters when a multibyte character range is included.
61560 2009-11-22  Andy Wingo  <wingo@pobox.com>
61562         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61563         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61565 2009-11-24  Bruno Haible  <bruno@clisp.org>
61567         doc: Most *_l functions exist in MacOS X 10.5.
61568         * doc/posix-functions/duplocale.texi: Update platforms list.
61569         * doc/posix-functions/freelocale.texi: Likewise.
61570         * doc/posix-functions/newlocale.texi: Likewise.
61571         * doc/posix-functions/uselocale.texi: Likewise.
61572         * doc/posix-functions/isalnum_l.texi: Likewise.
61573         * doc/posix-functions/isalpha_l.texi: Likewise.
61574         * doc/posix-functions/isblank_l.texi: Likewise.
61575         * doc/posix-functions/iscntrl_l.texi: Likewise.
61576         * doc/posix-functions/isdigit_l.texi: Likewise.
61577         * doc/posix-functions/isgraph_l.texi: Likewise.
61578         * doc/posix-functions/islower_l.texi: Likewise.
61579         * doc/posix-functions/isprint_l.texi: Likewise.
61580         * doc/posix-functions/ispunct_l.texi: Likewise.
61581         * doc/posix-functions/isspace_l.texi: Likewise.
61582         * doc/posix-functions/isupper_l.texi: Likewise.
61583         * doc/posix-functions/iswalnum_l.texi: Likewise.
61584         * doc/posix-functions/iswalpha_l.texi: Likewise.
61585         * doc/posix-functions/iswblank_l.texi: Likewise.
61586         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61587         * doc/posix-functions/iswctype_l.texi: Likewise.
61588         * doc/posix-functions/iswdigit_l.texi: Likewise.
61589         * doc/posix-functions/iswgraph_l.texi: Likewise.
61590         * doc/posix-functions/iswlower_l.texi: Likewise.
61591         * doc/posix-functions/iswprint_l.texi: Likewise.
61592         * doc/posix-functions/iswpunct_l.texi: Likewise.
61593         * doc/posix-functions/iswspace_l.texi: Likewise.
61594         * doc/posix-functions/iswupper_l.texi: Likewise.
61595         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61596         * doc/posix-functions/isxdigit_l.texi: Likewise.
61597         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61598         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61599         * doc/posix-functions/strcoll_l.texi: Likewise.
61600         * doc/posix-functions/strfmon_l.texi: Likewise.
61601         * doc/posix-functions/strftime_l.texi: Likewise.
61602         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61603         * doc/posix-functions/strxfrm_l.texi: Likewise.
61604         * doc/posix-functions/tolower_l.texi: Likewise.
61605         * doc/posix-functions/toupper_l.texi: Likewise.
61606         * doc/posix-functions/towctrans_l.texi: Likewise.
61607         * doc/posix-functions/towlower_l.texi: Likewise.
61608         * doc/posix-functions/towupper_l.texi: Likewise.
61609         * doc/posix-functions/wcscoll_l.texi: Likewise.
61610         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61611         * doc/posix-functions/wctrans_l.texi: Likewise.
61612         * doc/posix-functions/wctype_l.texi: Likewise.
61613         * doc/glibc-functions/strptime_l.texi: Likewise.
61614         * doc/glibc-functions/strtod_l.texi: Likewise.
61615         * doc/glibc-functions/strtof_l.texi: Likewise.
61616         * doc/glibc-functions/strtol_l.texi: Likewise.
61617         * doc/glibc-functions/strtold_l.texi: Likewise.
61618         * doc/glibc-functions/strtoll_l.texi: Likewise.
61619         * doc/glibc-functions/strtoul_l.texi: Likewise.
61620         * doc/glibc-functions/strtoull_l.texi: Likewise.
61621         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61622         * doc/glibc-functions/wcstod_l.texi: Likewise.
61623         * doc/glibc-functions/wcstof_l.texi: Likewise.
61624         * doc/glibc-functions/wcstol_l.texi: Likewise.
61625         * doc/glibc-functions/wcstold_l.texi: Likewise.
61626         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61627         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61628         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61630 2009-11-24  Bruno Haible  <bruno@clisp.org>
61632         duplocale: Fix logic bug.
61633         * lib/duplocale.c: Don't include <langinfo.h>.
61634         (_NL_LOCALE_NAME): Remove macro.
61635         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61636         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61638 2009-11-23  Jim Meyering  <meyering@redhat.com>
61640         test-update-copyright: don't hard-code /usr/bin/perl
61641         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61642         perl to print the current year.  Gilles Espinasse reported that
61643         the replaced use of perl was hard-coded as /usr/bin/perl.
61645 2009-11-23  Bruno Haible  <bruno@clisp.org>
61647         duplocale: Add support for glibc 2.3.x.
61648         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61650 2009-11-22  Bruno Haible  <bruno@clisp.org>
61652         vasnprintf: Tiny optimization.
61653         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61654         MacOS X.
61656 2009-11-22  Bruno Haible  <bruno@clisp.org>
61658         Tests for module 'duplocale'.
61659         * modules/duplocale-tests: New file.
61660         * tests/test-duplocale.c: New file.
61662         New module 'duplocale'.
61663         * m4/duplocale.m4: New file.
61664         * lib/locale.in.h (duplocale): New declaration.
61665         * lib/duplocale.c: New file.
61666         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61667         gl_LOCALE_H_DEFAULTS): New macros.
61668         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61669         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61670         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61671         REPLACE_DUPLOCALE.
61672         * modules/duplocale: New file.
61673         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61675 2009-11-22  Bruno Haible  <bruno@clisp.org>
61677         * modules/locale-tests (configure.ac): Test for newlocale function.
61678         * tests/test-locale.c: When the system has extended locale functions,
61679         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61681         locale: Make locale_t available when possible.
61682         * lib/locale.in.h: Include <xlocale.h> when it exists.
61683         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61684         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61685         * modules/locale (Depends-on): Add extensions.
61686         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61687         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61689 2009-11-22  Bruno Haible  <bruno@clisp.org>
61691         Add comments.
61692         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61693         invocation.
61694         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61695         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61696         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61698 2009-11-22  Bruno Haible  <bruno@clisp.org>
61700         error: account for the possibility of freopen (stdout).
61701         * lib/error.c: Include <unistd.h>.
61702         (flush_stdout): New function, extracted from error and error_at_line.
61703         Determine stdout's fd dynamically.
61704         (error, error_at_line): Invoke flush_stdout.
61705         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61706         * modules/error (Depends-on): Add unistd.
61708 2009-11-22  Bruno Haible  <bruno@clisp.org>
61710         diffseq: Add comment.
61711         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61713 2009-11-22  Jim Meyering  <meyering@redhat.com>
61715         c-stack: avoid defining an unused static function
61716         * lib/c-stack.c (find_stack_direction): Do not define this function
61717         when it will not be used.
61719         diffseq: avoid spurious gcc warnings
61720         * lib/diffseq.h (IF_LINT2): Define.
61721         (compareseq): Use it to initialize two members of "part".
61722         This avoids two used-uninitialized warnings.
61724 2009-11-21  Jim Meyering  <meyering@redhat.com>
61726         c-stack: avoid "ignoring return value of `write'" warning
61727         * lib/c-stack.c: Include "ignore-value.h".
61728         (die): Explicitly ignore each write return value.
61729         * modules/c-stack (Depends-on): Add ignore-value.
61731 2009-11-21  Bruno Haible  <bruno@clisp.org>
61733         diffseq: reduce scope of variable 'best'.
61734         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61735         variable, earlier used for two different purposes.
61737 2009-11-21  Jim Meyering  <meyering@redhat.com>
61739         diffseq: remove useless assignment to "best"
61740         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61741         assignment.  At that point "best" is already guaranteed to be zero.
61743 2009-11-20  Eric Blake  <ebb9@byu.net>
61745         build: mention ftp redirector in release announcements
61746         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61747         values that used to come from cfg.mk; mention FTP redirect URL.
61748         * build-aux/announce-gen: Mention the mirror list.
61749         Suggested by Karl Berry.
61751         nanosleep: improve port to mingw
61752         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61754         LIB_NANOSLEEP, but only when needed.
61755         * modules/select (Link): Document LIBSOCKET.
61756         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61757         enough.
61759         nanosleep: work around cygwin bug
61760         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61761         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61762         bug.
61763         (getnow): Delete, not needed.
61764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61765         LIB_CLOCK_GETTIME.
61766         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61767         clock-time, gettime.
61768         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61769         bug.
61770         * modules/nanosleep-tests: New test.
61771         * tests/test-nanosleep.c: New file.
61773         sleep: work around cygwin bug
61774         * lib/sleep.c (rpl_sleep): Work around the bug.
61775         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61776         (gl_PREREQ_SLEEP): Delete unused macro.
61777         * modules/sleep (Depends-on): Add verify.
61778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61779         * modules/unistd (Makefile.am): Substitute witness.
61780         * lib/unistd.in.h (sleep): Update prototype.
61781         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61782         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61783         * modules/sleep-tests (Depends-on): Check for alarm.
61785 2009-11-20  Jim Meyering  <meyering@redhat.com>
61787         maint.mk: improve sc_prohibit_magic_number_exit
61788         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61789         so it does not match uses like System.exit(1).
61790         Add comments showing how to correct all offenders.
61792 2009-11-19  Eric Blake  <ebb9@byu.net>
61794         xalloc-die-tests: add missing library
61795         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61797         test-xvasprintf: silence compiler warnings
61798         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61799         empty string from gcc.
61801 2009-11-19  Jim Meyering  <meyering@redhat.com>
61803         xfreopen: new module, from coreutils
61804         * modules/xfreopen: New module.
61805         * lib/xfreopen.c: New file.
61806         * lib/xfreopen.h: New file.
61807         * MODULES.html.sh (File stream based Input/Output"): Add it.
61809 2009-11-19  Eric Blake  <ebb9@byu.net>
61811         manywarnings: depend on warnings
61812         * modules/manywarnings (Depends-on): Add warnings.
61814         build: avoid compiler warnings
61815         * lib/select.c (rpl_select): Delete unused variable.
61816         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61818 2009-11-18  Eric Blake  <ebb9@byu.net>
61820         tests: avoid false negative with --with-packager
61821         * tests/test-version-etc.sh: Discard packager information.
61822         * tests/test-argp-version-etc-1.sh: Likewise.
61823         Reported by Mike Frysinger.
61825         utimens: fix regression on Solaris
61826         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61827         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61828         can only change fd timestamps via futimesat.  Instead, use an
61829         additional witness macro to avoid BSD bug.
61830         Reported by Jim Meyering.
61832 2009-11-17  Eric Blake  <ebb9@byu.net>
61834         usleep: use it to simplify tests
61835         * modules/stat-time-tests (Depends-on): Add usleep.
61836         (configure.ac): Drop usleep check.
61837         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61838         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61839         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61840         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61841         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61842         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61843         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61844         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61845         Likewise.
61846         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61847         * tests/test-lchown.h (nap): Likewise.
61848         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61849         * tests/test-stat-time.c (nap): Likewise.
61850         * tests/test-utimens-common.h (nap): Update comments.
61852         usleep: new module
61853         * modules/usleep: New file.
61854         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61855         * lib/usleep.c (usleep): Likewise.
61856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61857         * modules/unistd (Makefile.am): Substitute witnesses.
61858         * lib/unistd.in.h (usleep): Add declaration.
61859         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61860         * MODULES.html.sh (Date and time): Likewise.
61861         * modules/usleep-tests (Depends-on): New test.
61862         * tests/test-usleep.c: New file.
61864         chown: work around OpenBSD bug
61865         * lib/chown.c (rpl_chown): Work around the bug.
61866         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61867         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61868         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61869         * modules/chown (Depends-on): Add stdbool.
61870         * modules/lchown (Depends-on): Likewise.
61871         * doc/posix-functions/chown.texi (chown): Document the bug.
61872         * doc/posix-functions/lchown.texi (lchown): Likewise.
61873         * tests/test-lchown.h (test_chown): Relax test.
61875         mkstemp: avoid conflict with C++ keyword template
61876         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61877         * lib/mkostemp.c (mkostemp): Likewise.
61878         * lib/mkostemps.c (mkostemps): Likewise.
61879         * lib/mkstemp.c (mkstemp): Likewise.
61880         * lib/mkstemps.c (mkstemps): Likewise.
61882         xalloc-die-tests: optimize
61883         * tests/test-xalloc-die.sh: Reduce number of processes.
61885 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61887         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61888         patch from ludo@gnu.org (Ludovic Courtès).
61890 2009-11-17  Jim Meyering  <meyering@redhat.com>
61892         version-etc: use proper license string
61893         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61894         * modules/version-etc-fsf: Likewise.
61896 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61898         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61899         printed to stdout.  Deal with EOL differences.
61901 2009-11-17  Eric Blake  <ebb9@byu.net>
61903         unsetenv: work around Solaris bug
61904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61905         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61906         Reported by Jim Meyering.
61908         vasnprintf: avoid compiler warnings
61909         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61910         variables.
61911         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61913 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61915         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61916         settings since xalloc-die is no longer the self test,
61917         xalloc-die.sh is.
61919 2009-11-17  Jim Meyering  <meyering@redhat.com>
61921         test-xalloc-die.sh: make the code agree with the commit log
61922         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61923         at the end, just in case you happen to have a test-xalloc-die
61924         program in some other PATH directory.
61926         test-xalloc-die.sh: fix a portability bug
61927         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61928         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61929         Otherwise, argv[0] (as often seen in diagnostics) would be too
61930         system-dependent, sometimes with, and sometimes without the leading "./".
61932         version-etc-fsf: relax license to LGPLv3+
61933         * modules/version-etc-fsf (License): Relax license.
61935 2009-11-16  Eric Blake  <ebb9@byu.net>
61937         xalloc-die-tests: avoid printing null pointer
61938         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61939         shell script.
61940         * tests/test-xalloc-die.c (program_name): Declare.
61941         * tests/test-xalloc-die.sh (tmpfiles): New file.
61943         setenv, unsetenv: work around various bugs
61944         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61945         (setenv) [HAVE_SETENV]: Work around bugs.
61946         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61947         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61948         for bugs.
61949         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61950         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61952         * modules/stdlib (Makefile.am): Update substitutions.
61953         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61954         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61955         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61956         * modules/setenv-tests: New test.
61957         * modules/unsetenv-tests: Likewise.
61958         * tests/test-setenv.c: New file.
61959         * tests/test-unsetenv.c: Likewise.
61961 2009-11-16  Jim Meyering  <meyering@redhat.com>
61963         version-etc: relax license to LGPLv3+
61964         * modules/version-etc (License): Relax license.
61966         better AC_REQUIRE expanded-before-required-warning avoidance
61967         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61968         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61969         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61970         which is no longer needed.
61972 2009-11-16  Eric Blake  <ebb9@byu.net>
61974         test-freading: clean up temporary file
61975         * tests/test-freading.c (main): Remove file on success, and use
61976         ASSERT more liberally.
61977         Reported by Jim Meyering.
61979 2009-11-16  Jim Meyering  <meyering@redhat.com>
61981         avoid new AC_REQUIRE expanded-before-required warnings
61982         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61983         merely using it.
61984         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61985         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61987 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61989         * tests/test-xalloc-die.c: New file.
61990         * modules/xalloc-die-tests: New file.
61991         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61992         XFAIL_TESTS so it can be appended by modules.
61994 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61996         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61997         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61999 2009-11-14  Eric Blake  <ebb9@byu.net>
62001         fnmatch: avoid compiler warning
62002         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
62003         to silence compiler warning about mismatch signedness in ?:.
62004         Reported by Robert Millan.
62006         intprops: add double-inclusion guard
62007         * lib/intprops.h: Allow idempotent includes.
62008         Suggested by Bruce Korb.
62010         openat: detect Solaris fchownat bug
62011         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
62012         penalizing glibc chownat when only lchownat is broken.
62013         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
62014         trailing slash bugs.
62015         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
62016         * modules/openat-tests (Files): Include more files.
62017         (Depends-on): Add mgetgroups, sleep, stat-time.
62018         (configure.ac): Add additional checks.
62019         (Makefile.am): Build new test.
62020         * tests/test-fchownat.c: New file.
62022         lchown: detect Solaris and FreeBSD bug
62023         * lib/lchown.c (rpl_lchown): Work around bug.
62024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
62025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62026         * modules/unistd (Makefile.am): Populate it.
62027         * lib/unistd.in.h (lchown): Update declaration.
62028         * doc/posix-functions/lchown.texi (lchown): Document the bug.
62029         * modules/lchown-tests: New file.
62030         * tests/test-lchown.h (test_lchown): Likewise.
62031         * tests/test-lchown.c (main): Likewise.
62033         chown: detect Solaris and FreeBSD bug
62034         * lib/chown.c (rpl_chown): Work around bug.
62035         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
62036         (gl_PREREQ_CHOWN): Delete.
62037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62038         * modules/unistd (Makefile.am): Populate it.
62039         * lib/unistd.in.h (chown): Update declaration.
62040         * lib/lchown.c (chown): Update client.
62041         * modules/lchown (Depends-on): Add lstat.
62042         * doc/posix-functions/chown.texi (chown): Document the bug.
62043         * doc/posix-functions/getgroups.texi (getgroups): Document
62044         getgroups pitfall.
62045         * modules/chown-tests: New file.
62046         * tests/test-chown.h (test_chown): Likewise.
62047         * tests/test-chown.c (main): Likewise.
62049 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
62051         gnulib-tool: correctly detect absence of m4 directories
62052         * gnulib-tool: Avoid extra newline on data passed to wc -l.
62054 2009-11-14  Jim Meyering  <meyering@redhat.com>
62056         maint.mk: Prohibit inclusion of "xalloc.h" without use.
62057         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62059 2009-11-14  John W. Eaton  <jwe@gnu.org>
62061         strftime.h: wrap function declaration in extern "C" block
62062         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
62064 2009-11-13  Eric Blake  <ebb9@byu.net>
62066         getgroups: avoid compiler warning
62067         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
62069         getgroups: work around FreeBSD bug
62070         * lib/getgroups.c (rpl_getgroups): Work around the bug.
62071         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
62072         * doc/posix-functions/getgroups.texi (getgroups): Document it.
62073         * tests/test-getgroups.c (main): Fix buffer overrun.
62075         getgroups: avoid compilation failure
62076         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
62077         * modules/getgroups (Depends-on): Add stdint.
62079 2009-11-13  Jim Meyering  <meyering@redhat.com>
62081         test-getgroups: avoid compilation failure
62082         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
62084 2009-11-13  Eric Blake  <ebb9@byu.net>
62086         mgetgroups: new module, taken from coreutils
62087         * modules/mgetgroups: New file.
62088         * lib/mgetgroups.h: Likewise.
62089         * lib/mgetgroups.c (mgetgroups): Likewise.
62090         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
62091         * MODULES.html.sh (Users and groups): Mention it.
62093         getgroups: don't expose GETGROUPS_T to user
62094         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
62095         an element at a time if GETGROUPS_T is wrong size.
62096         * lib/getugroups.h (getugroups): Change signature.
62097         * lib/unistd.in.h (getgroups): Likewise.
62098         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
62099         signature needs fixing.
62100         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
62101         AC_TYPE_GETGROUPS.
62102         * modules/group-member (Depends-on): Add getgroups.
62103         * lib/group-member.c (group_info, get_group_info): Use gid_t.
62104         (group_member): Rely on getgroups replacement.
62105         * lib/getugroups.c (getugroups): Use gid_t.
62106         * tests/test-getgroups.c (main): Likewise.
62107         * NEWS: Mention the signature change.
62108         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62109         problem with signature.
62110         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62111         GETGROUPS_T is still useful for setgroups.
62113         getgroups, getugroups: provide stubs for mingw
62114         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62115         * lib/getugroups.c (getugroups): Likewise.
62116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62117         function.  Modernize replacement scheme.
62118         (gl_PREREQ_GETGROUPS): Delete.
62119         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62120         * modules/getgroups (configure.ac): Declare witness.
62121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62122         * modules/unistd (Depends-on): Substitute witness.
62123         * lib/unistd.in.h (getgroups): Declare replacement.
62125         getgroups: avoid calling exit
62126         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62127         drop xalloc.
62128         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62129         dependencies.
62130         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62131         exiting, in the rare case of malloc failure.
62133         getgroups: fix logic error
62134         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62135         has more than 20 groups.
62136         * modules/getgroups-tests: New test.
62137         * tests/test-getgroups.c: New file.
62139 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62141         * tests/test-base64.c: Improve.
62143 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62145         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62146         Blake <ebb9@byu.net>.
62148 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62150         * tests/test-xvasprintf.c: Add %s%s related checks.
62152 2009-11-12  Eric Blake  <ebb9@byu.net>
62154         version-etc: match standards.texi style
62155         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62156         and use <> only for URLs.
62158 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62160         fts: do not fail on a submount during traversal
62161         * lib/fts.c (fts_build): Read the stat info again after opening
62162         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62163         Original report at http://bugzilla.redhat.com/501848.
62165 2009-11-12  Jim Meyering  <meyering@redhat.com>
62167         bootstrap: sync from coreutils
62168         * build-aux/bootstrap (bootstrap_epilogue): New function.
62169         Use git_modules_config in one more place.  This make bootstrap's
62170         --gnulib-srcdir option more useful for testing.
62172         bootstrap: generalize autoheader check
62173         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62174         AC_CONFIG_HEADERS.
62176 2009-11-11  Eric Blake  <ebb9@byu.net>
62178         mkfifoat: use new modules for Solaris and BSD bugs
62179         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62180         * lib/mkfifoat.c (mknodat): Split...
62181         * lib/mknodat.c (mknodat): ...into new file.
62182         * modules/mkfifoat (Files): Ship new file.
62183         (Depends-on): Add mkfifo, mknod.
62184         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62185         (Depends-on): Add symlink.
62186         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62187         redundant with test_mkfifo.h.
62188         (do_mkfifoat, do_mknodat): New helpers.
62190         mknod: new module
62191         * modules/mknod: New file.
62192         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62193         * lib/mknod.c (mknod): Likewise.
62194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62195         defaults.
62196         * modules/sys_stat (Makefile.am): Substitute them.
62197         * lib/sys_stat.in.h (mknod): Declare replacement.
62198         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62199         Document it.
62200         * doc/posix-functions/mknod.texi (mknod): Likewise.
62201         * modules/mknod-tests: New test.
62202         * tests/test-mknod.c: Likewise.
62204         mkfifo: new module
62205         * modules/mkfifo: New file.
62206         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62207         * lib/mkfifo.c (mkfifo): Likewise.
62208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62209         defaults.
62210         * modules/sys_stat (Makefile.am): Substitute them.
62211         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62212         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62213         Document it.
62214         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62215         * modules/mkfifo-tests: New test.
62216         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62217         from test-mkfifoat.c.
62218         * tests/test-mkfifo.c: New file.
62220         readlink: detect FreeBSD bug
62221         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62222         slash on symlink.
62223         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62224         * tests/test-readlink.h (test_readlink): Enhance test.
62226         symlink: detect FreeBSD bug
62227         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62228         slash on symlink.
62229         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62230         * tests/test-symlink.h (test_symlink): Enhance test.
62232 2009-11-10  Eric Blake  <ebb9@byu.net>
62234         link: detect FreeBSD bug
62235         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62236         symlink.
62237         * doc/posix-functions/link.texi (link): Document the bug.
62238         * tests/test-link.h (test_link): Enhance test.
62239         * tests/test-linkat.c (main): Update caller.
62241         unlink, remove: detect FreeBSD bug
62242         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62243         slash on symlink.
62244         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62245         * doc/posix-functions/remove.texi (remove): Likewise.
62246         * tests/test-unlink.h (test_unlink): Enhance test.
62247         * tests/test-remove.c (main): Likewise.
62249 2009-11-09  Eric Blake  <ebb9@byu.net>
62251         rename: detect FreeBSD bug
62252         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62253         slash on symlink.
62254         * modules/renameat-tests (Depends-on): Add filenamecat.
62255         * tests/test-rename.h (test_rename): Allow one more errno.
62256         * tests/test-renameat.c (main): Likewise.
62257         * doc/posix-functions/rename.texi (rename): Document the bug.
62259         open: detect FreeBSD bug
62260         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62261         symlink.
62262         * doc/posix-functions/open.texi (open): Document the bug.
62263         * doc/posix-functions/utimes.texi (utimes): Likewise.
62264         * tests/test-open.h (test_open): Add parameters, and test symlink
62265         handling.
62266         * tests/test-open.c (main): Adjust caller.
62267         * tests/test-fcntl-safer.c (main): Likewise.
62268         * modules/open-tests (Depends-on): Add stdbool, symlink.
62269         * modules/fcntl-safer-tests (Depends-on): Likewise.
62270         * tests/test-openat.c (main): Add test-open tests.
62272         stat: detect FreeBSD bug
62273         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62274         symlink.
62275         * doc/posix-functions/stat.texi (stat): Document the bug.
62276         * tests/test-stat.h (test_stat_func): Add argument.
62277         * tests/test-stat.c (main): Adjust caller.
62278         * tests/test-fstatat.c (main): Likewise.
62279         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62280         Reported by Jim Meyering.
62282 2009-11-09  James Youngman  <jay@gnu.org>
62284         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62285         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62287 2009-11-08  Jim Meyering  <meyering@redhat.com>
62289         utimens: remove invalid futimesat call
62290         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62291         It used the file descriptor of the target file as the DIR_FD
62292         parameter and NULL as the file name.  That caused failure with
62293         errno == EFAULT on FreeBSD-8.0-rc2
62295 2009-11-07  Eric Blake  <ebb9@byu.net>
62297         fflush, freadseek: use fseeko, not fseek
62298         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62299         (clear_ungetc_buffer): Avoid potential problems on large files.
62300         * lib/freadseek.c (freadseek): Likewise.
62301         * modules/freadseek (Depends-on): Add fseeko.
62302         * modules/fseek (configure.ac): Set a witness.
62303         * tests/test-fflush.c (main): Use fseeko.
62304         * tests/test-fpurge.c (fseek): Disable link warning.
62305         * tests/test-freadable.c (fseek): Likewise.
62306         * tests/test-freading.c (fseek): Likewise.
62307         * tests/test-fseeko.c (fseek): Likewise.
62308         * tests/test-ftell.c (fseek): Likewise.
62309         * tests/test-ftello.c (fseek): Likewise.
62310         * tests/test-fwritable.c (fseek): Likewise.
62311         * tests/test-fwriting.c (fseek): Likewise.
62313 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62315         * modules/memchr (Depends-on): Drop getpagesize dependency.
62317 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62319         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62320         Reported by Ludovic Courtès.
62321         * build-aux/pmccabe2html: Improve example usage.
62322         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62324 2009-11-06  Jim Meyering  <meyering@redhat.com>
62326         do-release-commit-and-tag: New module.
62327         Automate the release-commit and tag process.
62328         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62329         * modules/do-release-commit-and-tag: New file.
62330         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62332 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62334         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62335         because test-select.c uses inet_pton.
62337 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62339         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62340         GETADDRINFO_LIB.  Bump serial number.
62341         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62342         Suggested by Eric Blake <ebb9@byu.net>.
62344 2009-11-05  Eric Blake  <ebb9@byu.net>
62346         strtod: detect darwin bug
62347         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62348         Reported by Leo Davis.
62350         freopen-safer: new module
62351         * modules/freopen-safer: New module.
62352         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62353         * lib/freopen-safer.c (freopen_safer): New file.
62354         * lib/stdio-safer.h (freopen_safer): New declaration.
62355         * lib/stdio--.h (freopen): New override.
62356         * MODULES.html.sh (File stream based Input/Output): Mention it.
62357         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62358         freopen-safer module.
62359         * doc/posix-functions/stderr.texi (stderr): Likewise.
62360         * doc/posix-functions/stdin.texi (stdin): Likewise.
62361         * doc/posix-functions/stdout.texi (stdout): Likewise.
62362         * modules/freopen-safer-tests: New test.
62363         * tests/test-reopen-safer.c: New file.
62365 2009-11-05  Jim Meyering  <meyering@redhat.com>
62367         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62368         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62370 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62372         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62374 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62376         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62378 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62380         Fix link error.
62381         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62382         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62384 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62386         * tests/test-func.c: Also test value of __func__.
62388 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62390         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62391         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62393 2009-11-05  Bruno Haible  <bruno@clisp.org>
62395         Fix link error.
62396         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62398         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62400 2009-11-05  Bruno Haible  <bruno@clisp.org>
62402         Tests for module 'inet_pton'.
62403         * modules/inet_pton-tests: New file.
62404         * tests/test-inet_pton.c: New file.
62406 2009-11-05  Bruno Haible  <bruno@clisp.org>
62408         Tests for module 'inet_ntop'.
62409         * modules/inet_ntop-tests: New file.
62410         * tests/test-inet_ntop.c: New file.
62412 2009-11-04  Eric Blake  <ebb9@byu.net>
62414         stdlib-safer: wrap all mkstemp variants
62415         * modules/mkostemp (configure.ac): Set witness.
62416         * modules/mkostemps (configure.ac): Likewise.
62417         * modules/mkstemps (configure.ac): Likewise.
62418         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62419         (mkstemps_safer): Wrap more functions.
62420         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62421         wrapping.
62422         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62423         (mkstemps_safer): Implement the wrappers.
62425         mkstemps, mkostemps: new modules
62426         * modules/mkostemps: New module.
62427         * modules/mkstemps: Likewise.
62428         * lib/mkostemps.c (mkostemps): New file.
62429         * lib/mkstemps.c (mkstemps): Likewise.
62430         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62431         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62433         * modules/stdlib (Makefile.am): Substitute them.
62434         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62435         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62436         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62437         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62438         * MODULES.html.sh (File system functions): Mention them.
62440         tempname: resync from glibc
62441         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62442         same values for __GT_FILE as glibc.  Abort even when assertions
62443         are disabled.
62444         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62445         match its value otherwise.  Allow idempotent inclusion.
62446         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62447         * lib/mkostemp.c (mkostemp): Likewise.
62448         * lib/mkstemp.c (mkstemp): Likewise.
62449         * lib/tmpfile.c (tmpfile): Likewise.
62450         * NEWS: Document this.
62452         utimens: fix use of futimens on older Linux
62453         * lib/utimens.c (fdutimens): Use updated, rather than original,
62454         timespec to avoid bug in older Linux kernel.
62455         Reported by Simon Josefsson.
62457 2009-11-04  Bruno Haible  <bruno@clisp.org>
62459         Make num_processors more flexible and consistent.
62460         * lib/nproc.h (enum nproc_query): New type.
62461         (num_processors): Add a 'query' argument.
62462         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62463         (num_processors): Add a 'query' argument. Test the value of the
62464         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62465         mingw, count the number of CPUs available for the current process.
62466         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62467         Check for sched_getaffinity and sched_getaffinity_np.
62468         * modules/nproc (Depends-on): Add c-ctype, extensions.
62469         * NEWS: Mention the change.
62471 2009-11-03  Bruno Haible  <bruno@clisp.org>
62473         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62475 2009-11-03  Jim Meyering  <meyering@redhat.com>
62477         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62478         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62479         if it is defined.
62481 2009-11-02  Eric Blake  <ebb9@byu.net>
62483         mktime, timegm: share common declaration
62484         * lib/mktime-internal.h: New file.
62485         * lib/mktime.c: Use it rather than open-coding a declaration.
62486         * lib/timegm.c: Likewise.
62487         * modules/mktime (Files): Ship it.
62488         * modules/timegm (Files): Likewise.
62489         Suggested by Bruno Haible.
62491         test-update-copyright: update test to match script changes
62492         * tests/test-update-copyright.sh: Avoid hard-coding perl
62493         location.  Don't update *.bak created by earlier runs.
62495 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62496             Simon Josefsson  <simon@josefsson.org>
62497             Bruno Haible  <bruno@clisp.org>
62499         Fix link error on Solaris 8.
62500         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62501         also in libnsl. Define also INET_PTON_LIB.
62502         * modules/inet_pton (Link): New section.
62504 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62505             Bruno Haible  <bruno@clisp.org>
62507         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62508         * modules/inet_ntop (Link): New section.
62509         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62511 2009-11-02  Eric Blake  <ebb9@byu.net>
62513         maint: avoid compiler warnings in m4 macros
62514         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62517 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62519         * m4/pmccabe2html.m4: Remove file.
62520         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62521         function.  Change maintainer.
62522         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62523         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62524         Courtès).
62526 2009-10-31  Eric Blake  <ebb9@byu.net>
62528         fseeko: fix m4 regression
62529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62530         regression from 2009-10-27.
62531         Reported by Ralf Wildenhues.
62533 2009-10-31  Jim Meyering  <meyering@redhat.com>
62535         inttostr: aesthetics and improved (compile-time) safety
62536         Define inttype_is_signed rather than inttype_is_unsigned,
62537         since the sole use is via "#if inttype_is_signed".
62538         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62539         inttype_is_unsigned.
62540         * lib/offtostr.c (inttype_is_signed): Likewise.
62541         * lib/uinttostr.c (inttype_is_signed): Likewise.
62542         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62543         * lib/inttostr.c (inttostr): Use verify to cross-check the
62544         inttype_is_signed value and the signedness of the actual type.
62545         * modules/inttostr (Depends-on): Add verify.
62547 2009-10-30  Eric Blake  <ebb9@byu.net>
62549         build: avoid compiler warnings
62550         * lib/fchmodat.c (lchmod): Mark unused variables.
62551         * lib/getopt.c (_getopt_initialize): Likewise.
62552         * lib/mktime.c (__mktime_internal): Provide prototype.
62553         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62554         older gcc that do not understand #pragma GCC diagnostic.
62555         * lib/uinttostr.c (inttype_is_unsigned): Define.
62556         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62558 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62560         stat: fix compilation on AIX
62561         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62562         only see struct stat64.
62564 2009-10-30  Eric Blake  <ebb9@byu.net>
62566         exclude: make more robust
62567         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62568         rather than masking a coding bug.
62569         Suggested by Bruno Haible.
62571 2009-10-30  Jim Meyering  <meyering@redhat.com>
62573         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62574         Rather than putting #!/usr/bin/perl on the first line,
62575         start with a variant of what's recommended by "man perlrun" that
62576         invokes the first "perl" program from your shell's search path.
62577         * build-aux/gitlog-to-changelog: Replace #!... as above.
62578         Add a "Local Variables" perl mode setting.
62579         Prompted by a patch from Ludovic Courtès.
62580         Improved by Eric Blake.
62581         * build-aux/useless-if-before-free: Likewise.
62582         * build-aux/announce-gen: Likewise.
62583         * build-aux/update-copyright: Likewise.
62585 2009-10-29  Eric Blake  <ebb9@byu.net>
62587         filenamecat-lgpl: adjust clients
62588         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62589         filenamecat.
62590         * modules/renameat (Depends-on): Likewise.
62592         filenamecat: split into filenamecat-lgpl
62593         * modules/filenamecat-lgpl: New module.
62594         * modules/filenamecat (Files): Move library-safe files into
62595         filenamecat-lgpl.
62596         (Depends-on): Add filenamecat-lgpl.
62597         (configure.ac): Declare witness.
62598         * lib/filenamecat.h (file_name_concat): Only declare when using
62599         GPL module.
62600         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62601         Move...
62602         * lib/filenamecat-lgpl.c: ...into new file.
62603         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62604         (gl_FILE_NAME_CONCAT): Use it.
62605         * MODULES.html.sh (File system functions): Mention new module.
62607         argp: avoid memory leak
62608         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62609         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62610         base_name, since the latter malloc()s and can call exit().
62611         Leak introduced 2006-07-03.
62613         dirname-lgpl: adjust clients that don't need full dirname
62614         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62615         * modules/filenamecat (Depends-on): Likewise.
62616         * modules/linkat (Depends-on): Likewise.
62617         * modules/mkancesdirs (Depends-on): Likewise.
62618         * modules/mkdir (Depends-on): Likewise.
62619         * modules/openat (Depends-on): Likewise.
62620         * modules/savewd (Depends-on): Likewise.
62621         * modules/rename (Depends-on): Likewise.
62622         (License): Relax license.
62623         * modules/mkdir-tests (Depends-on): Drop progname.
62624         (Makefile.am): Delete unneeded LDADD.
62625         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62627         dirname: split into dirname-lgpl
62628         * modules/dirname-lgpl: New module.
62629         * modules/dirname (Files): Move library-safe files into
62630         dirname-lgpl.
62631         (Depends-on): Add dirname-lgpl.
62632         (configure.ac): Declare witness.
62633         * modules/double-slash-root (License): Relax license.
62634         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62635         module.
62636         * lib/dirname.c (dir_len, mdir_name): Move...
62637         * lib/dirname-lgpl.c: ...into new file.
62638         * lib/basename.c (last_component, base_len): Move...
62639         * lib/basename-lgpl.c: ...into new file.
62640         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62641         (gl_DIRNAME): Use it.
62642         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62643         Mention new module.
62644         * modules/dirname-tests (Depends-on): Add progname.
62645         * tests/test-dirname.c (program_name): Delete.
62647         mkdir: make safe for libraries
62648         * modules/mkdir (Depends-on): Drop xalloc.
62649         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62650         exit.
62652         tests: avoid some compiler warnings
62653         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62654         literals.
62655         * tests/test-memchr.c (main): Avoid type mismatch.
62656         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62657         * tests/test-base64.c (main): Likewise.
62658         * tests/test-getdelim.c (main): Likewise.
62659         * tests/test-gethostname.c (main): Likewise.
62660         * tests/test-getline.c (main): Likewise.
62661         * tests/test-netinet_in.c (main): Likewise.
62662         * tests/test-select.c (open_server_socket, main): Likewise.
62663         * tests/test-select-stdin.c (main): Likewise.
62664         * tests/test-sockets.c (main): Likewise.
62665         * tests/test-strsignal.c (main): Likewise.
62666         * tests/test-sys_select.c (main): Likewise.
62667         * tests/test-sys_socket.c (main): Likewise.
62668         * tests/test-u64.c (main): Likewise.
62669         * tests/test-xfprintf-posix.c (main): Likewise.
62670         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62672         sockets: avoid compiler warning
62673         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62675         maint: detect usage(1) and other suspicious exits
62676         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62678 2009-10-29  Jim Meyering  <meyering@redhat.com>
62680         timespec: long-to-int truncation could make timespec_cmp malfunction
62681         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62682         a multiple of 2^32 nanoseconds as no difference.
62684 2009-10-28  Jim Meyering  <meyering@redhat.com>
62686         fprintftime: wrap macro code argument in "do {...} while(0)"
62687         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62688         cpy macro must be a statement that can be followed by a semicolon.
62689         Now that the else clause contains a comment and is hence longer
62690         than one line, I require curly braces.  That in turn requires
62691         that we wrap this code block in the standard do...while(0).
62693         fprintftime: remove stray semicolon from previous change
62694         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62696         fprintftime: avoid a warning about ignored fwrite return value
62697         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62698         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62699         that is unsafe.
62700         * modules/fprintftime (Depends-on): Add ignore-value.
62702         exclude: avoid an unwarranted warning
62703         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62705 2009-10-27  Eric Blake  <ebb9@byu.net>
62707         fseek: avoid compilation failure when fflush is replaced
62708         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62709         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62710         module is in use.
62711         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62712         module is not in use; since REPLACE_FSEEK worked otherwise.
62713         (GNULIB_FTELLO): Likewise for ftell.
62714         Reported by Ian Beckwith and others.
62716 2009-10-27  Bruno Haible  <bruno@clisp.org>
62718         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62719         Reported by Jim Meyering.
62721 2009-10-27  Jim Meyering  <jim@meyering.net>
62722             Bruno Haible  <bruno@clisp.org>
62724         Avoid warning despite dropping the return value of fwrite.
62725         * lib/unicodeio.c: Include ignore-value.h.
62726         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62727         * modules/unicodeio (Depends-on): Add ignore-value.
62729 2009-10-26  Eric Blake  <ebb9@byu.net>
62731         areadlinkat: fix fallback path
62732         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62733         pointer and zero.
62735 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62737         Use a better IO block size for modern systems
62738         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62739         * lib/md2.c: Likewise.
62740         * lib/md4.c: Likewise.
62741         * lib/md5.c: Likewise.
62742         * lib/sha1.c: Likewise.
62743         * lib/sha256.c: Likewise.
62744         * lib/sha512.c: Likewise.
62746 2009-10-22  Eric Blake  <ebb9@byu.net>
62748         tests: avoid several compiler warnings
62749         * tests/test-getcwd.c (main): Avoid buffer underflow.
62750         * tests/test-getdate.c (main): String literals are not safe with
62751         putenv, so use setenv.  Declare unused argument.
62752         * modules/getdate-tests (Depends-on): Add setenv.
62753         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62754         problems with string literals in char *.
62755         * tests/test-hash.c (main): Avoid shadowing declaration.
62756         (insert_new): Treat string literals as char const *.
62757         * tests/test-getopt.h (test_getopt): Likewise.
62758         (getopt_loop): Alter types to minimize casting elsewhere.
62759         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62760         (test_getopt_long_posix): Likewise.
62761         (do_getopt_long): Add wrapper to minimize casting.
62762         * tests/test-atexit.c (clear_temp_file): Use void.
62763         * tests/test-areadlink-with-size.c (main): Declare unused
62764         arguments.
62765         * tests/test-areadlink.c (main): Likewise.
62766         * tests/test-areadlinkat-with-size.c (main): Likewise.
62767         * tests/test-areadlinkat.c (main): Likewise.
62768         * tests/test-canonicalize-lgpl.c (main): Likewise.
62769         * tests/test-canonicalize.c (main): Likewise.
62770         * tests/test-dirent-safer.c (main): Likewise.
62771         * tests/test-dirname.c (main): Likewise.
62772         * tests/test-dup2.c (main): Likewise.
62773         * tests/test-fchdir.c (main): Likewise.
62774         * tests/test-fcntl-h.c (main): Likewise.
62775         * tests/test-fcntl-safer.c (main): Likewise.
62776         * tests/test-fdopendir.c (main): Likewise.
62777         * tests/test-fdutimensat.c (main): Likewise.
62778         * tests/test-fflush.c (main): Likewise.
62779         * tests/test-filenamecat.c (main): Likewise.
62780         * tests/test-filevercmp.c (main): Likewise.
62781         * tests/test-fopen-safer.c (main): Likewise.
62782         * tests/test-fopen.c (main): Likewise.
62783         * tests/test-fpending.c (main): Likewise.
62784         * tests/test-fpurge.c (main): Likewise.
62785         * tests/test-freading.c (main): Likewise.
62786         * tests/test-fstatat.c (main): Likewise.
62787         * tests/test-fsync.c (main): Likewise.
62788         * tests/test-futimens.c (main): Likewise.
62789         * tests/test-getndelim2.c (main): Likewise.
62790         * tests/test-gettimeofday.c (main): Likewise.
62791         * tests/test-getopt.c (main): Likewise.
62792         * tests/test-i-ring.c (main): Likewise.
62793         * tests/test-inttypes.c (main): Likewise.
62794         * tests/test-link.c (main): Likewise.
62795         * tests/test-lstat.c (main): Likewise.
62796         * tests/test-math.c (main): Likewise.
62797         * tests/test-md5.c (main): Likewise.
62798         * tests/test-memchr2.c (main): Likewise.
62799         * tests/test-memrchr.c (main): Likewise.
62800         * tests/test-mkdir.c (main): Likewise.
62801         * tests/test-mkdirat.c (main): Likewise.
62802         * tests/test-mkfifoat.c (main): Likewise.
62803         * tests/test-open.c (main): Likewise.
62804         * tests/test-openat-safer.c (main): Likewise.
62805         * tests/test-openat.c (main): Likewise.
62806         * tests/test-quotearg.c (main): Likewise.
62807         * tests/test-rawmemchr.c (main): Likewise.
62808         * tests/test-readlink.c (main): Likewise.
62809         * tests/test-remove.c (main): Likewise.
62810         * tests/test-rename.c (main): Likewise.
62811         * tests/test-renameat.c (main): Likewise.
62812         * tests/test-rmdir.c (main): Likewise.
62813         * tests/test-sha1.c (main): Likewise.
62814         * tests/test-signal.c (main): Likewise.
62815         * tests/test-sigaction.c (main): Likewise.
62816         * tests/test-stat.c (main): Likewise.
62817         * tests/test-stat-time.c (main): Likewise.
62818         * tests/test-stddef.c (main): Likewise.
62819         * tests/test-stdint.c (main): Likewise.
62820         * tests/test-stdio.c (main): Likewise.
62821         * tests/test-stdlib.c (main): Likewise.
62822         * tests/test-strchrnul.c (main): Likewise.
62823         * tests/test-strerror.c (main): Likewise.
62824         * tests/test-string.c (main): Likewise.
62825         * tests/test-strtod.c (main): Likewise.
62826         * tests/test-strverscmp.c (main): Likewise.
62827         * tests/test-symlink.c (main): Likewise.
62828         * tests/test-symlinkat.c (main): Likewise.
62829         * tests/test-sys_stat.c (main): Likewise.
62830         * tests/test-sys_time.c (main): Likewise.
62831         * tests/test-time.c (main): Likewise.
62832         * tests/test-unistd.c (main): Likewise.
62833         * tests/test-unlink.c (main): Likewise.
62834         * tests/test-unlinkat.c (main): Likewise.
62835         * tests/test-utimens.c (main): Likewise.
62836         * tests/test-utimensat.c (main): Likewise.
62837         * tests/test-version-etc.c (main): Likewise.
62838         * tests/test-wchar.c (main): Likewise.
62839         * tests/test-wctype.c (main): Likewise.
62840         * tests/test-xprintf-posix.c (main): Likewise.
62841         * tests/test-posixtm.c (main): Likewise.
62842         (STREQ): Delete unused macro.
62843         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62844         shadowed variables.
62845         * tests/test-memchr.c (main): Likewise.
62847 2009-10-21  Eric Blake  <ebb9@byu.net>
62849         areadlinkat: avoid failure on older glibc
62850         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62851         rather than mis-comparing 0 against FUNC_RESULT of char*.
62853 2009-10-21  Bruno Haible  <bruno@clisp.org>
62855         * modules/stpncpy (License): Relicense under LGPLv2+.
62856         Reported by David Lutterkort <lutter@redhat.com>.
62858 2009-10-20  Eric Blake  <ebb9@byu.net>
62860         utimensat: work around Solaris 9 bug
62861         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62862         has trailing slash bugs.
62863         * tests/test-lutimens.h (test_lutimens): Enhance test.
62864         * tests/test-utimens.h (test_utimens): Likewise.
62865         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62866         * doc/posix-functions/utimes.texi (utimes): Likewise.
62867         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62868         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62869         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62870         * doc/posix-functions/futimens.texi (futimens): Likewise.
62872         fdutimensat: new module
62873         * modules/fdutimensat: New file.
62874         * lib/fdutimensat.c (fdutimensat): Likewise.
62875         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62876         * MODULES.html.sh (File system functions): Mention module.
62877         * modules/fdutimensat-tests: New test.
62878         * tests/test-fdutimensat.c: Likewise.
62880         doc: regenerate INSTALL
62881         * doc/INSTALL: Reflect recent autoconf update.
62882         * doc/INSTALL.ISO: Likewise.
62883         * doc/INSTALL.UTF-8: Likewise.
62885 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62887         acl: warn if ACL support is not detected
62888         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62890 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62892         * lib/nproc.h: Add extern "C" block for C++.
62894 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62895             Bruno Haible  <bruno@clisp.org>
62897         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62898         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62899         * doc/posix-functions/isalpha.texi: Likewise.
62900         * doc/posix-functions/isblank.texi: Likewise.
62901         * doc/posix-functions/iscntrl.texi: Likewise.
62902         * doc/posix-functions/isdigit.texi: Likewise.
62903         * doc/posix-functions/isgraph.texi: Likewise.
62904         * doc/posix-functions/islower.texi: Likewise.
62905         * doc/posix-functions/isprint.texi: Likewise.
62906         * doc/posix-functions/ispunct.texi: Likewise.
62907         * doc/posix-functions/isspace.texi: Likewise.
62908         * doc/posix-functions/isupper.texi: Likewise.
62909         * doc/posix-functions/isxdigit.texi: Likewise.
62911 2009-10-18  Bruno Haible  <bruno@clisp.org>
62913         Tests for module 'isblank'.
62914         * modules/isblank-tests: New file.
62915         * tests/test-isblank.c: New file.
62917         New module 'isblank'.
62918         * lib/isblank.c: New file.
62919         * m4/isblank.m4: New file.
62920         * modules/isblank: New file.
62921         * doc/posix-functions/isblank.texi: Mention the new module.
62923 2009-10-18  Bruno Haible  <bruno@clisp.org>
62925         New module 'ctype'.
62926         * lib/ctype.in.h: New file.
62927         * m4/ctype.m4: New file.
62928         * modules/ctype: New file.
62929         * doc/posix-headers/ctype.texi: Mention the new module.
62931 2009-10-18  Jim Meyering  <meyering@redhat.com>
62933         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62934         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62935         right after its initialization, rather than farther down.
62936         Keeping these in close proximity makes it easier to ensure
62937         that each such variable is initialized.  E.g.,
62939             LIB_CLOCK_GETTIME=
62940             AC_SUBST([LIB_CLOCK_GETTIME])
62942         This change also increments these serial numbers.
62943         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62944         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62945         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62947 2009-10-18  Bruno Haible  <bruno@clisp.org>
62949         Don't let environment variables perturb build.
62950         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62951         (gl_PREREQ_GETHRXTIME): ... not here.
62953 2009-10-18  Bruno Haible  <bruno@clisp.org>
62955         Avoid symlink attack in localcharset module.
62956         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62957         (O_NOFOLLOW): Define fallback.
62958         (get_charset_aliases): Don't open the file if it is a symbolic link.
62959         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62960         gl_FCNTL_H.
62961         (gl_FCNTL_H): Require it.
62962         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62963         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62964         Reported by Fergal Glynn <fglynn@veracode.com>.
62966 2009-10-18  Bruno Haible  <bruno@clisp.org>
62968         Implement nproc for mingw.
62969         * lib/nproc.c: Include <windows.h>
62970         (num_processors): On native Windows platforms, try GetSystemInfo.
62972 2009-10-18  Bruno Haible  <bruno@clisp.org>
62974         Implement nproc for IRIX.
62975         * lib/nproc.c: Include <sys/sysmp.h>.
62976         (num_processors): On IRIX systems, try sysmp.
62977         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62979 2009-10-18  Bruno Haible  <bruno@clisp.org>
62981         Implement nproc for HP-UX.
62982         * lib/nproc.c: Include <sys/pstat.h>
62983         (num_processors): On HP-UX systems, try pstat_getdynamic.
62984         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62985         pstat_getdynamic.
62987 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62988             Bruno Haible  <bruno@clisp.org>
62990         Implement nproc for NetBSD, OpenBSD.
62991         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62992         (ARRAY_SIZE): New macro.
62993         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62994         * m4/nproc.m4: New file.
62995         * modules/nproc (Files): Add m4/nproc.m4.
62996         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62997         (Makefile.am): Instead, augment lib_SOURCES.
62999 2009-10-18  Bruno Haible  <bruno@clisp.org>
63001         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
63002         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
63003         sys/param.h.
63005 2009-10-16  Eric Blake  <ebb9@byu.net>
63007         utimensat: new module
63008         * modules/utimensat: New file.
63009         * lib/utimensat.c (utimensat): Likewise.
63010         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63011         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
63012         so we can work around Linux bugs.
63013         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63014         * modules/sys_stat (Makefile.am): Substitute them.
63015         * lib/sys_stat.in.h (utimensat): Declare it.
63016         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63017         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63018         * modules/utimensat-tests: New test.
63019         * tests/test-utimensat.c: Likewise.
63021         utimens: let lutimens work on non-symlinks
63022         * lib/utimens.c (lutimens): Fall back to utimens rather than
63023         failing with ENOSYS, when file is not a symlink.
63024         (utimens): Reduce redirection.
63025         * tests/test-lutimens.h (test_lutimens): Update test to cover
63026         non-symlinks.
63027         * tests/test-utimens.h (test_utimens): Update test to cover
63028         symlinks.
63029         * tests/test-utimens.c (main): Update caller.
63031         utimens: cache whether utimensat syscall works
63032         * lib/utimens.c (utimensat_works_really): New cache variable.
63033         (fdutimens, lutimens): Use it to avoid failing syscall.
63035         test-stat-time, test-utimens: improve portability
63036         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
63037         ext4 on alpha, and for cygwin.
63038         * tests/test-utimens-common.h: New file.
63039         (nap): Factor delays into single function.
63040         * tests/test-lutimens.h (test_lutimens): Use new header.
63041         * tests/test-futimens.h (test_futimens): Likewise.
63042         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
63043         timestamps to occur from same machine, as was done previously for
63044         test_utimens.
63045         * modules/utimens-tests (Files): Ship new file.
63046         * modules/futimens-tests (Files): Likewise.
63047         Reported in part by Jim Meyering.
63049         sys_stat: sort replacement declarations
63050         * lib/sys_stat.in.h: Sort declarations.
63051         * lib/futimens.c (futimens): Fix typo.
63053 2009-10-15  Jim Meyering  <meyering@redhat.com>
63055         don't let environment settings perturb build
63056         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
63057         could cause a configure-time and/or build-time malfunction.
63058         Typically, a configure-time function-in-library test is performed
63059         via code like this:
63061           LIB_VAR=
63062           AC_SUBST([LIB_VAR])
63063           prefix_saved_LIBS=$LIBS
63064             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
63065                        [test "$ac_cv_search_FUNC" = "none required" ||
63066                         LIB_VAR=$ac_cv_search_FUNC])
63067           LIBS=$prefix_saved_LIBS
63069         However, in each of the files affected by this change, the LIB_VAR=
63070         initialization was omitted.  Thus, when set in the environment, its
63071         value would propagate into generated Makefiles when FUNC is not found
63072         in LIB_NAME.
63073         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
63074         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63077 2009-10-14  Eric Blake  <ebb9@byu.net>
63079         fchdir: avoid infinite recursion in mingw
63080         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
63081         recursing.
63083         test-stat-time: port to mingw
63084         * tests/test-stat-time.c (force_unlink): Return a value.
63085         (test_ctime) [W32]: Fix compilation error.
63086         (nap): Don't call usleep with too large an argument.  Use
63087         force_unlink.
63088         * doc/pastposix-functions/usleep.texi (usleep): Document the
63089         portability issue.
63091 2009-10-13  Jim Meyering  <meyering@redhat.com>
63093         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
63094         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63095         * modules/pipe-filter-ii: Likewise.
63096         * modules/sys_socket-tests: Likewise.
63097         * modules/tsearch-tests: Likewise.
63098         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
63099         (check): Depend on it.
63101 2009-10-12  Eric Blake  <ebb9@byu.net>
63103         utimens-tests: port to NFS file systems
63104         * tests/test-utimens.h (test_utimens): Refactor utimecmp
63105         comparisons to avoid spurious failures from timestamp drift
63106         between NFS machines.
63108 2009-10-12  Eric Blake  <ebb9@byu.net>
63110         stat-time-tests: minor cleanups
63111         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63112         * tests/test-stat-time.c (nap): Separate assignment from call.
63113         Suggested by Paolo Bonzini and Bruno Haible.
63115         sys_stat: guarantee struct timespec
63116         * lib/sys_stat.in.h (includes): Always include <time.h>
63117         * modules/sys_stat (Depends-on): Add time.
63118         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63119         mode_t permission values.
63120         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63121         get at subsecond timestamps.
63123 2009-10-10  Eric Blake  <ebb9@byu.net>
63125         futimens: new module
63126         * modules/futimens: New file.
63127         * lib/futimens.c (futimens): Likewise.
63128         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63129         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63130         we can work around Linux bugs.
63131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63132         * modules/sys_stat (Makefile.am): Substitute them.
63133         * lib/sys_stat.in.h (futimens): Declare it.
63134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63135         * doc/posix-functions/futimens.texi (futimens): Likewise.
63136         * modules/futimens-tests: New test.
63137         * tests/test-futimens.c: Likewise.
63139         utimens: introduce fdutimens
63140         * lib/utimens.h (fdutimens): New prototype.
63141         * lib/utimens.c (gl_futimens): Move guts...
63142         (fdutimens): ...to new interface.
63143         * tests/test-utimens.c (do_fdutimens): Use it.
63145         utimens: add UTIME_NOW and UTIME_OMIT support
63146         * lib/utimens.c (validate_timespec, update_timespec): New helper
63147         functions.
63148         (gl_futimens, lutimens): Use them.
63149         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63150         stdbool, sys_stat.
63151         (Link): Mention resulting library dependency.
63152         * modules/utimecmp (Link): Likewise.
63153         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63154         (Makefile.am): Pick up library dependency.
63155         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63156         definition.
63157         * tests/test-sys_stat.c: Test the definitions.
63158         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63159         * NEWS: Document library dependency.
63161         utimecmp: support symlink timestamps
63162         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63163         hashing when possible.  Use pathconf when available.
63164         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63165         * modules/utimecmp (Depends-on): Add lstat.
63167         utimens: add lutimens interface
63168         * lib/utimens.c (lutimens): New function.
63169         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63170         * lib/utimens.h (lutimens): Declare new interface.
63171         * tests/test-utimens.c (main): Enhance test.
63172         * tests/test-lutimens.h (test_lutimens): New file.
63173         * modules/utimens-tests (Files): Distribute it.
63174         (Depends-on): Add symlink.
63175         (configure.ac): Check for usleep.
63177         utimens: validate futimens usage
63178         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63179         fewer syscalls on failure later on.  Avoid compiler warning on
63180         mingw.
63181         * modules/utimens (Depends-on): Add dup2.
63183         utimens: add test
63184         * modules/utimens-tests: New test.
63185         * tests/test-utimens.h: New file.
63186         * tests/test-futimens.h: Likewise.
63187         * tests/test-utimens.c: Likewise.
63189         doc: mention timestamp portability issues
63190         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63191         instead.
63192         * doc/posix-functions/utime.texi (utime): Likewise.
63193         * doc/posix-functions/utimes.texi (utimes): Likewise.
63194         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63195         instead.
63196         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63197         module.
63198         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63199         Mention weakness with symlink timestamps.
63200         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63201         to utimensat/futimens instead.
63202         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63204         test-dup2: enhance test
63205         * tests/test-dup2.c (main): Also check AT_FDCWD.
63207         test-stat-time: avoid more spurious failures
63208         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63209         xfs; and avoid race if the two timestamps cross quantization edge.
63211         relocatable: prefer 'file system' over 'filesystem'
63212         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63213         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63214         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63215         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63216         * lib/relocatable.c (compute_curr_prefix): Likewise.
63218 2009-10-10  Jim Meyering  <meyering@redhat.com>
63220         stat-time-tests: check for the usleep function
63221         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63223 2009-10-10  Bruno Haible  <bruno@clisp.org>
63225         * modules/xnanosleep: Put the Link section after the Include section.
63227 2009-10-09  Eric Blake  <ebb9@byu.net>
63229         dup2: work around FreeBSD 6.1 bug
63230         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63231         * doc/posix-functions/dup2.texi (dup2): Document it.
63232         Reported by Nelson H. F. Beebe and Jim Meyering.
63234         test-stat-time: port to buggy NFS clients
63235         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63236         (test_ctime): Also skip test if mtime and ctime are skewed.
63238         maint: prefer 'file system' over 'filesystem'
63239         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63240         * doc/posix-functions/lstat.texi (lstat): Likewise.
63241         * lib/file-has-acl.c (file_has_acl): Likewise.
63242         * lib/fwriteerror.c [TEST]: Likewise.
63243         * tests/test-areadlink.h (test_areadlink): Likewise.
63244         * tests/test-areadlinkat-with-size.c (main): Likewise.
63245         * tests/test-areadlinkat.c (main): Likewise.
63246         * tests/test-canonicalize-lgpl.c (main): Likewise.
63247         * tests/test-canonicalize.c (main): Likewise.
63248         * tests/test-fstatat.c (main): Likewise.
63249         * tests/test-linkat.c (main): Likewise.
63250         * tests/test-lstat.h (test_lstat_func): Likewise.
63251         * tests/test-mkdir.h (test_mkdir): Likewise.
63252         * tests/test-readlink.h (test_readlink): Likewise.
63253         * tests/test-remove.c (main): Likewise.
63254         * tests/test-rename.h (test_rename): Likewise.
63255         * tests/test-renameat.c (main): Likewise.
63256         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63257         * tests/test-symlink.h (test_symlink): Likewise.
63258         * tests/test-symlinkat.c (main): Likewise.
63259         * tests/test-unlink.h (test_unlink_func): Likewise.
63260         * tests/test-unlinkat.c (main): Likewise.
63262         maint: make realtime library usage explicit
63263         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63264         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63265         * modules/settime (Link): Likewise.
63266         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63268         test-stat-time: speed up execution
63269         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63270         warning on mingw.
63271         (nap): New helper function.
63272         (prepare_test): Use it to reduce sleep time.
63273         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63274         execution.
63275         * modules/stat-time-tests (configure.ac): Check for usleep.
63277 2009-10-09  Jim Meyering  <meyering@redhat.com>
63279         selinux-h: always use getfilecon wrappers
63280         * lib/getfilecon.c: New file.
63281         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63282         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63283         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63284         (fgetfilecon): Provide a stub.
63285         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63286         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63287         file unconditionally.
63288         When <selinux/selinux.h> is found, arrange to use wrappers.
63289         * modules/selinux-h (Files): Add getfilecon.c.
63290         (Makefile.am): Substitute include-next-related bits
63291         into the now-always-generated selinux/selinux.h file.
63292         * doc/glibc-functions/lgetfilecon.texi: New file.
63293         * doc/glibc-functions/fgetfilecon.texi: New file.
63294         * doc/glibc-functions/getfilecon.texi: New file.
63295         * doc/glibc-functions/getfilecon-desc.texi: New file.
63296         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63297         which to pull in the new files.
63298         * MODULES.html.sh (Misc): Add selinux-h.
63300 2009-10-08  Jim Meyering  <meyering@redhat.com>
63302         unistd: fix comment typo
63303         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63305 2009-10-08  Eric Blake  <ebb9@byu.net>
63307         areadlink: use SIZE_MAX consistently
63308         * modules/areadlink (Depends-on): Add stdint.
63309         * modules/areadlink-with-size (Depends-on): Likewise.
63310         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63311         gives NULL; drop sys/types, since unistd gives size_t; and add
63312         stdint for SIZE_MAX.
63313         (SIZE_MAX): Rely on headers.
63314         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63315         and add stdint.
63316         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63317         (SIZE_MAX): Likewise.
63318         (INITIAL_BUF_SIZE): Turn into enum.
63319         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63321 2009-10-08  Jim Meyering  <meyering@redhat.com>
63323         areadlinkat: avoid compilation failure
63324         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63325         Fix typo in comment.
63327 2009-10-07  Eric Blake  <ebb9@byu.net>
63329         areadlinkat-with-size: new module
63330         * modules/areadlinkat-with-size: New module.
63331         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63332         * lib/areadlink.h (areadlinkat): Declare it.
63333         * MODULES.html.sh (File system functions): Mention it.
63334         * modules/areadlinkat-with-size-tests: New test.
63335         * tests/test-areadlinkat-with-size.c: New file.
63337         xreadlinkat: new module
63338         * modules/xreadlinkat: New module.
63339         * lib/xreadlinkat.c (xreadlinkat): New file.
63340         * lib/xreadlink.h (xreadlinkat): Declare it.
63341         * MODULES.html.sh (File system functions): Mention it.
63343         areadlinkat: new module
63344         * lib/at-func.c (FUNC_FAIL): New define.
63345         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63346         * modules/areadlinkat: New module.
63347         * lib/linkat.c (areadlinkat): Move...
63348         * lib/areadlinkat.c (areadlinkat): ...to new file.
63349         * lib/areadlink.h (areadlinkat): Declare it.
63350         * modules/linkat (Depends-on): Add areadlinkat.
63351         * MODULES.html.sh (File system functions): Mention it.
63352         * modules/areadlinkat-tests: New test.
63353         * tests/test-areadlinkat.c: New file.
63355         areadlink, areadlink-with-size: add tests
63356         * modules/areadlink-tests: New test.
63357         * modules/areadlink-with-size-tests: Likewise.
63358         * tests/test-areadlink.h: New file.
63359         * tests/test-areadlink.c: Likewise.
63360         * tests/test-areadlink-with-size.c: Likewise.
63362         maint: minor cleanups
63363         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63364         _UNUSED_PARAMETER_ instead.
63365         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63366         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63367         * modules/linkat-tests (Files): Distribute test-link.h.
63369         openat, utimens: whitespace cleanup
63370         * lib/openat.c: Prefer space throughout, rather than mix of 8
63371         spaces vs. tabs.
63372         * lib/at-func.c: Likewise.
63373         * lib/utimens.c: Likewise.
63375         openat: avoid using wrong fd
63376         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63377         working directory chooses same fd.
63378         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63380         mkdir, mkdirat: fix cygwin 1.5.x bug
63381         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63382         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63383         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63384         bug.
63385         (gl_PREREQ_MKDIR): Delete unused macro.
63386         * modules/mkdir (Files): Track file rename.
63387         (configure.ac): Update macro name.
63388         * modules/openat (Depends-on): Add mkdir.
63389         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63391         mkdir, mkdirat: add tests
63392         * modules/mkdir-tests: New test.
63393         * tests/test-mkdir.h: New file.
63394         * tests/test-mkdir.c: Likewise.
63395         * tests/test-mkdirat.c: Likewise.
63396         * modules/openat-tests (Files): Add new files.
63397         (Makefile.am): Run new test.
63399 2009-10-06  Eric Blake  <ebb9@byu.net>
63401         doc: tweak *at function documentation
63402         * doc/posix-functions/faccessat.texi (faccessat): Mention
63403         known issue with replacement.
63404         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63405         * doc/posix-functions/linkat.texi (linkat): Likewise.
63406         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63407         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63408         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63409         * doc/posix-functions/renameat.texi (renameat): Likewise.
63410         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63412         openat: fix GNU/Hurd bug in unlinkat
63413         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63414         broken.
63415         * doc/posix-functions/unlink.texi (unlink): Document this.
63416         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63418         fdopendir: fix GNU/Hurd bug
63419         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63420         allowing non-directory fds.
63421         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63423         * modules/dirent (Makefile.am): Substitute it.
63424         * lib/dirent.in.h (fdopendir): Declare replacement.
63425         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63426         * tests/test-fdopendir.c (main): Test something other than
63427         /dev/null, since on Hurd that behaves like a directory.
63429         test-symlink: port to GNU/Hurd
63430         * tests/test-symlink.h (test_symlink): Relax expected errno.
63432         doc: tweak more cygwin information
63433         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63434         now compatible with glibc.
63435         * doc/posix-functions/getopt.texi (getopt): Likewise.
63437         getopt-gnu: add another test
63438         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63439         guarantee behavior relied on by m4.
63440         * tests/test-getopt.c (main): Use it.
63441         * modules/getopt-posix-tests (Depends-on): Add setenv.
63442         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63444         getopt: fix compilation on darwin
63445         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63446         include.
63447         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63448         Reported by Ludovic Courtès.
63450 2009-10-06  Bruno Haible  <bruno@clisp.org>
63452         * modules/size_max (Description): Discourage its use.
63453         Reported by Simon Josefsson.
63455 2009-10-06  Jim Meyering  <meyering@redhat.com>
63457         linkat: avoid compilation failure
63458         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63460 2009-10-05  Eric Blake  <ebb9@byu.net>
63462         linkat: support Linux 2.6.17
63463         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63464         linkat on Linux, but allow cache variable override.
63465         * lib/linkat.c (rpl_linkat): Define override.
63466         * modules/linkat (Depends-on): Add symlinkat.
63467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63468         * modules/unistd (Makefile.am): Substitute it.
63469         * lib/unistd.in.h (linkat): Declare replacement.
63470         Reported by Pádraig Brady.
63472         quotearg: port test to systems with C.UTF-8 locale
63473         * tests/test-quotearg.c (struct result_strings): Add another
63474         member, differentiating between C.ASCII and C.UTF-8 handling.
63475         (compare_strings): Add parameter.
63476         (main): Adjust all callers.
63478         getopt: avoid clash with FreeBSD _getopt_internal
63479         * lib/getopt.in.h (_getopt_internal): Override the name.
63480         * lib/getopt_int.h (includes): Pick up any overrides.
63481         Reported by Reuben Thomas.
63483         hash: allow C89 compilation
63484         * lib/hash.c (check_tuning): Move declaration before statement.
63485         Reported by Reuben Thomas.
63487 2009-10-05  Karl Berry  <karl@gnu.org>
63489         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63491 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63492             Bruno Haible  <bruno@clisp.org>
63494         * lib/uname.c (uname): Use a table-driven algorithm to compute
63495         Windows NT versions.
63497 2009-10-04  Bruno Haible  <bruno@clisp.org>
63499         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63500         program_invocation_short_name.
63501         * modules/progname (configure.ac): Test for presence of
63502         program_invocation_short_name.
63503         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63505 2009-10-04  Bruno Haible  <bruno@clisp.org>
63507         * lib/progname.c (set_program_name): Fix comment.
63508         Reported by Jim Meyering.
63510 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63511             Bruno Haible  <bruno@clisp.org>
63513         * lib/uname.c: Include <string.h>.
63514         (uname): Do only one call to GetVersionEx in the common case.
63516 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63517             Bruno Haible  <bruno@clisp.org>
63519         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63520         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63521         (uname): Add support for Windows CE and various non-x86 CPU types.
63523 2009-10-03  Bruno Haible  <bruno@clisp.org>
63525         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63526         invocation to tests/configure.ac.
63527         Reported by Ian Beckwith <ianb@erislabs.net>.
63529 2009-10-02  Eric Blake  <ebb9@byu.net>
63531         fchdir: avoid compiler warning
63532         * lib/fchdir.c (canonicalize_file_name)
63533         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63535         test-open: support mingw errno values
63536         * tests/test-open.h (test_open): Relax test.
63537         * tests/test-fopen.h (test_fopen): Likewise.
63538         * tests/test-openat-safer.c (main): Likewise.
63540         open: fix opening directory on mingw
63541         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63543         test-open: on GNU/Hurd, /dev/null is a directory
63544         * tests/test-fopen.h (main): Rename...
63545         (test_fopen): ...to this.  Use a guaranteed non-directory when
63546         confirming open behavior on trailing slash.
63547         * tests/test-openat-safer.c (main): Likewise.
63548         * tests/test-open.h (main): Likewise....
63549         (test_open): ...to this.
63550         * tests/test-fopen.c (main): Adjust caller.
63551         * tests/test-fopen-safer.c (main): Likewise.
63552         * tests/test-open.c (main): Likewise.
63553         * tests/test-fcntl-safer.c (main): Likewise.
63554         Reported by Samuel Thibault.
63556         rename, fchdir: don't ignore chdir failure
63557         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63558         * lib/rename.c (rpl_rename) [W32]: Likewise.
63559         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63560         an empty destination directory if source cannot be renamed,
63561         although there is still possibility for failure.
63562         * doc/posix-functions/rename.texi (rename): Document the race.
63563         Reported by Jim Meyering.
63565         maint: cleanup whitespace in recent commits
63566         * lib/rename.c (rpl_rename): Remove tabs.
63567         * tests/test-link.h (test_link): Likewise.
63568         * lib/fchdir.c (get_name): Likewise.
63569         Reported by Jim Meyering.
63571 2009-10-02  Ben Pfaff  <blp@gnu.org>
63573         relocatable-prog-wrapper: Add missing dependency on
63574         double-slash-root.
63575         * modules/relocatable-prog-wrapper: Add dependency.
63576         Reported by Ian Beckwith <ianb@erislabs.net>.
63578 2009-10-02  Eric Blake  <ebb9@byu.net>
63580         renameat: fix Solaris bugs
63581         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63582         needed fixing.
63583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63584         * modules/stdio (Makefile.am): Substitute it.
63585         * lib/stdio.in.h (renameat): Declare replacement.
63586         * lib/renameat.c (rpl_renameat): Implement fix.
63588         renameat: new module
63589         * modules/renameat: New file.
63590         * lib/renameat.c (renameat): Likewise.
63591         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63593         * modules/stdio (Makefile.am): Substitute them.
63594         * lib/stdio.in.h (renameat): Declare it.
63595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63596         * doc/posix-functions/renameat.texi (renameat): Likewise.
63597         * modules/renameat-tests: New test.
63598         * tests/test-renameat.c: Likewise.
63600         rename: fix mingw bugs
63601         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63602         directory overwrite bugs.
63604         rename: fix another cygwin 1.5 bug
63605         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63606         checks.
63607         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63608         unnecessary cygwin workarounds.  Also work around bug with moving
63609         full directory onto an empty one.
63610         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63612         rename-dest-slash: merge into rename module
63613         * modules/rename-dest-slash (Status): Mark obsolete.
63614         (Depends-on): Add rename.
63615         (Files): Let rename do it all.
63616         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63617         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63618         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63619         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63620         * lib/rename.c (rpl_rename): Update comments.
63622         rename: fix cygwin 1.5.x bugs
63623         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63624         * lib/rename.c (rpl_rename): Work around them.
63625         * modules/rename (Depends-on): Add same-inode.
63627         rename: fix Solaris 10 bug
63628         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63629         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63630         was the only bug.
63632         rename: fix Solaris 9 bug
63633         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63634         on non-directory.  Avoid calling exit.
63635         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63636         strdup.
63637         * modules/rename-tests (Depends-on): Drop lstat.
63638         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63639         (gl_PREREQ_RENAME): Delete unused macro.
63641         rename-dest-slash: fix NetBSD bug
63642         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63643         links.
63644         * modules/rename-dest-slash (Depends-on): Add same-inode.
63646         rename-tests: new test, exposes several platform bugs
63647         * modules/rename-tests: New file.
63648         * tests/test-rename.h: Likewise.
63649         * tests/test-rename.c: Likewise.
63650         * doc/posix-functions/rename.texi (rename): Improve documentation,
63651         including bugs that will eventually be fixed in gnulib.
63653 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63655         * lib/uname.c: Include <stdlib.h>
63656         (uname): Assume version info is available.
63658 2009-10-02  Jim Meyering  <meyering@redhat.com>
63660         gnu-web-doc-update: correct --help output
63661         * build-aux/gnu-web-doc-update: Make --help output relevant.
63663         gnu-web-doc-update: add standard options
63664         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63666         gnu-web-doc-update: New module.
63667         Use this script to automatically update the on-line web documentation
63668         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63669         * modules/gnu-web-doc-update: New file, from coreutils.
63670         * build-aux/gnu-web-doc-update: New script.
63672 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63674         link: LoadLibrary is not needed.
63675         * lib/link.c: Use GetModuleHandle.
63677 2009-10-01  Eric Blake  <ebb9@byu.net>
63679         getopt: bump serial number
63680         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63681         change.
63683         tests: tighten link, rmdir, and remove tests
63684         * tests/test-link.h (includes): No need to use <config.h> here.
63685         Clean up if directory hard link was created, otherwise test for
63686         trailing '.'.
63687         * tests/test-linkat.c (main): Simplify.
63688         * tests/test-remove.c (main): Enhance test for trailing '.'.
63689         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63691 2009-10-01  Jim Meyering  <meyering@redhat.com>
63693         maint.mk: requiring "make major" was annoying, for a "minor" release.
63694         What is intended is "stable", to contrast with alpha and beta,
63695         so require "make stable", not "make major".
63696         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63697         (get_tool_versions): Likewise.
63698         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63700 2009-09-30  Ben Pfaff  <blp@gnu.org>
63702         Fix broken build of replacement for Windows tmpfile().
63703         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63704         flags argument added along with the 'mkostemp' module.
63706 2009-09-28  Bruno Haible  <bruno@clisp.org>
63708         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63709         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63710         to 'remove_elt'.
63711         (gl_list_remove): Update.
63712         * lib/gl_list.c (gl_list_remove): Update.
63713         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63714         to 'remove_elt'.
63715         (gl_oset_remove): Update.
63716         * lib/gl_list.c (gl_oset_remove): Update.
63717         Reported by Eric Blake.
63719 2009-09-28  Eric Blake  <ebb9@byu.net>
63721         doc: mention yet more cygwin 1.7 status
63722         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63723         cygwin.
63724         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63725         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63727         argp: fix test failure
63728         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63729         that are not upper-case.  Pass correct range to tolower.
63731 2009-09-27  Jim Meyering  <meyering@redhat.com>
63733         test-yesno: work around sparc-dash here-document infelicity
63734         Without this change, the literal \177 byte in a here document
63735         would make dash 0.5.5.1-3 access uninitialized memory.
63736         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63737         Instead, use a marker, "@", and filter through tr to create the desired
63738         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63740 2009-09-27  Bruno Haible  <bruno@clisp.org>
63742         Disable untested support for new flavours of ACLs on AIX.
63743         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63744         progress.
63745         * lib/set-mode-acl.c (qset_acl): Likewise.
63747 2008-12-07  Bruno Haible  <bruno@clisp.org>
63749         Add support for new flavours of ACLs on AIX. (Untested.)
63750         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63751         (file_has_acl): Add support for newer AIX.
63752         * lib/set-mode-acl.c (qset_acl): Likewise.
63753         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63754         Rainer Tammer <tammer@tammer.net>.
63756 2009-09-26  Eric Blake  <ebb9@byu.net>
63758         argp: fix compilation of getopt
63759         * lib/getopt.in.h (includes): Use different guard than glibc.
63760         Reported by Sergey Poznyakoff.
63762         doc: mention more cygwin 1.7 status
63763         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63764         bug.
63765         * doc/posix-functions/execl.texi (execl): Likewise.
63766         * doc/posix-functions/execle.texi (execle): Likewise.
63767         * doc/posix-functions/execlp.texi (execlp): Likewise.
63768         * doc/posix-functions/execv.texi (execv): Likewise.
63769         * doc/posix-functions/execve.texi (execve): Likewise.
63770         * doc/posix-functions/execvp.texi (execvp): Likewise.
63771         * doc/glibc-functions/canonicalize_file_name.texi
63772         (canonicalize_file_name): Cygwin 1.7 now provides this.
63773         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63774         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63775         on AT_SYMLINK_NOFOLLOW.
63777 2009-09-24  Eric Blake  <ebb9@byu.net>
63779         test-linkat: make test more robust
63780         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63782         getopt: fix inclusion guards for cygwin
63783         * modules/getopt-posix (Depends-on): Add include-next.
63784         (Makefile.am): Substitute more items in replacement header.
63785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63786         <getopt.h>.
63787         * lib/getopt.in.h (includes): Use split inclusion guard, and
63788         prefer <getopt.h> over include <unistd.h> when one is present.
63789         (option): Also override name of 'struct option'.
63791         same-inode: revert prior change; it is not yet ready
63792         * NEWS: Undo mention of this change.
63793         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63794         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63795         * lib/cycle-check.c (cycle_check): Likewise.
63796         * lib/same.c (same_name): Likewise.
63797         * lib/at-func2.c (at_func2): Likewise.
63799 2009-09-23  Eric Blake  <ebb9@byu.net>
63801         linkat: new module
63802         * modules/linkat: New file.
63803         * lib/at-func2.c (at_func2): Likewise.
63804         * lib/linkat.c (linkat): Likewise.
63805         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63806         * lib/openat-priv.h (at_func2): Add declaration.
63807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63808         * modules/unistd (Makefile.am): Substitute them.
63809         * lib/unistd.in.h (linkat): Declare it.
63810         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63811         * doc/posix-functions/linkat.texi (linkat): Likewise.
63812         * doc/posix-functions/link.texi (link): Tweak wording.
63813         * tests/test-link.c (main): Move guts...
63814         * tests/test-link.h (test_link): ...into new file.
63815         * modules/linkat-tests: New test.
63816         * tests/test-linkat.c: Likewise.
63817         * modules/link-tests (Files): Ship new file.
63818         (Depends-on): Add stdbool.
63820         dirname: add library-safe mdir_name
63821         * lib/dirname.h (mdir_name): New prototype.
63822         * lib/dirname.c (dir_name): Move guts...
63823         (mdir_name): ...to new function that avoids xalloc_die.
63825         fchdir: another mingw fix
63826         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63827         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63828         on mingw (where it has not yet been ported), and make it optional
63829         elsewhere.
63830         (_gl_register_fd): Use it.
63832         same-inode: make SAME_INODE tri-state, to port to mingw
63833         * NEWS: Mention this change.
63834         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63835         st_ino always being 0.
63836         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63837         * lib/cycle-check.c (cycle_check): Likewise.
63838         * lib/same.c (same_name): Likewise.
63840         lstat: avoid mingw compilation error
63841         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63842         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63843         lstat ourselves.
63844         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63845         was adequate.
63846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63847         the checks for lstat.
63848         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63850         link: fix test failure on Solaris 9
63851         * lib/link.c (rpl_link): Don't assume link will catch bogus
63852         trailing slash on source.
63854         test-symlinkat: enhance test
63855         * tests/test-readlink.c (main): Move guts...
63856         * tests/test-readlink.h (test_readlink): ...into new file.
63857         * tests/test-symlink.c (main): Move guts...
63858         * tests/test-symlink.h (test_symlink): ...into new file.
63859         * tests/test-symlinkat.c (main): Use new files for further
63860         coverage.
63861         (do_symlink, do_readlink): New helper functions.
63862         * modules/symlink-tests (Files): Ship new file.
63863         (Depends-on): Add stdbool.
63864         * modules/readlink-tests (Files): Ship new file.
63865         (Depends-on): Add stdbool.
63866         * modules/symlinkat-tests (Files): Use new files.
63868 2009-09-23  Eric Blake  <ebb9@byu.net>
63870         readlink: document portability issue with symlink length
63871         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63872         systems have bogus st_size on symlinks, and mention the
63873         areadlink-with-size module.
63874         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63875         * doc/posix-functions/readlink.texi (readlink): Mention the
63876         areadlink module, and ERANGE failure.
63877         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63878         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63880         readlink: fix Solaris 9 bug with trailing slash
63881         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63882         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63883         * doc/posix-functions/readlink.texi (readlink): Document this.
63884         * modules/readlink-tests: New test.
63885         * tests/test-readlink.c: Likewise.
63887         readlink: fix cygwin 1.5.x bug with return type
63888         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63889         * lib/unistd.in.h (readlink): Use ssize_t.
63890         * lib/readlink.c (readlink): Likewise.
63891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63892         * modules/unistd (Makefile.am): Substitute it.
63893         * lib/unistd.in.h (readlink): Declare replacement.
63894         * doc/posix-functions/readlink.texi (readlink): Document this.
63896         symlink: use throughout gnulib
63897         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63898         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63899         symlink is not used.
63900         * modules/symlinkat (Depends-on): Add symlink.
63901         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63902         * modules/canonicalize-tests (Depends-on): Likewise.
63903         * modules/lstat-tests (Depends-on): Likewise.
63904         * modules/openat-tests (Depends-on): Likewise.
63905         * modules/remove-tests (Depends-on): Likewise.
63906         * modules/rmdir-tests (Depends-on): Likewise.
63907         * modules/unlink-tests (Depends-on): Likewise.
63908         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63909         * tests/test-canonicalize.c (symlink): Likewise.
63910         * tests/test-fstatat.c (symlink): Likewise.
63911         * tests/test-lstat.c (symlink): Likewise.
63912         * tests/test-remove.c (symlink): Likewise.
63913         * tests/test-rmdir.c (symlink): Likewise.
63914         * tests/test-unlink.c (symlink): Likewise.
63915         * tests/test-unlinkat.c (symlink): Likewise.
63917         symlink: new module, for Solaris 9 bug
63918         * modules/symlink: New file.
63919         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63920         * lib/symlink.c: Likewise.
63921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63922         * modules/unistd (Makefile.am): Substitute them.
63923         * lib/unistd.in.h (symlink): Declare replacement.
63924         * MODULES.html.sh (File system functions): Mention it.
63925         * doc/posix-functions/symlink.texi (symlink): Likewise.
63926         * modules/symlink-tests: New test.
63927         * tests/test-symlink.c: Likewise.
63929 2009-09-23  Bruno Haible  <bruno@clisp.org>
63931         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63932         when needed.
63933         Test case: gnulib-tool --import --with-tests atexit inttypes.
63934         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63936 2009-09-23  Bruno Haible  <bruno@clisp.org>
63938         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63939         subcommand, not in a subshell.
63941 2009-09-22  Eric Blake  <ebb9@byu.net>
63943         unistd: sort replacement declarations
63944         * lib/unistd.in.h: Sort declarations.
63946         open, openat: minor optimization
63947         * lib/open.c (open): If open succeeded, len is non-zero.
63948         * lib/openat.c (rpl_openat): Likewise.
63950         link-follow: ensure correct result
63951         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63952         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63953         distinguish between possible failures.
63955 2009-09-21  Eric Blake  <ebb9@byu.net>
63957         fts: avoid compiler warning
63958         * lib/fts.c (dirent_inode_sort_may_be_useful)
63959         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63961 2009-09-19  Bruno Haible  <bruno@clisp.org>
63963         * lib/progreloc.c (canonicalize_file_name): New declaration.
63965 2009-09-19  Eric Blake  <ebb9@byu.net>
63967         link: fix quoting
63968         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63970         openat: fix openat bugs on Solaris 9
63971         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63972         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63973         * modules/openat (Depends-on): Add open.
63974         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63975         * modules/fcntl-h (Makefile.am): Substitute it.
63976         * lib/fcntl.in.h (openat): Declare replacement.
63977         * doc/posix-functions/openat.texi (openat): Document this.
63979         openat: move fstatat and unlinkat into correct files
63980         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63981         compiled.
63982         * lib/openat.c (fstatat, unlinkat): Move...
63983         * lib/fstatat.c (fstatat): ...into correct files.
63984         * lib/unlinkat.c (unlinkat): Likewise.
63986         openat: fix unlinkat bugs on Solaris 9
63987         * lib/unlinkat.c (unlinkat): New file.
63988         * modules/openat (Depends-on): Add unlink.
63989         (Files): Distribute it.
63990         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63991         trailing slash behavior is broken.
63992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63993         * modules/unistd (Makefile.am): Substitute it.
63994         * lib/unistd.in.h (unlinkat): Declare replacement.
63995         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63997         openat: fix fstatat bugs on Solaris 9
63998         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63999         stat.
64000         * doc/posix-functions/fstatat.texi (fstatat): Document this.
64002         test-unlinkat: enhance test, to expose Solaris 9 bug
64003         * tests/test-unlink.c (main): Factor guts...
64004         * tests/test-unlink.h (test_rmdir_func): ...into new file.
64005         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
64006         * tests/test-rmdir.c (main): Adjust caller.
64007         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
64008         (unlinker): New helper function.
64009         (rmdirat): Enhance check.
64010         * modules/rmdir-tests (Depends-on): Add stdbool.
64011         * modules/unlink-tests (Depends-on): Likewise.
64012         (Files): Add test-unlink.h.
64013         * modules/openat-tests (Files): Likewise.
64014         (Depends-on): Add unlinkdir.
64016         test-fstatat: new test, to expose Solaris 9 bugs
64017         * tests/test-stat.c (main): Factor guts...
64018         * tests/test-stat.h (test_stat_func): ...into new file.
64019         * tests/test-lstat.c (main): Factor guts...
64020         * tests/test-lstat.h (test_lstat_func): ...into new file.
64021         * tests/test-fstatat.c: New file.
64022         * modules/stat-tests (Files): Add test-stat.h.
64023         * modules/lstat-tests (Files): Add test-lstat.h.
64024         (Depends-on): Add stdbool.
64025         * modules/openat-tests (Depends-on): Add pathmax.
64026         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
64027         (Makefile.am): Run new test.
64029         remove: new module, for mingw and Solaris 9 bugs
64030         * modules/remove: New file.
64031         * lib/remove.c: Likewise.
64032         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
64033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
64034         * modules/stdio (Makefile.am): Use them.
64035         * lib/stdio.in.h (remove): Declare replacement.
64036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64037         * doc/posix-functions/remove.texi (remove): Likewise.
64038         * modules/remove-tests: New test.
64039         * tests/test-remove.c: Likewise.
64041         unlink: new module, for Solaris 9 bug
64042         * modules/unlink: New file.
64043         * lib/unlink.c: Likewise.
64044         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
64045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64046         * modules/unistd (Makefile.am): Use them.
64047         * lib/unistd.in.h (stat): Declare replacement.
64048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64049         * doc/posix-functions/unlink.texi (unlink): Likewise.
64050         * modules/unlink-tests: New test.
64051         * tests/test-unlink.c: Likewise.
64053         lstat: fix Solaris 9 bug
64054         * lib/lstat.c (lstat): Also check for trailing slash on
64055         non-symlink, non-directories.  Use stat module to simplify logic.
64056         * doc/posix-functions/lstat.texi (lstat): Document it.
64057         * modules/lstat-tests (Depends-on): Add errno, same-inode.
64058         (configure.ac): Check for symlink.
64059         * tests/test-lstat.c (main): Add more tests.
64061         stat: add as dependency to other modules
64062         * modules/chown (Depends-on): Add stat.
64063         * modules/euidaccess (Depends-on): Likewise.
64064         * modules/fchdir (Depends-on): Likewise.
64065         * modules/isdir (Depends-on): Likewise.
64066         * modules/link (Depends-on): Likewise.
64067         * modules/lstat (Depends-on): Likewise.
64068         * modules/mkdir-p (Depends-on): Likewise.
64069         * modules/modechange (Depends-on): Likewise.
64070         * modules/open (Depends-on): Likewise.
64071         * modules/readlink (Depends-on): Likewise.
64072         * modules/same (Depends-on): Likewise.
64074         stat: fix Solaris 9 bug
64075         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
64076         slash.
64077         * lib/stat.c (rpl_stat): Work around it.
64078         * doc/posix-functions/stat.texi (stat): Update documentation.
64080         stat: new module, for mingw bug
64081         * modules/stat: New file.
64082         * lib/stat.c: Likewise.
64083         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64085         * modules/sys_stat (Makefile.am): Use them.
64086         * lib/sys_stat.in.h (stat): Declare replacement.
64087         * lib/openat.c (fstatat): Deal with lstat and stat being function
64088         macros.
64089         * modules/openat (Depends-on): Add inline.
64090         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64091         * doc/posix-functions/stat.texi (stat): Likewise.
64092         * modules/stat-tests: New test.
64093         * tests/test-stat.c: Likewise.
64095 2009-09-19  Jim Meyering  <meyering@redhat.com>
64097         syntax-check: detect unnecessary inclusion of canonicalize.h
64098         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
64100 2009-09-19  Eric Blake  <ebb9@byu.net>
64102         canonicalize-lgpl: adjust clients to use correct header
64103         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64104         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
64105         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64106         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64107         * lib/progreloc.c (includes): Likewise.
64109 2009-09-19  Jim Meyering  <meyering@redhat.com>
64111         test-posixtm.c: correct a comment
64112         * tests/test-posixtm.c: Correct first-line comment.
64113         Spotted by Eric Blake.
64115 2009-09-16  Jim Meyering  <meyering@redhat.com>
64117         posixtm-tests: make T const-correct; add a test case
64118         * tests/test-posixtm.c (T): Declare const.
64119         Add a test for -(2^31+1).
64120         Remove useless can-succeed-only-in-2002 test.
64122         posixtm-tests: adjust the sole failing test
64123         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64124         expected output matches what mktime now produces.  Cross-checked via
64125         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64127         posixtm: move #ifdef'd tests into a new module
64128         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64129         * tests/test-posixtm.c: ... this new file.
64130         * modules/posixtm-tests: New module.
64132 2009-09-19  Eric Blake  <ebb9@byu.net>
64134         openat: simplify use of at-func.c
64135         * lib/at-func.c (includes): Include prerequisites here, to
64136         simplify requirements on client files.
64137         * lib/openat-priv.h: Add double-inclusion guard.
64138         * lib/faccessat.c (includes): Simplify.
64139         * lib/fchmodat.c (includes): Likewise.
64140         * lib/fchownat.c (includes): Likewise.
64141         * lib/mkdirat.c (includes): Likewise.
64142         * lib/mkfifoat.c (includes): Likewise.
64143         * lib/symlinkat.c (includes): Likewise.
64145         openat: allow return of fd 0
64146         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64147         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64148         unistd-safer.
64149         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64150         <fcntl.h>; this module does not leak fds.
64151         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64152         must be allowed to return 0, leaving openat_safer to add the
64153         safety.
64154         (openat_permissive): Avoid writing to just-opened fd 2 if
64155         restoring the current directory fails.
64156         * lib/openat-die.c (openat_restore_fail): Add comment.
64157         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64158         (save_cwd): Guarantee safe fd, but without use of open_safer.
64159         * tests/test-openat.c: New test.
64160         * modules/openat-tests (Files, Makefile.am): Distribute and build
64161         new file.
64163         relocatable-prog-wrapper: fix build
64164         * modules/relocatable-prog-wrapper (Files): Update name of
64165         canonicalize m4 file, broken on 2009-09-17.
64166         Reported by emad hajjar <aleppos@hotmail.com>.
64168 2009-09-19  Bruno Haible  <bruno@clisp.org>
64170         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64171         * lib/safe-alloc.c: Likewise.
64172         Reported by Ian Beckwith <ianb@erislabs.net>.
64174 2009-09-18  Bruno Haible  <bruno@clisp.org>
64176         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64177         Reported by <erobles@sensacd.com.mx>.
64179 2009-09-17  Eric Blake  <ebb9@byu.net>
64181         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64182         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64183         slashes when checking if last component is missing.
64184         * tests/test-canonicalize.c (main): Test this.
64186         canonicalize, canonicalize-lgpl: honor // if distinct from /
64187         * modules/canonicalize (Files): Add double-slash-root.m4.
64188         * modules/canonicalize-lgpl (Files): Likewise.
64189         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64190         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64191         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64192         fallback definition.
64193         (canonicalize_filename_mode): Use it to protect //.
64194         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64195         (__realpath): Likewise.
64196         * tests/test-canonicalize.c (main): Test this.
64197         * tests/test-canonicalize-lgpl.c (main): Likewise.
64198         * modules/canonicalize-tests (Depends-on): Add same-inode.
64199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64201         canonicalize-lgpl: fix glibc bug with trailing slash
64202         * m4/canonicalize-lgpl.m4: Move contents...
64203         * m4/canonicalize.m4: ...here.
64204         (gl_CANONICALIZE_LGPL): Factor realpath check...
64205         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64206         glibc 2.3.5 bug, fixed 2005-04-27.
64207         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64208         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64209         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64210         * modules/canonicalize-lgpl (Files): Manage file rename.
64211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64212         * modules/stdlib (Makefile.am): Substitute witness.
64213         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64214         is needed.
64215         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64216         replacement is required.
64217         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64218         * doc/glibc-functions/canonicalize_file_name.texi
64219         (canonicalize_file_name): Document this.
64220         * doc/posix-functions/realpath.texi (realpath): Likewise.
64222         canonicalize-lgpl: reject non-directory with trailing slash
64223         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64224         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64225         catches failures in glibc 2.3.5.
64226         * tests/test-canonicalize.c (main): Likewise.
64228         canonicalize-lgpl: use native realpath if it works
64229         * lib/canonicalize-lgpl.c (realpath): Guard with
64230         FUNC_REALPATH_WORKS.
64231         * lib/stdlib.in.h (realpath): Make declaration optional based on
64232         HAVE_REALPATH.
64233         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64234         native realpath works.
64235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64236         * modules/stdlib (Makefile.am): Substitute witness.
64238         canonicalize, canonicalize-lgpl: use <stdlib.h>
64239         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64240         (Include): Mention <stdlib.h>.
64241         (configure.ac): Mention functions we provide.
64242         * modules/canonicalize (configure.ac): Likewise.
64243         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64244         realpath if canonicalize_file_name is missing.
64245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64246         * modules/stdlib (Makefile.am): Substitute witnesses.
64247         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64248         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64249         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64250         * NEWS: Document this.
64251         * doc/glibc-functions/canonicalize_file_name.texi
64252         (canonicalize_file_name): Likewise.
64253         * doc/posix-functions/realpath.texi (realpath): Likewise.
64254         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64256         test-canonicalize: consolidate into single C program
64257         * tests/test-canonicalize.sh: Delete; move setup into...
64258         * tests/test-canonicalize.c (main): ...the program, making it
64259         easier to run in debugger.  Add some tests.
64260         * modules/canonicalize-tests (Files): Remove unused file.
64261         (Depends-on): Add progname.
64262         (configure.ac, Makefile.am): Simplify.
64264         test-canonicalize-lgpl: consolidate into single C program
64265         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64266         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64267         easier to run in debugger.  Add some tests.
64268         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64269         (configure.ac, Makefile.am): Simplify.
64271         canonicalize: avoid resolvepath
64272         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64273         unnecessary checks.
64274         * lib/canonicalize.c (includes): Simplify.
64275         (canonicalize_file_name): Drop resolvepath implementation.
64276         * modules/canonicalize (Depends-on): Drop filenamecat.
64278         canonicalize: don't lose errno
64279         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64280         over calls to free.
64282         canonicalize: simplify errno handling
64283         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64284         assignment.
64286         canonicalize, canonicalize-lgpl: update module dependencies
64287         * modules/canonicalize (Depends-on): Add extensions, lstat,
64288         pathmax, stdlib.
64289         (Files): Drop pathmax.h.
64290         (configure.ac): Adjust macro name.
64291         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64292         lstat, stdlib, sys_stat.
64293         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64294         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64295         extensions.
64296         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64297         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64298         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64299         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64300         declaration, if available.
64301         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64302         we can rely on the readlink module.
64303         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64304         (includes): Use <unistd.h> unconditionally.
64306 2009-09-17  Eric Blake  <ebb9@byu.net>
64308         maint: make Include sections of modules consistent
64309         * modules/alloca: Use only header name; no need to list #include.
64310         * modules/alloca-opt: Likewise.
64311         * modules/arpa_inet: Likewise.
64312         * modules/canon-host: Likewise.
64313         * modules/configmake: Likewise.
64314         * modules/dirent: Likewise.
64315         * modules/eealloc: Likewise.
64316         * modules/environ: Likewise.
64317         * modules/fchdir: Likewise.
64318         * modules/fcntl: Likewise.
64319         * modules/fcntl-h: Likewise.
64320         * modules/gethrxtime: Likewise.
64321         * modules/gettime: Likewise.
64322         * modules/ignore-value: Likewise.
64323         * modules/inet_ntop: Likewise.
64324         * modules/inet_pton: Likewise.
64325         * modules/inttypes: Likewise.
64326         * modules/isnand-nolibm: Likewise.
64327         * modules/isnanf-nolibm: Likewise.
64328         * modules/mbchar: Likewise.
64329         * modules/mbfile: Likewise.
64330         * modules/mbiter: Likewise.
64331         * modules/mbuiter: Likewise.
64332         * modules/netdb: Likewise.
64333         * modules/netinet_in: Likewise.
64334         * modules/nproc: Likewise.
64335         * modules/pagealign_alloc: Likewise.
64336         * modules/poll: Likewise.
64337         * modules/printf-frexp: Likewise.
64338         * modules/pthread: Likewise.
64339         * modules/putenv: Likewise.
64340         * modules/random_r: Likewise.
64341         * modules/relocatable-prog: Likewise.
64342         * modules/search: Likewise.
64343         * modules/select: Likewise.
64344         * modules/selinux-h: Likewise.
64345         * modules/settime: Likewise.
64346         * modules/signal: Likewise.
64347         * modules/size_max: Likewise.
64348         * modules/socklen: Likewise.
64349         * modules/ssize_t: Likewise.
64350         * modules/stdarg: Likewise.
64351         * modules/stdbool: Likewise.
64352         * modules/stddef: Likewise.
64353         * modules/stdint: Likewise.
64354         * modules/stdio: Likewise.
64355         * modules/stdlib: Likewise.
64356         * modules/string: Likewise.
64357         * modules/strings: Likewise.
64358         * modules/sys_file: Likewise.
64359         * modules/sys_ioctl: Likewise.
64360         * modules/sys_select: Likewise.
64361         * modules/sys_socket: Likewise.
64362         * modules/sys_stat: Likewise.
64363         * modules/sys_time: Likewise.
64364         * modules/sys_times: Likewise.
64365         * modules/sys_utsname: Likewise.
64366         * modules/sys_wait: Likewise.
64367         * modules/sysexits: Likewise.
64368         * modules/time: Likewise.
64369         * modules/times: Likewise.
64370         * modules/tmpfile: Likewise.
64371         * modules/trim: Likewise.
64372         * modules/unistd: Likewise.
64373         * modules/wchar: Likewise.
64374         * modules/wctype: Likewise.
64376 2009-09-17  Bruno Haible  <bruno@clisp.org>
64378         Make getdate.y compile on QNX and NetBSD 5 / i386.
64379         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64380         TIME_T_FITS_IN_LONG_INT.
64381         * lib/getdate.y (long_time_t): New type.
64382         (relative_time): Change type of 'seconds' field to long_time_t.
64383         (get_date): Update types of local variables. Check against overflow
64384         during conversion from long_time_t to time_t.
64385         Reported by Matt Kraai <kraai@ftbfs.org>
64386         and Hasso Tepper <hasso@netbsd.org>.
64388 2009-09-17  Bruno Haible  <bruno@clisp.org>
64390         * modules/COPYING: Update copyright years.
64391         * modules/README: Likeiwse.
64392         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64393         Reported by Ian Beckwith <ianb@erislabs.net>.
64395 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64397         * users.txt: Update references for gnuit package.
64399 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64401         * m4/getdelim.m4: Fix typo in copyright line.
64403 2009-09-17  Bruno Haible  <bruno@clisp.org>
64405         * lib/atoll.c: Use the standard header with GPL copyright.
64406         * lib/argz.in.h: Likewise.
64407         * lib/glob.c: Likewise.
64408         * lib/glob-libc.h: Likewise.
64409         * lib/random_r.c: Likewise.
64410         * lib/siglist.h: Likewise.
64411         * lib/strsignal.c: Likewise.
64412         Reported by Ian Beckwith <ianb@erislabs.net>.
64414 2009-09-17  Eric Blake  <ebb9@byu.net>
64416         rmdir: ensure correct dependency order
64417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64419 2009-09-17  Bruno Haible  <bruno@clisp.org>
64421         Disable assertion that fails on NetBSD 5 / i386.
64422         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64423         Reported by Sam Steingold <sds@gnu.org>
64424         and Hasso Tepper <hasso@netbsd.org>.
64426 2009-09-16  Eric Blake  <ebb9@byu.net>
64428         unlinkdir: port to mingw
64429         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64430         on which no one can unlink a directory.
64432         stdlib: sort witness names
64433         * modules/stdlib (Makefile.am): Sort replacements.
64434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64435         * lib/stdlib.in.h: Likewise.
64437         parse-duration-tests: avoid link failure
64438         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64439         LIBINTL.
64440         Reported by Tom G. Christensen.
64442         openat-tests: ensure unlinkat behaves like rmdir
64443         * tests/test-rmdir.c (main): Factor guts...
64444         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64445         * modules/rmdir-tests (Files): Ship new file.
64446         * modules/openat-tests: New test.
64447         * tests/test-unlinkat.c: Likewise.
64449         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64450         * modules/rmdir-errno (Status, Notice): Now obsolete.
64452         rmdir: work around cygwin 1.5.x and mingw bugs
64453         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64454         * lib/rmdir.c (rmdir): Work around it.
64455         * modules/rmdir (Status, Notice): No longer obsolete.
64456         (Files): Add dos.m4.
64457         (Depends-on): Add unistd.
64458         (configure.ac): Set witnesses.
64459         (License): Relax to LGPLv2+.
64460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64461         * modules/unistd (Makefile.am): Substitute witnesses.
64462         * lib/unistd.in.h (rmdir): Declare replacement.
64463         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64464         * modules/rmdir-tests: New tests.
64465         * tests/test-rmdir.c: Likewise.
64467 2009-09-15  Eric Blake  <ebb9@byu.net>
64469         fchdir: improve use of replacement functions
64470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64472         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64473         REPLACE_CLOSEDIR.
64474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64475         * modules/sys_stat (Makefile.am): Substitute correct witness.
64476         * modules/dirent (Makefile.am): Likewise.
64477         * modules/unistd (Makefile.am): Likewise.
64478         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64479         * lib/unistd.in.h (dup): Likewise.
64480         * lib/sys_stat.in.h (fstat): Likewise.
64482         maint: ignore gnulib-tool temp files
64483         * .gitignore: Ignore files created during gnulib-tool --test.
64485 2009-09-13  Jim Meyering  <meyering@redhat.com>
64487         posixtm: don't reject a time that specify "60" as the number of seconds
64488         * lib/posixtm.c (posixtime): The code to reject invalid dates
64489         would also reject a time specified with the .60 suffix.
64490         But POSIX allows that, in order to accommodate leap seconds.
64491         So don't reject it.
64492         (main): Adjust tests accordingly.
64493         * modules/posixtm (Depends-on): Add stpcpy.
64495 2009-09-11  Jim Meyering  <meyering@redhat.com>
64497         announce-gen: include [$release_type] in emitted Subject:
64498         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64499         e.g., [stable] in the emitted Subject: line.
64501 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64503         Remove obsolete macros from several modules.
64504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64505         obsolete Autoconf macros with their modern counterparts.
64506         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64507         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64508         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64509         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64510         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64511         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64513         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64514         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64515         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64516         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64517         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64518         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64519         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64520         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64521         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64522         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64523         * m4/time_r.m4 (gl_TIME_R): Likewise.
64524         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64525         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64526         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64528         Fix copyright header in build-aux scripts.
64529         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64530         recommendation.
64531         * build-aux/ncftpput-ftp: Likewise.
64532         * build-aux/update-copyright: Likewise.
64534 2009-09-09  Eric Blake  <ebb9@byu.net>
64536         test-link: allow Linux choice of errno
64537         * tests/test-link.c (main): Relax test for alternate error.
64539         strndup: fix improper m4 caching
64540         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64541         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64542         (gl_PREREQ_STRNDUP): Delete.
64543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64544         * modules/string (Makefile.am): Substitute it.
64545         * lib/string.in.h (strndup): Modernize prototype.
64547         getcwd: port to mingw
64548         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64549         different from the POSIX assumptions made throughout the getcwd
64550         module; fortunately, the mingw getcwd does not need replacement.
64551         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64552         * modules/getcwd-tests: New test.
64553         * tests/test-getcwd.c: Likewise.
64555         link: fix platform bugs
64556         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64557         * lib/link.c (link): Work around them.  Fix related mingw bug.
64558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64559         * modules/unistd (Makefile.am): Substitute it.
64560         * lib/unistd.in.h (link): Declare replacement.
64561         * doc/posix-functions/link.texi (link): Document this.
64562         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64564         test-link: consolidate into single C program, test more cases
64565         * tests/test-link.sh: Delete.
64566         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64567         at least Cygwin and Solaris.
64568         * modules/link-tests (Files): Remove unused file.
64569         (Depends-on): Add errno, sys_stat.
64570         (Makefile.am): Simplify.
64572 2009-09-08  Bruno Haible  <bruno@clisp.org>
64574         Work around towlower, towupper bug on mingw.
64575         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64576         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64577         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64578         * doc/posix-functions/towupper.texi: Likewise.
64579         Reported by Eric Blake.
64581 2009-09-08  Jim Meyering  <meyering@redhat.com>
64583         build: don't try to run autoheader if we don't use it
64584         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64585         is not used in configure.ac.
64587 2009-09-08  Eric Blake  <ebb9@byu.net>
64589         euidaccess: fix compilation error
64590         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64592         rawmemchr: relax license
64593         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64594         okay.
64595         Reported by Jim Meyering.
64597         mkfifoat: new module
64598         * modules/mkfifoat: New file.
64599         * lib/mkfifoat.c: Likewise.
64600         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64601         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64602         * modules/sys_stat (Makefile.am): Use them.
64603         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64604         * MODULES.html.sh (File system functions): Mention module.
64605         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64606         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64607         * modules/mkfifoat-tests: New test.
64608         * tests/test-mkfifoat.c: Likewise.
64610         strchrnul: relax license
64611         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64612         okay.
64613         Reported by Jim Meyering.
64615 2009-09-08  Eric Blake  <ebb9@byu.net>
64617         fstatat: fix compilation on Solaris
64618         * lib/fstatat.c (includes): Add fcntl.h.
64619         Reported by Pádraig Brady.
64621 2009-09-07  Eric Blake  <ebb9@byu.net>
64623         rename: modernize replacement
64624         * modules/rename (Depends-on): Add stdio.
64625         (configure.ac): Declare witness.
64626         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64627         stdio take care of replacement.
64628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64629         * modules/stdio (Makefile.am): Substitute them.
64630         * lib/stdio.in.h (rename): Declare replacement.
64631         * lib/rename.c (includes): Allow cross-compilation to non-windows
64632         machines.
64633         * doc/posix-functions/rename.texi (rename): Improve
64634         documentation.
64636         stdio: sort witness names
64637         * modules/stdio (Makefile.am): Sort replacements.
64638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64639         * lib/stdio.in.h: Likewise.
64641         getcwd: minor cleanups
64642         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64643         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64645         openat: provide more convenience names
64646         * modules/faccessat (configure.ac): Add C witness.
64647         * lib/unistd.in.h (readlinkat): Fix typo.
64648         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64649         convenience wrappers.
64650         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64651         wrappers in syntax checks.
64653 2009-09-06  Eric Blake  <ebb9@byu.net>
64655         doc: fix comments in recent patches
64656         * lib/faccessat.c: Mention correct function.
64657         * lib/fchmodat.c: Likewise.
64658         * lib/fchownat.c: Likewise.
64659         * lib/symlinkat.c: Likewise.
64660         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64661         constants.
64663         faccessat, symlinkat: continue cleanup of previous patch
64664         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64665         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64666         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64668         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64669         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64670         set.
64672 2009-09-06  Bruno Haible  <bruno@clisp.org>
64674         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64675         (fstatat): Declare if GNULIB_FSTATAT is set.
64676         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64677         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64678         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64679         * modules/fcntl-h (Files): Remove m4/openat.m4.
64680         * modules/sys_stat (Files): Remove m4/openat.m4.
64681         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64682         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64683         * modules/unistd (Files): Remove m4/openat.m4.
64684         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64685         GNULIB_OPENAT.
64686         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64687         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64688         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64689         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64690         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64691         gl_OPENAT_DEFAULTS.
64692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64693         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64694         Don't require gl_OPENAT_DEFAULTS.
64695         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64696         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64697         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64698         (gl_OPENAT_DEFAULTS): Remove macro.
64700 2009-09-06  Bruno Haible  <bruno@clisp.org>
64702         * modules/openat (configure.ac): Remove unneeded witness.
64704 2009-09-06  Bruno Haible  <bruno@clisp.org>
64706         Set errno to ENOSYS when a function is entirely unsupported.
64707         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64708         EOPNOTSUPP.
64709         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64710         * modules/chown (Depends-on): Remove errno.
64712 2009-09-06  Bruno Haible  <bruno@clisp.org>
64714         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64716 2009-09-06  Bruno Haible  <bruno@clisp.org>
64718         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64720 2009-09-06  Ben Pfaff  <blp@gnu.org>
64721             Bruno Haible  <bruno@clisp.org>
64723         Work around a glibc bug in strtok_r.
64724         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64725         Undefine if UNDEFINE_STRTOK_R is set.
64726         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64728         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64729         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64730         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64731         UNDEFINE_STRTOK_R.
64732         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64734 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64736         exclude: minor fix
64737         * lib/exclude.c: Include wctype.h
64739 2009-09-06  Akim Demaille  <demaille@gostai.com>
64741         bootstrap: improve error message
64742         * build-aux/bootstrap (find_tool): Upon failure, report the list
64743         of candidates.
64744         Honor the initial value of the envvar.
64746 2009-09-05  Eric Blake  <ebb9@byu.net>
64748         symlinkat: new module
64749         * modules/symlinkat: New file.
64750         * lib/symlinkat.c: Likewise.
64751         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64753         * modules/unistd (Makefile.am): Use them.
64754         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64755         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64756         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64757         * MODULES.html.sh (File system functions): Mention module.
64758         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64759         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64760         * modules/symlinkat-tests: New test.
64761         * tests/test-symlinkat.c: Likewise.
64763         test-openat-safer: add more checks
64764         * tests/test-openat-safer.c (main): Check more code paths.
64766 2009-09-05  Jim Meyering  <meyering@redhat.com>
64768         syntax-check: detect unnecessary inclusion of openat.h
64769         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64771 2009-09-05  Bruno Haible  <bruno@clisp.org>
64773         Support towlower, towupper.
64774         * doc/posix-functions/towlower.texi: Mention module wctype.
64775         * doc/posix-functions/towupper.texi: Likewise.
64776         * lib/wctype.in.h (towlower, towupper): New functions.
64777         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64778         (ASSERT): New macro.
64779         (e): New variable.
64780         (main): Test also towlower, towupper. Test WEOF argument.
64781         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64783 2009-09-05  Bruno Haible  <bruno@clisp.org>
64785         Fix conversion behaviour when the input is invalid.
64786         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64787         mark occurring in first pass of indirect conversion.
64788         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64789         input.
64790         Found by clang's static analyzer.
64792 2009-09-05  Bruno Haible  <bruno@clisp.org>
64794         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64795         where direct conversion is possible.
64797 2009-09-04  Eric Blake  <ebb9@byu.net>
64799         openat: fail with ENOENT on empty name
64800         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64801         buffer.
64803         link-follow: fix logic bug in prior patch
64804         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64805         reversed sense of yes and no in prior patch.  Avoid confusing
64806         compilation failure with desired semantics.
64808         link-follow: accommodate mingw and cross-compilation
64809         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64810         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64811         cross-compilation results to -1, to make linkat easier to
64812         implement when cross-compiling.  Trivially support mingw.
64813         * modules/link-follow (configure.ac): Call new name.
64814         * NEWS: Mention this.
64816 2009-09-03  Eric Blake  <ebb9@byu.net>
64818         faccessat: compile replacement
64819         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64820         needed.
64822         fts: fix compilation error
64823         * lib/fts.c (includes): Re-add "openat.h", for
64824         openat_needs_fchdir.
64826         faccessat: new module
64827         * modules/faccessat: New file.
64828         * lib/faccessat.c: Likewise.
64829         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64831         * modules/unistd (Makefile.am): Use it.
64832         * lib/unistd.in.h (faccessat): Declare it.
64833         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64834         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64835         * MODULES.html.sh (File system functions): Mention it.
64836         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64837         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64839         euidaccess: prefer POSIX over non-standard implementation
64840         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64841         * lib/euidaccess.c (euidaccess): Use it if available.
64843         openat: make template easier to use
64844         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64845         AT_FUNC_F2 to be undefined.
64846         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64847         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64848         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64849         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64850         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64851         Likewise.
64852         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64853         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64854         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64855         Likewise.
64857         openat: declare in POSIX headers
64858         * NEWS: Mention this.
64859         * modules/openat (configure.ac): Declare witnesses.
64860         (Depends-on): Add fcntl-h, sys_stat, unistd.
64861         (Include): Mention correct headers.
64862         * modules/fcntl-h (Depends-on): Add link-warning.
64863         (Files): Add openat.m4.
64864         (Makefile.am): Substitute witnesses.
64865         * modules/sys_stat (Files, Makefile.am): Likewise.
64866         * modules/unistd (Files, Makefile.am): Likewise.
64867         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64868         (gl_OPENAT_DEFAULTS): New macro.
64869         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64871         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64872         (SYS_STAT_H): Remove unused variable.
64873         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64874         * lib/fcntl--.h (includes): Remove unneeded header.
64875         * lib/openat-safer.c (includes): Likewise.
64876         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64877         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64878         appropriate headers.
64879         (__OPENAT_PREFIX): Delete.
64880         * lib/fcntl.in.h (openat): Provide declaration.
64881         (AT_FDCWD): Fix Solaris bug.
64882         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64883         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64884         * lib/fchmodat.c (includes):  Adjust to find declaration.
64885         * lib/fchownat.c (includes): Likewise.
64886         * lib/mkdirat.c (includes): Likewise.
64887         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64888         still visible.
64890 2009-09-02  Eric Blake  <ebb9@byu.net>
64892         errno: use consistently
64893         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64894         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64895         * lib/canonicalize.c (ELOOP): Likewise.
64896         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64897         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64898         * lib/lchown.c (EOPNOTSUPP): Likewise.
64899         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64900         * lib/savewd.c (ESTALE): Likewise.
64901         * lib/settime.c (ENOSYS): Likewise.
64902         * lib/utimens.c (ENOSYS): Likewise.
64903         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64904         * lib/chdir-safer.c (ELOOP): Likewise.
64905         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64906         * modules/c-stack (Depends-on): Add errno.
64907         * modules/canonicalize (Depends-on): Likewise.
64908         * modules/chdir-safer (Depends-on): Likewise.
64909         * modules/fdopendir (Depends-on): Likewise.
64910         * modules/inet_ntop (Depends-on): Likewise.
64911         * modules/inet_pton (Depends-on): Likewise.
64912         * modules/lchown (Depends-on): Likewise.
64913         * modules/openat (Depends-on): Likewise.
64914         * modules/savewd (Depends-on): Likewise.
64915         * modules/settime (Depends-on): Likewise.
64916         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64918         fts: avoid leaking fds
64919         * modules/fts (Depends-on): Add cloexec.
64920         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64921         flag.
64923         fts: make directory fds more robust
64924         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64925         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64927         backupfile, chdir-long, fts, savedir: make safer
64928         * lib/backupfile.c (includes): Use "dirent--.h", since
64929         numbered_backup can write to stderr during readdir.
64930         * lib/savedir.c (includes): Likewise.
64931         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64932         emulation can write to stderr on failure.
64933         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64934         * lib/getcwd.c: Document why opendir_safer is unused.
64935         * lib/glob.c: Likewise.
64936         * lib/scandir.c: Likewise.
64937         * lib/openat-proc.c: Likewise, for open_safer.
64938         * modules/backupfile (Depends-on): Add dirent-safer.
64939         * modules/savedir (Depends-on): Likewise.
64940         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64941         * modules/chdir-long (Depends-on): Add openat-safer.
64943         openat-safer: new module
64944         * modules/openat-safer: New file.
64945         * lib/openat-safer.c: Likewise.
64946         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64947         * lib/fcntl-safer.h (openat_safer): Declare.
64948         * lib/fcntl--.h (openat): Override.
64949         * MODULES.html.sh (File descriptor based I/O): Mention it.
64950         * lib/openat.h: Add double-inclusion guards.
64951         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64952         "fcntl--.h", so we can implement openat.
64953         * modules/openat-safer-tests: New test.
64954         * tests/test-openat-safer.c: New file.
64956         dirent-safer: new module
64957         * modules/dirent-safer: New file.
64958         * lib/dirent--.h: Likewise.
64959         * lib/dirent-safer.h: Likewise.
64960         * lib/opendir-safer.c: Likewise.
64961         * m4/dirent-safer.m4: Likewise.
64962         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64963         * modules/dirent-safer-tests: New test.
64964         * tests/test-dirent-safer.c: New file.
64965         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64967         fdopendir: optimize on mingw
64968         * lib/unistd.in.h (_gl_directory_name): New prototype.
64969         * lib/fchdir.c (_gl_directory_name): Implement it.
64970         (fchdir): Use it to simplify implementation.
64971         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64972         fchdir, when available, to avoid calling [f]chdir().
64974         fdopendir: split into its own module
64975         * lib/openat.c (fdopendir): Move...
64976         * lib/fdopendir.c: ...into new file.
64977         * modules/fdopendir: New module.
64978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64979         * modules/openat (Depends-on): Add fdopendir.
64980         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64981         fdopendir here.
64982         * modules/savedir (Depends-on): Only need fdopendir, not full
64983         openat.
64984         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64985         * lib/openat.h (fdopendir): Drop prototype.
64986         * lib/dirent.in.h (fdopendir): Provide prototype.
64987         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64988         * modules/dirent (Makefile.am): Substitute them.
64989         * MODULES.html.sh (File system functions): Mention it.
64990         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64991         * modules/fdopendir-tests: New file.
64992         * tests/test-fdopendir.c: Likewise.
64994         fchdir: use more consistent macro convention
64995         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64996         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64997         REPLACE_FCHDIR, rather than relying on config.h macros.
64998         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64999         inside a single make-time REPLACE_FCHDIR block, rather than using
65000         the config.h FCHDIR_REPLACEMENT.
65001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
65002         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
65003         Manage fstat replacement.
65004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65005         REPLACE_FCHDIR.
65006         * modules/sys_stat (Files): Add m4/unistd_h.m4.
65007         (Makefile.am): Substitute REPLACE_FCHDIR.
65008         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
65009         FCHDIR_REPLACEMENT.
65010         * lib/dup-safer.c (dup_safer): Likewise.
65011         * lib/dup2.c (rpl_dup2): Likewise.
65012         * lib/dup3.c (rpl_dup3): Likewise.
65013         * lib/open.c (rpl_open): Likewise.
65015         fchdir: simplify error handling, and support dup3
65016         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
65017         stdbool, malloc-posix, realloc-posix.
65018         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
65019         (ensure_dirs_slot): Return false on allocation failure.
65020         (rpl_dup2): Delete.
65021         (_gl_register_dup): New function.
65022         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
65023         (_gl_register_fd): Close fd on allocation failure.
65024         * lib/fcntl.in.h (_gl_register_fd): Update signature.
65025         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
65026         prototype.
65027         (rpl_dup2_fchdir): Delete prototype.
65028         * lib/open.c (open): Update caller.
65029         * lib/dup2.c (dup2): Track fchdir metadata.
65030         * lib/dup3.c (dup3): Likewise.
65031         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
65032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
65034 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65036         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
65037         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
65038         don't pass arguments to AC_OUTPUT.
65040 2009-09-02  Bruno Haible  <bruno@clisp.org>
65042         * modules/mkdtemp (License): Relicense under LGPLv2+.
65043         Reported by Paolo Bonzini.
65045 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65047         Replace uses of obsolete autoconf macros in Jim's modules.
65048         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
65049         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
65050         can evoke a warning from autoconf when run with -Wobsolete
65051         enabled.  They were declared obsolete for good reasons (see
65052         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
65053         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
65054         should not continue using the deprecated macros.
65055         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
65056         obsolete Autoconf macros with modern counterparts.
65057         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65058         * m4/dos.m4 (gl_AC_DOS): Likewise.
65059         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
65060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
65061         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
65062         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
65063         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
65064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
65065         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
65066         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
65067         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65068         Likewise.
65069         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
65070         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65071         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
65072         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
65073         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65074         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65076 2009-09-01  Eric Blake  <ebb9@byu.net>
65078         fchdir: fix off-by-one bug in previous patch
65079         * lib/fchdir.c (rpl_fstat): Use correct bounds.
65080         (_gl_unregister_fd): Delete useless if.
65082 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
65084         maint.mk: sort the list of syntax-check rules
65085         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
65086         easier to get a sense of progress when the rules are run sequentially
65087         and take a long time.
65089 2009-09-01  Simon Josefsson  <simon@josefsson.org>
65091         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
65092         * modules/netinet_in: Likewise.
65093         * modules/sys_file: Likewise.
65094         * modules/sys_ioctl: Likewise.
65095         * modules/sys_select: Likewise.
65096         * modules/sys_socket: Likewise.
65097         * modules/sys_stat: Likewise.
65098         * modules/sys_time: Likewise.
65099         * modules/sys_times: Likewise.
65100         * modules/sys_utsname: Likewise.
65101         * modules/sys_wait: Likewise.
65103 2009-09-01  Jim Meyering  <meyering@redhat.com>
65105         fts: help ensure that return values are not ignored
65106         * lib/fts_.h (__GNUC_PREREQ): Define.
65107         (__attribute_warn_unused_result__): Define.
65108         (fts_children, fts_close, fts_open, fts_read): Declare with
65109         __attribute_warn_unused_result__.
65111         fts: fts_close now fails also when closing a dir file descriptor fails
65112         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65113         and propagate to caller, along with errno.
65115         announce-gen: correct formatting in --help output
65116         * build-aux/announce-gen (usage): Move the one-line description in
65117         --help output "up", to where it belongs, just after Usage:.
65119 2009-08-31  Eric Blake  <ebb9@byu.net>
65121         fchdir: port to mingw
65122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65123         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65124         opened, then use a substitute.
65125         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65126         replacement.
65127         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65128         (_gl_register_fd): No need to check stat if open already filters
65129         all directories.
65130         (fchdir): Fix error condition to match POSIX.
65131         * modules/fchdir (Depends-on): Add sys_stat.
65132         * doc/posix-functions/open.texi (open): Document the limitation.
65133         * modules/fchdir-tests: New file.
65134         * tests/test-fchdir.c: Likewise.
65136         canonicalize: allow cross-testing from cygwin to mingw
65137         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65138         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65139         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65140         Likewise.
65141         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65142         target does not support symlinks.
65143         * tests/test-canonicalize-lgpl.sh: Likewise.
65145         chown: avoid compilation warning on mingw
65146         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65147         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65148         mingw.
65149         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65150         * modules/chown (Depends-on): Add errno.
65152 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65154         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65155         command.
65157 2009-08-31  Jim Meyering  <meyering@redhat.com>
65159         canonicalize: remove useless initialization
65160         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65161         initialization of local, "end".
65163 2009-08-30  Bruno Haible  <bruno@clisp.org>
65165         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65166         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65167         ENOSYS.
65169 2009-08-30  Bruno Haible  <bruno@clisp.org>
65171         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65172         /usr/xpg4/bin/tr when it exists.
65173         * tests/test-pipe-filter-gi1.sh: Likewise.
65175 2009-08-30  Bruno Haible  <bruno@clisp.org>
65177         Work around deficient /usr/bin/id program on Solaris.
65178         * tests/test-file-has-acl.sh (ID): New variable.
65179         * tests/test-set-mode-acl.sh (ID): Likewise.
65180         * tests/test-copy-acl.sh (ID): Likewise.
65181         * tests/test-copy-file.sh (ID): Likewise.
65183 2009-08-30  Bruno Haible  <bruno@clisp.org>
65185         New module 'xstriconveh'.
65186         * lib/xstriconveh.h: New file.
65187         * lib/xstriconveh.c: New file.
65188         * modules/xstriconveh: New file.
65190 2009-08-30  Bruno Haible  <bruno@clisp.org>
65192         Make it easier to use mem_cd_iconveh.
65193         * lib/striconveh.h (iconveh_t): New type.
65194         (iconveh_open, iconveh_close): New declarations.
65195         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65196         with a single 'const iconveh_t *' argument.
65197         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65198         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65199         with a single 'const iconveh_t *' argument.
65200         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65201         * tests/test-striconveh.c (main): Update.
65202         * NEWS: Mention the change.
65204 2009-08-30  Bruno Haible  <bruno@clisp.org>
65206         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65207         problem.
65209 2009-08-30  Bruno Haible  <bruno@clisp.org>
65211         Work around iconv_open problem on Solaris.
65212         * lib/iconv_open-solaris.gperf: New file.
65213         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65215         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65216         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65217         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65218         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65220 2009-08-29  Jim Meyering  <meyering@redhat.com>
65222         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65223         * top/maint.mk (cvs-check): Remove target; it was just an alias
65224         to the better-named vc-diff-check.
65225         (maintainer-distcheck): Remove rule.  It was used only from
65226         the (alpha/beta/major) target, and all of its commands but one
65227         were coreutils-specific.
65228         (vc-dist): Remove rule.
65229         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65230         Run vc-diff-check, not vc-dist.
65231         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65233 2009-08-27  Bruno Haible  <bruno@clisp.org>
65235         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65236         of 0.
65238 2009-08-27  Bruno Haible  <bruno@clisp.org>
65240         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65241         compilers.
65242         * doc/func.texi: Document the SunPRO C bug.
65244 2009-08-27  Bruno Haible  <bruno@clisp.org>
65246         Fix link error on Solaris.
65247         * tests/test-parse-duration.c (xstrdup): Remove function.
65249 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65251         ignore-value: handle pointer types, too
65252         * lib/ignore-value.h (__attribute__): Remove definition.
65253         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65254         of a more concise and more-often effective "(void) i" statement.
65255         (ignore_ptr): New function to suppress warnings from functions that
65256         return pointers, and to make it explicit that one function doesn't
65257         handle all cases.
65259 2009-08-25  Bruno Haible  <bruno@clisp.org>
65261         dup2: work around a Linux bug.
65262         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65263         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65264         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65265         Reported by Simon Josefsson.
65267 2009-08-25  Jim Meyering  <meyering@redhat.com>
65269         libguestfs uses gnulib
65270         * users.txt: Add libguestfs.
65272 2009-08-24  Eric Blake  <ebb9@byu.net>
65274         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65275         * lib/pipe2.c (includes): Add binary-io.h.
65276         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65278 2009-08-24  Bruno Haible  <bruno@clisp.org>
65280         Tolerate declared but missing accept4 syscall.
65281         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65282         available.
65283         * lib/sys_socket.in.h (accept4): If the function is already present,
65284         override it.
65285         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65286         * modules/accept4 (Makefile.am): Compile accept4.c always.
65287         Reported by Paolo Bonzini and Eric Blake.
65289 2009-08-23  Bruno Haible  <bruno@clisp.org>
65291         New module 'accept4'.
65292         * lib/sys_socket.in.h (accept4): New declaration.
65293         * lib/accept4.c: New file.
65294         * m4/accept4.m4: New file.
65295         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65296         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65297         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65298         HAVE_ACCEPT4.
65299         * modules/accept4: New file.
65300         * doc/glibc-functions/accept4.texi: Mention the new module.
65302 2009-08-24  Jim Meyering  <meyering@redhat.com>
65304         progname: also set global program_invocation_name, when possible
65305         Before this change, a libtool-enabled program that calls glibc's
65306         error function would report the program name as
65307         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65308         * modules/progname (configure.ac): Check for a declaration of
65309         program_invocation_name.
65310         * lib/progname.c:  Include <errno.h>.
65311         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65312         Set program_invocation_name.
65314 2009-08-23  Bruno Haible  <bruno@clisp.org>
65316         * lib/dup3.c: Include <string.h>.
65318 2009-08-23  Bruno Haible  <bruno@clisp.org>
65320         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65321         * lib/pipe2.c (pipe2): Likewise.
65322         Suggested by Eric Blake.
65324 2009-08-23  Bruno Haible  <bruno@clisp.org>
65326         Tolerate declared but missing dup3 syscall.
65327         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65328         * lib/unistd.in.h (dup3): If the function is already present,
65329         override it.
65330         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65331         * modules/dup3 (Makefile.am): Compile dup3.c always.
65332         Reported by Paolo Bonzini.
65334 2009-08-23  Bruno Haible  <bruno@clisp.org>
65336         Tolerate declared but missing pipe2 syscall.
65337         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65338         available.
65339         * lib/unistd.in.h (pipe2): If the function is already present,
65340         override it.
65341         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65342         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65343         Reported by Paolo Bonzini.
65345 2009-08-23  Bruno Haible  <bruno@clisp.org>
65347         * lib/pipe2.c (pipe2): Move #ifs inside function.
65349 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65351         quotearg: document limitations of quote_these_too
65352         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65353         those limitations are created.
65354         * lib/quotearg.h (set_char_quoting): Document that digits and
65355         letters that are special after backslash are not permitted.
65356         (quotearg_char): Cross-reference set_char_quoting documentation.
65358 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65360         quotearg: implement custom_quoting_style
65361         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65362         right_quote fields.
65363         (set_custom_quoting): New public function.
65364         (quotearg_buffer_restyled): Add left_quote and right_quote
65365         arguments, handle them very much like locale quoting, and update
65366         all uses.
65367         (quotearg_n_custom): New public function.
65368         (quotearg_n_custom_mem): New public function.
65369         (quotearg_custom): New public function.
65370         (quotearg_custom_mem): New public function.
65371         * lib/quotearg.h: Prototype and document new public functions.
65372         (enum quoting_style): For escape_quoting_style and
65373         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65374         ignored even though they're otherwise like c_quoting_style.
65375         Add custom_quoting_style member and document with comparison to
65376         clocale_quoting_style.
65377         * tests/test-quotearg.c (custom_quotes): New array.
65378         (custom_results): New array.
65379         (main): Extend to test custom quoting.
65381 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65383         quotearg: fix right quote escaping when it's in quote_these_too
65384         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65385         quote, be sure to prepend only one backslash.
65386         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65387         (main): Test it.
65389 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65391         quotearg-tests: test escaping of embedded locale quotes
65392         * tests/test-quotearg.c (struct result_strings): Add member for
65393         new input.
65394         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65395         (inputs): Add new input.
65396         (results_g): Add expected results.
65397         (flag_results): Likewise.
65398         (locale_results): Likewise.
65399         (compare_strings): Check those.
65401 2009-08-23  Bruno Haible  <bruno@clisp.org>
65403         Tests for module 'dup3'.
65404         * modules/dup3-tests: New file.
65405         * tests/test-dup3.c: New file.
65407         New module 'dup3'.
65408         * lib/unistd.in.h (dup3): New declaration.
65409         * lib/dup3.c: New file.
65410         * m4/dup3.m4: New file.
65411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65412         HAVE_DUP3.
65413         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65414         * modules/dup3: New file.
65415         * doc/glibc-functions/dup3.texi: Mention the new module.
65417 2009-08-23  Bruno Haible  <bruno@clisp.org>
65419         Tweak the dup2 test.
65420         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65421         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65422         the test file is still empty. Fix argument order of lseek.
65424 2009-08-23  Bruno Haible  <bruno@clisp.org>
65426         Avoid test link errors when the modules getopt-gnu, gettext are used.
65427         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65430 2009-08-23  Bruno Haible  <bruno@clisp.org>
65432         Fix getdtablesize() on mingw.
65433         * lib/getdtablesize.c (getdtablesize): Implement differently.
65434         * lib/unistd.in.h (getdtablesize): Improve comment.
65436 2009-08-23  Bruno Haible  <bruno@clisp.org>
65438         New module 'mkostemp'.
65439         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65440         * lib/stdlib.in.h (mksotemp): New declaration.
65441         * lib/mkostemp.c: New file, from glibc with modifications.
65442         * lib/tempname.h (GT_FILE): Remove outdated comment.
65443         (gen_tempname): Add flags argument.
65444         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65445         (__GT_FILE): Map to 1.
65446         (small_open, large_open): Remove macros.
65447         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65448         * lib/mkstemp.c (mkstemp): Update.
65449         * lib/mkdtemp.c (mkdtemp): Likewise.
65450         * m4/mkostemp.m4: New file.
65451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65452         HAVE_MKOSTEMP.
65453         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65454         HAVE_MKOSTEMP.
65455         * modules/mkostemp: New file, based on modules/mkstemp.
65456         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65457         * NEWS: Mention the change.
65459 2009-08-23  Bruno Haible  <bruno@clisp.org>
65461         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65462         Reported by Eric Blake.
65464 2009-08-23  Bruno Haible  <bruno@clisp.org>
65466         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65467         Reported by Eric Blake.
65469 2009-08-23  Bruno Haible  <bruno@clisp.org>
65471         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65472         * modules/pipe2 (Depends-on): Likewise.
65474 2009-08-23  Eric Blake  <ebb9@byu.net>
65476         fcntl-h: add O_TTY_INIT support
65477         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65478         * tests/test-fcntl-h.c (o): Test it.
65479         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65481         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65482         * modules/fcntl: Move <fcntl.h> header replacement...
65483         * modules/fcntl-h: ...to new name, so as not to collide with
65484         like-named function.
65485         * tests/test-fcntl.c: Rename...
65486         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65487         * modules/fcntl-tests: Rename...
65488         * modules/fcntl-h-tests: ...to this.  Update test file name.
65489         * modules/chdir-long (Depends-on): Update clients.
65490         * modules/chdir-safer (Depends-on): Likewise.
65491         * modules/fcntl-safer (Depends-on): Likewise.
65492         * modules/fts (Depends-on): Likewise.
65493         * modules/mkancesdirs (Depends-on): Likewise.
65494         * modules/mkdir-p (Depends-on): Likewise.
65495         * modules/open (Depends-on): Likewise.
65496         * modules/savewd (Depends-on): Likewise.
65497         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65498         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65500 2009-08-22  Bruno Haible  <bruno@clisp.org>
65502         * modules/binary-io (License): Relicense under LGPL.
65503         * modules/pipe2 (License): Likewise.
65505 2009-08-22  Bruno Haible  <bruno@clisp.org>
65507         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65508         return value.
65509         * lib/pipe-filter-gi.c (filter_init): Likewise.
65510         Reported by Eric Blake.
65512 2009-08-22  Bruno Haible  <bruno@clisp.org>
65514         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65515         * modules/pipe (Depends-on): Add pipe2.
65517 2009-08-22  Bruno Haible  <bruno@clisp.org>
65519         Tests for module 'pipe2'.
65520         * modules/pipe2-tests: New file.
65521         * tests/test-pipe2.c: New file.
65523         New module 'pipe2'.
65524         * lib/unistd.in.h (pipe2): New declaration.
65525         * lib/pipe2.c: New file.
65526         * m4/pipe2.m4: New file.
65527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65528         HAVE_PIPE2.
65529         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65530         * modules/pipe2: New file.
65531         * doc/glibc-functions/pipe2.texi: Mention the new module.
65533 2009-08-22  Bruno Haible  <bruno@clisp.org>
65535         Reference some new glibc functions.
65536         * doc/glibc-functions/accept4.texi: New file.
65537         * doc/glibc-functions/dup3.texi: New file.
65538         * doc/glibc-functions/mkostemp.texi: New file.
65539         * doc/glibc-functions/pipe2.texi: New file.
65540         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65541         (Glibc sys/socket.h): Refer to accept4.
65542         (Glibc unistd.h): Refer to dup3, pipe2.
65543         Reported by Eric Blake.
65545 2009-08-22  Jim Meyering  <meyering@redhat.com>
65546             Bruno Haible  <bruno@clisp.org>
65548         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65549         This makes it so packages using automake-1.11's silent-rules option
65550         can print e.g., a single "GEN    configmake.h" line, rather than
65551         the 30+ statements that perform the job.  If you want to see the
65552         actual commands, you can still run "make V=1".
65553         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65554         so that make output is abbreviated when those variables are defined
65555         appropriately.
65556         * modules/argz: Likewise.
65557         * modules/arpa_inet: Likewise.
65558         * modules/byteswap: Likewise.
65559         * modules/configmake: Likewise.
65560         * modules/dirent: Likewise.
65561         * modules/errno: Likewise.
65562         * modules/fcntl: Likewise.
65563         * modules/float: Likewise.
65564         * modules/fnmatch: Likewise.
65565         * modules/getopt-posix: Likewise.
65566         * modules/glob: Likewise.
65567         * modules/iconv_open: Likewise.
65568         * modules/inttypes: Likewise.
65569         * modules/localcharset: Likewise.
65570         * modules/locale: Likewise.
65571         * modules/math: Likewise.
65572         * modules/netdb: Likewise.
65573         * modules/netinet_in: Likewise.
65574         * modules/poll: Likewise.
65575         * modules/posix_spawnp-tests: Likewise.
65576         * modules/sched: Likewise.
65577         * modules/search: Likewise.
65578         * modules/selinux-h: Likewise.
65579         * modules/signal: Likewise.
65580         * modules/spawn: Likewise.
65581         * modules/stdarg: Likewise.
65582         * modules/stdbool: Likewise.
65583         * modules/stddef: Likewise.
65584         * modules/stdint: Likewise.
65585         * modules/stdio: Likewise.
65586         * modules/stdlib: Likewise.
65587         * modules/string: Likewise.
65588         * modules/strings: Likewise.
65589         * modules/sys_file: Likewise.
65590         * modules/sys_ioctl: Likewise.
65591         * modules/sys_select: Likewise.
65592         * modules/sys_socket: Likewise.
65593         * modules/sys_stat: Likewise.
65594         * modules/sys_time: Likewise.
65595         * modules/sys_times: Likewise.
65596         * modules/sys_utsname: Likewise.
65597         * modules/sys_wait: Likewise.
65598         * modules/sysexits: Likewise.
65599         * modules/time: Likewise.
65600         * modules/unistd: Likewise.
65601         * modules/wchar: Likewise.
65602         * modules/wctype: Likewise.
65604 2009-08-22  Jim Meyering  <meyering@redhat.com>
65606         announce-gen: detect write failure
65607         * build-aux/announce-gen: Add Coda at end.
65608         Remove equivalent-but-more-verbose block at top.
65610 2009-08-19  Akim Demaille  <demaille@gostai.com>
65612         bootstrap: --help to stdout.
65613         * bootstrap (usage): Don't send --help to stderr.
65614         Use a here doc instead of a long string.
65616 2009-08-21  Eric Blake  <ebb9@byu.net>
65618         test-popen-safer: split from test-popen
65619         * tests/test-popen.c (main): Move...
65620         * tests/test-popen.h: ...into new file.
65621         * tests/test-popen-safer2.c: New file.
65622         * modules/popen-tests (Files): Add test-popen.h.
65623         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65624         Suggested by Bruno Haible.
65626         test-fcntl-safer: split from test-open
65627         * tests/test-open.c (main): Move...
65628         * tests/test-open.h: ...into new file.
65629         * tests/test-fcntl-safer.c: New file.
65630         * modules/open-tests (Files): Add test-open.h.
65631         * modules/fcntl-safer-tests: New file.
65632         Suggested by Bruno Haible.
65634         test-fopen-safer: split from test-fopen
65635         * tests/test-fopen.c (main): Move...
65636         * tests/test-fopen.h: ...into new file.
65637         * tests/test-fopen-safer.c: New file.
65638         * modules/fopen-tests (Files): Add test-fopen.h.
65639         * modules/fopen-safer-tests: New file.
65640         Suggested by Bruno Haible.
65642 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65644         popen-safer: test O_CLOEXEC at run-time.
65645         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65647 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65649         fcntl: move more flags to the header
65650         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65651         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65652         * lib/fcntl.in.h: Do both things here.
65654 2009-08-21  Jim Meyering  <meyering@redhat.com>
65656         consistently remove $@-t before redirecting to it
65657         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65658         * modules/alloca-opt: Likewise.
65659         * modules/byteswap: Likewise.
65660         * modules/fnmatch: Likewise.
65661         * modules/getopt-posix: Likewise.
65662         * modules/glob: Likewise.
65663         * modules/poll: Likewise.
65664         * modules/posix_spawnp-tests: Likewise.
65665         * modules/sys_socket: Likewise.
65666         * modules/sysexits: Likewise.
65668 2009-08-21  Eric Blake  <ebb9@byu.net>
65670         popen: simplify access to original popen
65671         * lib/popen.c (rpl_popen): No need to worry about popen being a
65672         macro.
65673         Reported by Bruno Haible.
65675 2009-08-20  Eric Blake  <ebb9@byu.net>
65677         build: avoid some compiler warnings
65678         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65679         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65680         type.
65681         (new_exclude_segment, excluded_file_pattern_p)
65682         (excluded_file_name_p): Reduce scope.
65683         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65684         old-style declaration.
65686 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65688         * tests/test-exclude1.sh: Handle Windows EOL.
65689         * tests/test-exclude2.sh: Likewise.
65690         * tests/test-exclude3.sh: Likewise.
65691         * tests/test-exclude4.sh: Likewise.
65692         * tests/test-exclude5.sh: Likewise.
65693         * tests/test-exclude6.sh: Likewise.
65694         * tests/test-exclude7.sh: Likewise.
65696 2009-08-19  Akim Demaille  <demaille@gostai.com>
65698         bootstrap: find sha1sum when named gsha1sum.
65699         * bootstrap (find_tool): New.
65700         ($SHA1SUM): New.
65701         Use it.
65703 2009-08-20  Jim Meyering  <meyering@redhat.com>
65705         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65706         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65707         expression that converts "." in a file name to "\." in the resulting
65708         regexp.  Start with a dummy statement, so that prior shell variable
65709         definitions are expanded portably.  Reported by Simon Josefsson.
65711 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65713         Fix polling for writeability of a screen buffer.
65714         * lib/poll.c: Distinguish input and screen buffers for the
65715         Win32 implementation.
65716         * lib/select.c: Likewise.
65718 2009-08-19  Eric Blake  <ebb9@byu.net>
65720         popen-safer: prevent popen from clobbering std descriptors
65721         * modules/popen-safer: New file.
65722         * lib/popen-safer.c: Likewise.
65723         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65724         * lib/stdio--.h (popen): Provide override.
65725         * lib/stdio-safer.h (popen_safer): Provide declaration.
65726         * tests/test-popen.c (includes): Partially test this.
65727         * modules/popen-safer-tests: New file, for more tests.
65728         * tests/test-popen-safer.c: Likewise.
65729         * MODULES.html.sh (file stream based Input/Output): Mention it.
65731         tests: test some of the *-safer modules
65732         * modules/fopen-safer (Depends-on): Add fopen.
65733         * modules/fcntl-safer (Depends-on): Add fcntl.
65734         * modules/stdlib-safer (Depends-on): Add stdlib.
65735         (configure.ac): Set indicator.
65736         * modules/unistd-safer (configure.ac): Likewise.
65737         * modules/tmpfile-safer (configure.ac): Likewise.
65738         (Depends-on): Add tmpfile.
65739         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65740         active.
65741         * tests/test-fopen.c (includes): Test safer versions when they are
65742         in use.
65743         * tests/test-open.c (includes): Likewise.
65745         popen: fix cygwin 1.5 bug when stdin closed
65746         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65747         * modules/popen: New file.
65748         * modules/popen-tests: Likewise.
65749         * tests/test-popen.c: Likewise.
65750         * m4/popen.m4: Likewise.
65751         * lib/popen.c: Likewise.
65752         * lib/stdio.in.h (popen): New declaration.
65753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65754         * modules/stdio (Makefile.am): Likewise.
65755         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65757 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65759         maint.mk: give full control over update-copyright exclusions
65760         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65761         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65762         (update-copyright): Don't force inclusion of top-level
65763         ChangeLog.  Don't force exclusion of all COPYING files, but make
65764         them the default exclusion instead.
65766 2009-08-16  Bruno Haible  <bruno@clisp.org>
65768         Fix test failures on Solaris 10.
65769         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65770         tests when Solaris iconv() is used.
65771         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65772         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65773         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65774         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65775         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65777 2009-08-16  Bruno Haible  <bruno@clisp.org>
65779         Fix test failures on Solaris 10.
65780         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65781         'tr' program and pass it as first argument.
65782         * tests/test-pipe-filter-gi1.sh: Likewise.
65783         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65784         program as first argument.
65785         * tests/test-pipe-filter-gi1.c (main): Likewise.
65787 2009-08-16  Eric Blake  <ebb9@byu.net>
65789         fpurge: fix previous commits
65790         * modules/fpurge (Makefile.am): Make replacement conditional,
65791         partially reverting 2007-04-29 change; missed in previous
65792         attempt.
65793         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65794         is missing.
65796 2009-08-16  Bruno Haible  <bruno@clisp.org>
65798         Clarify fpurge's effect on the file position.
65799         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65800         * tests/test-fpurge.c (main): Make a second pass for checking the file
65801         position.
65803 2009-08-16  Bruno Haible  <bruno@clisp.org>
65805         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65806         declaration of fpurge is missing.
65807         * tests/test-fpurge.c (main): Check that the file has not more contents
65808         than expected. Close the file before removing it.
65810 2009-08-15  Eric Blake  <ebb9@byu.net>
65812         fpurge: don't wrap working cygwin implementation
65813         * lib/fpurge.c (fpurge): Fix comment typo.
65814         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65815         1.7 to avoid replacement.
65816         * tests/test-fpurge.c (main): Enhance test.
65818 2009-08-15  Eric Blake  <ebb9@byu.net>
65819         and Jim Meyering  <meyering@redhat.com>
65821         test-update-copyright: skip if perl is insufficient
65822         * tests/test-update-copyright.sh: Failure to run maintainer tool
65823         should not cause testsuite failure on cygwin 1.5.
65825 2009-08-14  Eric Blake  <ebb9@byu.net>
65827         doc: mention more functions added in cygwin 1.7.0
65828         * doc/posix-headers/limits.texi (limits.h): Update for recent
65829         cygwin additions.
65830         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65831         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65832         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65833         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65834         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65836 2009-08-14  Eric Blake  <ebb9@byu.net>
65838         maint.mk: simplify update-copyright rule
65839         * top/maint.mk (update-copyright-local): Delete, and document how
65840         to do it in cfg.mk instead.
65841         (update-copyright-exclude-regexp): Delete, and document how to do
65842         it in .x-update-copyright instead.
65843         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65844         exclude ChangeLog.
65846 2009-08-14  Bruno Haible  <bruno@clisp.org>
65848         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65850 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65852         maint.mk: support update-copyright-env
65853         * top/maint.mk (update-copyright-env): Define place-holder.
65854         (update-copyright): Expand $(update-copyright-env) before
65855         invoking update-copyright.
65857 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65859         update-copyright: implement forced reformatting
65860         * build-aux/update-copyright: Implement and document
65861         UPDATE_COPYRIGHT_FORCE.
65862         * tests/test-update-copyright.sh: Test it.
65864 2009-08-14  Eric Blake  <ebb9@byu.net>
65865         and Bruno Haible  <bruno@clisp.org>
65867         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65868         * tests/test-locale.c: Revert previous patch related to NULL.
65869         * tests/test-stdio.c: Likewise.
65870         * tests/test-stdlib.c: Likewise.
65871         * tests/test-string.c: Likewise.
65872         * tests/test-unistd.c: Likewise.
65873         * modules/time-tests (Depends-on): Add verify.
65874         * modules/wchar-tests (Depends-on): Likewise.
65875         * tests/test-time.c: Test for NULL compliance.
65876         * tests/test-wchar.c: Likewise.
65877         * modules/locale (Depends-on): Add stddef.
65878         * modules/stdio (Depends-on): Likewise.
65879         * modules/stdlib (Depends-on): Likewise.
65880         * modules/string (Depends-on): Likewise.
65881         * modules/time (Depends-on): Likewise.
65882         * modules/unistd (Depends-on): Likewise.
65883         * modules/wchar (Depends-on): Likewise.
65884         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65885         * lib/stdlib.in.h (includes): Likewise.
65886         * lib/string.in.h (includes): Likewise.
65887         * lib/time.in.h (includes): Likewise.
65888         * lib/unistd.in.h (includes): Likewise.
65889         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65890         replaced.
65891         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65892         * m4/stddef_h.m4: New file.
65893         * modules/stddef: Likewise.
65894         * lib/stddef.in.h: Likewise.
65895         * modules/stddef-tests: Likewise.
65896         * tests/test-stddef.c: Likewise.
65897         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65898         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65899         * doc/posix-headers/locale.texi (locale.h): Likewise.
65900         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65901         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65902         * doc/posix-headers/string.texi (string.h): Likewise.
65903         * doc/posix-headers/time.texi (time.h): Likewise.
65904         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65905         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65907 2009-08-14  Eric Blake  <ebb9@byu.net>
65909         doc: improve git diff of texinfo files
65910         * .gitattributes: Add rule for *.texi files, with hint on how to
65911         use it.
65912         Copied from m4, and based on a report by Bruno Haible.
65914 2009-08-14  Bruno Haible  <bruno@clisp.org>
65916         Disable multithread support by default on Cygwin 1.5.x for real.
65917         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65919 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65921         update-copyright: much ado about intervals
65922         * build-aux/update-copyright: Implement and document
65923         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65924         of copyright year intervals.
65925         Also, document UPDATE_COPYRIGHT_YEAR.
65926         * tests/test-update-copyright.sh: Test it.
65928         update-copyright: convert 2-digit to 4-digit years
65929         * build-aux/update-copyright: Implement and document.
65930         * tests/test-update-copyright.sh: Update.
65932 2009-08-14  Jim Meyering  <meyering@redhat.com>
65934         test-exclude: avoid coreutils "make check" failure
65935         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65936         just as in test-argmatch.c.
65938 2009-08-13  Eric Blake  <ebb9@byu.net>
65940         test-dup2: fix bad assumption
65941         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65942         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65944         test-version-etc: fix CRLF portability issue
65945         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65946         recognize \r.
65947         * tests/test-argp-version-etc-1.sh: Likewise.
65949         getopt: update client modules
65950         * modules/argp (Depends-on): Use getopt-gnu.
65951         * modules/git-merge-changelog (Depends-on): Likewise.
65952         * modules/long-options (Depends-on): Likewise.
65953         * modules/xstrtol (Depends-on): Likewise.
65955 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65957         * tests/test-version-etc.sh: Don't fail on different
65958         project/version.  Don't fail on CRLF differences.  Rewrite to use
65959         multiple -e instead of multiple sed forks, suggested by Eric Blake
65960         <ebb9@byu.net>.
65961         * tests/test-argp-version-etc-1.sh: Likewise.
65963 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65965         * tests/test-version-etc.sh: Don't fail on different
65966         project/version.
65968 2009-08-12  Bruno Haible  <bruno@clisp.org>
65970         Tests for modules 'getopt-posix', 'getopt-gnu'.
65971         * modules/getopt-posix-tests: New file.
65972         * tests/test-getopt.c: New file.
65973         * tests/test-getopt.h: New file.
65974         * tests/test-getopt_long.h: New file.
65976         New modules 'getopt-posix', 'getopt-gnu'.
65977         * modules/getopt-gnu: New file, renamed from modules/getopt.
65978         * modules/getopt-posix: New file.
65979         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65980         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65981         (gl_GETOPT): Remove macro.
65982         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65983         Disable the test against BSD systems that declare optreset. Test
65984         against mingw bug. Test against lack of support of optional arguments
65985         on many platforms.
65986         * doc/glibc-headers/getopt.texi: Update module name and list of
65987         relevant platforms.
65988         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65989         'getopt-gnu' and more portability problems.
65990         * NEWS: Mention the changes.
65992 2009-08-12  Bruno Haible  <bruno@clisp.org>
65994         Ensure that optarg etc. get declared by <unistd.h>.
65995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65996         AC_USE_SYSTEM_EXTENSIONS.
65997         * modules/getopt (Depends-on): Add 'extensions'.
65999 2009-08-12  Bruno Haible  <bruno@clisp.org>
66001         Avoid test link errors.
66002         * modules/pipe-filter-ii-tests (Makefile.am): Define
66003         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
66004         * modules/pipe-filter-gi-tests (Makefile.am): Define
66005         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
66006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66008 2009-08-12  Bruno Haible  <bruno@clisp.org>
66010         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
66011         gl_GETOPT_SUBSTITUTE before.
66012         (gl_GETOPT): Use it.
66013         * m4/argp.m4 (gl_ARGP): Update.
66014         Reported by Sergey Poznyakoff.
66016         * m4/getopt.m4: Reorder macros.
66017         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
66018         (gl_GETOPT_SUBSTITUTE): Remove macro.
66020 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66022         Minor improvement in gitlog-to-changelog
66024         * build-aux/gitlog-to-changelog: New option `--format' makes
66025         output format string configurable.
66027 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66029         Optimize exclude: use hash tables for non-wildcard patterns.
66031         * lib/exclude.c: Include hash.h and mbuiter.h
66032         (struct exclude_pattern, exclude_segment): New data types.
66033         (struct exclude): Rewrite.
66034         (fnmatch_pattern_has_wildcards): New function.
66035         (new_exclude_segment, free_exclude_segment): New functions.
66036         (excluded_file_pattern_p, excluded_file_name_p): New functions.
66037         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
66038         * lib/exclude.h (is_fnmatch_pattern): New prototype.
66039         * modules/exclude: Depend on hash and mbuiter.
66041         * modules/exclude-tests: New file.
66042         * tests/test-exclude.c: New file.
66043         * tests/test-exclude1.sh: New file.
66044         * tests/test-exclude2.sh: New file.
66045         * tests/test-exclude3.sh: New file.
66046         * tests/test-exclude4.sh: New file.
66047         * tests/test-exclude5.sh: New file.
66048         * tests/test-exclude6.sh: New file.
66049         * tests/test-exclude7.sh: New file.
66051 2009-08-12  Bruno Haible  <bruno@clisp.org>
66053         Ensure that getopt() gets declared by <unistd.h>.
66054         * lib/unistd.in.h: Conditionally include getopt.h.
66055         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
66056         Set GNULIB_UNISTD_H_GETOPT.
66057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66058         GNULIB_UNISTD_H_GETOPT.
66059         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
66061 2009-08-12  Bruno Haible  <bruno@clisp.org>
66063         Clarify logic.
66064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
66065         gl_replace_getopt instead of GETOPT_H.
66067 2009-08-12  Bruno Haible  <bruno@clisp.org>
66069         * m4/getopt.m4: Add comments.
66071 2009-08-12  Bruno Haible  <bruno@clisp.org>
66073         Disable multithread support by default on Cygwin 1.5.x.
66074         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
66075         set gl_use_threads=no if not specified otherwise.
66077 2009-08-11  Bruno Haible  <bruno@clisp.org>
66079         Avoid compilation error on NetBSD 5.0.
66080         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
66081         * tests/test-stdio.c: Likewise.
66082         * tests/test-stdlib.c: Likewise.
66083         * tests/test-string.c: Likewise.
66084         * tests/test-unistd.c: Likewise.
66085         Reported by Greg Troxel <gdt@ir.bbn.com>
66086         at <https://savannah.gnu.org/support/?106973>.
66088 2009-08-11  Bruno Haible  <bruno@clisp.org>
66090         * modules/dup2-tests (Depends-on): Remove close.
66092         Undo 2009-07-19 commit.
66093         * modules/acl-tests (Depends-on): Remove close.
66094         * modules/binary-io-tests (Depends-on): Likewise.
66095         * modules/closein-tests (Depends-on): Likewise.
66096         * modules/flock-tests (Depends-on): Likewise.
66097         * modules/fsync-tests (Depends-on): Likewise.
66098         * modules/lseek-tests (Depends-on): Likewise.
66099         * modules/pipe-tests (Depends-on): Likewise.
66100         * modules/posix_spawn-tests (Depends-on): Likewise.
66101         * modules/posix_spawnp-tests (Depends-on): Likewise.
66102         * modules/stat-time-tests (Depends-on): Likewise.
66103         * modules/yesno-tests (Depends-on): Likewise.
66105 2009-08-10  Bruno Haible  <bruno@clisp.org>
66107         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66109 2009-08-10  Bruno Haible  <bruno@clisp.org>
66111         Fix a gcc warning.
66112         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66114 2009-08-10  Bruno Haible  <bruno@clisp.org>
66116         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66117         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66118         not only the first time.
66119         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66120         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66121         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66122         is 1, not only the first time.
66124 2009-08-10  Bruno Haible  <bruno@clisp.org>
66126         Make it possible to use module 'gethostname' without module 'close'.
66127         * lib/unistd.in.h (close): Evoke a link error only if
66128         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66130         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66131         * modules/unistd (Makefile.am): Substitute
66132         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66133         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66134         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66136         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66137         * modules/sys_ioctl (Makefile.am): Substitute
66138         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66139         * modules/socket (configure.ac): On native Windows, set
66140         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66141         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66142         Reported by Sam Steingold <sds@gnu.org>.
66144 2009-08-10  Bruno Haible  <bruno@clisp.org>
66146         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66147         * modules/ioctl (configure.ac): Likewise.
66149 2009-08-10  Bruno Haible  <bruno@clisp.org>
66151         Avoid collision between gnulib wrapper and libintl wrapper.
66152         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66153         already defined in intl/printf.c.
66154         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66155         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66157 2009-08-09  Bruno Haible  <bruno@clisp.org>
66159         Make <sys/select.h> really self-contained, also on Solaris 10.
66160         * lib/sys_select.in.h: Include <string.h>.
66161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66162         Solaris 10 problem.
66163         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66164         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66165         Reported by Jim Meyering.
66167 2009-08-09  Bruno Haible  <bruno@clisp.org>
66169         Avoid warnings from 'aclocal' that are due to a use of macro name
66170         AM_XGETTEXT_OPTION that is not defined in automake.
66171         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66172         automake.
66173         * modules/error (configure.ac): Likewise.
66174         * modules/propername (configure.ac): Likewise.
66175         * modules/vasprintf (configure.ac): Likewise.
66176         * modules/verror (configure.ac): Likewise.
66177         * modules/xprintf (configure.ac): Likewise.
66178         * modules/xvasprintf (configure.ac): Likewise.
66180 2009-08-08  Bruno Haible  <bruno@clisp.org>
66182         Avoid compilation error in C++ mode.
66183         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66184         Reported by Sam Steingold <sds@gnu.org>.
66186 2009-08-08  Bruno Haible  <bruno@clisp.org>
66188         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66189         for the various Unix platforms.
66190         * doc/posix-headers/limits.texi: Update platforms list regarding
66191         HOST_NAME_MAX.
66192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66194 2009-08-07  Jim Meyering  <meyering@redhat.com>
66196         selinux-at: fix typo in a comment
66197         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66198         Spotted by Paolo Bonzini.
66200         selinux-at: remove redundant m4 code, add documentation
66201         * modules/selinux-at (configure.ac): Remove redundant code.
66202         LIB_SELINUX is already set via the dependent module, selinux-h.
66203         (Include): Add quotes around selinux-at.h.
66204         * lib/selinux-at.h: Add documentation.
66205         Reported by Bruno Haible in
66206         http://marc.info/?l=gnulib-bug&m=124958988300749
66208 2009-08-07  Bruno Haible  <bruno@clisp.org>
66210         Avoid link error on MacOS X 10.3 and 10.4.
66211         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66212         on non-ELF systems.
66213         * lib/argp-pv.c (argp_program_version): Likewise.
66214         Reported by Simon Josefsson.
66216 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66218         * tests/test-version-etc.sh: Use $EXEEXT.
66220 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66222         update-copyright: update documentation to point to maint.mk
66223         * build-aux/update-copyright: Here.
66225 2009-08-06  Jim Meyering  <meyering@redhat.com>
66227         maint.mk: support update-copyright-local
66228         * top/maint.mk (update-copyright-local): Define place-holder.
66229         (update-copyright): Depend on $(update-copyright-local).
66231 2009-08-06  Jim Meyering  <meyering@redhat.com>
66233         selinux-at: new module
66234         Initially written for coreutils, this module will soon be
66235         used by findutils, too.
66236         * MODULES.html.sh [Misc]: Add selinux-at.
66237         * lib/selinux-at.h: New file, from coreutils.
66238         * lib/selinux-at.c: Likewise.
66239         * modules/selinux-at: Likewise.
66240         (License): Change from LGPL to GPL, since it depends
66241         on the GPL'd openat module.
66243         doc: update README
66244         * README: Remove references to cogito.
66245         Remove cvs-repo-updating instructions from 2007.
66246         Don't imply that CVS is better if you have limited disk space.
66248 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66250         update-copyright: support C-style comments
66251         * build-aux/update-copyright: Implement and document.
66252         * tests/test-update-copyright.sh: Test.
66254 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66256         update-copyright: support omitted "(C)"
66257         * build-aux/update-copyright: Implement and document.  Also,
66258         allow variable whitespace before "(C)".
66259         * tests/test-update-copyright.sh: Test.
66261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66263         update-copyright: don't trip on non-FSF copyright statements
66264         * build-aux/update-copyright: Fix so that the first correctly
66265         formatted FSF copyright statement is recognized no matter what
66266         appears before it.  Update documentation.
66267         * tests/test-update-copyright.sh: Test that.
66269 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66271         update-copyright: clean up code a little
66272         * build-aux/update-copyright: Append "_re" to the name of any
66273         variable holding a regular expression.
66274         Replace "old" and "new" with "stmt" in variable names.
66275         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66276         handled correctly.
66277         Format code more consistently.
66279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66281         update-copyright-tests: improve portability
66282         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66283         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66285 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66287         update-copyright: support @copyright{} and &copy;
66288         * build-aux/update-copyright: Implement and document.
66289         * tests/test-update-copyright.sh: Test.
66291 2009-08-04  Jim Meyering  <meyering@redhat.com>
66293         update-copyright-tests: correctly test EOL=\r\n handling
66294         * tests/test-update-copyright.sh: Put \r at the end of some lines
66295         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66297         maint.mk: make update-copyright exclusion list more configurable
66298         * top/maint.mk (update-copyright): Default to excluding COPYING,
66299         but allow an override, in case someone does want to update that file.
66301         maint.mk: don't update copyright date in COPYING
66302         * top/maint.mk (update-copyright): Exclude COPYING.
66304         maint.mk: add a copyright-updating rule
66305         * top/maint.mk (update-copyright): New rule.
66306         Derived from coreutils/Makefile.am.
66308         update-copyright: rename some variables
66309         * build-aux/update-copyright: Rename a few variables for clarity.
66310         Tweak syntax.  List Joel E. Denny as coauthor.
66312 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66314         update-copyright: fix bug for 2-digit last year and add tests
66315         * build-aux/update-copyright: Fix bug.
66316         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66317         specified.
66318         * modules/update-copyright-tests: New
66319         * tests/test-update-copyright.sh: New.
66321 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66323         update-copyright: handle leading tabs in line prefix
66324         * build-aux/update-copyright: Count leading tabs as 8 spaces
66325         when computing margin.  This helps with the formatting of
66326         ChangeLogs, for example.
66327         Fix documentation a little.
66329 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66331         update-copyright: support EOL=\r\n
66332         * build-aux/update-copyright: Implement that.
66334 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66336         update-copyright: automatically format copyright statements
66337         * build-aux/update-copyright: Implement that.
66338         Also, be a little more predictable and safer by always failing
66339         when the full copyright format is not perfectly recognized as an
66340         unbroken whole.  Discussed at
66341         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66342         Rewrite documentation.
66344 2009-08-03  Bruno Haible  <bruno@clisp.org>
66346         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66348 2009-08-02  Bruno Haible  <bruno@clisp.org>
66350         Tests for module 'uname'.
66351         * modules/uname-tests: New file.
66352         * tests/test-uname.c: New file.
66354         New module 'uname'.
66355         * lib/uname.c: New file.
66356         * m4/uname.m4: New file.
66357         * modules/uname: New file.
66358         * doc/posix-functions/uname.texi: Mention the new module.
66360 2009-08-02  Bruno Haible  <bruno@clisp.org>
66362         Tests for module 'sys_utsname'.
66363         * modules/sys_utsname-tests: New file.
66364         * tests/test-sys_utsname.c: New file.
66366         New module 'sys_utsname'.
66367         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66368         * m4/sys_utsname_h.m4: New file.
66369         * modules/sys_utsname: New file.
66370         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66372 2009-08-02  Bruno Haible  <bruno@clisp.org>
66374         Implicitly initialize the sockets library.
66375         * lib/gethostname.c: Include sockets.h.
66376         (rpl_gethostname): Invoke gl_sockets_startup.
66377         * lib/socket.c: Include sockets.h.
66378         (rpl_socket): Invoke gl_sockets_startup.
66379         * modules/gethostname (Depends-on): Add sockets.
66380         * modules/socket (Depends-on): Likewise.
66381         * tests/test-poll.c: Don't include sockets.h.
66382         (main): Don't invoke gl_sockets_startup.
66383         * tests/test-select.c: Don't include sockets.h.
66384         (main): Don't invoke gl_sockets_startup.
66386 2009-08-02  Bruno Haible  <bruno@clisp.org>
66388         Allow multiple calls to gl_sockets_startup.
66389         * lib/sockets.c (initialized_sockets_version): New variable.
66390         (gl_sockets_startup): Do nothing if already called for this or a higher
66391         version.
66392         (gl_sockets_cleanup): Reset initialized_sockets_version.
66394 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66396         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66397         different project/version.
66399 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66400             Bruno Haible  <bruno@clisp.org>
66402         Tests for module 'pipe-filter-gi'.
66403         * modules/pipe-filter-gi-tests: New file.
66404         * tests/test-pipe-filter-gi1.sh: New file.
66405         * tests/test-pipe-filter-gi1.c: New file.
66406         * tests/test-pipe-filter-gi2.sh: New file.
66407         * tests/test-pipe-filter-gi2-main.c: New file.
66408         * tests/test-pipe-filter-gi2-child.c: New file.
66410         New module 'pipe-filter-gi'.
66411         * lib/pipe-filter-gi.c: New file.
66412         * modules/pipe-filter-gi: New file.
66414 2009-08-02  Bruno Haible  <bruno@clisp.org>
66415             Paolo Bonzini  <bonzini@gnu.org>
66417         Tests for module 'pipe-filter-ii'.
66418         * modules/pipe-filter-ii-tests: New file.
66419         * tests/test-pipe-filter-ii1.sh: New file.
66420         * tests/test-pipe-filter-ii1.c: New file.
66421         * tests/test-pipe-filter-ii2.sh: New file.
66422         * tests/test-pipe-filter-ii2-main.c: New file.
66423         * tests/test-pipe-filter-ii2-child.c: New file.
66425         New module 'pipe-filter-ii'.
66426         * lib/pipe-filter.h: New file.
66427         * lib/pipe-filter-ii.c: New file.
66428         * lib/pipe-filter-aux.h: New file.
66429         * modules/pipe-filter-ii: New file.
66431 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66433         * lib/gc-libgcrypt.c: Change copyright to FSF.
66434         * lib/gc-gnulib.c: Likewise.
66436 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66438         * lib/gethostname.c: Include limits.h.
66440 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66441             Bruno Haible  <bruno@clisp.org>
66443         Ensure HOST_NAME_MAX as part of the gethostname module.
66444         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66445         define also HOST_NAME_MAX.
66446         * tests/test-gethostname.c: Include <limits.h>.
66447         (main): Check also HOST_NAME_MAX.
66448         * doc/posix-headers/limits.texi: Document the mingw problem.
66450 2009-08-02  Bruno Haible  <bruno@clisp.org>
66452         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66453         Add comments.
66455 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66457         * lib/gethostname.c: Add Windows wrapper.
66458         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66459         * modules/gethostname: Depend on sys_socket & errno, for also
66460         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66461         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66463 2009-07-31  Jim Meyering  <meyering@redhat.com>
66465         getloadavg: fix symbol name in comment
66466         * lib/getloadavg.c: Correct a typo I introduced when adding
66467         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66468         Matt Kraai spotted the problem.
66470 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66472         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66473         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66474         code also if ! defined N_NAME_POINTER.
66475         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66476         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66477         but the n_name member is a 12-byte array.
66479 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66481         update-copyright: generalize comment handling
66482         * build-aux/update-copyright: Handle copyright statements
66483         within more comment styles.
66484         Document usage.
66485         Report any file with an external copyright holder or parse failure.
66487 2009-07-29  Jim Meyering  <meyering@redhat.com>
66489         mktime: correct setting of REPLACE_MKTIME
66490         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66492         update-copyright: new module
66493         * modules/update-copyright: New file.
66494         * build-aux/update-copyright: New file.
66495         * MODULES.html.sh (maint+release support): Add update-copyright.
66497 2009-07-27  Bruno Haible  <bruno@clisp.org>
66499         Fix compilation error when <ctime> is used and mktime is replaced.
66500         * lib/time.in.h (mktime): New declaration.
66501         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66502         REPLACE_MKTIME instead of defining mktime in config.h.
66503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66504         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66505         Reported by Ross McFarland <rwmcfa1@neces.com>.
66507 2009-07-27  Bruno Haible  <bruno@clisp.org>
66509         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66510         Reported by Matt Kraai <mkraai@beckman.com>.
66512 2009-07-25  Jim Meyering  <meyering@redhat.com>
66514         maint.mk: avoid warnings about missing files
66515         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66516         diagnostic when .prev-version does not exist.
66517         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66518         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66519         nonexistent cfg.mk.
66520         Suggestions from Simon Josefsson.
66522 2009-07-25  Bruno Haible  <bruno@clisp.org>
66524         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66525         defined as macros. Needed on QNX 6.4.1.
66526         Reported by Matt Kraai <mkraai@beckman.com>.
66528 2009-07-23  Jim Meyering  <meyering@redhat.com>
66530         maint.mk: invoke "make dist" with a working value of XZ_OPT
66531         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66533 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66535         Make fseeko.c compile on QNX.
66536         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66538 2009-07-22  Peter Simons  <simons@cryp.to>
66540         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66541         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66542         * lib/md4.h: Likewise.
66543         * lib/md5.h: Likewise.
66544         * lib/sha1.h: Likewise.
66545         * lib/sha256.h: Likewise.
66546         * lib/sha512.h: Likewise.
66548         tests-sha1: don't assign literal string to 'char *' variable
66549         * tests/test-sha1.c (main): Declare locals with "const" to match
66550         attributes of the right hand side.
66552 2009-07-21  Eric Blake  <ebb9@byu.net>
66554         dup2: fix more mingw problems
66555         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66556         fd to itself.
66557         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66558         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66559         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66560         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66561         care of mingw bugs.
66563 2009-07-21  Jim Meyering  <meyering@redhat.com>
66565         vc-list-files: avoid failure when /bin/sh is dash
66566         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66567         On some Debian based systems, /bin/sh is a symlink to dash, and running
66568         this command would omit the "/" following each 'tests' prefix:
66569           dash -x build-aux/vc-list-files -C . tests
66570         That is because bash and dash work differently:
66571           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66572           bash ok
66573           dash odd
66575 2009-07-21  Eric Blake  <ebb9@byu.net>
66577         dup2-tests: test previous patch
66578         * modules/dup2-tests: New file.
66579         * tests/test-dup2.c: Likewise.
66580         * tests/test-open.c (main): Avoid unspecified behavior.
66581         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66582         test.
66584         dup2: work around mingw and cygwin 1.5 bug
66585         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66587         * modules/unistd (Makefile.am): Substitute it.
66588         * lib/unistd.in.h (dup2): Declare the replacement.
66589         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66590         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66591         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66592         * modules/execute (Depends-on): Add dup2.
66593         * modules/fseterr (Depends-on): Likewise.
66594         * modules/pipe (Depends-on): Likewise.
66595         * modules/posix_spawn-internal (Depends-on): Likewise.
66597 2009-07-21  Bruno Haible  <bruno@clisp.org>
66599         * modules/.gitattributes: New file.
66601 2009-07-20  Bruno Haible  <bruno@clisp.org>
66603         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66604         (main): Use it.
66606 2009-07-20  Eric Blake  <ebb9@byu.net>
66608         test-pipe: make a bit more robust.
66609         * tests/test-pipe.c (myerr): Allow error messages regardless of
66610         what we do to stderr.
66611         (test_pipe): Rearrange to avoid deadlock.
66612         (child_main): Try a larger read, to ensure we avoided deadlock.
66613         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66614         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66615         if misused.
66617 2009-07-19  Jim Meyering  <meyering@redhat.com>
66619         fts: avoid false-positive cycle-detection
66620         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66621         for each new command line argument.
66623 2009-07-19  Bruno Haible  <bruno@clisp.org>
66625         Fix build error on mingw with the modules sys_select and unistd.
66626         * modules/acl-tests (Depends-on): Add close.
66627         * modules/binary-io-tests (Depends-on): Likewise.
66628         * modules/closein-tests (Depends-on): Likewise.
66629         * modules/flock-tests (Depends-on): Likewise.
66630         * modules/fsync-tests (Depends-on): Likewise.
66631         * modules/lseek-tests (Depends-on): Likewise.
66632         * modules/pipe-tests (Depends-on): Likewise.
66633         * modules/posix_spawn-tests (Depends-on): Likewise.
66634         * modules/posix_spawnp-tests (Depends-on): Likewise.
66635         * modules/stat-time-tests (Depends-on): Likewise.
66636         * modules/yesno-tests (Depends-on): Likewise.
66638 2009-07-19  Bruno Haible  <bruno@clisp.org>
66640         Unify conditionals.
66641         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66642         macros, not at the compiler macros.
66643         * lib/pipe.c: Likewise.
66644         * lib/execute.c: Likewise.
66645         * lib/spawni.c: Likewise.
66647 2009-07-19  Bruno Haible  <bruno@clisp.org>
66649         Fix handling of closed stdin/stdout/stderr on mingw.
66650         * lib/w32spawn.h: Include unistd.h.
66651         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66652         file descriptor with O_NOINHERIT flag.
66653         (fd_safer_noinherit): New function, based on fd-safer.c.
66654         (dup_safer_noinherit): New function, based on dup-safer.c.
66655         (undup_safer_noinherit): New function.
66656         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66657         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66658         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66659         instead of fd_safer.
66660         * tests/test-pipe.c: Include <windows.h>.
66661         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66662         result.
66664         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66665         from main.
66666         (test_pipe): Pass an extra argument for disambiguation.
66667         (main): Invoke parent_main or child_main.
66669         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66670         consistently.
66672 2009-07-18  Eric Blake  <ebb9@byu.net>
66674         test-pipe: fix mingw build
66675         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66677 2009-07-18  Bruno Haible  <bruno@clisp.org>
66679         * modules/pipe-tests (Makefile.am): Fix typo.
66681 2009-07-18  Eric Blake  <ebb9@byu.net>
66683         error: fix mingw build
66684         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66685         Reported by Bruno Haible.
66687         error: avoid undefined use of stdout
66688         * lib/error.c (error, error_at_line): Check that fd 1 is open
66689         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66690         is handling faults and the close_stdout module wants to report the
66691         detection of closed stdout as an error.
66693 2009-07-17  Eric Blake  <ebb9@byu.net>
66695         pipe: be robust in face of closed fds
66696         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66697         should cause child to misbehave.
66698         * modules/pipe-tests: New module.
66699         * tests/test-pipe.c: New file.
66700         * tests/test-pipe.sh: New file.
66701         Reported by Akim Demaille.
66703 2009-07-14  Bruno Haible  <bruno@clisp.org>
66705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66706         Reported by anonymous kc.
66708 2009-07-07  Jim Meyering  <meyering@redhat.com>
66710         maint.mk: don't look for translatable strings in *.m4 or *.mk
66711         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66712         when searching for translatable strings.
66714 2009-07-05  Jim Meyering  <meyering@redhat.com>
66716         remove superfluous parentheses in STREQ definition
66717         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66718         * lib/getugroups.c (STREQ): Likewise.
66719         * lib/fnmatch.c (STREQ): Likewise.
66720         Spotted by Bruno Haible.
66722 2009-07-04  Jim Meyering  <meyering@redhat.com>
66724         argv-iter: new module
66725         * MODULES.html.sh: Add argv-iter.
66726         * lib/argv-iter.c, lib/argv-iter.h: New files.
66727         * modules/argv-iter: New file.
66728         * modules/argv-iter-tests: New file.
66729         * tests/test-argv-iter.c: Test it.
66731 2009-07-04  Bruno Haible  <bruno@clisp.org>
66733         Fix assertion.
66734         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66735         contains more exact copies of a given entry than file2, leave the extra
66736         copies unpaired rather than aborting.
66737         Reported by Eric Blake.
66739 2009-07-02  Bruno Haible  <bruno@clisp.org>
66741         Speedup git-merge-changelog for git cherry-pick.
66742         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66743         (entries_mapping_get): New function, extracted from compute_mapping.
66744         (entries_mapping_reverse_get): New function.
66745         (compute_mapping): Add a 'full' argument. Return the result in a
66746         'struct entries_mapping'.
66747         (main): Update. Access the mappings through entries_mapping_get.
66748         Reported by Eric Blake.
66750 2009-07-02  Bruno Haible  <bruno@clisp.org>
66752         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66753         best_i.
66755 2009-07-02  Bruno Haible  <bruno@clisp.org>
66757         Speed up approximate search for matching ChangeLog entries.
66758         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66759         argument. Call fstrcmp_bounded instead of fstrcmp.
66760         (compute_mapping, try_split_merged_entry, main): Update callers.
66762 2009-07-02  Bruno Haible  <bruno@clisp.org>
66764         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66766 2009-06-30  Bruno Haible  <bruno@clisp.org>
66768         Reduce the number of uc_is_cased calls.
66769         * lib/unicase.h (casing_suffix_context_t): Add
66770         'first_char_except_ignorable' field.
66771         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66772         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66773         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66774         Update initializer.
66775         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66776         case-ignorable characters.
66777         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66778         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66779         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66780         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66781         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66783 2009-06-30  Bruno Haible  <bruno@clisp.org>
66785         Tests for module 'unicase/ignorable'.
66786         * modules/unicase/ignorable-tests: New file.
66787         * tests/unicase/test-ignorable.c: New file, generated by
66788         gen-uni-tables.
66790         Tests for module 'unicase/cased'.
66791         * modules/unicase/cased-tests: New file.
66792         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66793         * tests/unicase/test-predicate-part1.h: New file, derived from
66794         tests/unictype/test-predicate-part1.h.
66795         * tests/unicase/test-predicate-part2.h: New file, same as
66796         tests/unictype/test-predicate-part2.h.
66798         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66799         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66800         (output_casing_properties): New function.
66801         (main): Call it.
66802         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66803         * lib/unicase/cased.c: Include unictype/bitmap.h.
66804         (uc_is_cased): Define through a bitmap lookup.
66805         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66806         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66807         (uc_is_case_ignorable): Define through a bitmap lookup.
66808         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66809         lib/unictype/bitmap.h.
66810         (Depends-on): Add inline. Clean up.
66811         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66812         lib/unictype/bitmap.h.
66813         (Depends-on): Add inline. Clean up.
66814         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66815         recognition.
66816         * tests/unicase/test-u16-tolower.c (main): Likewise.
66817         * tests/unicase/test-u32-tolower.c (main): Likewise.
66819 2009-06-30  Bruno Haible  <bruno@clisp.org>
66821         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66822         * lib/unicase/u16-casemap.c: Likewise.
66823         * lib/unicase/u32-casemap.c: Likewise.
66825 2009-06-29  Bruno Haible  <bruno@clisp.org>
66827         Define u32_casefold as a wrapper around u32_ct_casefold.
66828         * lib/unicase/u32-casefold.c: Update.
66829         * modules/unicase/u32-casefold (Depends-on): Add
66830         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66831         unicase/empty-suffix-context. Clean up.
66833         Define u16_casefold as a wrapper around u16_ct_casefold.
66834         * lib/unicase/u16-casefold.c: Update.
66835         * modules/unicase/u16-casefold (Depends-on): Add
66836         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66837         unicase/empty-suffix-context. Clean up.
66839         Define u8_casefold as a wrapper around u8_ct_casefold.
66840         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66841         * lib/unicase/u8-casefold.c: Update.
66842         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66843         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66845         Define u32_totitle as a wrapper around u32_ct_totitle.
66846         * lib/unicase/u32-totitle.c: Update.
66847         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66848         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66850         Define u16_totitle as a wrapper around u16_ct_totitle.
66851         * lib/unicase/u16-totitle.c: Update.
66852         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66853         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66855         Define u8_totitle as a wrapper around u8_ct_totitle.
66856         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66857         functions.
66858         (FUNC): Delegate to U_CT_TOTITLE.
66859         * lib/unicase/u8-totitle.c: Update.
66860         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66861         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66863         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66864         invocation.
66865         * modules/unicase/u32-tolower (Depends-on): Add
66866         unicase/empty-prefix-context, unicase/empty-suffix-context.
66868         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66869         invocation.
66870         * modules/unicase/u16-tolower (Depends-on): Add
66871         unicase/empty-prefix-context, unicase/empty-suffix-context.
66873         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66874         * modules/unicase/u8-tolower (Depends-on): Add
66875         unicase/empty-prefix-context, unicase/empty-suffix-context.
66877         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66878         invocation.
66879         * modules/unicase/u32-toupper (Depends-on): Add
66880         unicase/empty-prefix-context, unicase/empty-suffix-context.
66882         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66883         invocation.
66884         * modules/unicase/u16-toupper (Depends-on): Add
66885         unicase/empty-prefix-context, unicase/empty-suffix-context.
66887         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66888         * modules/unicase/u8-toupper (Depends-on): Add
66889         unicase/empty-prefix-context, unicase/empty-suffix-context.
66891         New module 'unicase/u32-ct-casefold'.
66892         * lib/unicase/u32-ct-casefold.c: New file.
66893         * modules/unicase/u32-ct-casefold: New file.
66895         New module 'unicase/u16-ct-casefold'.
66896         * lib/unicase/u16-ct-casefold.c: New file.
66897         * modules/unicase/u16-ct-casefold: New file.
66899         New module 'unicase/u8-ct-casefold'.
66900         * lib/unicase/u8-ct-casefold.c: New file.
66901         * lib/unicase/u-ct-casefold.h: New file, derived from
66902         lib/unicase/u-casefold.h.
66903         * modules/unicase/u8-ct-casefold: New file.
66905         New module 'unicase/u32-ct-totitle'.
66906         * lib/unicase/u32-ct-totitle.c: New file.
66907         * modules/unicase/u32-ct-totitle: New file.
66909         New module 'unicase/u16-ct-totitle'.
66910         * lib/unicase/u16-ct-totitle.c: New file.
66911         * modules/unicase/u16-ct-totitle: New file.
66913         New module 'unicase/u8-ct-totitle'.
66914         * lib/unicase/u8-ct-totitle.c: New file.
66915         * lib/unicase/u-ct-totitle.h: New file, derived from
66916         lib/unicase/u-totitle.h.
66917         * modules/unicase/u8-ct-totitle: New file.
66919         New module 'unicase/u32-ct-tolower'.
66920         * lib/unicase/u32-ct-tolower.c: New file.
66921         * modules/unicase/u32-ct-tolower: New file.
66923         New module 'unicase/u16-ct-tolower'.
66924         * lib/unicase/u16-ct-tolower.c: New file.
66925         * modules/unicase/u16-ct-tolower: New file.
66927         New module 'unicase/u8-ct-tolower'.
66928         * lib/unicase/u8-ct-tolower.c: New file.
66929         * modules/unicase/u8-ct-tolower: New file.
66931         New module 'unicase/u32-ct-toupper'.
66932         * lib/unicase/u32-ct-toupper.c: New file.
66933         * modules/unicase/u32-ct-toupper: New file.
66935         New module 'unicase/u16-ct-toupper'.
66936         * lib/unicase/u16-ct-toupper.c: New file.
66937         * modules/unicase/u16-ct-toupper: New file.
66939         New module 'unicase/u8-ct-toupper'.
66940         * lib/unicase/u8-ct-toupper.c: New file.
66941         * modules/unicase/u8-ct-toupper: New file.
66943         Add context arguments to u*_casemap functions.
66944         * lib/unicase/unicasemap.h: Include unicase.h.
66945         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66946         suffix_context arguments.
66947         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66948         functions.
66949         (FUNC): Add prefix_context and suffix_context arguments. Use
66950         uc_is_cased and uc_is_case_ignorable.
66951         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66952         * lib/unicase/u16-casemap.c: Likewise.
66953         * lib/unicase/u32-casemap.c: Likewise.
66954         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66955         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66956         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66957         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66958         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66959         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66961         New module 'unicase/u32-suffix-context'.
66962         * lib/unicase/u32-suffix-context.c: New file.
66963         * modules/unicase/u32-suffix-context: New file.
66965         New module 'unicase/u16-suffix-context'.
66966         * lib/unicase/u16-suffix-context.c: New file.
66967         * modules/unicase/u16-suffix-context: New file.
66969         New module 'unicase/u8-suffix-context'.
66970         * lib/unicase/u8-suffix-context.c: New file.
66971         * lib/unicase/u-suffix-context.h: New file.
66972         * modules/unicase/u8-suffix-context: New file.
66974         New module 'unicase/empty-suffix-context'.
66975         * lib/unicase/empty-suffix-context.c: New file.
66976         * modules/unicase/empty-suffix-context: New file.
66978         New module 'unicase/u32-prefix-context'.
66979         * lib/unicase/u32-prefix-context.c: New file.
66980         * modules/unicase/u32-prefix-context: New file.
66982         New module 'unicase/u16-prefix-context'.
66983         * lib/unicase/u16-prefix-context.c: New file.
66984         * modules/unicase/u16-prefix-context: New file.
66986         New module 'unicase/u8-prefix-context'.
66987         * lib/unicase/u8-prefix-context.c: New file.
66988         * lib/unicase/u-prefix-context.h: New file.
66989         * lib/unicase/context.h: New file.
66990         * modules/unicase/u8-prefix-context: New file.
66992         New module 'unicase/empty-prefix-context'.
66993         * lib/unicase/empty-prefix-context.c: New file.
66994         * modules/unicase/empty-prefix-context: New file.
66996         New module 'unicase/ignorable'.
66997         * lib/unicase/ignorable.c: New file.
66998         * modules/unicase/ignorable: New file.
67000         New module 'unicase/cased'.
67001         * lib/unicase/caseprop.h: New file.
67002         * lib/unicase/cased.c: New file.
67003         * modules/unicase/cased: New file.
67005         New functions for case mapping of substrings.
67006         * lib/unicase.h (casing_prefix_context_t): New type.
67007         (unicase_empty_prefix_context): New variable.
67008         (u8_casing_prefix_context, u16_casing_prefix_context,
67009         u32_casing_prefix_context, u8_casing_prefixes_context,
67010         u16_casing_prefixes_context, u32_casing_prefixes_context): New
67011         declarations.
67012         (casing_suffix_context_t): New type.
67013         (unicase_empty_suffix_context): New variable.
67014         (u8_casing_suffix_context, u16_casing_suffix_context,
67015         u32_casing_suffix_context, u8_casing_suffixes_context,
67016         u16_casing_suffixes_context, u32_casing_suffixes_context,
67017         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
67018         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
67019         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
67020         declarations.
67022 2009-06-28  Jim Meyering  <meyering@redhat.com>
67024         boostrap: indent only with spaces
67025         * build-aux/bootstrap: Indent only with spaces, never TABs.
67027         bootstrap: split long lines
67028         * build-aux/bootstrap: Keep line length < 80.
67030         bootstrap: sync from coreutils
67031         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
67032         just as autoreconf does.  Verify a list of prerequisite
67033         package-name,version-number pairs if defined in bootstrap.conf.
67034         Refer to README-prereq, if prerequisites are not satisfied.
67036 2009-06-27  Eric Blake  <ebb9@byu.net>
67038         tests: add test for bogus NULL definition
67039         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
67040         * tests/test-stdlib.c: Likewise.
67041         * tests/test-string.c: Likewise.
67042         * tests/test-locale.c: Likewise.
67043         * tests/test-unistd.c: Likewise.
67044         * modules/stdio-tests (Depends-on): Add verify.
67045         * modules/stdlib-tests (Depends-on): Likewise.
67046         * modules/string-tests (Depends-on): Likewise.
67047         * modules/locale-tests (Depends-on): Likewise.
67048         * modules/unistd-tests (Depends-on): Likewise.
67050 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
67052         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
67053         self-explaining comment.
67054         * m4/selinux-selinux-h: Update serial.
67055         (gl_LIBSELINUX): New macro, adding a warning for missing development
67056         packages to code extracted from...
67057         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
67058         Add warning for missing development packages here, too.
67060 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
67062         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
67064 2009-06-25  Eric Blake  <ebb9@byu.net>
67066         version-etc: fix regression
67067         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
67068         gcc.
67069         (version_etc): Use it, to catch bugs with trailing NULL.
67070         * lib/version-etc.c (version_etc_arn): Delete unused argument.
67071         (version_etc_va): Fix logic bug.
67072         * modules/version-etc-tests: Add test.
67073         * tests/test-version-etc.c: New file.
67074         * tests/test-version-etc.sh: Likewise.
67076 2009-06-25  Sam Steingold  <sds@gnu.org>
67078         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
67079         mbtowc declaration.
67081 2009-06-25  Eric Blake  <ebb9@byu.net>
67083         fpurge: migrate into <stdio.h>
67084         * lib/fpurge.h: Delete...
67085         * lib/stdio.in.h (fpurge): ...and declare here, instead.
67086         * lib/fpurge.c (fpurge): Change declaring header.
67087         * modules/fpurge (Files): Drop deleted file.
67088         (Depends-on): Add stdio.
67089         (configure.ac): Set witness.
67090         * modules/stdio (Makefile.am): Support fpurge macros.
67091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67092         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
67093         * lib/fflush.c: Update client.
67094         * tests/test-fpurge.c: Likewise.
67095         * NEWS: Mention the change.
67097 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67099         * lib/argp-version-etc.c (program_authors): Add const
67100         qualifier.
67101         * lib/version-etc.c: Fix typos in the comments.
67102         * modules/argp-version-etc: Depends on version-etc.
67104 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67106         argp-version-etc: new module.
67108         * lib/argp-version-etc.c: New file.
67109         * lib/argp-version-etc.h: New file.
67110         * modules/argp-version-etc: New file.
67111         * modules/argp-version-etc-tests: New file.
67112         * tests/test-argp-version-etc.c: New test.
67113         * tests/test-argp-version-etc-1.sh: New test.
67115 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67117         Provide additional interfaces and documentation for version-etc
67118         module.
67120         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67121         interfaces.
67122         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67123         prototypes.
67125 2009-06-24  Bruno Haible  <bruno@clisp.org>
67127         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67128         HAVE_LIB${NAME} macro.
67129         Reported by Sam Steingold <sds@gnu.org>.
67131 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67133         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67134         needed.
67136 2009-06-21  Bruno Haible  <bruno@clisp.org>
67138         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67139         work.
67140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67141         together with LIB${NAME}, LTLIB${NAME}.
67142         Reported by Sam Steingold <sds@gnu.org>.
67144 2009-06-20  Jim Meyering  <meyering@redhat.com>
67146         tests: make sc_require_test_exit_idiom more generic
67147         * top/maint.mk (Exit_witness_file): New overridable variable.
67148         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67149         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67151 2009-06-19  Jim Meyering  <meyering@redhat.com>
67153         hash: reverse order of src/dst parameters in an internal interface
67154         * lib/hash.c (transfer_entries): Reverse order of parameters to
67155         put DST before SRC.  Adjust callers.
67157         tests: test-hash: avoid wholesale duplication
67158         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67159         Instead, use a loop and add a single conditional.
67161         tests: test-hash: allow seed selection via a command line argument
67162         * tests/test-hash.c (get_seed): New function.
67163         (main): Use it.
67165 2009-06-19  Eric Blake  <ebb9@byu.net>
67167         hash: avoid memory leak on allocation failure
67168         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67169         failure.  Factor repeated algorithm...
67170         (transfer_entries): ...into new helper routine.
67171         (hash_delete): React to hash_rehash return value.
67173         hash: reduce memory pressure in hash_rehash no-op case
67174         * lib/hash.c (next_prime): Avoid overflow.
67175         (hash_initialize): Factor bucket size computation...
67176         (compute_bucket_size): ...into new helper function.
67177         (hash_rehash): Use new function and open coding to reduce memory
67178         pressure, and avoid a memory leak in USE_OBSTACK code.
67179         Reported by Jim Meyering.
67181 2009-06-18  Eric Blake  <ebb9@byu.net>
67183         hash: make rotation more obvious
67184         * modules/hash (Depends-on): Add bitrotate and stdint.
67185         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67186         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67187         (SIZE_MAX): Rely on headers for definition.
67188         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67189         (raw_hasher): Use rotr_sz.
67190         Suggested by Jim Meyering.
67192         hash: fix memory leak in last patch
67193         * lib/hash.c (hash_rehash): Avoid memory leak.
67195         hash: avoid no-op rehashing
67196         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67198         hash: provide default callback functions
67199         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67200         (hash_initialize): Use them as defaults.
67201         * tests/test-hash.c (main): Test this.
67203         hash: minor optimization
67204         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67205         when possible.
67206         (hash_initialize): Document this promise.
67207         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67208         * tests/test-hash.c (hash_compare_strings): Test this.
67210 2009-06-18  Bruno Haible  <bruno@clisp.org>
67212         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67213         going to be replaced anyway.
67215 2009-06-18  Bruno Haible  <bruno@clisp.org>
67217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67218         in one place.
67219         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67220         be replaced anyway.
67222 2009-06-18  Eric Blake  <ebb9@byu.net>
67224         hash: check for resize before insertion
67225         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67226         threshold before insertion, so that a pathological hash_rehash
67227         that fills every bucket can still trigger another rehash.
67229 2009-06-18  Jim Meyering  <meyering@redhat.com>
67231         hash-tests: add a loop around the small tests
67232         * tests/test-hash.c (main): Repeat small tests with selected
67233         small initial table sizes.
67235 2009-06-17  Eric Blake  <ebb9@byu.net>
67237         hash: minor cleanups
67238         * lib/hash.h (hash_entry): Make opaque, by moving...
67239         * lib/hash.c (hash_entry): ...here.
67240         (hash_insert): Clarify restrictions on what can be inserted.
67241         (hash_get_next): Clarify when it is safe to remove an element
67242         during traversal.
67243         (check_tuning): Skip verification when tuning is known safe.
67244         (hash_initialize): Clarify restrictions on tuning.
67246 2009-06-17  Jim Meyering  <jim@meyering.net>
67247         and Eric Blake  <ebb9@byu.net>
67249         hash-tests: new module
67250         * modules/hash-tests: New file.
67251         * tests/test-hash.c: New file.
67253 2009-06-17  Eric Blake  <ebb9@byu.net>
67255         strstr-simple: document new module
67256         * MODULES.html.sh: Document new module.
67258         strstr, strcasestr: replace on platforms with broken memchr
67259         * modules/strstr: Split into...
67260         * modules/strstr-simple: ...new module that does not care about
67261         performance, but does care about glibc bug.
67262         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67263         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67264         if platform memchr is broken, per Debian bug 521737.
67265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67266         memchr.
67267         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67268         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67269         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67270         * modules/mountlist (Depends-on): Add strstr-simple.
67271         * modules/gen-uni-tables (Depends-on): Likewise.
67272         * modules/argz (Depends-on): Add strstr.
67274 2009-06-17  Bruno Haible  <bruno@clisp.org>
67276         * modules/posix_spawn-internal (Depends-on): Add errno.
67278 2009-06-17  Bruno Haible  <bruno@clisp.org>
67280         Define missing ESTALE on Interix 3.5.
67281         * lib/errno.in.h (ESTALE): Assign a value if missing.
67282         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67284         missing.
67285         * doc/posix-headers/errno.texi: Mention the Interix bug.
67286         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67288 2009-06-15  Eric Blake  <ebb9@byu.net>
67290         memchr, memchr2: add valgrind exception
67291         * lib/memchr.valgrind: New file.
67292         * lib/memchr2.valgrind: New file.
67293         * modules/memchr (Files): Distribute valgrind file.
67294         * modules/memchr2 (Files): Likewise.
67296         docs: memchr is no longer obsolete
67297         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67298         * lib/string.in.h (memchr): Simplify logic.
67300 2009-06-14  Jim Meyering  <meyering@redhat.com>
67302         link-follow: fix the "checking..." message to not mention trailing slash
67303         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67304         never considered trailing slashes.
67306 2009-06-14  Bruno Haible  <bruno@clisp.org>
67308         * m4/memchr.m4: Mention also the bug on IA-64.
67309         * doc/posix-functions/memchr.texi: Likewise.
67311 2009-06-12  Eric Blake  <ebb9@byu.net>
67313         memchr: detect broken x86_64 and alpha implementations
67314         * modules/memchr-tests (Depends-on): Move mmap detection...
67315         * modules/memchr (Depends-on): ...here.
67316         (configure.ac): Set indicator.
67317         * lib/string.in.h (memchr): Declare replacement.
67318         * modules/string (Makefile.am): Trigger replacement.
67319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67320         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67321         bugs.
67322         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67323         * modules/getpagesize (License): Relax license.
67325 2009-06-11  Bruno Haible  <bruno@clisp.org>
67327         * lib/idpriv.h: Add more references.
67329 2009-06-08  Bruno Haible  <bruno@clisp.org>
67331         Tests for module 'idpriv-droptemp'.
67332         * modules/idpriv-droptemp-tests: New file.
67333         * tests/test-idpriv-droptemp.sh: New file.
67334         * tests/test-idpriv-droptemp.su.sh: New file.
67335         * tests/test-idpriv-droptemp.c: New file.
67337         New module 'idpriv-droptemp'.
67338         * lib/idpriv-droptemp.c: New file.
67339         * modules/idpriv-droptemp: New file.
67341 2009-06-08  Bruno Haible  <bruno@clisp.org>
67343         Tests for module 'idpriv-drop'.
67344         * modules/idpriv-drop-tests: New file.
67345         * tests/test-idpriv-drop.sh: New file.
67346         * tests/test-idpriv-drop.su.sh: New file.
67347         * tests/test-idpriv-drop.c: New file.
67349         New module 'idpriv-drop'.
67350         * lib/idpriv.h: New file.
67351         * lib-idpriv-drop.c: New file.
67352         * m4/idpriv.m4: New file.
67353         * modules/idpriv-drop: New file.
67355 2009-06-08  Bruno Haible  <bruno@clisp.org>
67357         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67358         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67359         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67360         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67361         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67362         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67363         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67365 2009-06-08  Eric Blake  <ebb9@byu.net>
67367         test-strstr: use memory fence, when possible
67368         * tests/test-strstr.c (main): Use memory fence, in order to be
67369         more likely to trigger Debian bug 521737.
67370         * modules/strstr-tests (Files): Pull in additional files.
67372         memchr: no longer obsolete, for wider field testing
67373         * modules/memchr (Status, Notice): Delete, this module is no
67374         longer obsolete.
67375         * modules/vasnprintf (Depends-on): Add memchr.
67377 2009-06-07  Jim Meyering  <meyering@redhat.com>
67379         hash: declare some functions with the warn_unused_result attribute
67380         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67382 2009-06-07  Bruno Haible  <bruno@clisp.org>
67384         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67385         Reported by Eric Blake.
67387 2009-06-06  Eric Blake  <ebb9@byu.net>
67389         test-alignof: fix typo with long double
67390         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67391         compiler error.
67393 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67395         Escape non-texinfo { and }s.
67396         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67397         markup error.
67399 2009-06-04  Jim Meyering  <meyering@redhat.com>
67401         gitlog-to-changelog: don't infloop on an empty commit log
67402         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67403         Reported by Boris Petersen <transacid@centerim.org>.
67405 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67407         version-etc: extend for packagers
67408         Add three new configure options, intended for packagers:
67409           --with-packager="packager name"
67410           --with-packager-version="packager-specific version"
67411           --with-packager-bug-reports="packager bug reporting"
67412         An example with coreutils:
67413           $ ./configure \
67414             --with-packager=Gentoo \
67415             --with-packager-bug-report=http://bugs.gentoo.org/ \
67416             --with-packager-version="patchset 1.6"
67417           $ ./src/ls --version | head -n2
67418           ls (GNU coreutils) 7.1-dirty
67419           Packaged by Gentoo (patchset 1.6)
67420         Note that the bug reporting info via --help doesn't show up because
67421         coreutils uses its own custom emit_bug_reporting_address() implementation
67422         in src/system.h.  If it didn't, it'd look like:
67423           $ ./src/ls --help | tail -n4
67424           Report bugs to <bug-coreutils@gnu.org>.
67425           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67426           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67427           General help using GNU software: <http://www.gnu.org/gethelp/>.
67428         * lib/version-etc.c: Print new information, if provided.
67429         * m4/version-etc.m4: New file.
67430         * modules/version-etc (Files): Add m4/version-etc.m4.
67431         (configure.ac): Add gl_VERSION_ETC.
67433 2009-05-31  Bruno Haible  <bruno@clisp.org>
67435         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67436         and 'int64_t'.
67437         * modules/alignof-tests (Dependencies): Add stdint.
67438         Reported by Eric Blake.
67440 2009-05-31  Bruno Haible  <bruno@clisp.org>
67442         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67443         restriction due to compiler bugs.
67444         Reported by Eric Blake.
67446 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67447             Bruno Haible  <bruno@clisp.org>
67449         Fix test-alignof failure.
67450         * lib/alignof.h (alignof_slot): New macro.
67451         (alignof_type): New macro, with the same semantics as the previous
67452         'alignof'.
67453         (alignof): Alias to alignof_slot.
67454         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67455         check that the results are usable as constant expressions.
67457 2009-05-31  Bruno Haible  <bruno@clisp.org>
67459         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67460         * tests/test-memchr.c (main): Check that memchr does not read past the
67461         first occurrence of the byte.
67462         * tests/test-strstr.c (main): Update comment.
67463         Suggested by Eric Blake.
67465 2009-05-30  Bruno Haible  <bruno@clisp.org>
67467         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67468         detail how to use dumpbin.
67469         Reported by David Byron <dbyron@dbyron.com>.
67471 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67473         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67475 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67477         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67479 2009-05-28  Bruno Haible  <bruno@clisp.org>
67481         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67482         build-aux/ files.
67484 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67486         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67488 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67490         * gnulib-tool (sed_transform_main_lib_file)
67491         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67492         regexps.
67494 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67496         * tests/test-strstr.c: Add another self-test.
67497         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67498         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67500 2009-05-23  Bruno Haible  <bruno@clisp.org>
67502         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67503         change.
67505 2009-05-21  Bruno Haible  <bruno@clisp.org>
67507         Simplify use of mode_t varargs.
67508         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67509         uses 'mode_t' or 'int'.
67510         * lib/openat.c (openat): Likewise.
67511         * lib/open-safer.c (open_safer): Likewise.
67512         * m4/mode_t.m4: New file.
67513         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67514         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67515         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67516         * modules/open (Files): Add m4/mode_t.m4.
67517         * modules/openat (Files): Likewise.
67518         * modules/fcntl-safer (Files): Likewise.
67519         Suggested by Eric Blake.
67521 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67523         * doc/glibc-functions/fallocate.texi: New file.
67524         * doc/gnulib.texi: Include it.
67526 2009-05-21  Eric Blake  <ebb9@byu.net>
67527             Bruno Haible  <bruno@clisp.org>
67529         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67530         invocations.
67531         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67533 2009-05-21  Eric Blake  <ebb9@byu.net>
67534             Bruno Haible  <bruno@clisp.org>
67536         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67537         include_next. Fix of 2008-11-20 commit.
67538         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67539         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67540         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67541         NEXT_MATH_H.
67542         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67543         instead of NEXT_MATH_H.
67545 2009-05-21  Bruno Haible  <bruno@clisp.org>
67547         Avoid redefinition warnings for SIZE_MAX.
67548         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67549         Reported by Simon Josefsson.
67551 2009-05-21  Bruno Haible  <bruno@clisp.org>
67553         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67554         AC_CACHE_VAL.
67556 2009-05-20  Bruno Haible  <bruno@clisp.org>
67558         Make zeroptr.h work on mingw.
67559         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67560         mprotect.
67561         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67562         * modules/memchr2-tests (configure.ac): Likewise.
67563         * modules/memcmp-tests (configure.ac): Likewise.
67564         * modules/memmem-tests (configure.ac): Likewise.
67565         * modules/memrchr-tests (configure.ac): Likewise.
67566         Reported by Simon Josefsson.
67568 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67570         * tests/test-glob.c: Include string.h for strcmp prototype.
67572 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67574         * modules/getdelim (Depends-on): Add explicit stdint, although it
67575         was implicitly already pulled in via realloc-posix.
67576         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67578 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67580         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67581         G. Christensen" <tgc@jupiterrise.com>.
67582         * m4/sys_socket_h.m4: Check for sa_family_t.
67583         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67584         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67585         * tests/test-sys_socket.c: Check that sa_family_t works.
67587 2009-05-18  Eric Blake  <ebb9@byu.net>
67589         maint.mk: allow gnulib_dir in VPATH build
67590         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67592 2009-05-15  Jim Meyering  <meyering@redhat.com>
67594         maint.mk: Give gnulib_dir a default definition.
67595         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67596         Thus, most packages no longer need to specify this variable in cfg.mk
67598 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67600         rename.m4: fix typos that would make non-mingw cross-configure fail
67601         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67603 2009-05-13  Eric Blake  <ebb9@byu.net>
67605         mmap-anon: avoid out-of-order autoconf expansion
67606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67607         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67608         * modules/memchr-tests (Depends-on): Add extensions.
67609         * modules/memchr2-tests (Depends-on): Add extensions.
67610         * modules/memcmp-tests (Depends-on): Add extensions.
67611         * modules/memmem-tests (Depends-on): Add extensions.
67612         * modules/memrchr-tests (Depends-on): Add extensions.
67614 2009-05-13  Bruno Haible  <bruno@clisp.org>
67616         Make some tests ISO C 99 compliant.
67617         * tests/zerosize-ptr.h: New file.
67618         * tests/test-memchr.c: Include zerosize-ptr.h.
67619         (main): Use a zero-size object pointer instead of NULL.
67620         * tests/test-memchr2.c: Include zerosize-ptr.h.
67621         (main): Use a zero-size object pointer instead of NULL.
67622         * tests/test-memcmp.c: Include zerosize-ptr.h.
67623         (main): Use a zero-size object pointer instead of NULL.
67624         * tests/test-memmem.c: Include zerosize-ptr.h.
67625         (main): Use a zero-size object pointer instead of NULL.
67626         * tests/test-memrchr.c: Include zerosize-ptr.h.
67627         (main): Use a zero-size object pointer instead of NULL.
67628         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67629         m4/mmap-anon.m4.
67630         (Depends-on): Add getpagesize.
67631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67632         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67633         m4/mmap-anon.m4.
67634         (Depends-on): Add getpagesize.
67635         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67636         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67637         m4/mmap-anon.m4.
67638         (Depends-on): Add getpagesize.
67639         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67640         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67641         m4/mmap-anon.m4.
67642         (Depends-on): Add getpagesize.
67643         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67644         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67645         m4/mmap-anon.m4.
67646         (Depends-on): Add getpagesize.
67647         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67649 2009-05-12  Bruno Haible  <bruno@clisp.org>
67651         Tests for module 'alignof'.
67652         * modules/alignof-tests: New file.
67653         * tests/test-alignof.c: New file.
67655 2009-05-12  Bruno Haible  <bruno@clisp.org>
67657         Fix alignof macro.
67658         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67659         vendor compilers that are always correct.
67661 2009-05-12  Bruno Haible  <bruno@clisp.org>
67663         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67664         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67665         not whether its fully works.
67667 2009-05-12  Bruno Haible  <bruno@clisp.org>
67669         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67671 2009-05-12  Jim Meyering  <meyering@redhat.com>
67673         * top/maint.mk: Adjust backslash alignment.
67675 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67677         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67679 2009-05-11  Eric Blake  <ebb9@byu.net>
67681         argp: avoid undefined behavior
67682         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67683         macros.
67685 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67687         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67688         user.name to prevent git commit from complaining.
67690 2009-05-10  Bruno Haible  <bruno@clisp.org>
67692         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67693         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67694         it rewrites every file name only once.
67695         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67697 2009-05-08  Bruno Haible  <bruno@clisp.org>
67699         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67700         instead of 'max'.
67702 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67704         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67705         sockaddr_storage test.
67707 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67709         * modules/sys_socket (Makefile.am): Substitute
67710         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67711         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67712         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67713         * tests/test-sys_socket.c: Check sockaddr_storage.
67715 2009-05-08  Bruno Haible  <bruno@clisp.org>
67717         New module 'alignof'.
67718         * lib/alignof.h: New file.
67719         * modules/alignof: New file.
67721 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67722             Bruno Haible  <bruno@clisp.org>
67724         Fix test-file-has-acl on FreeBSD.
67725         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67726         mask is implicitly added.
67727         * tests/test-file-has-acl.c: Include <signal.h>.
67728         (main): Terminate the test after 5 seconds.
67729         * modules/acl-tests (configure.ac): Check for alarm function.
67731 2009-05-04  Bruno Haible  <bruno@clisp.org>
67733         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67734         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67735         * modules/errno (configure.ac): Drop AC_REQUIRE.
67736         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67737         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67739 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67741         * modules/glob-tests: New module.
67742         * tests/test-glob.c: Add.
67744 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67746         * modules/fnmatch-tests: New module.
67747         * tests/test-fnmatch.c: Add.
67749 2009-05-04  Eric Blake  <ebb9@byu.net>
67751         maint: make the new no-submodule-changes rule VPATH-safe
67752         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67754 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67755             Bruno Haible  <bruno@clisp.org>
67757         acl: Fix infinite loop on FreeBSD.
67758         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67759         of return value from acl_get_entry.
67760         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67761         Likewise.
67763 2009-05-03  Bruno Haible  <bruno@clisp.org>
67765         * lib/acl-internal.h (acl_entries): Clarify return value.
67766         * lib/acl_entries.c (acl_entries): Likewise.
67768 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67770         Bug fix in acl module.
67771         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67773 2009-05-03  Bruno Haible  <bruno@clisp.org>
67775         Create gperf-generated file in the source dir, not in the build dir.
67776         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67777         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67778         * modules/unicase/locale-language (unicase/locale-languages.h):
67779         Likewise.
67780         * modules/unicase/special-casing (unicase/special-casing-table.h):
67781         Likewise.
67782         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67783         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67784         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67785         Reported by Ralf Wildenhues.
67787 2009-05-03  Bruno Haible  <bruno@clisp.org>
67789         * modules/fnmatch (Description, configure.ac): Taken from
67790         fnmatch-posix.
67791         * modules/fnmatch-posix: Turn into a symbolic reference to the
67792         'fnmatch' module, and deprecate.
67793         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67795 2009-05-03  Bruno Haible  <bruno@clisp.org>
67797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67798         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67799         Reported by Ralf Wildenhues.
67801 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67803         * m4/fnmatch.m4: Fix fnmatch re-define.
67805 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67807         priv-set: new module and tests; adapt write-any-file
67808         * lib/priv-set.c: New file.
67809         * lib/priv-set.h: New file.
67810         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67811         * lib/write-any-file.c: Simplify by using priv-set module.
67812         * m4/priv-set.m4: New file.
67813         * modules/priv-set: New file.
67814         * modules/unlinkdir: Add dependency on priv-set module.
67815         * modules/write-any-file: Likewise.
67817         Tests for module 'priv-set'.
67818         * modules/priv-set-tests: New file.
67819         * tests/test-priv-set.c: New file.
67821 2009-05-03  Jim Meyering  <meyering@redhat.com>
67822             Bruno Haible  <bruno@clisp.org>
67824         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67825         use the converted UTF-8 variant of the name instead.
67827 2009-05-03  Jim Meyering  <meyering@redhat.com>
67829         tests: tighten some getdate tests
67830         * tests/test-getdate.c (main): Tighten tests: require equality,
67831         not just greater than.  Set TZ envvar to UTC0.
67833 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67835         getdate: correctly interpret "next monday" when run on a Monday
67836         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67837         that e.g., "next tues" (when run on a tuesday) results in a date
67838         that is one week in the future, and not today's date.
67839         I.e., add a week when the wday is the same as the current one.
67840         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67841         and earlier by Martin Bernreuther and Jan Minář.
67842         * tests/test-getdate.c (main): Check that "next DAY" is always in
67843         the future and that "last DAY" is always in the past.
67845 2009-05-02  Jim Meyering  <meyering@redhat.com>
67847         build: ensure that a release build fails when a submodule is unclean
67848         * top/maint.mk (no-submodule-changes): New rule.
67849         (alpha beta major): Depend on it.
67851 2009-05-02  Bruno Haible  <bruno@clisp.org>
67853         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67855         shell variable gl_fnmatch_required to detect which variant is
67856         requested.
67857         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67858         gl_FUNC_FNMATCH_POSIX.
67859         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67860         exclude fnmatch-posix.
67862 2009-05-02  Bruno Haible  <bruno@clisp.org>
67864         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67865         * modules/mbsrtowcs (License): Change to LGPLv2+.
67866         * modules/strnlen1 (License): Likewise.
67867         Reported by Simon Josefsson.
67869 2009-05-02  Bruno Haible  <bruno@clisp.org>
67871         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67872         "cross".
67873         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67874         gnulib-tool was called with option --source-base=lib.
67876 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67878         Use automake *-local hooks without commands, for extensibility.
67879         * modules/localcharset (Makefile.am): Rename install-exec-local
67880         rule to install-exec-localcharset, and make it a prerequisite of
67881         install-exec-local.  Likewise, rename the uninstall-local rule to
67882         uninstall-localcharset, and make it a prerequisite of the former.
67884 2009-05-01  Bruno Haible  <bruno@clisp.org>
67886         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67887         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67888         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67890         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67891         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67892         m4/locale-zh.m4, m4/codeset.m4.
67894         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67895         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67896         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67897         m4/locale-zh.m4.
67899         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67900         REPLACE_WCRTOMB if mbstate_t must be replaced.
67901         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67902         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67904 2009-05-01  Bruno Haible  <bruno@clisp.org>
67906         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67907         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67908         dngettext, dcngettext, textdomain, bindtextdomain,
67909         bind_textdomain_codeset): Undefine before redefining.
67911 2009-04-30  Bruno Haible  <bruno@clisp.org>
67913         Fix bug introduced on 2009-04-25.
67914         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67915         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67916         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67917         is defined.
67918         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67919         is defined.
67920         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67921         is defined.
67922         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67924 2009-04-28  Bruno Haible  <bruno@clisp.org>
67926         Comment tweaks.
67927         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67928         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67929         * lib/unicase.h (u*_casexfrm): Likewise.
67930         Reported by Paolo Bonzini.
67932 2009-04-28  Bruno Haible  <bruno@clisp.org>
67934         Fix a compilation error.
67935         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67936         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67937         Reported by Jim Meyering.
67939 2009-04-27  Bruno Haible  <bruno@clisp.org>
67941         New module 'libunistring'.
67942         * modules/libunistring: New file.
67943         * m4/libunistring.m4: New file.
67944         * MODULES.html.sh (Unicode string functions): Add it.
67946 2009-04-27  Eric Blake  <ebb9@byu.net>
67948         maint.mk: allow package-specific header to provide <config.h>
67949         * top/maint.mk (sc_require_config_h): New variable.
67950         (sc_require_config_h, sc_require_config_h_first): Use it.
67952 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67954         * top/maint.mk (sc_avoid_if_before_free): Except
67955         useless-if-before-free script.
67957 2009-04-27  Eric Blake  <ebb9@byu.net>
67959         maintainer-makefile: depend on all required helper scripts
67960         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67961         useless-if-before-free.
67962         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67963         version, rather than assuming gnulib checkout is available.
67964         Reported by Simen Josefsson.
67966 2009-04-26  Bruno Haible  <bruno@clisp.org>
67968         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67969         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67970         "../" or "..".
67972 2009-04-26  Bruno Haible  <bruno@clisp.org>
67974         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67975         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67976         AC_LIB_HAVE_LINKFLAGS.
67978 2009-04-26  Bruno Haible  <bruno@clisp.org>
67980         Simplify calling convention of u*_conv_from_encoding.
67981         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67982         u32_conv_from_encoding): Expect a resultbuf argument and return the
67983         result directly as a pointer.
67984         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67985         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67986         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67987         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67988         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67989         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67990         Update.
67991         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67992         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67993         * lib/vasnprintf.c (VASNPRINTF): Update.
67994         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67995         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67996         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67997         * NEWS: Mention the change.
67999 2009-04-26  Bruno Haible  <bruno@clisp.org>
68001         Simplify calling convention of u*_conv_to_encoding.
68002         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68003         u32_conv_to_encoding): Expect a resultbuf argument and return the
68004         result directly as a pointer.
68005         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68006         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
68007         freeing scaled_offsets if mem_iconveha failed.
68008         * lib/unicase/u-casexfrm.h (FUNC): Update.
68009         * lib/uninorm/u-normxfrm.h (FUNC): Update.
68010         * lib/vasnprintf.c (VASNPRINTF): Update.
68011         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
68012         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
68013         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
68014         * NEWS: Mention the change.
68016 2009-04-26  Bruno Haible  <bruno@clisp.org>
68018         Avoid test failures on AIX and OSF/1.
68019         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
68020         malloc(0).
68021         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68022         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68023         Likewise.
68024         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
68025         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
68026         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
68027         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
68028         * doc/posix-functions/malloc.texi: Document the portability problem
68029         related to malloc(0).
68031 2009-04-26  Bruno Haible  <bruno@clisp.org>
68033         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
68034         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
68035         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
68037 2009-04-25  Bruno Haible  <bruno@clisp.org>
68039         Avoid link error when creating a namespace clean library.
68040         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
68041         as macro with arguments if already defined as an alias.
68042         * lib/signbitf.c (gl_signbitf): Don't undefine.
68043         * lib/signbitd.c (gl_signbitd): Don't undefine.
68044         * lib/signbitl.c (gl_signbitl): Don't undefine.
68046 2009-04-25  Jim Meyering  <meyering@redhat.com>
68048         vc-list-files: fix another quoting bug
68049         * build-aux/vc-list-files: Avoid sed backslash expansion
68050         of pathological directory names.
68052 2009-04-25  Eric Blake  <ebb9@byu.net>
68054         vc-list-files: fix shell quoting error
68055         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
68056         timestamp.
68058 2009-04-25  Jim Meyering  <meyering@redhat.com>
68060         vc-list-files: restore lost functionality with subdir argument
68061         * build-aux/vc-list-files: When given a non-"." sub-directory
68062         argument, substitute the $dir/ prefix back onto each resulting name.
68063         Otherwise, coreutils' root_tests check would fail.
68065 2009-04-24  Eric Blake  <ebb9@byu.net>
68067         vc-list-files: ignore git symlinks
68068         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
68069         than ls-files, to ignore git symlinks.
68071         maint.mk: import improvements from m4
68072         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
68073         (move_if_change): Delete unused macro.
68074         (news-date-check, vc-diff-check): Support VPATH builds.
68075         (announcement): Likewise.  Split --bootstrap-tools list...
68076         (boostrap-tools): ...into separate list, which can be overridden
68077         in cfg.mk.
68078         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
68079         requiring dependency on useless-if-before-free module.
68080         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
68081         Support VPATH builds.
68083 2009-04-24  Jim Meyering  <meyering@redhat.com>
68085         maint.mk: remove coreutils-specific rules and variables
68086         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
68087         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
68088         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
68090         maint.mk: remove obsolete rule
68091         * top/maint.mk (rel-check): Remove rule.
68092         (WGET, WGETFLAGS): Remove now-unused variables.
68094 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68096         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
68097         consistency.
68099         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
68100         '$(PATH_SEPARATOR)' instead of ':'.
68102 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68104         * lib/getopt1.c (main): Use 'const' for static array.
68106 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68108         * top/maint.mk: Sync with coreutils.
68109         * NEWS: Explain incompatibilities.
68111 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68112             Bruno Haible  <bruno@clisp.org>
68114         Fix cross-compilation results.
68115         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68116         statement, as third argument of AC_TRY_RUN.
68117         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68118         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68119         Likewise.
68120         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68121         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68122         Likewise.
68123         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68124         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68125         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68127 2009-04-20  Bruno Haible  <bruno@clisp.org>
68129         Avoid test failure on mingw.
68130         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68132 2009-04-20  Bruno Haible  <bruno@clisp.org>
68134         Avoid compilation error on mingw.
68135         * modules/localename-tests (Depends-on): Add locale.
68137 2009-04-19  Bruno Haible  <bruno@clisp.org>
68139         Support for building a shared library on Windows platforms.
68140         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68141         (main): Test the presence of UNINORM_NFC here.
68142         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68143         (main): Test the presence of UNINORM_NFD here.
68144         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68145         (main): Test the presence of UNINORM_NFKC here.
68146         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68147         (main): Test the presence of UNINORM_NFKD here.
68149 2009-04-19  Bruno Haible  <bruno@clisp.org>
68151         Avoid a compiler warning.
68152         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68153         Change type of variable 'sequence'.
68155 2009-04-19  Bruno Haible  <bruno@clisp.org>
68157         * modules/configmake (Makefile.am): When the contents of configmake.h
68158         does not change, arrange to preserve its modification time.
68160 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68162         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68163         gettext domain.
68165 2009-04-16  Jim Meyering  <meyering@redhat.com>
68167         useless-if-before-free: improve conversion code
68168         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68169         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68171 2009-04-14  Bruno Haible  <bruno@clisp.org>
68173         * modules/fcntl (Depends-on): Add extensions.
68174         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68176 2009-04-12  Ben Pfaff  <blp@gnu.org>
68178         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68179         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68181 2009-03-20  Ben Pfaff  <blp@gnu.org>
68183         Make rename replace existing destinations on Windows.
68184         * m4/rename.m4: Add test for Mingw.
68185         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68186         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68187         * doc/posix-functions/rename.texi: Document.
68189 2009-04-10  Bruno Haible  <bruno@clisp.org>
68191         New include file "iconveh.h".
68192         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68193         * lib/striconveh.h: Include it.
68194         (enum iconv_ilseq_handler): Remove definition.
68195         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68196         striconveh.h.
68197         * lib/striconveha.c: Include striconveh.h.
68198         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68199         * modules/striconveh (Files): Add lib/iconveh.h.
68200         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68201         lib/striconveh.h.
68203 2009-04-10  Bruno Haible  <bruno@clisp.org>
68205         * lib/uniconv.h: Update comment.
68207 2009-04-10  Bruno Haible  <bruno@clisp.org>
68209         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68210         always.
68211         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68212         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68213         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68214         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68215         "unistring-notinline.h", so that the function gets defined always.
68216         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68217         * lib/unistr/u8-uctomb.c: Likewise.
68218         * lib/unistr/u16-mbtouc.c: Likewise.
68219         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68220         * lib/unistr/u16-uctomb.c: Likewise.
68221         * lib/unistr/u32-mbtouc.c: Likewise.
68222         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68223         * lib/unistr/u32-uctomb.c: Likewise.
68225 2009-04-10  Bruno Haible  <bruno@clisp.org>
68227         Mark 'utime' obsolete.
68228         * modules/utime (Status, Notice): New sections.
68229         Suggested by Jim Meyering.
68231         Fix cross-compile guess for utime test.
68232         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68233         autoconf.
68234         * doc/posix-functions/utime.texi: Give more precisions.
68235         Reported by Jan <ipif@ymail.com>.
68237 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68239         filevercmp: correct today's change
68240         * lib/filevercmp.c: Also handle coreutils' test inputs.
68241         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68243         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68244         for reporting it.
68245         * lib/filevercmp.c: Special handle for "", "." and "..".
68246         * tests/test-filevercmp.c: Enlarge the set suite.
68248 2009-04-07  Jim Meyering  <meyering@redhat.com>
68250         useless-if-before-free: show how to remove braced useless free, too
68251         * build-aux/useless-if-before-free: still only in a comment, though.
68253 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68255         maint.mk: import changes to syntax-check macros from coreutils
68256         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68257         Use them in the relevant macros.
68259 2009-04-06  Bruno Haible  <bruno@clisp.org>
68261         Fix unportable use of bit-fields.
68262         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68263         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68264         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68266 2009-04-06  Bruno Haible  <bruno@clisp.org>
68268         Avoid test failures on AIX and OSF/1.
68269         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68270         that malloc(0) = NULL.
68271         * tests/unicase/test-u8-tolower.c (check): Likewise.
68272         * tests/unicase/test-u8-totitle.c (check): Likewise.
68273         * tests/unicase/test-u8-toupper.c (check): Likewise.
68274         * tests/unicase/test-u16-casefold.c (check): Likewise.
68275         * tests/unicase/test-u16-tolower.c (check): Likewise.
68276         * tests/unicase/test-u16-totitle.c (check): Likewise.
68277         * tests/unicase/test-u16-toupper.c (check): Likewise.
68278         * tests/unicase/test-u32-casefold.c (check): Likewise.
68279         * tests/unicase/test-u32-tolower.c (check): Likewise.
68280         * tests/unicase/test-u32-totitle.c (check): Likewise.
68281         * tests/unicase/test-u32-toupper.c (check): Likewise.
68282         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68283         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68284         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68285         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68286         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68287         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68288         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68289         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68290         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68291         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68292         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68293         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68295 2009-04-05  Bruno Haible  <bruno@clisp.org>
68297         Work around an autoconf limitation.
68298         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68299         comment line if it would be longer than 3 KB.
68301 2009-04-05  Bruno Haible  <bruno@clisp.org>
68303         Avoid test failure with libiconv-1.13.
68304         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68305         of the expected test results.
68307 2009-04-05  Bruno Haible  <bruno@clisp.org>
68309         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68310         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68311         that it should be installed.
68313 2009-04-05  Bruno Haible  <bruno@clisp.org>
68315         * gnulib-tool: New option --copy-file.
68316         (func_usage): Document it.
68317         (func_dest_tmpfilename): Moved out of func_import.
68318         (func_add_file, func_update_file): New functions, extracted from
68319         func_import.
68320         (func_import): Update.
68322 2009-04-05  Karl Berry  <karl@gnu.org>
68324         * README: prominently mention gnulib-tool.
68325         Rearrange sections so getting the code is near the top.
68327 2009-04-05  Bruno Haible  <bruno@clisp.org>
68329         * lib/unicase.h: Mention u*_cmp2.
68330         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68331         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68332         * lib/unicase/ulc-casecmp.c: Likewise.
68333         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68334         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68335         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68336         unistr/u8-cmp.
68337         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68338         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68339         unistr/u16-cmp.
68340         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68341         unistr/u32-cmp.
68343         * lib/uninorm.h: Mention u*_cmp2.
68344         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68345         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68346         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68347         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68348         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68349         unistr/u8-cmp.
68350         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68351         unistr/u16-cmp.
68352         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68353         unistr/u32-cmp.
68355         New module 'unistr/u32-cmp2'.
68356         * lib/unistr/u32-cmp2.c: New file.
68357         * modules/unistr/u32-cmp2: New file.
68359         New module 'unistr/u16-cmp2'.
68360         * lib/unistr/u16-cmp2.c: New file.
68361         * modules/unistr/u16-cmp2: New file.
68363         New module 'unistr/u8-cmp2'.
68364         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68365         * lib/unistr/u8-cmp2.c: New file.
68366         * lib/unistr/u-cmp2.h: New file.
68367         * modules/unistr/u8-cmp2: New file.
68369 2009-04-05  Bruno Haible  <bruno@clisp.org>
68371         * lib/unictype.h (uc_property_is_valid): New macro.
68372         * tests/unictype/test-pr_byname.c (main): Use it.
68374         * lib/unistr.h: Doc fixes.
68375         * lib/uniconv.h: Doc fixes.
68376         * lib/unictype.h: Doc fixes.
68378 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68380         Port coreutils 7.2 to Solaris 8.
68382         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68383         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68384         for Solaris 8.  This is a bit of a hack, as it means it's the
68385         caller's responsibility to add -lnsl if needed, but most likely it
68386         won't be needed since only getaddrinfo uses this and getaddrinfo
68387         isn't needed on Solaris 8.
68389         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68390         problem to Solaris 8 encountered with coreutils 7.2, which
68391         resulted in a message "fnmatch.c:292: warning: passing argument 4
68392         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68393         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68395 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68397         * m4/ld-version-script.m4: Add FIXME comment.
68399 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68401         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68402         SOVERSION variable.
68404 2009-04-02  Bruno Haible  <bruno@clisp.org>
68406         * Makefile (info, html, dvi, pdf): Combine the rules.
68407         Suggested by Jim Meyering.
68409 2009-04-01  Bruno Haible  <bruno@clisp.org>
68411         * Makefile (info, html, dvi, pdf): New targets.
68412         Reported by Reuben Thomas <rrt@sc3d.org>.
68414 2009-04-01  Bruno Haible  <bruno@clisp.org>
68416         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68417         can be put into PATH.
68418         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68420 2009-04-01  Bruno Haible  <bruno@clisp.org>
68422         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68424 2009-04-01  Bruno Haible  <bruno@clisp.org>
68426         Rename module 'visibility'.
68427         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68428         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68429         * doc/gnulib.texi: Update.
68430         * MODULES.html.sh (Misc): Update.
68431         * NEWS: Mention the change.
68433 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68435         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68436         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68437         Eric Blake <ebb9@byu.net> for review.
68438         * MODULES.html.sh: Add lib-msvc-compat.
68439         * doc/gnulib.texi: Link to new section.
68440         * m4/ld-output-def.m4: New file.
68441         * doc/ld-output-def.texi: New file.
68443 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68445         Rename ld-version-script to lib-symbol-versions.  Suggested by
68446         Bruno Haible <bruno@clisp.org>.
68447         * modules/ld-version-script: Renamed to lib-symbol-versions.
68448         * doc/ld-version-script.texi: Fix module name.
68449         * MODULES.html.sh: Add lib-symbol-versions.
68451 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68453         * modules/u64-tests: New file.
68454         * tests/test-u64.c: New file.
68456 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68458         * MODULES.html.sh: Mention u64.
68459         * modules/u64: New module.
68460         * modules/crypto/sha512: Depend on u64 module instead of providing
68461         u64.h.
68463 2009-03-27  Eric Blake  <ebb9@byu.net>
68465         test-strerror: make debugging EAI_SYSTEM easier
68466         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68467         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68468         failure was EAI_SYSTEM.
68470 2009-03-25  Bruno Haible  <bruno@clisp.org>
68472         Fix a problem with --enable-relocatable on Solaris 7.
68473         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68474         since 2008-02-24.
68476 2009-03-25  Eric Blake  <ebb9@byu.net>
68478         test-sockets: avoid gcc warning
68479         * tests/test-sockets.c (main): Silence compiler warning.
68481 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68483         New modules nproc, pthread, contributed by Glen Lenker.
68485         * MODULES.html.sh: Add pthread, nproc.
68486         * lib/nproc.c: New file.
68487         * lib/nproc.h: New file.
68488         * lib/pthread.in.h: New file.
68489         * m4/pthread.m4: New file.
68490         * modules/nproc: New file.
68491         * modules/pthread: New file.
68493 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68495         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68496         New variable.
68498 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68500         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68501         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68502         * tests/test-filevercmp.c: Add tests for backup suffixes.
68504 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68506         * modules/stdlib (Depends-on): Add stdint, needed when defining
68507         struct random_data on, for example, HP-UX 10.20.  Reported by
68508         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68510 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68512         * lib/readline.c (readline): Call fflush on stdout after printing
68513         prompt.
68515 2009-03-20  Bruno Haible  <bruno@clisp.org>
68517         Remove dependency from 'close' module to -lws2_32 on native Windows.
68518         * lib/close-hook.h: New file.
68519         * lib/close-hook.c: New file.
68520         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68521         w32sock.h.
68522         (_gl_close_fd_maybe_socket): Remove function.
68523         (rpl_close): Invoke execute_all_close_hooks instead of
68524         _gl_close_fd_maybe_socket.
68525         * lib/sockets.c: Include close-hook.h, w32sock.h.
68526         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68527         (close_sockets_hook): New variable.
68528         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68529         (gl_sockets_cleanup): Unregister it.
68530         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68531         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68532         * modules/close-hook: New file.
68533         * modules/close (Files): Remove lib/w32sock.h.
68534         (Depends-on): Add close-hook.
68535         (Link): Remove section.
68536         * modules/sockets (Files): Add lib/w32sock.h.
68537         (Depends-on): Add close-hook.
68538         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68539         invocation.
68540         * NEWS: Mention that LIB_CLOSE is gone.
68542 2009-03-23  Eric Blake  <ebb9@byu.net>
68544         signal-tests: test previous patch
68545         * tests/test-signal.c: New file.
68546         * modules/signal-tests: Likewise.
68548         signal.h: always support 'volatile sig_atomic_t'
68549         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68550         (gl_SIGNAL_H_DEFAULTS): Add a default.
68551         * modules/signal (Makefile.am): Substitute if needed.
68552         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68553         users can blindly add volatile.
68554         * doc/posix-headers/signal.texi (signal.h): Document it.
68555         Reported by Matthew Woehlke.
68557 2009-03-23  Jim Meyering  <meyering@redhat.com>
68559         pathmax: PATH_MAX: use pathconf only when available
68560         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68561         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68562         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68563         This avoids a link failure in a PSP cross-compilation environment
68564         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68566         * lib/vasnprintf.c (divide): Fix typo in comment.
68568 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68570         * gnulib-tool (func_filter_filelist): Fix comment.
68572 2009-03-20  Bruno Haible  <bruno@clisp.org>
68574         Make sockets.h self-contained.
68575         * lib/sockets.c: Include sockets.h first.
68576         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68578 2009-03-19  Eric Blake  <ebb9@byu.net>
68580         doc: mention more functions added in cygwin 1.7.0
68581         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68582         addition.
68583         * doc/posix-functions/log2f.texi: Likewise.
68585 2009-03-19  Jim Meyering  <meyering@redhat.com>
68587         fsusage: avoid syntax error due to statement-before-declaration
68588         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68589         after all declarations.  Reported by Matthew Woehlke in
68590         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68592 2009-03-18  Eric Blake  <ebb9@byu.net>
68594         build-aux/compile: sync from automake
68595         * build-aux/compile: New file, from automake.
68596         * config/srclist.txt: Mention build-aux/compile.
68598 2009-03-17  Bruno Haible  <bruno@clisp.org>
68600         * lib/git-merge-changelog.c: Fix typo in comment.
68601         Reported by Reuben Thomas <rrt@sc3d.org>.
68603 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68605         * m4/regex.m4: update and improve help for
68606         --without-included-regex.
68608 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68610         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68611         failure on missing include files.
68613 2009-03-17  Eric Blake  <ebb9@byu.net>
68615         doc: mention more functions added in cygwin 1.7.0
68616         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68617         addition.
68618         * doc/posix-functions/fwscanf.texi: Likewise.
68619         * doc/posix-functions/swprintf.texi: Likewise.
68620         * doc/posix-functions/swscanf.texi: Likewise.
68621         * doc/posix-functions/vfwprintf.texi: Likewise.
68622         * doc/posix-functions/vfwscanf.texi: Likewise.
68623         * doc/posix-functions/vswprintf.texi: Likewise.
68624         * doc/posix-functions/vswscanf.texi: Likewise.
68625         * doc/posix-functions/vwprintf.texi: Likewise.
68626         * doc/posix-functions/vwscanf.texi: Likewise.
68627         * doc/posix-functions/wcscasecmp.texi: Likewise.
68628         * doc/posix-functions/wcsdup.texi: Likewise.
68629         * doc/posix-functions/wcsftime.texi: Likewise.
68630         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68631         * doc/posix-functions/wprintf.texi: Likewise.
68632         * doc/posix-functions/wscanf.texi: Likewise.
68633         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68635 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68637         maint.mk: really add $(AM_MAKEFLAGS)
68638         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68639         was inadvertently omitted in the last commit.
68640         Spotted by Bruno Haible.
68642         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68643         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68644         $(AM_MAKEFLAGS)' rather than plain `make'.
68646         gnulib-tool: execute $MAKE not make
68647         * gnulib-tool: Default $MAKE to 'make'.
68648         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68649         than make.  Initialize $MAKE in the do-autobuild script.
68651         gnulib-tool: use $MAKE not make in generated files
68652         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68653         make, in generated files.  Initialize $MAKE in the do-autobuild
68654         script.
68656         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68658         GNUmakefile: disable parallelism only for multiple, recursive targets
68659         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68660         additions in the Makefile.
68661         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68662         by Automake.
68663         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68664         are listed on the command line and at least one of them is
68665         listed in $(ALL_RECURSIVE_TARGETS).
68667 2009-03-14  Bruno Haible  <bruno@clisp.org>
68669         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68670         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68671         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68672         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68673         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68674         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68675         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68676         unistr/u8-uctomb.
68677         * modules/unistr/u8-strchr (Depends-on): Likewise.
68678         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68679         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68680         unistr/u16-uctomb.
68681         * modules/unistr/u16-strchr (Depends-on): Likewise.
68682         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68684 2009-03-12  Bruno Haible  <bruno@clisp.org>
68686         Work around select() bug on Interix 3.5.
68687         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68688         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68689         * m4/select.m4: New file.
68690         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68691         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68692         * modules/select (Files): Add m4/select.m4.
68693         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68694         * modules/nanosleep (Depends-on): Add select.
68695         * modules/poll (Depends-on): Likewise.
68696         * doc/posix-functions/select.texi: Mention the Interix bug.
68697         Reported by Markus Duft <mduft@gentoo.org>.
68699         * lib/select.c: Renamed from lib/winsock-select.c.
68700         * modules/select (Files): Add lib/select.c, remove
68701         lib/winsock-select.c.
68702         (configure.ac): Update.
68704 2009-03-12  Jim Meyering  <meyering@redhat.com>
68706         avoid gcc warnings about unused macro definitions
68707         * lib/readtokens.c (STREQ): Remove unused definition.
68708         * lib/xmalloc.c (SIZE_MAX): Likewise.
68709         * lib/openat-die.c (N_): Likewise.
68710         * lib/mountlist.c (SIZE_MAX): Remove definition.
68711         Instead, include <stdint.h>.
68712         * lib/readutmp.c: Likewise.
68713         * modules/readutmp (Depends-on): Add stdint.
68714         * modules/mountlist (Depends-on): Add stdint.
68715         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68717 2009-03-10  Bruno Haible  <bruno@clisp.org>
68719         Tests for module 'mbmemcasecoll'.
68720         * modules/mbmemcasecoll-tests: New file.
68721         * tests/test-mbmemcasecoll1.sh: New file.
68722         * tests/test-mbmemcasecoll2.sh: New file.
68723         * tests/test-mbmemcasecoll3.sh: New file.
68724         * tests/test-mbmemcasecoll.c: New file.
68726         New module 'mbmemcasecoll'.
68727         * lib/mbmemcasecoll.h: New file.
68728         * lib/mbmemcasecoll.c: New file.
68729         * modules/mbmemcasecoll: New file.
68731         * tests/test-mbmemcasecmp.h: New file, extracted from
68732         tests/test-mbmemcasecmp.c.
68733         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68734         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68735         (main): Update.
68736         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68738 2009-03-09  Bruno Haible  <bruno@clisp.org>
68740         Tests for module 'mbmemcasecmp'.
68741         * modules/mbmemcasecmp-tests: New file.
68742         * tests/test-mbmemcasecmp1.sh: New file.
68743         * tests/test-mbmemcasecmp2.sh: New file.
68744         * tests/test-mbmemcasecmp3.sh: New file.
68745         * tests/test-mbmemcasecmp.c: New file.
68747         New module 'mbmemcasecmp'.
68748         * lib/mbmemcasecmp.h: New file.
68749         * lib/mbmemcasecmp.c: New file.
68750         * modules/mbmemcasecmp: New file.
68752 2009-03-09  Bruno Haible  <bruno@clisp.org>
68754         Tests for module 'unicase/ulc-casecoll'.
68755         * modules/unicase/ulc-casecoll-tests: New file.
68756         * tests/unicase/test-ulc-casecoll1.sh: New file.
68757         * tests/unicase/test-ulc-casecoll2.sh: New file.
68758         * tests/unicase/test-ulc-casecoll.c: New file.
68760         New module 'unicase/ulc-casecoll'.
68761         * lib/unicase.h (ulc_casecoll): New declaration.
68762         * lib/unicase/ulc-casecoll.c: New file.
68763         * modules/unicase/ulc-casecoll: New file.
68765         New module 'unicase/ulc-casexfrm'.
68766         * lib/unicase.h (ulc_casexfrm): New declaration.
68767         * lib/unicase/ulc-casexfrm.c: New file.
68768         * modules/unicase/ulc-casexfrm: New file.
68770 2009-03-09  Bruno Haible  <bruno@clisp.org>
68772         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68773         invocations.
68775         * m4/mbscasecmp.m4: Remove file.
68776         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68777         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68779         * m4/mbscasestr.m4: Remove file.
68780         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68781         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68783         * m4/mbschr.m4: Remove file.
68784         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68785         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68787         * m4/mbscspn.m4: Remove file.
68788         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68789         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68791         * m4/mbslen.m4: Remove file.
68792         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68793         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68795         * m4/mbsncasecmp.m4: Remove file.
68796         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68797         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68799         * m4/mbsnlen.m4: Remove file.
68800         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68801         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68803         * m4/mbspbrk.m4: Remove file.
68804         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68805         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68807         * m4/mbspcasecmp.m4: Remove file.
68808         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68809         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68811         * m4/mbsrchr.m4: Remove file.
68812         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68813         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68815         * m4/mbssep.m4: Remove file.
68816         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68817         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68819         * m4/mbsspn.m4: Remove file.
68820         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68821         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68823         * m4/mbsstr.m4: Remove file.
68824         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68825         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68827         * m4/mbstok_r.m4: Remove file.
68828         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68829         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68831         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68833         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68834         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68836         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68838 2009-03-08  Bruno Haible  <bruno@clisp.org>
68840         Tests for module 'unicase/ulc-casecmp'.
68841         * modules/unicase/ulc-casecmp-tests: New file.
68842         * tests/unicase/test-ulc-casecmp1.sh: New file.
68843         * tests/unicase/test-ulc-casecmp2.sh: New file.
68844         * tests/unicase/test-ulc-casecmp.c: New file.
68846         New module 'unicase/ulc-casecmp'.
68847         * lib/unicase.h (ulc_casecmp): New declaration.
68848         * lib/unicase/ulc-casecmp.c: New file.
68849         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68850         'const SRC_UNIT *'.
68851         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68852         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68853         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68854         * modules/unicase/ulc-casecmp: New file.
68856         Tests for module 'unicase/u32-is-cased'.
68857         * modules/unicase/u32-is-cased-tests: New file.
68858         * tests/unicase/test-u32-is-cased.c: New file.
68860         Tests for module 'unicase/u16-is-cased'.
68861         * modules/unicase/u16-is-cased-tests: New file.
68862         * tests/unicase/test-u16-is-cased.c: New file.
68864         Tests for module 'unicase/u8-is-cased'.
68865         * modules/unicase/u8-is-cased-tests: New file.
68866         * tests/unicase/test-u8-is-cased.c: New file.
68867         * tests/unicase/test-is-cased.h: New file.
68869         New module 'unicase/u32-is-cased'.
68870         * lib/unicase/u32-is-cased.c: New file.
68871         * modules/unicase/u32-is-cased: New file.
68873         New module 'unicase/u16-is-cased'.
68874         * lib/unicase/u16-is-cased.c: New file.
68875         * modules/unicase/u16-is-cased: New file.
68877         New module 'unicase/u8-is-cased'.
68878         * lib/unicase/u8-is-cased.c: New file.
68879         * lib/unicase/u-is-cased.h: New file.
68880         * modules/unicase/u8-is-cased: New file.
68882         Tests for module 'unicase/u32-is-casefolded'.
68883         * modules/unicase/u32-is-casefolded-tests: New file.
68884         * tests/unicase/test-u32-is-casefolded.c: New file.
68886         Tests for module 'unicase/u16-is-casefolded'.
68887         * modules/unicase/u16-is-casefolded-tests: New file.
68888         * tests/unicase/test-u16-is-casefolded.c: New file.
68890         Tests for module 'unicase/u8-is-casefolded'.
68891         * modules/unicase/u8-is-casefolded-tests: New file.
68892         * tests/unicase/test-u8-is-casefolded.c: New file.
68893         * tests/unicase/test-is-casefolded.h: New file.
68895         New module 'unicase/u32-is-casefolded'.
68896         * lib/unicase/u32-is-casefolded.c: New file.
68897         * modules/unicase/u32-is-casefolded: New file.
68899         New module 'unicase/u16-is-casefolded'.
68900         * lib/unicase/u16-is-casefolded.c: New file.
68901         * modules/unicase/u16-is-casefolded: New file.
68903         New module 'unicase/u8-is-casefolded'.
68904         * lib/unicase/u8-is-casefolded.c: New file.
68905         * modules/unicase/u8-is-casefolded: New file.
68907         Tests for module 'unicase/u32-is-titlecase'.
68908         * modules/unicase/u32-is-titlecase-tests: New file.
68909         * tests/unicase/test-u32-is-titlecase.c: New file.
68911         Tests for module 'unicase/u16-is-titlecase'.
68912         * modules/unicase/u16-is-titlecase-tests: New file.
68913         * tests/unicase/test-u16-is-titlecase.c: New file.
68915         Tests for module 'unicase/u8-is-titlecase'.
68916         * modules/unicase/u8-is-titlecase-tests: New file.
68917         * tests/unicase/test-u8-is-titlecase.c: New file.
68918         * tests/unicase/test-is-titlecase.h: New file.
68920         New module 'unicase/u32-is-titlecase'.
68921         * lib/unicase/u32-is-titlecase.c: New file.
68922         * modules/unicase/u32-is-titlecase: New file.
68924         New module 'unicase/u16-is-titlecase'.
68925         * lib/unicase/u16-is-titlecase.c: New file.
68926         * modules/unicase/u16-is-titlecase: New file.
68928         New module 'unicase/u8-is-titlecase'.
68929         * lib/unicase/u8-is-titlecase.c: New file.
68930         * modules/unicase/u8-is-titlecase: New file.
68932         Tests for module 'unicase/u32-is-lowercase'.
68933         * modules/unicase/u32-is-lowercase-tests: New file.
68934         * tests/unicase/test-u32-is-lowercase.c: New file.
68936         Tests for module 'unicase/u16-is-lowercase'.
68937         * modules/unicase/u16-is-lowercase-tests: New file.
68938         * tests/unicase/test-u16-is-lowercase.c: New file.
68940         Tests for module 'unicase/u8-is-lowercase'.
68941         * modules/unicase/u8-is-lowercase-tests: New file.
68942         * tests/unicase/test-u8-is-lowercase.c: New file.
68943         * tests/unicase/test-is-lowercase.h: New file.
68945         New module 'unicase/u32-is-lowercase'.
68946         * lib/unicase/u32-is-lowercase.c: New file.
68947         * modules/unicase/u32-is-lowercase: New file.
68949         New module 'unicase/u16-is-lowercase'.
68950         * lib/unicase/u16-is-lowercase.c: New file.
68951         * modules/unicase/u16-is-lowercase: New file.
68953         New module 'unicase/u8-is-lowercase'.
68954         * lib/unicase/u8-is-lowercase.c: New file.
68955         * modules/unicase/u8-is-lowercase: New file.
68957         Tests for module 'unicase/u32-is-uppercase'.
68958         * modules/unicase/u32-is-uppercase-tests: New file.
68959         * tests/unicase/test-u32-is-uppercase.c: New file.
68961         Tests for module 'unicase/u16-is-uppercase'.
68962         * modules/unicase/u16-is-uppercase-tests: New file.
68963         * tests/unicase/test-u16-is-uppercase.c: New file.
68965         Tests for module 'unicase/u8-is-uppercase'.
68966         * modules/unicase/u8-is-uppercase-tests: New file.
68967         * tests/unicase/test-u8-is-uppercase.c: New file.
68968         * tests/unicase/test-is-uppercase.h: New file.
68970         New module 'unicase/u32-is-uppercase'.
68971         * lib/unicase/u32-is-uppercase.c: New file.
68972         * modules/unicase/u32-is-uppercase: New file.
68974         New module 'unicase/u16-is-uppercase'.
68975         * lib/unicase/u16-is-uppercase.c: New file.
68976         * modules/unicase/u16-is-uppercase: New file.
68978         New module 'unicase/u8-is-uppercase'.
68979         * lib/unicase/u8-is-uppercase.c: New file.
68980         * modules/unicase/u8-is-uppercase: New file.
68982         New module 'unicase/u32-is-invariant'.
68983         * lib/unicase/u32-is-invariant.c: New file.
68984         * modules/unicase/u32-is-invariant: New file.
68986         New module 'unicase/u16-is-invariant'.
68987         * lib/unicase/u16-is-invariant.c: New file.
68988         * modules/unicase/u16-is-invariant: New file.
68990         New module 'unicase/u8-is-invariant'.
68991         * lib/unicase/u8-is-invariant.c: New file.
68992         * lib/unicase/invariant.h: New file.
68993         * lib/unicase/u-is-invariant.h: New file.
68994         * modules/unicase/u8-is-invariant: New file.
68996         Tests for module 'unicase/u32-casecoll'.
68997         * modules/unicase/u32-casecoll-tests: New file.
68998         * tests/unicase/test-u32-casecoll.c: New file.
69000         Tests for module 'unicase/u16-casecoll'.
69001         * modules/unicase/u16-casecoll-tests: New file.
69002         * tests/unicase/test-u16-casecoll.c: New file.
69004         Tests for module 'unicase/u8-casecoll'.
69005         * modules/unicase/u8-casecoll-tests: New file.
69006         * tests/unicase/test-u8-casecoll.c: New file.
69008         New module 'unicase/u32-casecoll'.
69009         * lib/unicase/u32-casecoll.c: New file.
69010         * modules/unicase/u32-casecoll: New file.
69012         New module 'unicase/u16-casecoll'.
69013         * lib/unicase/u16-casecoll.c: New file.
69014         * modules/unicase/u16-casecoll: New file.
69016         New module 'unicase/u8-casecoll'.
69017         * lib/unicase/u8-casecoll.c: New file.
69018         * lib/unicase/u-casecoll.h: New file.
69019         * modules/unicase/u8-casecoll: New file.
69021         New module 'unicase/u32-casexfrm'.
69022         * lib/unicase/u32-casexfrm.c: New file.
69023         * modules/unicase/u32-casexfrm: New file.
69025         New module 'unicase/u16-casexfrm'.
69026         * lib/unicase/u16-casexfrm.c: New file.
69027         * modules/unicase/u16-casexfrm: New file.
69029         New module 'unicase/u8-casexfrm'.
69030         * lib/unicase/u8-casexfrm.c: New file.
69031         * lib/unicase/u-casexfrm.h: New file.
69032         * modules/unicase/u8-casexfrm: New file.
69034         Tests for module 'unicase/u32-casecmp'.
69035         * modules/unicase/u32-casecmp-tests: New file.
69036         * tests/unicase/test-u32-casecmp.c: New file.
69038         Tests for module 'unicase/u16-casecmp'.
69039         * modules/unicase/u16-casecmp-tests: New file.
69040         * tests/unicase/test-u16-casecmp.c: New file.
69042         Tests for module 'unicase/u8-casecmp'.
69043         * modules/unicase/u8-casecmp-tests: New file.
69044         * tests/unicase/test-u8-casecmp.c: New file.
69045         * tests/unicase/test-casecmp.h: New file.
69047         New module 'unicase/u32-casecmp'.
69048         * lib/unicase/u32-casecmp.c: New file.
69049         * modules/unicase/u32-casecmp: New file.
69051         New module 'unicase/u16-casecmp'.
69052         * lib/unicase/u16-casecmp.c: New file.
69053         * modules/unicase/u16-casecmp: New file.
69055         New module 'unicase/u8-casecmp'.
69056         * lib/unicase/u8-casecmp.c: New file.
69057         * lib/unicase/u-casecmp.h: New file.
69058         * modules/unicase/u8-casecmp: New file.
69060         Tests for module 'unicase/u32-casefold'.
69061         * modules/unicase/u32-casefold-tests: New file.
69062         * tests/unicase/test-u32-casefold.c: New file.
69064         Tests for module 'unicase/u16-casefold'.
69065         * modules/unicase/u16-casefold-tests: New file.
69066         * tests/unicase/test-u16-casefold.c: New file.
69068         Tests for module 'unicase/u8-casefold'.
69069         * modules/unicase/u8-casefold-tests: New file.
69070         * tests/unicase/test-u8-casefold.c: New file.
69072         New module 'unicase/u32-casefold'.
69073         * lib/unicase/u32-casefold.c: New file.
69074         * modules/unicase/u32-casefold: New file.
69076         New module 'unicase/u16-casefold'.
69077         * lib/unicase/u16-casefold.c: New file.
69078         * modules/unicase/u16-casefold: New file.
69080         New module 'unicase/u8-casefold'.
69081         * lib/unicase/u8-casefold.c: New file.
69082         * lib/unicase/u-casefold.h: New file.
69083         * modules/unicase/u8-casefold: New file.
69085         New module 'unicase/tocasefold'.
69086         * lib/unicase/casefold.h: New file.
69087         * lib/unicase/tocasefold.c: New file.
69088         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
69089         * modules/unicase/tocasefold: New file.
69091         Tests for module 'unicase/u32-totitle'.
69092         * modules/unicase/u32-totitle-tests: New file.
69093         * tests/unicase/test-u32-totitle.c: New file.
69095         Tests for module 'unicase/u16-totitle'.
69096         * modules/unicase/u16-totitle-tests: New file.
69097         * tests/unicase/test-u16-totitle.c: New file.
69099         Tests for module 'unicase/u8-totitle'.
69100         * modules/unicase/u8-totitle-tests: New file.
69101         * tests/unicase/test-u8-totitle.c: New file.
69103         New module 'unicase/u32-totitle'.
69104         * lib/unicase/u32-totitle.c: New file.
69105         * modules/unicase/u32-totitle: New file.
69107         New module 'unicase/u16-totitle'.
69108         * lib/unicase/u16-totitle.c: New file.
69109         * modules/unicase/u16-totitle: New file.
69111         New module 'unicase/u8-totitle'.
69112         * lib/unicase/u8-totitle.c: New file.
69113         * lib/unicase/u-totitle.h: New file.
69114         * modules/unicase/u8-totitle: New file.
69116         Tests for module 'unicase/u32-tolower'.
69117         * modules/unicase/u32-tolower-tests: New file.
69118         * tests/unicase/test-u32-tolower.c: New file.
69120         Tests for module 'unicase/u16-tolower'.
69121         * modules/unicase/u16-tolower-tests: New file.
69122         * tests/unicase/test-u16-tolower.c: New file.
69124         Tests for module 'unicase/u8-tolower'.
69125         * modules/unicase/u8-tolower-tests: New file.
69126         * tests/unicase/test-u8-tolower.c: New file.
69128         New module 'unicase/u32-tolower'.
69129         * lib/unicase/u32-tolower.c: New file.
69130         * modules/unicase/u32-tolower: New file.
69132         New module 'unicase/u16-tolower'.
69133         * lib/unicase/u16-tolower.c: New file.
69134         * modules/unicase/u16-tolower: New file.
69136         New module 'unicase/u8-tolower'.
69137         * lib/unicase/u8-tolower.c: New file.
69138         * modules/unicase/u8-tolower: New file.
69140         Tests for module 'unicase/u32-toupper'.
69141         * modules/unicase/u32-toupper-tests: New file.
69142         * tests/unicase/test-u32-toupper.c: New file.
69144         Tests for module 'unicase/u16-toupper'.
69145         * modules/unicase/u16-toupper-tests: New file.
69146         * tests/unicase/test-u16-toupper.c: New file.
69148         Tests for module 'unicase/u8-toupper'.
69149         * modules/unicase/u8-toupper-tests: New file.
69150         * tests/unicase/test-u8-toupper.c: New file.
69152         New module 'unicase/u32-toupper'.
69153         * lib/unicase/u32-toupper.c: New file.
69154         * modules/unicase/u32-toupper: New file.
69156         New module 'unicase/u16-toupper'.
69157         * lib/unicase/u16-toupper.c: New file.
69158         * modules/unicase/u16-toupper: New file.
69160         New module 'unicase/u8-toupper'.
69161         * lib/unicase/u8-toupper.c: New file.
69162         * modules/unicase/u8-toupper: New file.
69164         New module 'unicase/u32-casemap'.
69165         * lib/unicase/u32-casemap.c: New file.
69166         * modules/unicase/u32-casemap: New file.
69168         New module 'unicase/u16-casemap'.
69169         * lib/unicase/u16-casemap.c: New file.
69170         * modules/unicase/u16-casemap: New file.
69172         New module 'unicase/u8-casemap'.
69173         * lib/unicase/unicasemap.h: New file.
69174         * lib/unicase/u8-casemap.c: New file.
69175         * lib/unicase/u-casemap.h: New file.
69176         * modules/unicase/u8-casemap: New file.
69178         New module 'unicase/special-casing'.
69179         * lib/unicase/special-casing.h: New file.
69180         * lib/unicase/special-casing.c: New file.
69181         * lib/unicase/special-casing-table.gperf: New file, generated by
69182         gen-uni-tables.c.
69183         * modules/unicase/special-casing: New file.
69185         Tests for module 'unicase/locale-language'.
69186         * modules/unicase/locale-language-tests: New file.
69187         * tests/unicase/test-locale-language.sh: New file.
69188         * tests/unicase/test-locale-language.c: New file.
69190         New module 'unicase/locale-language'.
69191         * lib/unicase/locale-language.c: New file.
69192         * lib/unicase/locale-languages.gperf: New file.
69193         * modules/unicase/locale-language: New file.
69195         Generate more tables for case conversion and case folding.
69196         * lib/gen-uni-tables.c (SCC_*): New enum items.
69197         (struct special_casing_rule): New type.
69198         (casing_rules, num_casing_rules, allocated_casing_rules): New
69199         variables.
69200         (add_casing_rule, fill_casing_rules): New functions.
69201         (struct casefold_rule): New type.
69202         (casefolding_rules, num_casefolding_rules,
69203         allocated_casefolding_rules): New variables.
69204         (fill_casefolding_rules): New function.
69205         (unicode_casefold): New variable.
69206         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69207         sort_casing_rules, output_casing_rules): New functions.
69208         (main): Accept to more arguments: SpecialCasing.txt and
69209         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69210         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69211         Output mapping for casefolding.
69213         * lib/unicase.h: Include stdbool.h, uninorm.h.
69214         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69215         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69216         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69217         arguments.
69218         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69219         resultp arguments.
69220         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69221         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69222         resultp arguments.
69223         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69224         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69225         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69226         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69227         declarations.
69228         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69230 2009-03-08  Bruno Haible  <bruno@clisp.org>
69232         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69233         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69234         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69235         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69237 2009-03-07  Bruno Haible  <bruno@clisp.org>
69239         Adjust u*_normcmp, u*_normcoll API.
69240         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69241         u16_normcoll, u32_normcoll): Change failure conventions.
69242         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69243         errno and return -1.
69244         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69246 2009-03-07  Bruno Haible  <bruno@clisp.org>
69248         Tests for module 'uninorm/u32-normcoll'.
69249         * modules/uninorm/u32-normcoll-tests: New file.
69250         * tests/uninorm/test-u32-normcoll.c: New file.
69252         Tests for module 'uninorm/u16-normcoll'.
69253         * modules/uninorm/u16-normcoll-tests: New file.
69254         * tests/uninorm/test-u16-normcoll.c: New file.
69256         Tests for module 'uninorm/u8-normcoll'.
69257         * modules/uninorm/u8-normcoll-tests: New file.
69258         * tests/uninorm/test-u8-normcoll.c: New file.
69260 2009-03-07  Bruno Haible  <bruno@clisp.org>
69262         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69263         tests/uninorm/test-u32-normcmp.c.
69264         * tests/uninorm/test-u32-normcmp.c: Include it.
69265         (test_nonascii): New function, extracted from main. Add some more
69266         tests.
69267         (main): Invoke test_ascii and test_nonascii.
69268         * modules/uninorm/u32-normcmp-tests (Files): Add
69269         tests/uninorm/test-u32-normcmp.h.
69270         (Depends-on): Remove uninorm/u32-normcmp.
69272         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69273         tests/uninorm/test-u16-normcmp.c.
69274         * tests/uninorm/test-u16-normcmp.c: Include it.
69275         (test_nonascii): New function, extracted from main. Add some more
69276         tests.
69277         (main): Invoke test_ascii and test_nonascii.
69278         * modules/uninorm/u16-normcmp-tests (Files): Add
69279         tests/uninorm/test-u16-normcmp.h.
69280         (Depends-on): Remove uninorm/u16-normcmp.
69282         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69283         tests/uninorm/test-u8-normcmp.c.
69284         * tests/uninorm/test-u8-normcmp.c: Include it.
69285         (test_nonascii): New function, extracted from main. Add some more
69286         tests.
69287         (main): Invoke test_ascii and test_nonascii.
69288         * modules/uninorm/u8-normcmp-tests (Files): Add
69289         tests/uninorm/test-u8-normcmp.h.
69290         (Depends-on): Remove uninorm/u8-normcmp.
69292 2009-03-07  Bruno Haible  <bruno@clisp.org>
69294         New module 'uninorm/u32-normcoll'.
69295         * lib/uninorm/u32-normcoll.c: New file.
69296         * modules/uninorm/u32-normcoll: New file.
69298         New module 'uninorm/u16-normcoll'.
69299         * lib/uninorm/u16-normcoll.c: New file.
69300         * modules/uninorm/u16-normcoll: New file.
69302         New module 'uninorm/u8-normcoll'.
69303         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69304         declarations.
69305         * lib/uninorm/u8-normcoll.c: New file.
69306         * lib/uninorm/u-normcoll.h: New file.
69307         * modules/uninorm/u8-normcoll: New file.
69309         New module 'uninorm/u32-normxfrm'.
69310         * lib/uninorm/u32-normxfrm.c: New file.
69311         * modules/uninorm/u32-normxfrm: New file.
69313         New module 'uninorm/u16-normxfrm'.
69314         * lib/uninorm/u16-normxfrm.c: New file.
69315         * modules/uninorm/u16-normxfrm: New file.
69317         New module 'uninorm/u8-normxfrm'.
69318         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69319         declarations.
69320         * lib/uninorm/u8-normxfrm.c: New file.
69321         * lib/uninorm/u-normxfrm.h: New file.
69322         * modules/uninorm/u8-normxfrm: New file.
69324 2009-03-07  Bruno Haible  <bruno@clisp.org>
69326         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69327         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69328         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69330 2009-03-07  Bruno Haible  <bruno@clisp.org>
69332         New module 'memxfrm'.
69333         * lib/memxfrm.h: New file.
69334         * lib/memxfrm.c: New file.
69335         * modules/memxfrm: New file.
69337 2009-03-07  Bruno Haible  <bruno@clisp.org>
69339         New module 'memcmp2'.
69340         * lib/memcmp2.h: New file.
69341         * lib/memcmp2.c: New file.
69342         * modules/memcmp2: New file.
69344 2009-03-07  Bruno Haible  <bruno@clisp.org>
69346         Tests for module 'uninorm/decomposing-form'.
69347         * modules/uninorm/decomposing-form-tests: New file.
69348         * tests/uninorm/test-decomposing-form.c: New file.
69350         New module 'uninorm/decomposing-form'.
69351         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69352         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69353         Add 'decomposing_variant' field.
69354         * lib/uninorm/decomposing-form.c: New file.
69355         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69356         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69357         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69358         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69359         * modules/uninorm/decomposing-form: New file.
69360         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69361         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69363 2009-03-07  Bruno Haible  <bruno@clisp.org>
69365         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69366         strings.
69368 2009-03-06  Bruno Haible  <bruno@clisp.org>
69370         Tests for module 'uninorm/u32-normcmp'.
69371         * tests/uninorm/test-u32-normcmp.c: New file.
69372         * modules/uninorm/u32-normcmp-tests: New file.
69374         Tests for module 'uninorm/u16-normcmp'.
69375         * tests/uninorm/test-u16-normcmp.c: New file.
69376         * modules/uninorm/u16-normcmp-tests: New file.
69378         Tests for module 'uninorm/u8-normcmp'.
69379         * tests/uninorm/test-u8-normcmp.c: New file.
69380         * modules/uninorm/u8-normcmp-tests: New file.
69382         New module 'uninorm/u32-normcmp'.
69383         * lib/uninorm/u32-normcmp.c: New file.
69384         * modules/uninorm/u32-normcmp: New file.
69386         New module 'uninorm/u16-normcmp'.
69387         * lib/uninorm/u16-normcmp.c: New file.
69388         * modules/uninorm/u16-normcmp: New file.
69390         New module 'uninorm/u8-normcmp'.
69391         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69392         declarations.
69393         * lib/uninorm/u8-normcmp.c: New file.
69394         * lib/uninorm/u-normcmp.h: New file.
69395         * modules/uninorm/u8-normcmp: New file.
69397 2009-03-06  Bruno Haible  <bruno@clisp.org>
69399         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69400         Reported by Eric Blake.
69402 2009-03-06  Eric Blake  <ebb9@byu.net>
69403             Bruno Haible  <bruno@clisp.org>
69405         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69406         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69407         condition.
69408         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69409         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69410         condition.
69411         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69413 2009-03-06  Eric Blake  <ebb9@byu.net>
69415         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69416         to avoid compiler warnings.
69417         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69419 2009-03-05  Bruno Haible  <bruno@clisp.org>
69421         * tests/test-ftell.c (main): Disable test beyond end of file on
69422         FreeMiNT.
69423         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69425 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69427         * lib/filevercmp.c: Move hidden files up in ordering.
69428         * tests/test-filevercmp.c: Add tests for hidden files.
69430 2009-03-04  Bruno Haible  <bruno@clisp.org>
69432         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69433         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69434         AM_CFLAGS.
69435         Reported by Simon Josefsson.
69437 2009-03-03  Bruno Haible  <bruno@clisp.org>
69439         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69440         Reported by Simon Josefsson.
69442         * doc/ld-version-script.texi: Update node reference.
69444 2009-03-03  Bruno Haible  <bruno@clisp.org>
69446         * modules/visibility (License): Change to 'unlimited'.
69447         Suggested by Simon Josefsson.
69449 2009-03-03  Jim Meyering  <meyering@redhat.com>
69451         unlinkdir: cannot_unlink_dir may modify process state
69452         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69453         it's neither thread-safe nor appropriate for use in a library.
69455 2009-03-03  Eric Blake  <ebb9@byu.net>
69457         test-closein: silence test under Darwin
69458         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69459         care if it dies from EPIPE or EBADF.
69461 2009-03-03  Bruno Haible  <bruno@clisp.org>
69463         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69464         earlier.
69465         * doc/visibility.texi: Fix @node and @section.
69467 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69469         * doc/gnulib.texi: Link to sections for ld version script and
69470         visibility.
69471         * doc/visibility.texi: Add @node and @section.
69472         * modules/ld-version-script: New module.
69473         * m4/ld-version-script.m4: New file.
69474         * doc/ld-version-script.texi: New file.
69476 2009-03-02  David Lutterkort  <lutter@redhat.com>
69478         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69481 2009-03-02  Bruno Haible  <bruno@clisp.org>
69483         * doc/visibility.texi: Mention libtool's -export-symbols option.
69485 2009-03-02  Jim Meyering  <meyering@redhat.com>
69487         announce-gen: new option: --no-print-checksums
69488         * build-aux/announce-gen (usage): Describe it.
69489         (print_checksums): Print a newline here, not in the [*] footnote.
69490         (main): Honor it.
69492 2009-03-01  Bruno Haible  <bruno@clisp.org>
69494         Use socklen_t in the native Windows replacements prototypes.
69495         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69496         instead of 'int'.
69497         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69498         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69499         * modules/getsockopt (Depends-on): Add socklen.
69500         * modules/setsockopt (Depends-on): Add socklen.
69502 2009-03-01  Bruno Haible  <bruno@clisp.org>
69504         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69505         least 4.2.
69507 2009-03-01  Eric Blake  <ebb9@byu.net>
69508             Bruno Haible  <bruno@clisp.org>
69510         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69511         error messages.
69512         * lib/wait-process.c (wait_subprocess): Omit error message about
69513         deadly signal sent to the child of termsigp != NULL.
69515 2009-03-01  Eric Blake  <ebb9@byu.net>
69517         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69519 2009-03-01  Bruno Haible  <bruno@clisp.org>
69521         Avoid a gcc warning.
69522         * tests/test-sched.c (b): Make global.
69523         Reported by Eric Blake.
69525 2009-01-19  Martin Lambers  <marlam@marlam.de>
69527         Provide POSIX semantics for socket timeout options on W32.
69528         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69529         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69530         * modules/setsockopt: Depend on sys_time module for struct timeval.
69531         * modules/getsockopt: Depend on sys_time module for struct timeval.
69533 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69535         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69536         __USE_GNU, for consistency with netdb.in.h.
69537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69539 2009-03-01  Bruno Haible  <bruno@clisp.org>
69541         More support for FreeMiNT.
69542         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69543         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69545 2009-03-01  Bruno Haible  <bruno@clisp.org>
69547         More support for FreeMiNT.
69548         * lib/fpurge.c (fpurge): Correct last commit.
69549         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69551 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69553         Fix unportable awk script in vc-list-files.
69554         * build-aux/vc-list-files: In the replacement awk script, use
69555         substr with a second argument of 1, not zero.
69556         Report by Simon Josefsson.
69558 2009-02-28  Bruno Haible  <bruno@clisp.org>
69560         More support for FreeMiNT.
69561         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69562         to FreeMiNT today.
69563         * lib/fwriting.c (fwriting): Likewise.
69564         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69566 2009-02-28  Bruno Haible  <bruno@clisp.org>
69568         * tests/test-freadseek.c (main): Disable test beyond end of file on
69569         FreeMiNT.
69570         * tests/test-ftello.c (main): Likewise.
69571         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69573 2009-02-28  Bruno Haible  <bruno@clisp.org>
69575         Add tentative support for FreeMiNT.
69576         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69577         * lib/fpurge.c (fpurge): Likewise.
69578         * lib/freadable.c (freadable): Likewise.
69579         * lib/freading.c (freading): Likewise.
69580         * lib/freadptr.c (freadptr): Likewise.
69581         * lib/freadseek.c (freadptrinc): Likewise.
69582         * lib/fseeko.c (rpl_fseeko): Likewise.
69583         * lib/fseterr.c (fseterr): Likewise.
69584         * lib/fwritable.c (fwritable): Likewise.
69585         * lib/fwriting.c (fwriting): Likewise.
69586         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69587         Hourihane.
69588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69590 2009-02-28  Bruno Haible  <bruno@clisp.org>
69592         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69593         SIGCHLD.
69594         Reported by Jim Meyering.
69596 2009-02-28  Bruno Haible  <bruno@clisp.org>
69598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69599         Mention the results of these tests on various platforms.
69600         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69601         order.
69602         * doc/posix-functions/printf.texi: Likewise.
69603         * doc/posix-functions/snprintf.texi: Likewise.
69604         * doc/posix-functions/sprintf.texi: Likewise.
69605         * doc/posix-functions/vfprintf.texi: Likewise.
69606         * doc/posix-functions/vprintf.texi: Likewise.
69607         * doc/posix-functions/vsnprintf.texi: Likewise.
69608         * doc/posix-functions/vsprintf.texi: Likewise.
69609         * doc/glibc-functions/obstack_printf.texi: Likewise.
69610         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69612 2009-02-28  Bruno Haible  <bruno@clisp.org>
69614         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69615         Reported by Loïc Minier <lool@dooz.org>.
69617 2009-02-27  Bruno Haible  <bruno@clisp.org>
69619         * gnulib-tool (func_import): Make the sed expression used to create the
69620         sed script for updating the .gitignore file POSIX compliant.
69621         Reported by Eric Blake.
69623 2009-02-27  Bruno Haible  <bruno@clisp.org>
69625         * gnulib-tool (sed): Don't alias as "sed --posix".
69626         Reported by Eric Blake.
69628 2009-02-27  Bruno Haible  <bruno@clisp.org>
69630         Avoid test link errors.
69631         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69632         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69633         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69634         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69637 2009-02-27  Bruno Haible  <bruno@clisp.org>
69639         Avoid spurious "(cached)" in configure output.
69640         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69641         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69642         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69643         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69644         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69645         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69646         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69647         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69648         Reported by Eric Blake.
69650 2009-02-27  Eric Blake  <ebb9@byu.net>
69652         printf: fix regression in previous patch
69653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69655 2009-02-27  Bruno Haible  <bruno@clisp.org>
69657         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69658         value.
69659         * lib/stdint.in.h: Likewise.
69660         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69662 2009-02-27  Eric Blake  <ebb9@byu.net>
69664         doc: mention more functions added in cygwin 1.7.0
69665         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69666         addition.
69667         * doc/posix-functions/open_wmemstream.texi: Likewise.
69668         * doc/posix-functions/wcsnlen.texi: Likewise.
69669         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69670         * doc/posix-functions/wcstod.texi: Likewise.
69671         * doc/posix-functions/wcstof.texi: Likewise.
69672         * doc/posix-functions/wcstoimax.texi: Likewise.
69673         * doc/posix-functions/wcstok.texi: Likewise.
69674         * doc/posix-functions/wcstoumax.texi: Likewise.
69676         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69678         * doc/posix-functions/fprintf.texi: Update.
69679         * doc/posix-functions/printf.texi: Update.
69680         * doc/posix-functions/snprintf.texi: Update.
69681         * doc/posix-functions/sprintf.texi: Update.
69682         * doc/posix-functions/vfprintf.texi: Update.
69683         * doc/posix-functions/vprintf.texi: Update.
69684         * doc/posix-functions/vsnprintf.texi: Update.
69685         * doc/posix-functions/vsprintf.texi: Update.
69686         * doc/glibc-functions/obstack_printf.texi: Update.
69687         * doc/glibc-functions/obstack_vprintf.texi: Update.
69689 2009-02-26  Eric Blake  <ebb9@byu.net>
69691         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69692         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69693         compilation bug by using runtime conversion.
69694         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69695         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69696         * modules/ceill-tests (Files): Use nan.h.
69697         * modules/floorl-tests (Files): Likewise.
69698         * modules/frexpl-tests (Files): Likewise.
69699         * modules/isnanl-tests (Files): Likewise.
69700         * modules/ldexpl-tests (Files): Likewise.
69701         * modules/roundl-tests (Files): Likewise.
69702         * modules/truncl-tests (Files): Likewise.
69703         * tests/test-ceill.c (main): Use a working NaN.
69704         * tests/test-floorl.c (main): Likewise.
69705         * tests/test-frexpl.c (main): Likewise.
69706         * tests/test-isnan.c (test_long_double): Likewise.
69707         * tests/test-isnanl.h (main): Likewise.
69708         * tests/test-ldexpl.h (main): Likewise.
69709         * tests/test-roundl.h (main): Likewise.
69710         * tests/test-truncl.h (main): Likewise.
69711         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69713 2009-02-26  Eric Blake  <ebb9@byu.net>
69714             Bruno Haible  <bruno@clisp.org>
69716         Work around a *printf bug with %ls on Solaris.
69717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69718         precision is specified, sprintf stops converting the wide string
69719         argument when the number of bytes that have been produced by this
69720         conversion equals or exceeds the precision.
69721         * doc/posix-functions/fprintf.texi: Update.
69722         * doc/posix-functions/printf.texi: Update.
69723         * doc/posix-functions/snprintf.texi: Update.
69724         * doc/posix-functions/sprintf.texi: Update.
69725         * doc/posix-functions/vfprintf.texi: Update.
69726         * doc/posix-functions/vprintf.texi: Update.
69727         * doc/posix-functions/vsnprintf.texi: Update.
69728         * doc/posix-functions/vsprintf.texi: Update.
69729         * doc/glibc-functions/obstack_printf.texi: Update.
69730         * doc/glibc-functions/obstack_vprintf.texi: Update.
69732 2009-02-26  Eric Blake  <ebb9@byu.net>
69734         stdlib: favor compiler check of random.h
69735         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69736         to avoid an ObjC random.h installed by Swarm.
69738 2009-02-26  Bruno Haible  <bruno@clisp.org>
69740         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69741         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69742         Reported by Gary V. Vaughan <gary@gnu.org>.
69744 2009-02-26  Bruno Haible  <bruno@clisp.org>
69746         Fix *printf behaviour regarding the %ls directive.
69747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69748         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69749         NEED_PRINTF_DIRECTIVE_LS.
69750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69751         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69752         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69753         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69754         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69755         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69756         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69758         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69759         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69760         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69761         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69762         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69764         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69765         * doc/posix-functions/fprintf.texi: Update.
69766         * doc/posix-functions/printf.texi: Update.
69767         * doc/posix-functions/snprintf.texi: Update.
69768         * doc/posix-functions/sprintf.texi: Update.
69769         * doc/posix-functions/vfprintf.texi: Update.
69770         * doc/posix-functions/vprintf.texi: Update.
69771         * doc/posix-functions/vsnprintf.texi: Update.
69772         * doc/posix-functions/vsprintf.texi: Update.
69773         * doc/glibc-functions/obstack_printf.texi: Update.
69774         * doc/glibc-functions/obstack_vprintf.texi: Update.
69775         Reported by Eric Blake.
69777 2009-02-25  Bruno Haible  <bruno@clisp.org>
69779         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69780         with known value.
69781         Reported by Gary V. Vaughan <gary@gnu.org>.
69783 2009-02-25  Bruno Haible  <bruno@clisp.org>
69785         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69786         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69787         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69788         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69789         Reported by Gary V. Vaughan <gary@gnu.org>.
69791 2009-02-25  Bruno Haible  <bruno@clisp.org>
69793         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69794         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69795         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69796         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69797         Reported by Gary V. Vaughan <gary@gnu.org>.
69799 2009-02-25  Eric Blake  <ebb9@byu.net>
69801         tests: skip fseek/ftell tests if ungetc is broken
69802         * m4/ungetc.m4: New file.
69803         * modules/fseek-tests: Split test, so ungetc dependency is
69804         separate from rest of test.
69805         * modules/fseeko-tests: Likewise.
69806         * modules/ftell-tests: Likewise.
69807         * modules/ftello-tests: Likewise.
69808         * tests/test-fseek.c (main): Isolate ungetc dependency.
69809         * tests/test-fseeko.c (main): Likewise.
69810         * tests/test-ftell.c (main): Likewise.
69811         * tests/test-ftello.c (main): Likewise.
69812         * tests/test-fseek2.sh: New file.
69813         * tests/test-fseeko2.sh: Likewise.
69814         * tests/test-ftell2.sh: Likewise.
69815         * tests/test-ftello2.sh: Likewise.
69817 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69819         test-getaddrinfo: fix usage of skip return code 77
69820         * tests/test-gettaddrinfo.c: Return skip code 77 only
69821         for first occurrence of skip (4x77 is not 77)
69823 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69825         strtod: avoid C99 decl-after-statement
69826         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69828 2009-02-24  Eric Blake  <ebb9@byu.net>
69830         strtod: detect HP-UX 11.31 bug
69831         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69832         Reported by Gary V. Vaughan.
69834 2009-02-23  Bruno Haible  <bruno@clisp.org>
69836         Fix invalid read past end of memory block.
69837         * lib/vasnprintf.c (DCHAR_SET): Define.
69838         (local_wcslen): Define only when needed.
69839         (local_strnlen, local_wcsnlen): New functions.
69840         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69841         directives that involve a conversion ourselves.
69842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69843         wcsnlen, mbrtowc, wcrtomb.
69844         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69845         * tests/test-vasprintf-posix.c (test_function): Likewise.
69846         * tests/test-snprintf-posix.h (test_function): Likewise.
69847         * tests/test-sprintf-posix.h (test_function): Likewise.
69848         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69850 2009-02-22  Bruno Haible  <bruno@clisp.org>
69852         Implement new clarified decomposition of Hangul syllables.
69853         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69854         of type LTV, return only a pairwise decomposition.
69855         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69856         Likewise.
69857         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69858         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69859         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69861 2009-02-22  Bruno Haible  <bruno@clisp.org>
69863         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69864         zero-length results and shrink excess allocated memory.
69865         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69866         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69867         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69868         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69869         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69870         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69871         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69872         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69873         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69874         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69875         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69876         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69878 2009-02-21  Bruno Haible  <bruno@clisp.org>
69880         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69881         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69882         spaces after a period. Put a space between a macro name and its
69883         argument list. Trivial rewordings.
69884         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69885         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69886         (main): Return 0 explicitly.
69888 2009-02-21  Bruno Haible  <bruno@clisp.org>
69890         Tests for module 'uninorm/filter'.
69891         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69892         * modules/uninorm/filter-tests: New file.
69894         New module 'uninorm/filter'.
69895         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69896         uninorm_filter_flush, uninorm_filter_free): New declarations.
69897         * lib/uninorm/uninorm-filter.c: New file.
69898         * modules/uninorm/filter: New file.
69900 2009-02-21  Bruno Haible  <bruno@clisp.org>
69902         Tests for module 'uninorm/nfkc'.
69903         * tests/uninorm/test-nfkc.c: New file.
69904         * tests/uninorm/test-u8-nfkc.c: New file.
69905         * tests/uninorm/test-u16-nfkc.c: New file.
69906         * tests/uninorm/test-u32-nfkc.c: New file.
69907         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69908         * tests/uninorm/test-u32-nfkc-big.c: New file.
69909         * modules/uninorm/nfkc-tests: New file.
69911         New module 'uninorm/nfkc'.
69912         * lib/uninorm/nfkc.c: New file.
69913         * modules/uninorm/nfkc: New file.
69915         Tests for module 'uninorm/nfkd'.
69916         * tests/uninorm/test-nfkd.c: New file.
69917         * tests/uninorm/test-u8-nfkd.c: New file.
69918         * tests/uninorm/test-u16-nfkd.c: New file.
69919         * tests/uninorm/test-u32-nfkd.c: New file.
69920         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69921         * tests/uninorm/test-u32-nfkd-big.c: New file.
69922         * modules/uninorm/nfkd-tests: New file.
69924         New module 'uninorm/nfkd'.
69925         * lib/uninorm/nfkd.c: New file.
69926         * modules/uninorm/nfkd: New file.
69928         Tests for module 'uninorm/nfc'.
69929         * tests/uninorm/test-nfc.c: New file.
69930         * tests/uninorm/test-u8-nfc.c: New file.
69931         * tests/uninorm/test-u16-nfc.c: New file.
69932         * tests/uninorm/test-u32-nfc.c: New file.
69933         * tests/uninorm/test-u32-nfc-big.sh: New file.
69934         * tests/uninorm/test-u32-nfc-big.c: New file.
69935         * modules/uninorm/nfc-tests: New file.
69937         New module 'uninorm/nfc'.
69938         * lib/uninorm/nfc.c: New file.
69939         * modules/uninorm/nfc: New file.
69941         Tests for module 'uninorm/nfd'.
69942         * tests/uninorm/test-nfd.c: New file.
69943         * tests/uninorm/test-u8-nfd.c: New file.
69944         * tests/uninorm/test-u16-nfd.c: New file.
69945         * tests/uninorm/test-u32-nfd.c: New file.
69946         * tests/uninorm/test-u32-nfd-big.sh: New file.
69947         * tests/uninorm/test-u32-nfd-big.c: New file.
69948         * tests/uninorm/test-u32-normalize-big.h: New file.
69949         * tests/uninorm/test-u32-normalize-big.c: New file.
69950         * tests/uninorm/NormalizationTest.txt: New file, created from
69951         Unicode 5.1.0 NormalizationTest.txt.
69952         * modules/uninorm/nfd-tests: New file.
69954         New module 'uninorm/nfd'.
69955         * lib/uninorm/nfd.c: New file.
69956         * modules/uninorm/nfd: New file.
69958         New module 'uninorm/u32-normalize'.
69959         * lib/uninorm/u32-normalize.c: New file.
69960         * modules/uninorm/u32-normalize: New file.
69962         New module 'uninorm/u16-normalize'.
69963         * lib/uninorm/u16-normalize.c: New file.
69964         * modules/uninorm/u16-normalize: New file.
69966         New module 'uninorm/u8-normalize'.
69967         * lib/uninorm/u8-normalize.c: New file.
69968         * lib/uninorm/normalize-internal.h: New file.
69969         * lib/uninorm/u-normalize-internal.h: New file.
69970         * modules/uninorm/u8-normalize: New file.
69972         New module 'uninorm/decompose-internal'.
69973         * lib/uninorm/decompose-internal.c: New file.
69974         * modules/uninorm/decompose-internal: New file.
69976         Tests for module 'uninorm/composition'.
69977         * tests/uninorm/test-composition.c: New file.
69978         * modules/uninorm/composition-tests: New file.
69980         New module 'uninorm/composition'.
69981         * lib/uninorm/composition.c: New file.
69982         * lib/uninorm/composition-table.gperf: New file, generated by
69983         gen-uni-tables.
69984         * modules/uninorm/composition: New file.
69986         Tests for module 'uninorm/compat-decomposition'.
69987         * tests/uninorm/test-compat-decomposition.c: New file.
69988         * modules/uninorm/compat-decomposition-tests: New file.
69990         New module 'uninorm/compat-decomposition'.
69991         * lib/uninorm/decompose-internal.h: New file.
69992         * lib/uninorm/compat-decomposition.c: New file.
69993         * modules/uninorm/compat-decomposition: New file.
69995         Tests for module 'uninorm/canonical-decomposition'.
69996         * tests/uninorm/test-canonical-decomposition.c: New file.
69997         * modules/uninorm/canonical-decomposition-tests: New file.
69999         New module 'uninorm/canonical-decomposition'.
70000         * lib/uninorm/canonical-decomposition.c: New file.
70001         * modules/uninorm/canonical-decomposition: New file.
70003         Tests for module 'uninorm/decomposition'.
70004         * tests/uninorm/test-decomposition.c: New file.
70005         * modules/uninorm/decomposition-tests: New file.
70007         New module 'uninorm/decomposition'.
70008         * lib/uninorm/decomposition.c: New file.
70009         * modules/uninorm/decomposition: New file.
70011         New module 'uninorm/decomposition-table'.
70012         * lib/uninorm/decomposition-table.h: New file.
70013         * lib/uninorm/decomposition-table.c: New file.
70014         * lib/uninorm/decomposition-table1.h: New file, generated by
70015         gen-uni-tables.
70016         * lib/uninorm/decomposition-table2.h: New file, generated by
70017         gen-uni-tables.
70018         * modules/uninorm/decomposition-table: New file.
70020         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
70021         (UC_DECOMP_*): New enumeration items.
70022         (get_decomposition): New function.
70023         (struct decomp_table): New type.
70024         (output_decomposition, output_decomposition_tables): New functions.
70025         (unicode_composition_exclusions): New variable.
70026         (fill_composition_exclusions, debug_output_composition_tables): New
70027         functions.
70028         (main): Accept one more argument. Invoke fill_composition_exclusions.
70029         Output decomposition and composition tables.
70031         New module 'uninorm/base'.
70032         * lib/uninorm.h: New file.
70033         * lib/unictype.h: Update comment.
70034         * modules/uninorm/base: New file.
70036 2009-02-21  David Lutterkort  <lutter@redhat.com>
70038         Tests for module 'safe-alloc'.
70039         * tests/test-safe-alloc.c: New file.
70040         * modules/safe-alloc-tests: New file.
70042         New module 'safe-alloc'.
70043         * lib/safe-alloc.h: New file.
70044         * lib/safe-alloc.c: New file.
70045         * m4/safe-alloc.m4: New file.
70046         * modules/safe-alloc: New file.
70047         * doc/safe-alloc.texi: New file.
70048         * doc/gnulib.texi: Include it.
70049         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
70050         safe-alloc.
70052 2009-02-18  Bruno Haible  <bruno@clisp.org>
70054         Fix link error on non-glibc systems.
70055         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
70056         variable.
70057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70059 2009-02-18  Jim Meyering  <meyering@redhat.com>
70061         fts: avoid used-uninitialized error due to recent change
70062         * lib/fts.c (fts_read): Guard uses of the new member,
70063         parent->fts_n_dirs_remaining, since it's not relevant for
70064         the parent of a directory specified on the command-line.
70066 2009-02-17  James Youngman  <jay@gnu.org>
70067             Bruno Haible  <bruno@clisp.org>
70069         * m4/include_next.m4: Reformulate comment.
70071 2009-02-16  Jim Meyering  <meyering@redhat.com>
70073         fts: add #if guards so that the fts_lgpl module still builds
70074         * lib/fts.c: Guard just-added hash-table-using parts with
70075         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
70076         Reported by Simon Josefsson.
70078 2009-02-15  Bruno Haible  <bruno@clisp.org>
70080         * modules/array-mergesort-tests: New file.
70081         * tests/test-array-mergesort.c: New file.
70083         New module 'array-mergesort'.
70084         * modules/array-mergesort: New file.
70085         * lib/array-mergesort.h: New file.
70087 2009-02-15  Bruno Haible  <bruno@clisp.org>
70089         Fix 2009-02-07 commit.
70090         * lib/gen-uni-tables.c (output_predicate, output_category,
70091         output_combclass, output_bidi_category, output_decimal_digit,
70092         output_digit, output_numeric, output_mirror, output_scripts,
70093         output_ident_category, output_simple_mapping): Fix format directives.
70094         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
70096 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
70098         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
70099         fixes are available from IBM.
70101 2009-02-13  Jim Meyering  <meyering@redhat.com>
70103         fts: arrange not to stat non-directories in more cases
70104         This makes GNU find (when it doesn't need to stat each file)
70105         *much* more efficient at traversing reiserfs file systems.
70106         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70107         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70108         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70109         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70110         (leaf_optimization_applies): New function.
70111         (LCO_hash, LCO_compare): New helper functions.
70112         (link_count_optimize_ok): New function.
70113         (fts_stat): Initialize new member (if dir).
70114         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70115         we've just stat'ed a directory.  Skip the stat call when possible.
70116         ---
70117         Note this AFS-related exchange:
70118         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70119         and note find's pioctl call in find/fstype.c.
70120         But that is necessary only if you want to enable the
70121         optimization for AFS, and for now, I don't.
70123         fts: move a function definition "up" (no semantic change)
70124         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70125         "up" to precede upcoming use of a related function.
70127 2009-02-11  Jim Meyering  <meyering@redhat.com>
70129         fts: correct internal computation of nlinks (optimization-related)
70130         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70131         whether the current entry is a directory, so don't test it.
70133 2009-02-10  Bruno Haible  <bruno@clisp.org>
70135         Tests for module 'uniwbrk/ulc-wordbreaks'.
70136         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70137         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70138         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70140         Tests for module 'uniwbrk/u32-wordbreaks'.
70141         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70142         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70144         Tests for module 'uniwbrk/u16-wordbreaks'.
70145         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70146         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70148         Tests for module 'uniwbrk/u8-wordbreaks'.
70149         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70150         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70152 2009-02-10  Bruno Haible  <bruno@clisp.org>
70154         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70155         property.
70156         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70157         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70158         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70160 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70162         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70163         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70165 2009-02-10  Bruno Haible  <bruno@clisp.org>
70167         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70168         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70169         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70170         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70171         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70172         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70174 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70176         * lib/sockets.h (gl_fd_to_handle): New function.
70178         * tests/test-sockets.c: Call gl_fd_to_handle.
70180 2009-02-09  Bruno Haible  <bruno@clisp.org>
70182         * doc/havelib.texi: Document the conventions on bi-arch systems.
70184 2009-02-08  Bruno Haible  <bruno@clisp.org>
70186         Document the AC_LIB_LINKFLAGS macro.
70187         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70188         * doc/gnulib.texi: Include it.
70190 2009-02-08  Bruno Haible  <bruno@clisp.org>
70192         Fix wrong order of sections, compared to TOC.
70193         * doc/gnulib.texi: Include relocatable-maint.texi after the
70194         "Regular expressions" node, not before.
70196 2009-02-08  Bruno Haible  <bruno@clisp.org>
70198         Tests for module 'unicase/totitle'.
70199         * modules/unicase/totitle-tests: New file.
70201         Tests for module 'unicase/tolower'.
70202         * modules/unicase/tolower-tests: New file.
70204         Tests for module 'unicase/toupper'.
70205         * modules/unicase/toupper-tests: New file.
70206         * tests/unicase/test-mapping-part1.h: New file.
70207         * tests/unicase/test-mapping-part2.h: New file.
70209         New module 'unicase/totitle'.
70210         * modules/unicase/totitle: New file.
70211         * lib/unicase/totitle.c: New file.
70213         New module 'unicase/tolower'.
70214         * modules/unicase/tolower: New file.
70215         * lib/unicase/tolower.c: New file.
70217         New module 'unicase/toupper'.
70218         * modules/unicase/toupper: New file.
70219         * lib/unicase/toupper.c: New file.
70220         * lib/unicase/simple-mapping.h: New file.
70222         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70223         (mapping_table): New structure.
70224         (output_simple_mapping): New function.
70225         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70226         * modules/gen-uni-tables (Description): Update.
70227         * lib/unicase/toupper.h: New file, automatically generated by
70228         gen-uni-tables.
70229         * lib/unicase/tolower.h: New file, automatically generated by
70230         gen-uni-tables.
70231         * lib/unicase/totitle.h: New file, automatically generated by
70232         gen-uni-tables.
70233         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70234         gen-uni-tables.
70235         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70236         gen-uni-tables.
70237         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70238         gen-uni-tables.
70240         New module 'unicase/base'.
70241         * modules/unicase/base: New file.
70242         * lib/unicase.h: New file.
70244 2009-02-08  Bruno Haible  <bruno@clisp.org>
70246         New module 'uniwbrk/ulc-wordbreaks'.
70247         * modules/uniwbrk/ulc-wordbreaks: New file.
70248         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70250         New module 'uniwbrk/u32-wordbreaks'.
70251         * modules/uniwbrk/u32-wordbreaks: New file.
70252         * lib/uniwbrk/u32-wordbreaks.c: New file.
70254         New module 'uniwbrk/u16-wordbreaks'.
70255         * modules/uniwbrk/u16-wordbreaks: New file.
70256         * lib/uniwbrk/u16-wordbreaks.c: New file.
70258         New module 'uniwbrk/u8-wordbreaks'.
70259         * modules/uniwbrk/u8-wordbreaks: New file.
70260         * lib/uniwbrk/u8-wordbreaks.c: New file.
70261         * lib/uniwbrk/u-wordbreaks.h: New file.
70263         New module 'uniwbrk/table'.
70264         * modules/uniwbrk/table: New file.
70265         * lib/uniwbrk/wbrktable.h: New file.
70266         * lib/uniwbrk/wbrktable.c: New file.
70268         New module 'uniwbrk/wordbreak-property'.
70269         * modules/uniwbrk/wordbreak-property: New file.
70270         * lib/uniwbrk/wordbreak-property.c: New file.
70272         * lib/gen-uni-tables.c (WBP_*): New enum items.
70273         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70274         (unicode_org_wbp): New variable.
70275         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70276         New functions.
70277         (wbp_table): New structure.
70278         (output_wbp, output_wbrk_tables): New functions.
70279         (main): Accept additional argument. Invoke fill_org_wbp,
70280         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70281         output_wbrk_tables.
70282         * modules/gen-uni-tables (Description): Update.
70283         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70284         gen-uni-tables.
70286         New module 'uniwbrk/base'.
70287         * modules/uniwbrk/base: New file.
70288         * lib/uniwbrk.h: New file.
70290 2009-02-08  Bruno Haible  <bruno@clisp.org>
70292         Update to Unicode 5.1.0.
70293         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70294         U+2185..U+2188.
70295         (is_property_default_ignorable_code_point): Don't include characters
70296         of category Cc or Cs and not-a-characters.
70297         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70298         U+0D79, U+109E, U+109F, U+A60C.
70299         * lib/unictype/bidi_of.h: Regenerated.
70300         * lib/unictype/blocks.h: Regenerated.
70301         * lib/unictype/categ_C.h: Regenerated.
70302         * lib/unictype/categ_Cf.h: Regenerated.
70303         * lib/unictype/categ_Cn.h: Regenerated.
70304         * lib/unictype/categ_L.h: Regenerated.
70305         * lib/unictype/categ_Ll.h: Regenerated.
70306         * lib/unictype/categ_Lm.h: Regenerated.
70307         * lib/unictype/categ_Lo.h: Regenerated.
70308         * lib/unictype/categ_Lu.h: Regenerated.
70309         * lib/unictype/categ_M.h: Regenerated.
70310         * lib/unictype/categ_Mc.h: Regenerated.
70311         * lib/unictype/categ_Me.h: Regenerated.
70312         * lib/unictype/categ_Mn.h: Regenerated.
70313         * lib/unictype/categ_N.h: Regenerated.
70314         * lib/unictype/categ_Nd.h: Regenerated.
70315         * lib/unictype/categ_Nl.h: Regenerated.
70316         * lib/unictype/categ_No.h: Regenerated.
70317         * lib/unictype/categ_P.h: Regenerated.
70318         * lib/unictype/categ_Pd.h: Regenerated.
70319         * lib/unictype/categ_Pe.h: Regenerated.
70320         * lib/unictype/categ_Pf.h: Regenerated.
70321         * lib/unictype/categ_Pi.h: Regenerated.
70322         * lib/unictype/categ_Po.h: Regenerated.
70323         * lib/unictype/categ_Ps.h: Regenerated.
70324         * lib/unictype/categ_S.h: Regenerated.
70325         * lib/unictype/categ_Sk.h: Regenerated.
70326         * lib/unictype/categ_Sm.h: Regenerated.
70327         * lib/unictype/categ_So.h: Regenerated.
70328         * lib/unictype/categ_of.h: Regenerated.
70329         * lib/unictype/combining.h: Regenerated.
70330         * lib/unictype/ctype_alnum.h: Regenerated.
70331         * lib/unictype/ctype_alpha.h: Regenerated.
70332         * lib/unictype/ctype_graph.h: Regenerated.
70333         * lib/unictype/ctype_lower.h: Regenerated.
70334         * lib/unictype/ctype_print.h: Regenerated.
70335         * lib/unictype/ctype_punct.h: Regenerated.
70336         * lib/unictype/ctype_upper.h: Regenerated.
70337         * lib/unictype/decdigit.h: Regenerated.
70338         * lib/unictype/digit.h: Regenerated.
70339         * lib/unictype/mirror.h: Regenerated.
70340         * lib/unictype/numeric.h: Regenerated.
70341         * lib/unictype/pr_alphabetic.h: Regenerated.
70342         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70343         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70344         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70345         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70346         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70347         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70348         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70349         * lib/unictype/pr_combining.h: Regenerated.
70350         * lib/unictype/pr_dash.h: Regenerated.
70351         * lib/unictype/pr_decimal_digit.h: Regenerated.
70352         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70353         * lib/unictype/pr_deprecated.h: Regenerated.
70354         * lib/unictype/pr_diacritic.h: Regenerated.
70355         * lib/unictype/pr_extender.h: Regenerated.
70356         * lib/unictype/pr_format_control.h: Regenerated.
70357         * lib/unictype/pr_grapheme_base.h: Regenerated.
70358         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70359         * lib/unictype/pr_grapheme_link.h: Regenerated.
70360         * lib/unictype/pr_id_continue.h: Regenerated.
70361         * lib/unictype/pr_id_start.h: Regenerated.
70362         * lib/unictype/pr_ideographic.h: Regenerated.
70363         * lib/unictype/pr_ignorable_control.h: Regenerated.
70364         * lib/unictype/pr_lowercase.h: Regenerated.
70365         * lib/unictype/pr_math.h: Regenerated.
70366         * lib/unictype/pr_numeric.h: Regenerated.
70367         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70368         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70369         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70370         * lib/unictype/pr_other_id_continue.h: Regenerated.
70371         * lib/unictype/pr_other_lowercase.h: Regenerated.
70372         * lib/unictype/pr_other_math.h: Regenerated.
70373         * lib/unictype/pr_punctuation.h: Regenerated.
70374         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70375         * lib/unictype/pr_soft_dotted.h: Regenerated.
70376         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70377         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70378         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70379         * lib/unictype/pr_uppercase.h: Regenerated.
70380         * lib/unictype/pr_xid_continue.h: Regenerated.
70381         * lib/unictype/pr_xid_start.h: Regenerated.
70382         * lib/unictype/pr_zero_width.h: Regenerated.
70383         * lib/unictype/scripts.h: Regenerated.
70384         * lib/unictype/scripts_byname.gperf: Regenerated.
70385         * lib/unictype/sy_java_ident.h: Regenerated.
70386         * lib/unilbrk/lbrkprop1.h: Regenerated.
70387         * lib/unilbrk/lbrkprop2.h: Regenerated.
70388         * tests/unictype/test-categ_C.c: Regenerated.
70389         * tests/unictype/test-categ_Cf.c: Regenerated.
70390         * tests/unictype/test-categ_Cn.c: Regenerated.
70391         * tests/unictype/test-categ_L.c: Regenerated.
70392         * tests/unictype/test-categ_Ll.c: Regenerated.
70393         * tests/unictype/test-categ_Lm.c: Regenerated.
70394         * tests/unictype/test-categ_Lo.c: Regenerated.
70395         * tests/unictype/test-categ_Lu.c: Regenerated.
70396         * tests/unictype/test-categ_M.c: Regenerated.
70397         * tests/unictype/test-categ_Mc.c: Regenerated.
70398         * tests/unictype/test-categ_Me.c: Regenerated.
70399         * tests/unictype/test-categ_Mn.c: Regenerated.
70400         * tests/unictype/test-categ_N.c: Regenerated.
70401         * tests/unictype/test-categ_Nd.c: Regenerated.
70402         * tests/unictype/test-categ_Nl.c: Regenerated.
70403         * tests/unictype/test-categ_No.c: Regenerated.
70404         * tests/unictype/test-categ_P.c: Regenerated.
70405         * tests/unictype/test-categ_Pd.c: Regenerated.
70406         * tests/unictype/test-categ_Pe.c: Regenerated.
70407         * tests/unictype/test-categ_Pf.c: Regenerated.
70408         * tests/unictype/test-categ_Pi.c: Regenerated.
70409         * tests/unictype/test-categ_Po.c: Regenerated.
70410         * tests/unictype/test-categ_Ps.c: Regenerated.
70411         * tests/unictype/test-categ_S.c: Regenerated.
70412         * tests/unictype/test-categ_Sk.c: Regenerated.
70413         * tests/unictype/test-categ_Sm.c: Regenerated.
70414         * tests/unictype/test-categ_So.c: Regenerated.
70415         * tests/unictype/test-ctype_alnum.c: Regenerated.
70416         * tests/unictype/test-ctype_alpha.c: Regenerated.
70417         * tests/unictype/test-ctype_graph.c: Regenerated.
70418         * tests/unictype/test-ctype_lower.c: Regenerated.
70419         * tests/unictype/test-ctype_print.c: Regenerated.
70420         * tests/unictype/test-ctype_punct.c: Regenerated.
70421         * tests/unictype/test-ctype_upper.c: Regenerated.
70422         * tests/unictype/test-decdigit.h: Regenerated.
70423         * tests/unictype/test-digit.h: Regenerated.
70424         * tests/unictype/test-numeric.h: Regenerated.
70425         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70426         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70427         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70428         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70429         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70430         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70431         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70432         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70433         * tests/unictype/test-pr_combining.c: Regenerated.
70434         * tests/unictype/test-pr_dash.c: Regenerated.
70435         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70436         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70437         * tests/unictype/test-pr_deprecated.c: Regenerated.
70438         * tests/unictype/test-pr_diacritic.c: Regenerated.
70439         * tests/unictype/test-pr_extender.c: Regenerated.
70440         * tests/unictype/test-pr_format_control.c: Regenerated.
70441         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70442         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70443         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70444         * tests/unictype/test-pr_id_continue.c: Regenerated.
70445         * tests/unictype/test-pr_id_start.c: Regenerated.
70446         * tests/unictype/test-pr_ideographic.c: Regenerated.
70447         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70448         * tests/unictype/test-pr_lowercase.c: Regenerated.
70449         * tests/unictype/test-pr_math.c: Regenerated.
70450         * tests/unictype/test-pr_numeric.c: Regenerated.
70451         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70452         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70453         Regenerated.
70454         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70455         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70456         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70457         * tests/unictype/test-pr_other_math.c: Regenerated.
70458         * tests/unictype/test-pr_punctuation.c: Regenerated.
70459         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70460         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70461         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70462         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70463         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70464         * tests/unictype/test-pr_uppercase.c: Regenerated.
70465         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70466         * tests/unictype/test-pr_xid_start.c: Regenerated.
70467         * tests/unictype/test-pr_zero_width.c: Regenerated.
70469         Update to Unicode 5.1.0.
70470         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70471         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70472         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70473         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70474         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70475         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70476         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70477         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70478         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70479         (nonspacing_table_ind): Update.
70480         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70482         Update to Unicode 5.1.0.
70483         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70484         code transform.
70485         * lib/uniname/uniname.c (unicode_character_name,
70486         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70487         * lib/uniname/uninames.h: Regenerated.
70488         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70490 2009-02-07  Bruno Haible  <bruno@clisp.org>
70492         Merge gen-ctype and gen-lbrk into a single program.
70493         * lib/gen-uni-tables.c: New file, incorporating
70494         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70495         Add directory prefixes to the names of the generated files.
70496         * lib/unictype/gen-ctype.c: Remove file.
70497         * lib/unilbrk/gen-lbrk.c: Remove file.
70498         * modules/gen-uni-tables: New file.
70499         * modules/unictype/gen-ctype: Remove file.
70500         * modules/unilbrk/gen-lbrk: Remove file.
70502 2009-02-07  Bruno Haible  <bruno@clisp.org>
70504         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70506         New module 'unistr/u32-strcoll'.
70507         * modules/unistr/u32-strcoll: New file.
70508         * lib/unistr/u32-strcoll.c: New file.
70510         New module 'unistr/u16-strcoll'.
70511         * modules/unistr/u16-strcoll: New file.
70512         * lib/unistr/u16-strcoll.c: New file.
70514         New module 'unistr/u8-strcoll'.
70515         * modules/unistr/u8-strcoll: New file.
70516         * lib/unistr/u8-strcoll.c: New file.
70517         * lib/unistr/u-strcoll.h: New file.
70519 2009-02-07  Bruno Haible  <bruno@clisp.org>
70521         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70522         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70523         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70524         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70525         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70526         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70528 2009-02-07  Bruno Haible  <bruno@clisp.org>
70530         Make 64-bit clean.
70531         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70532         output_combclass, output_bidi_category, output_decimal_digit,
70533         output_digit, output_numeric, output_mirror, output_scripts,
70534         output_ident_category): Use proper width specifier in format strings.
70536 2009-02-07  Bruno Haible  <bruno@clisp.org>
70538         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70539         failure behaviour.
70541 2009-02-07  Jim Meyering  <meyering@redhat.com>
70543         regex: avoid compilation failure with upcoming gcc-4.4
70544         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70545         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70546         "... error: integer overflow in preprocessor expression".
70548 2009-02-05  Ben Pfaff  <blp@gnu.org>
70550         Fix link errors on Windows when close module is used.
70551         * modules/close: Add $(LIB_CLOSE) to Link section.
70552         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70553         $(LIB_CLOSE) on Windows.
70555 2009-02-05  Jim Meyering  <meyering@redhat.com>
70557         still avoid unused-parameter warnings, but do it cleanly
70558         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70559         (get_fs_usage): Cast to void instead.
70560         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70561         (dev_from_mount_options, read_file_system_list): Cast to void.
70562         Prompted by Bruno Haible.
70564 2009-02-04  Jim Meyering  <meyering@redhat.com>
70566         fsusage.c: correct copyright year
70567         * lib/fsusage.c: Reflect year in which the change is pushed into
70569         avoid misc. warnings
70570         * lib/fsusage.c (UNUSED_PARAM): Define.
70571         (get_fs_usage): Mark parameter "disk" as unused.
70572         * lib/getugroups.c (getgrent): Use "void" in prototype.
70573         * lib/mountlist.c: Mark unused parameters.
70574         (read_file_system_list): Declare a local with "const".
70575         * lib/nanosleep.c (getnow): Declare static.
70576         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70578         dirfd: set errno upon failure
70579         * lib/dirfd.c: Include <errno.h>.
70580         Set errno to ENOTSUP when returning -1.
70581         * modules/dirfd (Depends-on): Add errno.
70582         Suggested by John Kodis <kodis@comcast.net>.
70584 2009-02-01  Bruno Haible  <bruno@clisp.org>
70586         Don't assume sizeof (long) >= sizeof (void *).
70587         * lib/memcmp.c: Include stdint.h.
70588         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70589         srcp2 to 'const byte *'.
70590         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70591         types to uintptr_t.
70592         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70593         * modules/memcmp (Depends-on): Add stdint.
70594         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70596 2009-01-30  Eric Blake  <ebb9@byu.net>
70598         fix more require-before-expand issues
70599         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70600         expand, AC_PROG_AWK.
70601         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70603 2009-01-28  Eric Blake  <ebb9@byu.net>
70605         version-etc: use consistent URL formatting
70606         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70607         Improve formatting.  Use fputs for string without %.
70609 2009-01-28  Jim Meyering  <meyering@redhat.com>
70611         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70612         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70613         "underquoted definition of NAME" from autoconf-2.59.
70615 2009-01-28  Bruno Haible  <bruno@clisp.org>
70617         * doc/gnulib.texi: Add "Obsolete modules" to index.
70619 2009-01-28  Jim Meyering  <meyering@redhat.com>
70621         useless-if-before-free: recognize more variants
70622         * build-aux/useless-if-before-free: Also recognize e.g.,
70623         if (NULL != p) free (p);
70625 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70627         test-getaddrinfo: skip (don't fail) this test when there's no network
70628         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70629         on the presumption that it means you lack network access.
70631 2009-01-26  Jim Meyering  <meyering@redhat.com>
70633         fflush: avoid warnings on modern systems
70634         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70635         pos and result, into scopes where they're used.
70637 2009-01-26  Eric Blake  <ebb9@byu.net>
70639         Silence warning reintroduced by recent extensions patch.
70640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70641         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70642         autoconf.
70644         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70645         * m4/00gnulib.m4: New file.
70646         * gnulib-tool (func_get_filelist): Always use it.
70647         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70648         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70650 2009-01-25  Bruno Haible  <bruno@clisp.org>
70652         Make test-quotearg work on MacOS X and AIX.
70653         * tests/test-quotearg.sh: New file.
70654         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70655         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70656         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70657         include <libintl.h>.
70658         (fake_locale): Remove variable.
70659         (gettext, dgettext, dcgettext): Remove functions.
70660         (main): Instead of setting a fake locale, set a real locale. Call
70661         textdomain and bindtextdomain.
70662         * modules/quotearg-tests (Files): Add the new files.
70663         (Depends-on): Add gettext, setenv, unsetenv.
70664         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70665         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70666         Augment TESTS_ENVIRONMENT.
70668 2009-01-25  Bruno Haible  <bruno@clisp.org>
70670         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70671         fr_FR.ISO8859-1 locale on MacOS X.
70672         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70673         ja_JP.eucJP locale on MacOS X.
70674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70675         zh_CN.GB18030 locale on MacOS X.
70677 2009-01-25  Bruno Haible  <bruno@clisp.org>
70679         Avoid link errors on MacOS X 10.3.
70680         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70681         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70683 2009-01-25  Bruno Haible  <bruno@clisp.org>
70685         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70686         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70687         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70688         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70689         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70690         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70691         posix_spawnattr_init, posix_spawnattr_setsigmask,
70692         posix_spawnattr_setflags, posix_spawnattr_destroy.
70694         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70695         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70696         * modules/execute (Files): Remove m4/posix_spawn.m4.
70697         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70698         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70699         posix_spawnattr_init, posix_spawnattr_setsigmask,
70700         posix_spawnattr_setflags, posix_spawnattr_destroy.
70702 2009-01-25  Bruno Haible  <bruno@clisp.org>
70704         * lib/glthread/threadlib.c: Include <stdlib.h>.
70706 2009-01-25  Bruno Haible  <bruno@clisp.org>
70708         * lib/glthread/threadlib.c (dummy): New declaration.
70710 2009-01-25  Bruno Haible  <bruno@clisp.org>
70712         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70713         multibyte characters also for the GB18030 encoding. Don't crash when
70714         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70716 2009-01-25  Bruno Haible  <bruno@clisp.org>
70718         Avoid redefining 'struct random_data' on OSF/1 5.1.
70719         * lib/stdlib.in.h: Include <random.h> if it exists.
70720         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70721         HAVE_RANDOM_H. Include <random.h> when testing whether
70722         'struct random_data' exists.
70723         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70725 2009-01-25  Bruno Haible  <bruno@clisp.org>
70727         Don't install charset.alias on MacOS X >= 10.3.
70728         * lib/localcharset.c (DARWIN7): New macro.
70729         (get_charset_aliases): Hardcode the result for Darwin7.
70730         * modules/localcharset (install-exec-local): Don't install
70731         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70733 2009-01-25  Bruno Haible  <bruno@clisp.org>
70735         Don't install charset.alias on mingw and Cygwin.
70736         * modules/localcharset (install-exec-local): Don't install
70737         charset.alias on mingw and Cygwin, if the file does not yet exist.
70738         The result for these platforms is hardcoded in localcharset.c.
70740 2009-01-25  Bruno Haible  <bruno@clisp.org>
70742         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70744         before requiring AC_USE_SYSTEM_EXTENSIONS.
70746 2009-01-25  Jim Meyering  <meyering@redhat.com>
70748         c-strtod: avoid warnings
70749         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70750         "assignment discards qualifiers from pointer target type" warnings.
70752 2009-01-24  Bruno Haible  <bruno@clisp.org>
70754         Add support for non-UTF-8 locales on MacOS X.
70755         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70756         canonical encodings. For Darwin 7 and newer, don't map traditional
70757         encodings to UTF-8.
70758         Reported by Vincent Lefevre <vincent@vinc17.org>
70759         at <http://savannah.gnu.org/bugs/?25235>.
70761 2009-01-24  Bruno Haible  <bruno@clisp.org>
70763         * doc/gnulib.texi (Obsolete modules): New section.
70764         Reported by Mike Frysinger <vapier@gentoo.org>.
70766 2009-01-24  Bruno Haible  <bruno@clisp.org>
70768         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70769         (%.dvi): New rule.
70771 2009-01-24  Bruno Haible  <bruno@clisp.org>
70773         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70774         Reported by Eric Blake.
70776 2009-01-24  Bruno Haible  <bruno@clisp.org>
70778         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70779         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70780         Reported by Gary V. Vaughan <gary@gnu.org>.
70782 2009-01-24  Bruno Haible  <bruno@clisp.org>
70784         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70786 2009-01-23  Bruno Haible  <bruno@clisp.org>
70788         Make c-strtod, c-strtold usable in libraries.
70789         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70790         (C_STRTOD): Call strdup instead of xstrdup.
70791         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70792         * modules/c-strtold (Depends-on): Likewise.
70793         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70794         * NEWS: Mention the change.
70795         Reported by Michael Gold <mgold@ncf.ca>.
70797 2009-01-23  Jim Meyering  <meyering@redhat.com>
70799         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70800         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70801         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70803 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70805         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70806         GNU CoreUtils.
70807         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70808         * modules/version-etc (Description): Update.
70810 2009-01-22  Bruno Haible  <bruno@clisp.org>
70812         Cache the C locale object.
70813         * lib/c-strtod.c (c_locale_cache): New variable.
70814         (c_locale): New function.
70815         (C_STRTOD): Use it, and don't call freelocale.
70816         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70817         Suggested by Paolo Bonzini.
70819 2009-01-21  Bruno Haible  <bruno@clisp.org>
70821         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70822         conditions other than overflow.
70824 2009-01-21  Bruno Haible  <bruno@clisp.org>
70826         * lib/c-strtod.c: Include errno.h.
70827         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70828         value from STRTOD_L and STRTOD.
70830 2009-01-21  Bruno Haible  <bruno@clisp.org>
70831         and Jim Meyering  <meyering@redhat.com>
70833         nanosleep: skip configure test (fail it) for apple universal builds
70834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70835         universal builds, assume that nanosleep does not work.
70836         * modules/nanosleep (Depends-on): Add multiarch.
70838         mktime: skip configure test (fail it) for apple universal builds
70839         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70840         universal builds, assume that mktime does not work.
70841         * modules/mktime (Depends-on): Add multiarch.
70843 2009-01-21  Eric Blake  <ebb9@byu.net>
70845         multiarch: avoid expand-before-require warning
70846         * modules/multiarch (configure.ac): Require, rather than expand,
70847         gl_MULTIARCH.
70848         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70849         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70850         enforce that all clients require it.  Partial reversion of
70851         2008-12-29 patch.
70853         error: avoid expand-before-require warning
70854         * modules/errno (configure.ac): Require, rather than expand,
70855         gl_HEADER_ERRNO_H.
70856         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70857         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70858         enforce that all clients require it.
70860         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70861         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70862         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70863         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70865 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70867         Revert:
70868         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70870         regex: do not depend on obsolete modules.
70871         * modules/regex: Remove memcmp and memmove.
70873 2009-01-20  Bruno Haible  <bruno@clisp.org>
70875         Make the 'link' module link on Windows NT 4.
70876         * lib/link.c (_WIN32_WINNT): Don't define.
70877         (CreateHardLinkFuncType): New type.
70878         (CreateHardLinkFunc, initialized): New variables.
70879         (initialize): New function.
70880         (link): Invoke CreateHardLink indirectly through the function pointer.
70882 2009-01-20  Bruno Haible  <bruno@clisp.org>
70884         Fix compilation failure on mingw.
70885         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70887 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70889         * doc/c-strtod.texi: Mention a couple of restrictions.
70891 2009-01-20  Jim Meyering  <meyering@redhat.com>
70893         gettimeofday: move more declarations out of functions
70894         * lib/gettimeofday.c: Move extern declarations of tzset and
70895         gmtime out of containing functions.  Prompted by Bruno Haible.
70897 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70899         regex: do not depend on obsolete modules.
70900         * modules/regex: Remove memcmp and memmove.
70902 2009-01-19  Bruno Haible  <bruno@clisp.org>
70904         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70905         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70906         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70907         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70908         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70910 2009-01-19  Bruno Haible  <bruno@clisp.org>
70912         * tests/test-link.c: Include <errno.h>.
70913         (main): Exit with code 77 when a hard link cannot be created due to
70914         the file system.
70915         * tests/test-link.sh: Skip test when a hard link cannot be created due
70916         to the file system.
70917         Suggested by Eric Blake.
70919 2009-01-19  Martin Lambers  <marlam@marlam.de>
70921         * modules/link-tests: New file.
70922         * tests/test-link.sh: New file.
70923         * tests/test-link.c: New file.
70925 2009-01-19  Eric Blake  <ebb9@byu.net>
70927         doc: mention another function added in cygwin 1.7.0
70928         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70929         Another new function in cygwin 1.7.
70931 2009-01-19  Bruno Haible  <bruno@clisp.org>
70933         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70934         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70935         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70936         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70937         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70938         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70940         * m4/md4.m4 (gl_MD4): Likewise.
70941         * m4/md5.m4 (gl_MD5): Likewise.
70942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70943         * m4/sha1.m4 (gl_SHA1): Likewise.
70944         * m4/sha256.m4 (gl_SHA256): Likewise.
70945         * m4/sha512.m4 (gl_SHA512): Likewise.
70947 2009-01-19  Bruno Haible  <bruno@clisp.org>
70949         * modules/uniname/uniname-tests (Depends-on): Add progname.
70950         * tests/uniname/test-uninames.c: Include progname.h.
70951         (main): Call set_program_name.
70953         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70954         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70955         (main): Call set_program_name.
70957         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70958         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70959         (main): Call set_program_name.
70961         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70962         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70963         (main): Call set_program_name.
70965         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70966         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70967         (main): Call set_program_name.
70969         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70970         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70971         (main): Call set_program_name.
70973         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70974         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70975         (main): Call set_program_name.
70977         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70978         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70979         (main): Call set_program_name.
70981         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70982         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70983         (main): Call set_program_name.
70985 2009-01-19  Eric Blake  <ebb9@byu.net>
70987         test-unistd: test previous patch
70988         * tests/test-unistd.c: Test *_FILENO macros.
70990         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70991         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70992         Guarantee a definition.
70993         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70994         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70995         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70996         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70997         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70998         Likewise.
70999         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
71000         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
71001         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71002         Likewise.
71003         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
71004         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
71005         (STDERR_FILENO): Likewise.
71006         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
71007         (STDERR_FILENO): Likewise.
71008         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
71009         (STDERR_FILENO): Likewise.
71010         Reported by Elbert Pol.
71012 2009-01-19  Eric Blake  <ebb9@byu.net>
71014         doc: mention more functions added in cygwin 1.7.0
71015         * doc/posix-functions/abort.texi (abort): Update wording related
71016         to cygwin.
71017         * doc/posix-functions/daylight.texi (daylight): Likewise.
71018         * doc/posix-functions/optarg.texi (optarg): Likewise.
71019         * doc/posix-functions/optarg.texi (opterr): Likewise.
71020         * doc/posix-functions/optarg.texi (optind): Likewise.
71021         * doc/posix-functions/optarg.texi (optopt): Likewise.
71022         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
71023         worked in 1.5.x, and was withdrawn in 1.7.
71024         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
71025         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
71026         cygwin versions.
71027         * doc/posix-functions/perror.texi (perror): Likewise.
71028         * doc/posix-functions/printf.texi (printf): Likewise.
71029         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
71030         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
71031         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
71032         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
71033         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
71034         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
71035         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71036         Likewise.
71037         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71038         Likewise.
71039         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
71040         this function.
71041         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
71042         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
71043         Likewise.
71044         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
71045         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
71046         * doc/posix-functions/confstr.texi (confstr): Likewise.
71047         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
71048         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
71049         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
71050         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
71051         * doc/posix-functions/fputws.texi (fputws): Likewise.
71052         * doc/posix-functions/fwide.texi (fwide): Likewise.
71053         * doc/posix-functions/getwc.texi (getwc): Likewise.
71054         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
71055         * doc/posix-functions/putwc.texi (putwc): Likewise.
71056         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
71057         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
71058         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
71059         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
71060         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
71061         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
71062         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
71063         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
71064         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
71065         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
71066         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
71068 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71070         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
71071         * lib/ioctl.c: Include <sys/ioctl.h>.
71073 2009-01-19  Simon Josefsson  <simon@josefsson.org>
71075         * modules/getdate-tests (Depends-on): Add progname.
71076         * tests/test-getdate.c: Use progname module, to avoid link errors
71077         on non-glibc systems.
71079 2009-01-18  Simon Josefsson  <simon@josefsson.org>
71081         * modules/filenamecat-tests (Depends-on): Add progname.
71082         * modules/fstrcmp-tests (Depends-on): Likewise.
71084         * tests/test-filenamecat.c: Use progname module, to avoid link
71085         errors on non-glibc systems.
71086         * tests/test-fstrcmp.c: Likewise.
71088 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71090         gettimeofday: avoid warning: nested extern declaration of 'localtime'
71091         * lib/gettimeofday.c: Move extern declaration out of function.
71093 2009-01-18  Bruno Haible  <bruno@clisp.org>
71095         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
71096         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
71097         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
71099 2009-01-18  Bruno Haible  <bruno@clisp.org>
71101         * lib/strftime.c (MEMPCPY): Remove unused macro.
71102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
71104 2009-01-18  Martin Lambers  <marlam@marlam.de>
71106         New module 'link'.
71107         * lib/unistd.in.h (link): New declaration.
71108         * lib/link.c: New file.
71109         * m4/link.m4: New file.
71110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71111         HAVE_LINK.
71112         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71113         * modules/link: New file.
71114         * doc/posix-functions/link.texi: Mention the new module.
71116 2009-01-18  Bruno Haible  <bruno@clisp.org>
71118         * tests/test-avltree_list.c (main): Call set_program_name.
71119         * tests/test-avltree_oset.c (main): Likewise.
71120         * tests/test-obstack-printf.c: Include progname.h.
71121         (main): Call set_program_name.
71122         * tests/test-quotearg.c: Include progname.h.
71123         (main): Call set_program_name.
71124         * tests/test-xmemdup0.c: Include progname.h.
71125         (main): Call set_program_name.
71127 2009-01-18  Bruno Haible  <bruno@clisp.org>
71129         New module 'alphasort'.
71130         * lib/dirent.in.h (alphasort): New declaration.
71131         * lib/alphasort.c: New file, from glibc with modifications.
71132         * m4/alphasort.m4: New file.
71133         * modules/alphasort: New file.
71134         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71135         HAVE_ALPHASORT.
71136         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71137         HAVE_ALPHASORT.
71138         * doc/posix-functions/alphasort.texi: Mention the new module and the
71139         portability problems.
71141 2009-01-18  Bruno Haible  <bruno@clisp.org>
71143         New module 'scandir'.
71144         * lib/dirent.in.h (scandir): New declaration.
71145         * lib/scandir.c: New file, from glibc with modifications.
71146         * m4/scandir.m4: New file.
71147         * modules/scandir: New file.
71148         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71149         HAVE_SCANDIR.
71150         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71151         HAVE_SCANDIR.
71152         * doc/posix-functions/scandir.texi: Mention the new module and the
71153         portability problems.
71155 2009-01-17  Bruno Haible  <bruno@clisp.org>
71157         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71158         Update documentation.
71159         (func_remove_suffix): Escape all dots in the suffix. Update
71160         documentation.
71161         (func_filter_filelist): Update documentation.
71162         Reported by Ralf Wildenhues.
71164 2009-01-17  Bruno Haible  <bruno@clisp.org>
71166         * modules/dprintf-posix-tests: New file.
71167         * tests/test-dprintf-posix.sh: New file.
71168         * tests/test-dprintf-posix.c: New file.
71170         New modules 'dprintf', 'dprintf-posix'.
71171         * lib/stdio.in.h (dprintf): New declaration.
71172         * lib/dprintf.c: New file.
71173         * m4/dprintf.m4: New file.
71174         * m4/dprintf-posix.m4: New file.
71175         * modules/dprintf: New file.
71176         * modules/dprintf-posix: New file.
71177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71178         HAVE_DPRINTF, REPLACE_DPRINTF.
71179         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71180         HAVE_DPRINTF, REPLACE_DPRINTF.
71181         * doc/posix-functions/dprintf.texi: Mention the new modules.
71183 2009-01-17  Bruno Haible  <bruno@clisp.org>
71185         * modules/vdprintf-posix-tests: New file.
71186         * tests/test-vdprintf-posix.sh: New file.
71187         * tests/test-vdprintf-posix.c: New file.
71189         New modules 'vdprintf', 'vdprintf-posix'.
71190         * lib/stdio.in.h (vdprintf): New declaration.
71191         * lib/vdprintf.c: New file.
71192         * m4/vdprintf.m4: New file.
71193         * m4/vdprintf-posix.m4: New file.
71194         * modules/vdprintf: New file.
71195         * modules/vdprintf-posix: New file.
71196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71197         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71198         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71199         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71200         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71202 2009-01-17  Bruno Haible  <bruno@clisp.org>
71204         Fix replacement of fopen on mingw.
71205         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71206         mingw.
71208 2009-01-17  Bruno Haible  <bruno@clisp.org>
71210         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71211         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71213 2009-01-17  Bruno Haible  <bruno@clisp.org>
71215         Avoid test-fflush2.sh failure on mingw.
71216         * tests/test-fflush2.c: Include binary-io.h.
71217         (main): Put standard input into binary mode.
71218         * modules/fflush-tests (Depends-on): Add binary-io.
71220 2009-01-17  Bruno Haible  <bruno@clisp.org>
71222         * lib/wchar.in.h: In another particular situation, include only the
71223         system's <wchar.h> file.
71224         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71225         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71226         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71228 2009-01-17  Bruno Haible  <bruno@clisp.org>
71230         Support for stripping executables in --enable-relocatable.
71231         * build-aux/install-reloc: Expect one more argument, or an environment
71232         variable RELOC_STRIP_PROG. If set, strip the destination program and
71233         its wrapper.
71234         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71235         RELOC_STRIP_PROG.
71236         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71237         to set RELOCATABLE_STRIP.
71238         * NEWS: Mention the new Makefile requirement.
71240 2009-01-17  Bruno Haible  <bruno@clisp.org>
71242         * build-aux/install-reloc: Remove debugging information left over by
71243         C compiler on MacOS X.
71245 2009-01-17  Bruno Haible  <bruno@clisp.org>
71247         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71248         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71249         _NSGetExecutablePath.
71251 2009-01-16  Jim Meyering  <meyering@redhat.com>
71253         strerror: avoid warnings about discarding "const"
71254         * lib/strerror.c (rpl_strerror): Instead of returning a const
71255         string from each and every "case", use a variable, and add a single
71256         cast after the switch.
71258 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71260         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71262 2009-01-16  Bruno Haible  <bruno@clisp.org>
71264         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71265         array initializer syntax that also works in C++ mode.
71266         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71268 2009-01-16  Jim Meyering  <meyering@redhat.com>
71270         poll: suppress a warning
71271         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71272         to ignore "...unsigned expression < 0 is always false" warnings.
71274 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71276         poll: remove declarations of unused variables
71277         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71278         sockbuf and optlen.
71280 2009-01-15  Bruno Haible  <bruno@clisp.org>
71282         Make fflush-after-ungetc POSIX compliant on BSD systems.
71283         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71284         (clear_ungetc_buffer): Implement also for other systems.
71285         (rpl_fflush): On glibc systems, invoke
71286         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71287         clear_ungetc_buffer after fetching the stream's position, not before.
71289 2009-01-15  Bruno Haible  <bruno@clisp.org>
71291         Make fflush-after-ungetc POSIX compliant on glibc systems.
71292         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71293         after ungetc.
71294         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71295         (rpl_fflush): On glibc systems, simply call the system's fflush
71296         function after clearing the ungetc buffer.
71297         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71298         Instead, lseek only to the end of file, then use the system's fseeko
71299         for the rest. On glibc systems, reset the EOF indicator bit.
71301 2009-01-15  Jim Meyering  <meyering@redhat.com>
71303         openmp.m4: revert quote-adding change, for portability to older autoconf
71304         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71305         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71306         Simon Josefsson noticed the problem when using autoconf-2.61.
71308 2009-01-15  Bruno Haible  <bruno@clisp.org>
71310         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71311         * tests/test-fflush2.c (ASSERT): Always fail.
71312         (main): Add two tests for fflush() after ungetc(), taking into account
71313         the Austin Group's clarification.
71314         Suggested by Eric Blake.
71316 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71318         mktime.m4: remove K&R-style function prototypes
71319         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71320         for the Sun C++ compiler.
71322 2009-01-14  Bruno Haible  <bruno@clisp.org>
71324         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71325         while including <wchar.h>.
71326         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71327         the system's <wchar.h> file.
71328         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71330 2009-01-14  Bruno Haible  <bruno@clisp.org>
71332         * m4/csharp.m4: Don't mention gettext on the serial number line.
71333         * m4/csharpexec.m4: Likewise.
71334         * m4/eaccess.m4: Likewise.
71335         * m4/javaexec.m4: Likewise.
71336         * m4/sig_atomic_t.m4: Likewise.
71337         * m4/tmpdir.m4: Likewise.
71338         * m4/intldir.m4: Bump gettext version.
71339         * m4/lib-ld.m4: Likewise.
71341 2009-01-14  Bruno Haible  <bruno@clisp.org>
71343         * lib/progname.c (set_program_name): Add more comments.
71344         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71346 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71348         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71349         were sys/stat.h does not define it.
71351 2009-01-14  Jim Meyering  <meyering@redhat.com>
71353         many *.m4 files: improve m4 quoting
71354         99% of this change was performed by running the following commands:
71355         git ls-files | grep '\.m4$' | xargs perl -pi \
71356           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71357           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71358           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71359           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71360         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71361         The remainder were to add Copyright dates, increment serial numbers,
71362         undo some changes in comments, exclude m4/intl.m4, and add quotes
71363         around the "1" in ",1" where the unusual spacing prohibited the
71364         above regexps from doing the job.  For more details, see
71365         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71366         * m4/acl.m4: Modified.
71367         * m4/afs.m4: Likewise.
71368         * m4/alloca.m4: Likewise.
71369         * m4/argp.m4: Likewise.
71370         * m4/argz.m4: Likewise.
71371         * m4/atexit.m4: Likewise.
71372         * m4/bison-i18n.m4: Likewise.
71373         * m4/bison.m4: Likewise.
71374         * m4/byteswap.m4: Likewise.
71375         * m4/c-stack.m4: Likewise.
71376         * m4/c-strtod.m4: Likewise.
71377         * m4/calloc.m4: Likewise.
71378         * m4/canonicalize-lgpl.m4: Likewise.
71379         * m4/chown.m4: Likewise.
71380         * m4/clock_time.m4: Likewise.
71381         * m4/codeset.m4: Likewise.
71382         * m4/copy-file.m4: Likewise.
71383         * m4/csharp.m4: Likewise.
71384         * m4/csharpcomp.m4: Likewise.
71385         * m4/csharpexec.m4: Likewise.
71386         * m4/d-ino.m4: Likewise.
71387         * m4/d-type.m4: Likewise.
71388         * m4/dirfd.m4: Likewise.
71389         * m4/double-slash-root.m4: Likewise.
71390         * m4/eaccess.m4: Likewise.
71391         * m4/eealloc.m4: Likewise.
71392         * m4/environ.m4: Likewise.
71393         * m4/errno_h.m4: Likewise.
71394         * m4/euidaccess.m4: Likewise.
71395         * m4/execute.m4: Likewise.
71396         * m4/fatal-signal.m4: Likewise.
71397         * m4/fchdir.m4: Likewise.
71398         * m4/fcntl_h.m4: Likewise.
71399         * m4/fileblocks.m4: Likewise.
71400         * m4/filenamecat.m4: Likewise.
71401         * m4/findprog.m4: Likewise.
71402         * m4/flexmember.m4: Likewise.
71403         * m4/fnmatch.m4: Likewise.
71404         * m4/fopen.m4: Likewise.
71405         * m4/fpending.m4: Likewise.
71406         * m4/fprintf-posix.m4: Likewise.
71407         * m4/free.m4: Likewise.
71408         * m4/frexp.m4: Likewise.
71409         * m4/frexpl.m4: Likewise.
71410         * m4/fsusage.m4: Likewise.
71411         * m4/ftruncate.m4: Likewise.
71412         * m4/gc-camellia.m4: Likewise.
71413         * m4/gc-random.m4: Likewise.
71414         * m4/gc.m4: Likewise.
71415         * m4/getaddrinfo.m4: Likewise.
71416         * m4/getcwd-abort-bug.m4: Likewise.
71417         * m4/getcwd-path-max.m4: Likewise.
71418         * m4/getdate.m4: Likewise.
71419         * m4/getdomainname.m4: Likewise.
71420         * m4/getgroups.m4: Likewise.
71421         * m4/gethostname.m4: Likewise.
71422         * m4/gethrxtime.m4: Likewise.
71423         * m4/getline.m4: Likewise.
71424         * m4/getloadavg.m4: Likewise.
71425         * m4/getndelim2.m4: Likewise.
71426         * m4/getpass.m4: Likewise.
71427         * m4/gettext.m4: Likewise.
71428         * m4/gettime.m4: Likewise.
71429         * m4/gettimeofday.m4: Likewise.
71430         * m4/gnulib-common.m4: Likewise.
71431         * m4/group-member.m4: Likewise.
71432         * m4/host-os.m4: Likewise.
71433         * m4/iconv.m4: Likewise.
71434         * m4/iconv_open.m4: Likewise.
71435         * m4/inet_ntop.m4: Likewise.
71436         * m4/inet_pton.m4: Likewise.
71437         * m4/inline.m4: Likewise.
71438         * m4/intldir.m4: Likewise.
71439         * m4/intlmacosx.m4: Likewise.
71440         * m4/intmax.m4: Likewise.
71441         * m4/intmax_t.m4: Likewise.
71442         * m4/inttypes.m4: Likewise.
71443         * m4/inttypes_h.m4: Likewise.
71444         * m4/inttypes-pri.m4: Likewise.
71445         * m4/isapipe.m4: Likewise.
71446         * m4/isnand.m4: Likewise.
71447         * m4/isnanf.m4: Likewise.
71448         * m4/isnanl.m4: Likewise.
71449         * m4/javacomp.m4: Likewise.
71450         * m4/javaexec.m4: Likewise.
71451         * m4/jm-winsz1.m4: Likewise.
71452         * m4/jm-winsz2.m4: Likewise.
71453         * m4/lchown.m4: Likewise.
71454         * m4/lcmessage.m4: Likewise.
71455         * m4/ldexpl.m4: Likewise.
71456         * m4/lib-ld.m4: Likewise.
71457         * m4/lib-link.m4: Likewise.
71458         * m4/libsigsegv.m4: Likewise.
71459         * m4/link-follow.m4: Likewise.
71460         * m4/localcharset.m4: Likewise.
71461         * m4/locale-fr.m4: Likewise.
71462         * m4/locale-ja.m4: Likewise.
71463         * m4/locale-tr.m4: Likewise.
71464         * m4/locale-zh.m4: Likewise.
71465         * m4/lock.m4: Likewise.
71466         * m4/longlong.m4: Likewise.
71467         * m4/ls-mntd-fs.m4: Likewise.
71468         * m4/lstat.m4: Likewise.
71469         * m4/malloc.m4: Likewise.
71470         * m4/mathl.m4: Likewise.
71471         * m4/mbrtowc.m4: Likewise.
71472         * m4/mbstate_t.m4: Likewise.
71473         * m4/mbswidth.m4: Likewise.
71474         * m4/memchr.m4: Likewise.
71475         * m4/memcmp.m4: Likewise.
71476         * m4/memcpy.m4: Likewise.
71477         * m4/memmem.m4: Likewise.
71478         * m4/memmove.m4: Likewise.
71479         * m4/mempcpy.m4: Likewise.
71480         * m4/memrchr.m4: Likewise.
71481         * m4/memset.m4: Likewise.
71482         * m4/minmax.m4: Likewise.
71483         * m4/mkdir-slash.m4: Likewise.
71484         * m4/mkdtemp.m4: Likewise.
71485         * m4/mktime.m4: Likewise.
71486         * m4/mmap-anon.m4: Likewise.
71487         * m4/mountlist.m4: Likewise.
71488         * m4/nanosleep.m4: Likewise.
71489         * m4/nls.m4: Likewise.
71490         * m4/nocrash.m4: Likewise.
71491         * m4/open.m4: Likewise.
71492         * m4/openat.m4: Likewise.
71493         * m4/openmp.m4: Likewise.
71494         * m4/pathmax.m4: Likewise.
71495         * m4/perl.m4: Likewise.
71496         * m4/physmem.m4: Likewise.
71497         * m4/pipe.m4: Likewise.
71498         * m4/po.m4: Likewise.
71499         * m4/poll.m4: Likewise.
71500         * m4/posixtm.m4: Likewise.
71501         * m4/posixver.m4: Likewise.
71502         * m4/printf-frexp.m4: Likewise.
71503         * m4/printf-frexpl.m4: Likewise.
71504         * m4/printf-posix.m4: Likewise.
71505         * m4/printf-posix-rpl.m4: Likewise.
71506         * m4/printf.m4: Likewise.
71507         * m4/progtest.m4: Likewise.
71508         * m4/putenv.m4: Likewise.
71509         * m4/readline.m4: Likewise.
71510         * m4/readlink.m4: Likewise.
71511         * m4/readutmp.m4: Likewise.
71512         * m4/realloc.m4: Likewise.
71513         * m4/regex.m4: Likewise.
71514         * m4/relocatable.m4: Likewise.
71515         * m4/relocatable-lib.m4: Likewise.
71516         * m4/rename-dest-slash.m4: Likewise.
71517         * m4/rename.m4: Likewise.
71518         * m4/rmdir-errno.m4: Likewise.
71519         * m4/rmdir.m4: Likewise.
71520         * m4/roundf.m4: Likewise.
71521         * m4/roundl.m4: Likewise.
71522         * m4/rpmatch.m4: Likewise.
71523         * m4/save-cwd.m4: Likewise.
71524         * m4/selinux-selinux-h.m4: Likewise.
71525         * m4/setenv.m4: Likewise.
71526         * m4/settime.m4: Likewise.
71527         * m4/sig2str.m4: Likewise.
71528         * m4/sig_atomic_t.m4: Likewise.
71529         * m4/signalblocking.m4: Likewise.
71530         * m4/signbit.m4: Likewise.
71531         * m4/sigpipe.m4: Likewise.
71532         * m4/sockets.m4: Likewise.
71533         * m4/sockpfaf.m4: Likewise.
71534         * m4/st_dm_mode.m4: Likewise.
71535         * m4/stat-time.m4: Likewise.
71536         * m4/stdbool.m4: Likewise.
71537         * m4/stdint.m4: Likewise.
71538         * m4/stdint_h.m4: Likewise.
71539         * m4/stpcpy.m4: Likewise.
71540         * m4/stpncpy.m4: Likewise.
71541         * m4/strcase.m4: Likewise.
71542         * m4/strchrnul.m4: Likewise.
71543         * m4/strcspn.m4: Likewise.
71544         * m4/strdup.m4: Likewise.
71545         * m4/strftime.m4: Likewise.
71546         * m4/strndup.m4: Likewise.
71547         * m4/strnlen.m4: Likewise.
71548         * m4/strpbrk.m4: Likewise.
71549         * m4/strptime.m4: Likewise.
71550         * m4/strsep.m4: Likewise.
71551         * m4/strtod.m4: Likewise.
71552         * m4/strtoimax.m4: Likewise.
71553         * m4/strtok_r.m4: Likewise.
71554         * m4/strtol.m4: Likewise.
71555         * m4/strtoll.m4: Likewise.
71556         * m4/strtoul.m4: Likewise.
71557         * m4/strtoull.m4: Likewise.
71558         * m4/strtoumax.m4: Likewise.
71559         * m4/strverscmp.m4: Likewise.
71560         * m4/threadlib.m4: Likewise.
71561         * m4/timegm.m4: Likewise.
71562         * m4/tm_gmtoff.m4: Likewise.
71563         * m4/tmpdir.m4: Likewise.
71564         * m4/tmpfile.m4: Likewise.
71565         * m4/tzset.m4: Likewise.
71566         * m4/uintmax_t.m4: Likewise.
71567         * m4/unlinkdir.m4: Likewise.
71568         * m4/unlocked-io.m4: Likewise.
71569         * m4/uptime.m4: Likewise.
71570         * m4/userspec.m4: Likewise.
71571         * m4/utimbuf.m4: Likewise.
71572         * m4/utime.m4: Likewise.
71573         * m4/utimes-null.m4: Likewise.
71574         * m4/utimes.m4: Likewise.
71575         * m4/vararrays.m4: Likewise.
71576         * m4/vasnprintf.m4: Likewise.
71577         * m4/vfprintf-posix.m4: Likewise.
71578         * m4/vprintf-posix.m4: Likewise.
71579         * m4/wait-process.m4: Likewise.
71580         * m4/wchar_t.m4: Likewise.
71581         * m4/wint_t.m4: Likewise.
71582         * m4/write-any-file.m4: Likewise.
71583         * m4/yield.m4: Likewise.
71585 2009-01-13  Bruno Haible  <bruno@clisp.org>
71587         Avoid test-copy-file.sh failures when ACL support insufficient.
71588         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71589         TESTS_ENVIRONMENT.
71590         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71591         Reported by Jim Meyering.
71593 2009-01-13  Bruno Haible  <bruno@clisp.org>
71595         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71596         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71597         * modules/unistdio/u8-printf-parse (Files): Likewise.
71598         * modules/unistdio/u32-printf-parse (Files): Likewise.
71599         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71601 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71603         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71604         and m4/inttypes_h.m4 too.
71606 2009-01-12  Eric Blake  <ebb9@byu.net>
71608         tests: IRIX 6.2 cc can't compile -0.0 into .data
71609         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71610         rather than at compile-time.
71611         * tests/test-floorl.c (minus_zero): Likewise.
71612         * tests/test-frexpl.c (minus_zero): Likewise.
71613         * tests/test-isnan.c (minus_zerol): Likewise.
71614         * tests/test-isnanl.h (minus_zero): Likewise.
71615         * tests/test-ldexpl.c (minus_zero): Likewise.
71616         * tests/test-roundl.c (minus_zero): Likewise.
71617         * tests/test-signbit.c (minus_zerol): Likewise.
71618         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71619         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71620         * tests/test-truncl.c (minus_zero): Likewise.
71621         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71622         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71623         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71625 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71627         regex: fix glibc bug 9697
71628         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71629         handling.
71631 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71633         regex: fix glibc bug 697
71634         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71635         being NULL also if there are no backreferences.
71637 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71639         regex: merge glibc changes
71640         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71641         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71642         re_string_skip_chars, re_string_reconstruct): Likewise.
71643         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71645 2009-01-07  Jim Meyering  <meyering@redhat.com>
71647         poll: filter through cppi
71648         * lib/poll.c: Indent cpp directives to reflect nesting.
71650 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71652         poll: don't return uninitialized
71653         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71655 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71657         avoid compile failure on AIX 6.1
71658         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71659         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71661 2009-01-04  Jim Meyering  <meyering@redhat.com>
71663         remove duplicate inclusion of <stdio.h>
71664         * tests/test-fprintf-posix.c: Likewise.
71665         * tests/test-printf-posix.c: Likewise.
71666         * tests/test-snprintf-posix.c: Likewise.
71667         * tests/test-sprintf-posix.c: Likewise.
71668         * tests/test-vasprintf-posix.c: Likewise.
71669         * tests/test-vfprintf-posix.c: Likewise.
71670         * tests/test-vprintf-posix.c: Likewise.
71671         * tests/test-vsnprintf-posix.c: Likewise.
71672         * tests/test-vsprintf-posix.c: Likewise.
71674 2009-01-03  Jim Meyering  <meyering@redhat.com>
71676         gnulib-tool: fix sed-based filtering
71677         * gnulib-tool (func_filter_filelist): Remove extra backslash
71678         in sed_fff_filter definition.
71680 2009-01-02  Jim Meyering  <meyering@redhat.com>
71682         strftime: avoid compilation failure on Solaris 2.6
71683         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71684         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71685         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71686         be available.  Reported by Tom G. Christensen.  Details in
71687         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71689 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71690             Bruno Haible  <bruno@clisp.org>
71692         Speed up gnulib-tool by doing more string processing through shell
71693         built-ins.
71694         * gnulib-tool (fast_func_append): New variable.
71695         (func_remove_prefix, func_remove_suffix): New functions.
71696         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71697         (func_filter_filelist): New function.
71698         (func_get_dependencies): Use func_remove_suffix instead of sed.
71699         (func_get_automake_snippet): Use func_filter_filelist instead of a
71700         subshell and sed invocation.
71702 2009-01-01  Bruno Haible  <bruno@clisp.org>
71704         Fix a security bug.
71705         * gnulib-tool (func_import, import, update): Don't allow the characters
71706         '"', '$', '`', '\' in macro arguments that become part of commands that
71707         are evaluated.
71709 2009-01-01  Bruno Haible  <bruno@clisp.org>
71711         * gnulib-tool (func_reset_sigpipe): Add more comments.
71713 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71715         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71716         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71717         already know the answer.
71719 2009-01-01  Jim Meyering  <meyering@redhat.com>
71721         * lib/version-etc.c (version_etc_va): Update copyright year.
71723 2008-12-30  Bruno Haible  <bruno@clisp.org>
71725         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71726         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71727         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71729 2008-12-29  Eric Blake  <ebb9@byu.net>
71731         multiarch: avoid autoconf AC_REQUIRE bug
71732         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71733         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71734         2.63 and older.
71735         Reported by Bruno Haible, and analyzed in
71736         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71738 2008-12-29  Bruno Haible  <bruno@clisp.org>
71740         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71741         files in subdirectories correctly.
71742         Reported by Ralf Wildenhues.
71744 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71746         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71747         rather than 'join FILE -', for Solaris join.
71749 2008-12-29  Bruno Haible  <bruno@clisp.org>
71751         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71752         quoting.
71753         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71754         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71755         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71756         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71757         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71758         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71759         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71760         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71761         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71762         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71763         * m4/nls.m4 (AM_NLS): Likewise.
71764         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71765         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71766         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71767         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71768         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71769         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71770         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71771         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71772         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71773         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71774         * m4/xsize.m4 (gl_XSIZE): Likewise.
71775         Suggested by Jim Meyering.
71777 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71779         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71780         * lib/parse-duration.c: use a switch instead of cascading if's.
71782 2008-12-29  Eric Blake  <ebb9@byu.net>
71784         wchar.h: supply WEOF on Irix 5.3
71785         * lib/wchar.in.h (wint_t): Also supply WEOF.
71786         * lib/wctype.in.h (wint_t): Likewise.
71787         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71788         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71789         Reported by Tom G. Christensen.
71791 2008-12-26  Bruno Haible  <bruno@clisp.org>
71793         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71794         i486, i586, i686.
71796 2008-12-26  Bruno Haible  <bruno@clisp.org>
71798         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71800 2008-12-26  Bruno Haible  <bruno@clisp.org>
71802         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71803         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71804         not __STDC_CONSTANT_MACROS.
71805         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71807 2008-12-25  Bruno Haible  <bruno@clisp.org>
71809         Add support for universal builds to vasnprintf.
71810         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71811         universal builds, guess no.
71812         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71813         * modules/vasprintf-posix (Depends-on): Likewise.
71814         * modules/fprintf-posix (Depends-on): Likewise.
71815         * modules/vfprintf-posix (Depends-on): Likewise.
71816         * modules/snprintf-posix (Depends-on): Likewise.
71817         * modules/vsnprintf-posix (Depends-on): Likewise.
71818         * modules/sprintf-posix (Depends-on): Likewise.
71819         * modules/vsprintf-posix (Depends-on): Likewise.
71820         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71821         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71822         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71823         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71824         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71825         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71826         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71828         Add support for universal builds to <inttypes.h>.
71829         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71830         _SCNu64_PREFIX): In Apple
71831         universal builds, define directly, using _LP64.
71832         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71833         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71834         * modules/inttypes (Depends-on): Add multiarch.
71835         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71837         Add support for universal builds to <stdint.h>.
71838         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71839         universal builds, define directly, using _LP64.
71840         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71841         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71842         and size_t.
71843         * modules/stdint (Depends-on): Add multiarch.
71844         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71846         New module 'multiarch'.
71847         * modules/multiarch: New file.
71848         * m4/multiarch.m4: New file.
71850 2008-12-25  Bruno Haible  <bruno@clisp.org>
71852         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71854 2008-12-25  Bruno Haible  <bruno@clisp.org>
71856         * modules/btowc (License): Relicense under LGPLv2+.
71857         * modules/mbsinit (License): Likewise.
71858         * modules/mbrtowc (License): Likewise.
71859         * modules/wcrtomb (License): Likewise.
71860         * modules/streq (License): Likewise.
71861         Reported by David Lutterkort <lutter@redhat.com>.
71863 2008-12-23  Bruno Haible  <bruno@clisp.org>
71865         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71867 2008-12-23  Bruno Haible  <bruno@clisp.org>
71869         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71871         GETADDRINFO_LIB, not in LIBS.
71872         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71873         * modules/canon-host (Link): Likewise.
71874         * NEWS: Mention the change.
71875         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71876         GETADDRINFO_LIB.
71878 2008-12-22  Bruno Haible  <bruno@clisp.org>
71880         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71881         * doc/posix-functions/iswalpha_l.texi: Likewise.
71882         * doc/posix-functions/iswblank_l.texi: Likewise.
71883         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71884         * doc/posix-functions/iswctype_l.texi: Likewise.
71885         * doc/posix-functions/iswdigit_l.texi: Likewise.
71886         * doc/posix-functions/iswgraph_l.texi: Likewise.
71887         * doc/posix-functions/iswlower_l.texi: Likewise.
71888         * doc/posix-functions/iswprint_l.texi: Likewise.
71889         * doc/posix-functions/iswpunct_l.texi: Likewise.
71890         * doc/posix-functions/iswspace_l.texi: Likewise.
71891         * doc/posix-functions/iswupper_l.texi: Likewise.
71892         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71893         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71894         * doc/posix-functions/open_wmemstream.texi: Likewise.
71895         * doc/posix-functions/swscanf.texi: Likewise.
71896         * doc/posix-functions/towctrans_l.texi: Likewise.
71897         * doc/posix-functions/towlower.texi: Likewise.
71898         * doc/posix-functions/towlower_l.texi: Likewise.
71899         * doc/posix-functions/towupper.texi: Likewise.
71900         * doc/posix-functions/towupper_l.texi: Likewise.
71901         * doc/posix-functions/vfwprintf.texi: Likewise.
71902         * doc/posix-functions/vfwscanf.texi: Likewise.
71903         * doc/posix-functions/vswscanf.texi: Likewise.
71904         * doc/posix-functions/vwprintf.texi: Likewise.
71905         * doc/posix-functions/vwscanf.texi: Likewise.
71906         * doc/posix-functions/wcpcpy.texi: Likewise.
71907         * doc/posix-functions/wcpncpy.texi: Likewise.
71908         * doc/posix-functions/wcscasecmp.texi: Likewise.
71909         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71910         * doc/posix-functions/wcscoll_l.texi: Likewise.
71911         * doc/posix-functions/wcsdup.texi: Likewise.
71912         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71913         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71914         * doc/posix-functions/wcsnlen.texi: Likewise.
71915         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71916         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71917         * doc/posix-functions/wctrans_l.texi: Likewise.
71918         * doc/posix-functions/wctype_l.texi: Likewise.
71919         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71920         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71921         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71922         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71923         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71924         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71925         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71926         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71927         * doc/glibc-functions/wcschrnul.texi: Likewise.
71928         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71929         * doc/glibc-functions/wcstod_l.texi: Likewise.
71930         * doc/glibc-functions/wcstof_l.texi: Likewise.
71931         * doc/glibc-functions/wcstol_l.texi: Likewise.
71932         * doc/glibc-functions/wcstold_l.texi: Likewise.
71933         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71934         * doc/glibc-functions/wcstoq.texi: Likewise.
71935         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71936         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71937         * doc/glibc-functions/wcstouq.texi: Likewise.
71938         * doc/glibc-functions/wmempcpy.texi: Likewise.
71940 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71941             Eric Blake  <ebb9@byu.net>
71942             Paolo Bonzini  <bonzini@gnu.org>
71943             Bruno Haible  <bruno@clisp.org>
71945         Make c-stack work on Haiku.
71946         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71947         (c_stack_action): Use SA_ONSTACK flag.
71949 2008-12-22  Bruno Haible  <bruno@clisp.org>
71951         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71953 2008-12-22  Bruno Haible  <bruno@clisp.org>
71955         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71956         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71957         being overridden.
71958         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71959         New macros.
71960         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71962         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71963         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71965 2008-12-22  Bruno Haible  <bruno@clisp.org>
71967         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71968         from test code.
71970 2008-12-22  Eric Blake  <ebb9@byu.net>
71972         Avoid gcc warnings on cygwin.
71973         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71974         Avoid unused variable.
71975         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71976         Likewise.
71978 2008-12-22  Bruno Haible  <bruno@clisp.org>
71980         Remove HAVE_MBRTOWC conditionals.
71981         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71982         (mbscasecmp): Assume mbrtowc function.
71983         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71984         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71985         * lib/mbschr.c: Include mbuiter.h unconditionally.
71986         (mbschr): Assume mbrtowc function.
71987         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71988         (mbscspn): Assume mbrtowc function.
71989         * lib/mbslen.c: Include mbuiter.h unconditionally.
71990         (mbslen): Assume mbrtowc function.
71991         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71992         (mbsncasecmp): Assume mbrtowc function.
71993         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71994         (mbsnlen): Assume mbrtowc function.
71995         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71996         (mbspbrk): Assume mbrtowc function.
71997         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71998         (mbspcasecmp): Assume mbrtowc function.
71999         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
72000         (mbsrchr): Assume mbrtowc function.
72001         * lib/mbssep.c: Include mbuiter.h unconditionally.
72002         (mbssep): Assume mbrtowc function.
72003         * lib/mbsspn.c: Include mbuiter.h unconditionally.
72004         (mbsspn): Assume mbrtowc function.
72005         * lib/mbsstr.c: Include mbuiter.h unconditionally.
72006         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
72007         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
72008         (mbstok_r): Assume mbrtowc function.
72009         * lib/propername.c: Include mbuiter.h unconditionally.
72010         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
72011         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
72012         (trim2): Assume mbrtowc function.
72013         * lib/mbswidth.c (mbsinit): Remove fallback definition.
72014         (mbsnwidth): Assume mbrtowc function.
72015         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
72016         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
72017         fallback definitions.
72018         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
72020 2008-12-22  Bruno Haible  <bruno@clisp.org>
72022         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
72024 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
72026         * modules/regex: Request emulations for the mb*/wc* functions we need.
72027         * m4/regex.m4: Don't look for those functions here.
72028         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
72030 2008-12-22  Bruno Haible  <bruno@clisp.org>
72032         * modules/fnmatch (Depends-on): Remove duplicated dependency.
72034 2008-12-21  Bruno Haible  <bruno@clisp.org>
72036         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
72037         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
72038         (Include): Remove conditionalization.
72039         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
72040         (Include): Remove conditionalization.
72041         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
72042         (Include): Remove conditionalization.
72043         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
72044         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72045         * NEWS: Mention the change.
72046         Reported by Alan Hourihane <alanh@fairlite.co.uk>
72047         via Sergey Poznyakoff <gray@gnu.org.ua>.
72049 2008-12-21  Bruno Haible  <bruno@clisp.org>
72051         * MODULES.html.sh (Extended multibyte and wide character utilities
72052         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
72053         wcrtomb, wcsrtombs.
72054         (Support for systems lacking POSIX:2008): Add accept, bind, close,
72055         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
72056         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
72057         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
72059 2008-12-21  Bruno Haible  <bruno@clisp.org>
72061         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
72063 2008-12-21  Bruno Haible  <bruno@clisp.org>
72065         * modules/wcsnrtombs-tests: New file.
72066         * tests/test-wcsnrtombs1.sh: New file.
72067         * tests/test-wcsnrtombs2.sh: New file.
72068         * tests/test-wcsnrtombs3.sh: New file.
72069         * tests/test-wcsnrtombs4.sh: New file.
72070         * tests/test-wcsnrtombs.c: New file.
72072         New module 'wcsnrtombs'.
72073         * lib/wchar.in.h (wcsnrtombs): New declaration.
72074         * lib/wcsnrtombs.c: New file.
72075         * lib/wcsrtombs-state.c: New file.
72076         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
72077         (internal_state): Remove variable.
72078         * m4/wcsnrtombs.m4: New file.
72079         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
72080         compilation units.
72081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
72082         HAVE_WCSNRTOMBS.
72083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
72084         HAVE_WCSNRTOMBS.
72085         * modules/wcsnrtombs: New file.
72086         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
72087         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
72089 2008-12-21  Bruno Haible  <bruno@clisp.org>
72091         * modules/wcsrtombs-tests: New file.
72092         * tests/test-wcsrtombs1.sh: New file.
72093         * tests/test-wcsrtombs2.sh: New file.
72094         * tests/test-wcsrtombs3.sh: New file.
72095         * tests/test-wcsrtombs4.sh: New file.
72096         * tests/test-wcsrtombs.c: New file.
72098         New module 'wcsrtombs'.
72099         * lib/wchar.in.h (wcsrtombs): New declaration.
72100         * lib/wcsrtombs.c: New file.
72101         * m4/wcsrtombs.m4: New file.
72102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
72103         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
72105         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72106         * modules/wcsrtombs: New file.
72107         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72108         bugs.
72110 2008-12-21  Bruno Haible  <bruno@clisp.org>
72112         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72113         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72114         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72115         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72116         if not correct.
72117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72118         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72119         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72120         m4/locale-zh.m4, m4/codeset.m4.
72121         * doc/posix-functions/wcrtomb.texi: Document the bug.
72123 2008-12-21  Bruno Haible  <bruno@clisp.org>
72125         Work around a btowc() bug on IRIX 6.5.
72126         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72127         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72128         REPLACE_WTOBC if not.
72129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72130         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72131         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72133 2008-12-21  Bruno Haible  <bruno@clisp.org>
72135         * modules/wcrtomb-tests: New file.
72136         * tests/test-wcrtomb.sh: New file.
72137         * tests/test-wcrtomb.c: New file.
72139         New module 'wcrtomb'.
72140         * lib/wchar.in.h (wcrtomb): New declaration.
72141         * lib/wcrtomb.c: New file.
72142         * m4/wcrtomb.m4: New file.
72143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72144         HAVE_WCRTOMB.
72145         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72146         HAVE_WCRTOMB.
72147         * modules/wcrtomb: New file.
72148         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72150 2008-12-21  Bruno Haible  <bruno@clisp.org>
72152         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72153         * modules/mbsrtowcs (Files): Likewise.
72154         * modules/wctob (Files): Likewise.
72155         * modules/c-strcase-tests (Files): Likewise.
72156         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72157         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72158         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72159         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72160         * modules/vasnprintf-posix-tests (Files): Likewise.
72162 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72164         gitlog-to-changelog: pass all command-line arguments to git-log
72165         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72166         it is sometimes convenient to filter the commits in various ways.
72167         gitlog-to-changelog only allows --since to specify a start date,
72168         but git-log itself supports many other filtering mechanisms.
72169         At the moment, I want to filter by branch name.  Rather than
72170         adding a --branch option to gitlog-to-changelog, it seems more
72171         flexible to simply pass all options directly to git-log and let
72172         git do the work.  Notice that this effectively makes --since a
72173         redundant option for gitlog-to-changelog, but removing it would
72174         require current usage to change since calls would then require
72175         an additional '--'.
72177 2008-12-21  Bruno Haible  <bruno@clisp.org>
72179         * modules/mbsnrtowcs-tests: New file.
72180         * tests/test-mbsnrtowcs1.sh: New file.
72181         * tests/test-mbsnrtowcs2.sh: New file.
72182         * tests/test-mbsnrtowcs3.sh: New file.
72183         * tests/test-mbsnrtowcs4.sh: New file.
72184         * tests/test-mbsnrtowcs.c: New file.
72186         New module 'mbsnrtowcs'.
72187         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72188         * lib/mbsnrtowcs.c: New file.
72189         * lib/mbsrtowcs-state.c: New file.
72190         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72191         (internal_state): Remove variable.
72192         * m4/mbsnrtowcs.m4: New file.
72193         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72194         compilation units.
72195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72196         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72197         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72198         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72199         * modules/mbsnrtowcs: New file.
72200         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72201         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72202         portability problem.
72204 2008-12-21  Bruno Haible  <bruno@clisp.org>
72206         Work around mbsrtowcs bug.
72207         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72208         (gl_FUNC_MBSRTOWCS): Invoke it.
72209         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72210         m4/locale-zh.m4.
72211         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72213 2008-12-21  Bruno Haible  <bruno@clisp.org>
72215         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72217 2008-12-21  Bruno Haible  <bruno@clisp.org>
72219         Update doc for AIX.
72220         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72221         16-bit wchar_t type.
72222         * doc/posix-functions/btowc.texi: Likewise.
72223         * doc/posix-functions/fgetwc.texi: Likewise.
72224         * doc/posix-functions/fgetws.texi: Likewise.
72225         * doc/posix-functions/fputwc.texi: Likewise.
72226         * doc/posix-functions/fputws.texi: Likewise.
72227         * doc/posix-functions/fwide.texi: Likewise.
72228         * doc/posix-functions/fwprintf.texi: Likewise.
72229         * doc/posix-functions/fwscanf.texi: Likewise.
72230         * doc/posix-functions/getwchar.texi: Likewise.
72231         * doc/posix-functions/getwc.texi: Likewise.
72232         * doc/posix-functions/iswalnum.texi: Likewise.
72233         * doc/posix-functions/iswalpha.texi: Likewise.
72234         * doc/posix-functions/iswblank.texi: Likewise.
72235         * doc/posix-functions/iswcntrl.texi: Likewise.
72236         * doc/posix-functions/iswctype.texi: Likewise.
72237         * doc/posix-functions/iswdigit.texi: Likewise.
72238         * doc/posix-functions/iswgraph.texi: Likewise.
72239         * doc/posix-functions/iswlower.texi: Likewise.
72240         * doc/posix-functions/iswprint.texi: Likewise.
72241         * doc/posix-functions/iswpunct.texi: Likewise.
72242         * doc/posix-functions/iswspace.texi: Likewise.
72243         * doc/posix-functions/iswupper.texi: Likewise.
72244         * doc/posix-functions/iswxdigit.texi: Likewise.
72245         * doc/posix-functions/mbrtowc.texi: Likewise.
72246         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72247         * doc/posix-functions/mbstowcs.texi: Likewise.
72248         * doc/posix-functions/mbtowc.texi: Likewise.
72249         * doc/posix-functions/putwchar.texi: Likewise.
72250         * doc/posix-functions/putwc.texi: Likewise.
72251         * doc/posix-functions/swprintf.texi: Likewise.
72252         * doc/posix-functions/tolower.texi: Likewise.
72253         * doc/posix-functions/toupper.texi: Likewise.
72254         * doc/posix-functions/towctrans.texi: Likewise.
72255         * doc/posix-functions/ungetwc.texi: Likewise.
72256         * doc/posix-functions/vswprintf.texi: Likewise.
72257         * doc/posix-functions/wcrtomb.texi: Likewise.
72258         * doc/posix-functions/wcscat.texi: Likewise.
72259         * doc/posix-functions/wcschr.texi: Likewise.
72260         * doc/posix-functions/wcscmp.texi: Likewise.
72261         * doc/posix-functions/wcscoll.texi: Likewise.
72262         * doc/posix-functions/wcscpy.texi: Likewise.
72263         * doc/posix-functions/wcscspn.texi: Likewise.
72264         * doc/posix-functions/wcsftime.texi: Likewise.
72265         * doc/posix-functions/wcslen.texi: Likewise.
72266         * doc/posix-functions/wcsncat.texi: Likewise.
72267         * doc/posix-functions/wcsncmp.texi: Likewise.
72268         * doc/posix-functions/wcsncpy.texi: Likewise.
72269         * doc/posix-functions/wcspbrk.texi: Likewise.
72270         * doc/posix-functions/wcsrchr.texi: Likewise.
72271         * doc/posix-functions/wcsrtombs.texi: Likewise.
72272         * doc/posix-functions/wcsspn.texi: Likewise.
72273         * doc/posix-functions/wcsstr.texi: Likewise.
72274         * doc/posix-functions/wcstod.texi: Likewise.
72275         * doc/posix-functions/wcstof.texi: Likewise.
72276         * doc/posix-functions/wcstoimax.texi: Likewise.
72277         * doc/posix-functions/wcstok.texi: Likewise.
72278         * doc/posix-functions/wcstold.texi: Likewise.
72279         * doc/posix-functions/wcstoll.texi: Likewise.
72280         * doc/posix-functions/wcstol.texi: Likewise.
72281         * doc/posix-functions/wcstombs.texi: Likewise.
72282         * doc/posix-functions/wcstoull.texi: Likewise.
72283         * doc/posix-functions/wcstoul.texi: Likewise.
72284         * doc/posix-functions/wcstoumax.texi: Likewise.
72285         * doc/posix-functions/wcswidth.texi: Likewise.
72286         * doc/posix-functions/wcsxfrm.texi: Likewise.
72287         * doc/posix-functions/wctob.texi: Likewise.
72288         * doc/posix-functions/wctomb.texi: Likewise.
72289         * doc/posix-functions/wctrans.texi: Likewise.
72290         * doc/posix-functions/wctype.texi: Likewise.
72291         * doc/posix-functions/wcwidth.texi: Likewise.
72292         * doc/posix-functions/wmemchr.texi: Likewise.
72293         * doc/posix-functions/wmemcmp.texi: Likewise.
72294         * doc/posix-functions/wmemcpy.texi: Likewise.
72295         * doc/posix-functions/wmemmove.texi: Likewise.
72296         * doc/posix-functions/wmemset.texi: Likewise.
72297         * doc/posix-functions/wprintf.texi: Likewise.
72298         * doc/posix-functions/wscanf.texi: Likewise.
72300 2008-12-21  Bruno Haible  <bruno@clisp.org>
72302         Update doc for HP-UX 11.11.
72303         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72304         in HP-UX version 11.00, not in all versions of HP-UX 11.
72305         * doc/posix-functions/fwide.texi: Likewise.
72306         * doc/posix-functions/fwprintf.texi: Likewise.
72307         * doc/posix-functions/fwscanf.texi: Likewise.
72308         * doc/posix-functions/inet_ntop.texi: Likewise.
72309         * doc/posix-functions/inet_pton.texi: Likewise.
72310         * doc/posix-functions/mbrlen.texi: Likewise.
72311         * doc/posix-functions/mbrtowc.texi: Likewise.
72312         * doc/posix-functions/mbsinit.texi: Likewise.
72313         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72314         * doc/posix-functions/swprintf.texi: Likewise.
72315         * doc/posix-functions/swscanf.texi: Likewise.
72316         * doc/posix-functions/towctrans.texi: Likewise.
72317         * doc/posix-functions/vfwprintf.texi: Likewise.
72318         * doc/posix-functions/vswprintf.texi: Likewise.
72319         * doc/posix-functions/vwprintf.texi: Likewise.
72320         * doc/posix-functions/wcrtomb.texi: Likewise.
72321         * doc/posix-functions/wcsrtombs.texi: Likewise.
72322         * doc/posix-functions/wcsstr.texi: Likewise.
72323         * doc/posix-functions/wctob.texi: Likewise.
72324         * doc/posix-functions/wctrans.texi: Likewise.
72325         * doc/posix-functions/wmemchr.texi: Likewise.
72326         * doc/posix-functions/wmemcmp.texi: Likewise.
72327         * doc/posix-functions/wmemcpy.texi: Likewise.
72328         * doc/posix-functions/wmemmove.texi: Likewise.
72329         * doc/posix-functions/wmemset.texi: Likewise.
72330         * doc/posix-functions/wprintf.texi: Likewise.
72331         * doc/posix-functions/wscanf.texi: Likewise.
72333 2008-12-21  Bruno Haible  <bruno@clisp.org>
72335         Work around a portability problem.
72336         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72337         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72339 2008-12-20  Bruno Haible  <bruno@clisp.org>
72341         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72342         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72343         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72345         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72347         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72348         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72349         set.
72350         (GNULIB_defined_mbstate_t): New macro.
72351         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72352         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72353         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72354         reuses the system's mbrtowc function but works around the bugs.
72355         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72356         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72357         macros.
72358         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72359         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72360         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72361         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72362         REPLACE_MBSINIT if mbsinit needs to be overridden.
72363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72364         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72365         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72366         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72367         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72368         m4/locale-zh.m4.
72369         (Depends): Add mbsinit.
72370         * modules/mbsinit (Depends): Add mbrtowc.
72371         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72373 2008-12-20  Bruno Haible  <bruno@clisp.org>
72375         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72376         so that there are no conversion errors on AIX.
72377         * tests/test-mbsrtowcs.c (main): LIkewise.
72379 2008-12-20  Bruno Haible  <bruno@clisp.org>
72381         Work around wctob bug on Solaris <= 9.
72382         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72383         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72385         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72386         * modules/wctob (Files): Add m4/locale-fr.m4.
72387         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72389 2008-12-20  Bruno Haible  <bruno@clisp.org>
72391         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72392         /dev/null.
72393         * tests/test-select-in.sh: Likewise.
72394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72396 2008-12-20  Bruno Haible  <bruno@clisp.org>
72398         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72399         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72400         Cygwin 1.5.x.
72402 2008-12-20  Bruno Haible  <bruno@clisp.org>
72404         Ensure mbstate_t is defined on HP-UX 11.11.
72405         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72406         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72407         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72408         AC_USE_SYSTEM_EXTENSIONS.
72409         * modules/fnmatch (Depends-on): Add extensions.
72410         * modules/mbrlen (Depends-on): Likewise.
72411         * modules/mbrtowc (Depends-on): Likewise.
72412         * modules/mbsinit (Depends-on): Likewise.
72413         * modules/mbsrtowcs (Depends-on): Likewise.
72414         * modules/mbswidth (Depends-on): Likewise.
72415         * modules/quotearg (Depends-on): Likewise.
72416         * modules/strftime (Depends-on): Likewise.
72418 2008-12-20  Bruno Haible  <bruno@clisp.org>
72420         Ensure wctob is declared on IRIX 6.5.
72421         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72422         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72423         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72425         of HAVE_WCTOB.
72426         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72427         HAVE_WCTOB.
72428         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72430 2008-12-19  Bruno Haible  <bruno@clisp.org>
72432         * modules/mbsrtowcs-tests: New file.
72433         * tests/test-mbsrtowcs1.sh: New file.
72434         * tests/test-mbsrtowcs2.sh: New file.
72435         * tests/test-mbsrtowcs3.sh: New file.
72436         * tests/test-mbsrtowcs4.sh: New file.
72437         * tests/test-mbsrtowcs.c: New file.
72439         New module 'mbsrtowcs'.
72440         * lib/wchar.in.h (mbsrtowcs): New declaration.
72441         * lib/mbsrtowcs.c: New file.
72442         * m4/mbsrtowcs.m4: New file.
72443         * modules/mbsrtowcs: New file.
72444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72445         HAVE_MBSRTOWCS.
72446         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72447         HAVE_MBSRTOWCS.
72448         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72450 2008-12-19  Bruno Haible  <bruno@clisp.org>
72452         New module 'mbrlen'.
72453         * lib/wchar.in.h (mbrlen): New declaration.
72454         * lib/mbrlen.c: New file.
72455         * m4/mbrlen.m4: New file.
72456         * modules/mbrlen: New file.
72457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72458         HAVE_MBRLEN.
72459         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72460         HAVE_MBRLEN.
72461         * doc/posix-functions/mbrlen.texi: Document the new module.
72463 2008-12-19  Bruno Haible  <bruno@clisp.org>
72465         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72466         * modules/mbrtowc (Depends-on): Add verify.
72467         Suggested by Paul Eggert.
72469 2008-12-18  Bruno Haible  <bruno@clisp.org>
72471         * modules/mbsinit-tests: New file.
72472         * tests/test-mbsinit.sh: New file.
72473         * tests/test-mbsinit.c: New file.
72475 2008-12-18  Bruno Haible  <bruno@clisp.org>
72477         * modules/mbrtowc-tests: New file.
72478         * tests/test-mbrtowc1.sh: New file.
72479         * tests/test-mbrtowc2.sh: New file.
72480         * tests/test-mbrtowc3.sh: New file.
72481         * tests/test-mbrtowc4.sh: New file.
72482         * tests/test-mbrtowc.c: New file.
72484         New module 'mbrtowc'.
72485         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72486         mbsinit and mbrtowc.
72487         (mbrtowc): New declaration.
72488         * lib/mbrtowc.c: New file.
72489         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72490         * modules/mbrtowc: New file.
72491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72492         HAVE_MBRTOWC.
72493         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72494         HAVE_MBRTOWC.
72495         * doc/posix-functions/mbrtowc.texi: Document the new module.
72497 2008-12-18  Bruno Haible  <bruno@clisp.org>
72499         New module 'wctob'.
72500         * lib/wchar.in.h (wctob): New declaration.
72501         * lib/wctob.c: New file.
72502         * m4/wctob.m4: New file.
72503         * modules/wctob: New file.
72504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72505         HAVE_WCTOB.
72506         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72507         * doc/posix-functions/wctob.texi: Document the new module.
72509 2008-12-18  Bruno Haible  <bruno@clisp.org>
72511         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72512         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72514 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72516         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72517         G. Christensen" <tgc@jupiterrise.com>.
72519         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72520         G. Christensen" <tgc@jupiterrise.com>.
72522         * lib/flock.c: Need to include string.h.  Reported by "Tom
72523         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72524         <ebb9@byu.net>.
72526 2008-12-18  Bruno Haible  <bruno@clisp.org>
72528         * m4/locale-ja.m4: New file, from GNU gettext.
72530 2008-12-17  Bruno Haible  <bruno@clisp.org>
72532         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72533         Suggested by Eric Blake.
72535 2008-12-17  Bruno Haible  <bruno@clisp.org>
72537         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72539 2008-12-17  Bruno Haible  <bruno@clisp.org>
72541         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72542         * modules/mbsinit (Depends-on): Add verify.
72543         Suggested by Paul Eggert.
72545 2008-12-17  Bruno Haible  <bruno@clisp.org>
72547         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72548         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72549         gl_FUNC_MBRTOWC.
72550         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72551         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72552         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72553         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72554         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72555         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72556         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72557         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72558         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72559         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72560         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72561         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72562         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72563         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72564         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72565         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72566         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72567         * modules/trim (configure.ac): Likewise.
72569 2008-12-17  Bruno Haible  <bruno@clisp.org>
72571         * modules/btowc-tests: New file.
72572         * tests/test-btowc1.sh: New file.
72573         * tests/test-btowc2.sh: New file.
72574         * tests/test-btowc.c: New file.
72576         New module 'btowc'.
72577         * lib/wchar.in.h (btowc): New declaration.
72578         * lib/btowc.c: New file.
72579         * m4/btowc.m4: New file.
72580         * modules/btowc: New file.
72581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72582         HAVE_BTOWC.
72583         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72584         * doc/posix-functions/btowc.texi: Document the new module.
72586 2008-12-17  Bruno Haible  <bruno@clisp.org>
72588         New module 'mbsinit'.
72589         * lib/wchar.in.h (mbsinit): New declaration.
72590         * lib/mbsinit.c: New file.
72591         * m4/mbsinit.m4: New file.
72592         * modules/mbsinit: New file.
72593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72594         HAVE_MBSINIT.
72595         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72596         HAVE_MBSINIT.
72597         * doc/posix-functions/mbsinit.texi: Document the new module.
72599 2008-12-16  Bruno Haible  <bruno@clisp.org>
72601         * lib/unistd.in.h: Add comment.
72602         * tests/test-environ.c: Don't include <stdlib.h>.
72604 2008-12-16  Bruno Haible  <bruno@clisp.org>
72606         * lib/parse-duration.h (parse_duration): Document return value
72607         convention.
72608         * lib/parse-duration.c: Include specification header first. Add
72609         comments.
72610         (_): Remove macro.
72611         (parse_year_month_day, parse_hour_minute_second): Move side effects
72612         outside of strchr call.
72613         (parse_non_iso8601): Move side effects outside of isspace call.
72614         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72615         call.
72617 2008-12-16  Bruno Haible  <bruno@clisp.org>
72619         * tests/test-parse-duration.sh: Produce no output when the test
72620         succeeds.
72622 2008-12-16  Bruno Haible  <bruno@clisp.org>
72624         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72625         expressions.
72627 2008-12-15  Bruno Haible  <bruno@clisp.org>
72629         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72630         * doc/glibc-functions/flistxattr.texi: Likewise.
72631         * doc/glibc-functions/fopencookie.texi: Likewise.
72632         * doc/glibc-functions/fremovexattr.texi: Likewise.
72633         * doc/glibc-functions/fsetxattr.texi: Likewise.
72634         * doc/glibc-functions/getxattr.texi: Likewise.
72635         * doc/glibc-functions/lgetxattr.texi: Likewise.
72636         * doc/glibc-functions/listxattr.texi: Likewise.
72637         * doc/glibc-functions/llistxattr.texi: Likewise.
72638         * doc/glibc-functions/lremovexattr.texi: Likewise.
72639         * doc/glibc-functions/lsetxattr.texi: Likewise.
72640         * doc/glibc-functions/removexattr.texi: Likewise.
72641         * doc/glibc-functions/setxattr.texi: Likewise.
72642         * doc/posix-functions/open_memstream.texi: Likewise.
72644 2008-12-15  Eric Blake  <ebb9@byu.net>
72646         Update doc for cygwin 1.7.
72647         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72648         functions.
72649         * doc/posix-functions/fchmodat.texi: Likewise.
72650         * doc/posix-functions/fchownat.texi: Likewise.
72651         * doc/posix-functions/fdopendir.texi: Likewise.
72652         * doc/posix-functions/fmemopen.texi: Likewise.
72653         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72654         * doc/posix-functions/fstatat.texi: Likewise.
72655         * doc/posix-functions/futimens.texi: Likewise.
72656         * doc/posix-functions/gai_strerror.texi: Likewise.
72657         * doc/posix-functions/getaddrinfo.texi: Likewise.
72658         * doc/posix-functions/getnameinfo.texi: Likewise.
72659         * doc/posix-functions/if_freenameindex.texi: Likewise.
72660         * doc/posix-functions/if_indextoname.texi: Likewise.
72661         * doc/posix-functions/if_nameindex.texi: Likewise.
72662         * doc/posix-functions/if_nametoindex.texi: Likewise.
72663         * doc/posix-functions/insque.texi: Likewise.
72664         * doc/posix-functions/linkat.texi: Likewise.
72665         * doc/posix-functions/llrint.texi: Likewise.
72666         * doc/posix-functions/llrintf.texi: Likewise.
72667         * doc/posix-functions/llrintl.texi: Likewise.
72668         * doc/posix-functions/lockf.texi: Likewise.
72669         * doc/posix-functions/lrintl.texi: Likewise.
72670         * doc/posix-functions/mkdirat.texi: Likewise.
72671         * doc/posix-functions/mkfifoat.texi: Likewise.
72672         * doc/posix-functions/mknodat.texi: Likewise.
72673         * doc/posix-functions/mq_close.texi: Likewise.
72674         * doc/posix-functions/mq_getattr.texi: Likewise.
72675         * doc/posix-functions/mq_notify.texi: Likewise.
72676         * doc/posix-functions/mq_open.texi: Likewise.
72677         * doc/posix-functions/mq_receive.texi: Likewise.
72678         * doc/posix-functions/mq_send.texi: Likewise.
72679         * doc/posix-functions/mq_setattr.texi: Likewise.
72680         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72681         * doc/posix-functions/mq_timedsend.texi: Likewise.
72682         * doc/posix-functions/mq_unlink.texi: Likewise.
72683         * doc/posix-functions/open_memstream.texi: Likewise.
72684         * doc/posix-functions/openat.texi: Likewise.
72685         * doc/posix-functions/posix_fadvise.texi: Likewise.
72686         * doc/posix-functions/posix_fallocate.texi: Likewise.
72687         * doc/posix-functions/posix_madvise.texi: Likewise.
72688         * doc/posix-functions/posix_memalign.texi: Likewise.
72689         * doc/posix-functions/posix_openpt.texi: Likewise.
72690         * doc/posix-functions/readlinkat.texi: Likewise.
72691         * doc/posix-functions/remque.texi: Likewise.
72692         * doc/posix-functions/renameat.texi: Likewise.
72693         * doc/posix-functions/rintl.texi: Likewise.
72694         * doc/posix-functions/sem_unlink.texi: Likewise.
72695         * doc/posix-functions/shm_open.texi: Likewise.
72696         * doc/posix-functions/shm_unlink.texi: Likewise.
72697         * doc/posix-functions/signgam.texi: Likewise.
72698         * doc/posix-functions/sigset.texi: Likewise.
72699         * doc/posix-functions/stpcpy.texi: Likewise.
72700         * doc/posix-functions/stpncpy.texi: Likewise.
72701         * doc/posix-functions/strerror.texi: Likewise.
72702         * doc/posix-functions/strtod.texi: Likewise.
72703         * doc/posix-functions/symlinkat.texi: Likewise.
72704         * doc/posix-functions/unlinkat.texi: Likewise.
72705         * doc/posix-functions/utimensat.texi: Likewise.
72706         * doc/glibc-functions/bindresvport.texi: Likewise.
72707         * doc/glibc-functions/dn_expand.texi: Likewise.
72708         * doc/glibc-functions/exp10.texi: Likewise.
72709         * doc/glibc-functions/exp10f.texi: Likewise.
72710         * doc/glibc-functions/fgetxattr.texi: Likewise.
72711         * doc/glibc-functions/flistxattr.texi: Likewise.
72712         * doc/glibc-functions/fopencookie.texi: Likewise.
72713         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72714         * doc/glibc-functions/fremovexattr.texi: Likewise.
72715         * doc/glibc-functions/fsetxattr.texi: Likewise.
72716         * doc/glibc-functions/getifaddrs.texi: Likewise.
72717         * doc/glibc-functions/getxattr.texi: Likewise.
72718         * doc/glibc-functions/lgetxattr.texi: Likewise.
72719         * doc/glibc-functions/listxattr.texi: Likewise.
72720         * doc/glibc-functions/llistxattr.texi: Likewise.
72721         * doc/glibc-functions/lremovexattr.texi: Likewise.
72722         * doc/glibc-functions/lsetxattr.texi: Likewise.
72723         * doc/glibc-functions/pow10.texi: Likewise.
72724         * doc/glibc-functions/pow10f.texi: Likewise.
72725         * doc/glibc-functions/rcmd_af.texi: Likewise.
72726         * doc/glibc-functions/removexattr.texi: Likewise.
72727         * doc/glibc-functions/res_init.texi: Likewise.
72728         * doc/glibc-functions/res_mkquery.texi: Likewise.
72729         * doc/glibc-functions/res_query.texi: Likewise.
72730         * doc/glibc-functions/res_querydomain.texi: Likewise.
72731         * doc/glibc-functions/res_send.texi: Likewise.
72732         * doc/glibc-functions/rresvport_af.texi: Likewise.
72733         * doc/glibc-functions/setxattr.texi: Likewise.
72734         * doc/glibc-functions/strcasestr.texi: Likewise.
72736 2008-12-15  Bruno Haible  <bruno@clisp.org>
72738         Fix compilation error on OSF/1 4.0.
72739         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72740         <sys/time.h>, simply delegate to the system header.
72741         Reported by Daniel Richard G. <oss@teragram.com>.
72743 2008-12-15  Bruno Haible  <bruno@clisp.org>
72745         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72746         * doc/posix-functions/fchmodat.texi: Likewise.
72747         * doc/posix-functions/fchownat.texi: Likewise.
72748         * doc/posix-functions/fdopendir.texi: Likewise.
72749         * doc/posix-functions/fstatat.texi: Likewise.
72750         * doc/posix-functions/mkdirat.texi: Likewise.
72751         * doc/posix-functions/unlinkat.texi: Likewise.
72753 2008-12-14  Bruno Haible  <bruno@clisp.org>
72755         Update doc for POSIX:2008.
72756         * doc/posix-functions/faccessat.texi: New file.
72757         * doc/posix-functions/fchmodat.texi: New file.
72758         * doc/posix-functions/fchownat.texi: New file.
72759         * doc/posix-functions/fdopendir.texi: New file.
72760         * doc/posix-functions/fstatat.texi: New file.
72761         * doc/posix-functions/futimens.texi: New file.
72762         * doc/posix-functions/linkat.texi: New file.
72763         * doc/posix-functions/mkdirat.texi: New file.
72764         * doc/posix-functions/mkfifoat.texi: New file.
72765         * doc/posix-functions/mknodat.texi: New file.
72766         * doc/posix-functions/open_wmemstream.texi: New file.
72767         * doc/posix-functions/openat.texi: New file.
72768         * doc/posix-functions/psiginfo.texi: New file.
72769         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72770         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72771         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72772         * doc/posix-functions/readlinkat.texi: New file.
72773         * doc/posix-functions/renameat.texi: New file.
72774         * doc/posix-functions/strerror_l.texi: New file.
72775         * doc/posix-functions/symlinkat.texi: New file.
72776         * doc/posix-functions/unlinkat.texi: New file.
72777         * doc/posix-functions/utimensat.texi: New file.
72778         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72780 2008-12-14  Bruno Haible  <bruno@clisp.org>
72782         Update doc for POSIX:2008.
72783         * doc/posix-functions/alphasort.texi: Renamed from
72784         doc/glibc-functions/alphasort.texi.
72785         * doc/posix-functions/dirfd.texi: Renamed from
72786         doc/glibc-functions/dirfd.texi.
72787         * doc/posix-functions/dprintf.texi: Renamed from
72788         doc/glibc-functions/dprintf.texi.
72789         * doc/posix-functions/duplocale.texi: Renamed from
72790         doc/glibc-functions/duplocale.texi.
72791         * doc/posix-functions/fexecve.texi: Renamed from
72792         doc/glibc-functions/fexecve.texi.
72793         * doc/posix-functions/fmemopen.texi: Renamed from
72794         doc/glibc-functions/fmemopen.texi.
72795         * doc/posix-functions/freelocale.texi: Renamed from
72796         doc/glibc-functions/freelocale.texi.
72797         * doc/posix-functions/getdate_err.texi: Renamed from
72798         doc/glibc-functions/getdate_err.texi.
72799         * doc/posix-functions/isalnum_l.texi: Renamed from
72800         doc/glibc-functions/isalnum_l.texi.
72801         * doc/posix-functions/isalpha_l.texi: Renamed from
72802         doc/glibc-functions/isalpha_l.texi.
72803         * doc/posix-functions/isblank_l.texi: Renamed from
72804         doc/glibc-functions/isblank_l.texi.
72805         * doc/posix-functions/iscntrl_l.texi: Renamed from
72806         doc/glibc-functions/iscntrl_l.texi.
72807         * doc/posix-functions/isdigit_l.texi: Renamed from
72808         doc/glibc-functions/isdigit_l.texi.
72809         * doc/posix-functions/isgraph_l.texi: Renamed from
72810         doc/glibc-functions/isgraph_l.texi.
72811         * doc/posix-functions/islower_l.texi: Renamed from
72812         doc/glibc-functions/islower_l.texi.
72813         * doc/posix-functions/isprint_l.texi: Renamed from
72814         doc/glibc-functions/isprint_l.texi.
72815         * doc/posix-functions/ispunct_l.texi: Renamed from
72816         doc/glibc-functions/ispunct_l.texi.
72817         * doc/posix-functions/isspace_l.texi: Renamed from
72818         doc/glibc-functions/isspace_l.texi.
72819         * doc/posix-functions/isupper_l.texi: Renamed from
72820         doc/glibc-functions/isupper_l.texi.
72821         * doc/posix-functions/iswalnum_l.texi: Renamed from
72822         doc/glibc-functions/iswalnum_l.texi.
72823         * doc/posix-functions/iswalpha_l.texi: Renamed from
72824         doc/glibc-functions/iswalpha_l.texi.
72825         * doc/posix-functions/iswblank_l.texi: Renamed from
72826         doc/glibc-functions/iswblank_l.texi.
72827         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72828         doc/glibc-functions/iswcntrl_l.texi.
72829         * doc/posix-functions/iswctype_l.texi: Renamed from
72830         doc/glibc-functions/iswctype_l.texi.
72831         * doc/posix-functions/iswdigit_l.texi: Renamed from
72832         doc/glibc-functions/iswdigit_l.texi.
72833         * doc/posix-functions/iswgraph_l.texi: Renamed from
72834         doc/glibc-functions/iswgraph_l.texi.
72835         * doc/posix-functions/iswlower_l.texi: Renamed from
72836         doc/glibc-functions/iswlower_l.texi.
72837         * doc/posix-functions/iswprint_l.texi: Renamed from
72838         doc/glibc-functions/iswprint_l.texi.
72839         * doc/posix-functions/iswpunct_l.texi: Renamed from
72840         doc/glibc-functions/iswpunct_l.texi.
72841         * doc/posix-functions/iswspace_l.texi: Renamed from
72842         doc/glibc-functions/iswspace_l.texi.
72843         * doc/posix-functions/iswupper_l.texi: Renamed from
72844         doc/glibc-functions/iswupper_l.texi.
72845         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72846         doc/glibc-functions/iswxdigit_l.texi.
72847         * doc/posix-functions/isxdigit_l.texi: Renamed from
72848         doc/glibc-functions/isxdigit_l.texi.
72849         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72850         doc/glibc-functions/mbsnrtowcs.texi.
72851         * doc/posix-functions/mkdtemp.texi: Renamed from
72852         doc/glibc-functions/mkdtemp.texi.
72853         * doc/posix-functions/newlocale.texi: Renamed from
72854         doc/glibc-functions/newlocale.texi.
72855         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72856         doc/glibc-functions/nl_langinfo_l.texi.
72857         * doc/posix-functions/open_memstream.texi: Renamed from
72858         doc/glibc-functions/open_memstream.texi.
72859         * doc/posix-functions/opterr.texi: Renamed from
72860         doc/glibc-functions/opterr.texi.
72861         * doc/posix-functions/optind.texi: Renamed from
72862         doc/glibc-functions/optind.texi.
72863         * doc/posix-functions/optopt.texi: Renamed from
72864         doc/glibc-functions/optopt.texi.
72865         * doc/posix-functions/psignal.texi: Renamed from
72866         doc/glibc-functions/psignal.texi.
72867         * doc/posix-functions/scandir.texi: Renamed from
72868         doc/glibc-functions/scandir.texi.
72869         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72870         doc/glibc-functions/sched_get_priority_min.texi.
72871         * doc/posix-functions/signgam.texi: Renamed from
72872         doc/glibc-functions/signgam.texi.
72873         * doc/posix-functions/stpcpy.texi: Renamed from
72874         doc/glibc-functions/stpcpy.texi.
72875         * doc/posix-functions/stpncpy.texi: Renamed from
72876         doc/glibc-functions/stpncpy.texi.
72877         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72878         doc/glibc-functions/strcasecmp_l.texi.
72879         * doc/posix-functions/strcoll_l.texi: Renamed from
72880         doc/glibc-functions/strcoll_l.texi.
72881         * doc/posix-functions/strfmon_l.texi: Renamed from
72882         doc/glibc-functions/strfmon_l.texi.
72883         * doc/posix-functions/strftime_l.texi: Renamed from
72884         doc/glibc-functions/strftime_l.texi.
72885         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72886         doc/glibc-functions/strncasecmp_l.texi.
72887         * doc/posix-functions/strndup.texi: Renamed from
72888         doc/glibc-functions/strndup.texi.
72889         * doc/posix-functions/strnlen.texi: Renamed from
72890         doc/glibc-functions/strnlen.texi.
72891         * doc/posix-functions/strsignal.texi: Renamed from
72892         doc/glibc-functions/strsignal.texi.
72893         * doc/posix-functions/strxfrm_l.texi: Renamed from
72894         doc/glibc-functions/strxfrm_l.texi.
72895         * doc/posix-functions/timer_gettime.texi: Renamed from
72896         doc/glibc-functions/timer_gettime.texi.
72897         * doc/posix-functions/tolower_l.texi: Renamed from
72898         doc/glibc-functions/tolower_l.texi.
72899         * doc/posix-functions/toupper_l.texi: Renamed from
72900         doc/glibc-functions/toupper_l.texi.
72901         * doc/posix-functions/towctrans_l.texi: Renamed from
72902         doc/glibc-functions/towctrans_l.texi.
72903         * doc/posix-functions/towlower_l.texi: Renamed from
72904         doc/glibc-functions/towlower_l.texi.
72905         * doc/posix-functions/towupper_l.texi: Renamed from
72906         doc/glibc-functions/towupper_l.texi.
72907         * doc/posix-functions/uselocale.texi: Renamed from
72908         doc/glibc-functions/uselocale.texi.
72909         * doc/posix-functions/vdprintf.texi: Renamed from
72910         doc/glibc-functions/vdprintf.texi.
72911         * doc/posix-functions/wcpcpy.texi:
72912         Renamed from doc/glibc-functions/wcpcpy.texi.
72913         * doc/posix-functions/wcpncpy.texi: Renamed from
72914         doc/glibc-functions/wcpncpy.texi.
72915         * doc/posix-functions/wcscasecmp.texi: Renamed from
72916         doc/glibc-functions/wcscasecmp.texi.
72917         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72918         doc/glibc-functions/wcscasecmp_l.texi.
72919         * doc/posix-functions/wcscoll_l.texi: Renamed from
72920         doc/glibc-functions/wcscoll_l.texi.
72921         * doc/posix-functions/wcsdup.texi: Renamed from
72922         doc/glibc-functions/wcsdup.texi.
72923         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72924         doc/glibc-functions/wcsncasecmp.texi.
72925         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72926         doc/glibc-functions/wcsncasecmp_l.texi.
72927         * doc/posix-functions/wcsnlen.texi: Renamed from
72928         doc/glibc-functions/wcsnlen.texi.
72929         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72930         doc/glibc-functions/wcsnrtombs.texi.
72931         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72932         doc/glibc-functions/wcsxfrm_l.texi.
72933         * doc/posix-functions/wctrans_l.texi: Renamed from
72934         doc/glibc-functions/wctrans_l.texi.
72935         * doc/posix-functions/wctype_l.texi: Renamed from
72936         doc/glibc-functions/wctype_l.texi.
72937         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72938         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72939         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72940         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72941         these subsections.
72942         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72943         Remove sections.
72945 2008-12-14  Bruno Haible  <bruno@clisp.org>
72947         Update doc for POSIX:2008.
72948         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72950 2008-12-14  Bruno Haible  <bruno@clisp.org>
72952         Update doc for POSIX:2008.
72953         * doc/pastposix-functions/bcmp.texi: Renamed from
72954         doc/posix-functions/bcmp.texi.
72955         * doc/pastposix-functions/bcopy.texi: Renamed from
72956         doc/posix-functions/bcopy.texi.
72957         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72958         doc/posix-functions/bsd_signal.texi.
72959         * doc/pastposix-functions/bzero.texi: Renamed from
72960         doc/posix-functions/bzero.texi.
72961         * doc/pastposix-functions/ecvt.texi: Renamed from
72962         doc/posix-functions/ecvt.texi.
72963         * doc/pastposix-functions/fcvt.texi: Renamed from
72964         doc/posix-functions/fcvt.texi.
72965         * doc/pastposix-functions/ftime.texi: Renamed from
72966         doc/posix-functions/ftime.texi.
72967         * doc/pastposix-functions/gcvt.texi: Renamed from
72968         doc/posix-functions/gcvt.texi.
72969         * doc/pastposix-functions/getcontext.texi: Renamed from
72970         doc/posix-functions/getcontext.texi.
72971         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72972         doc/posix-functions/gethostbyaddr.texi.
72973         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72974         doc/posix-functions/gethostbyname.texi.
72975         * doc/pastposix-functions/getwd.texi: Renamed from
72976         doc/posix-functions/getwd.texi.
72977         * doc/pastposix-functions/h_errno.texi: Renamed from
72978         doc/posix-functions/h_errno.texi.
72979         * doc/pastposix-functions/index.texi: Renamed from
72980         doc/posix-functions/index.texi.
72981         * doc/pastposix-functions/makecontext.texi: Renamed from
72982         doc/posix-functions/makecontext.texi.
72983         * doc/pastposix-functions/mktemp.texi: Renamed from
72984         doc/posix-functions/mktemp.texi.
72985         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72986         doc/posix-functions/pthread_attr_getstackaddr.texi.
72987         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72988         doc/posix-functions/pthread_attr_setstackaddr.texi.
72989         * doc/pastposix-functions/rindex.texi: Renamed from
72990         doc/posix-functions/rindex.texi.
72991         * doc/pastposix-functions/scalb.texi: Renamed from
72992         doc/posix-functions/scalb.texi.
72993         * doc/pastposix-functions/setcontext.texi: Renamed from
72994         doc/posix-functions/setcontext.texi.
72995         * doc/pastposix-functions/swapcontext.texi: Renamed from
72996         doc/posix-functions/swapcontext.texi.
72997         * doc/pastposix-functions/ualarm.texi: Renamed from
72998         doc/posix-functions/ualarm.texi.
72999         * doc/pastposix-functions/usleep.texi: Renamed from
73000         doc/posix-functions/usleep.texi.
73001         * doc/pastposix-functions/vfork.texi: Renamed from
73002         doc/posix-functions/vfork.texi.
73003         * doc/pastposix-functions/wcswcs.texi: Renamed from
73004         doc/posix-functions/wcswcs.texi.
73005         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
73006         (Function Substitutes): Update.
73008 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73010         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
73011         m4/strerror.m4.
73013 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73014             Bruno Haible  <bruno@clisp.org>
73016         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
73018 2008-12-13  Bruno Haible  <bruno@clisp.org>
73020         * modules/strtoull (Depends-on): Remove unistd.
73022 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73024         * modules/strtoull (Depends-on): Add stdlib.
73026 2008-12-11  Simon Josefsson  <simon@josefsson.org>
73028         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
73030 2008-12-10  Jim Meyering  <meyering@redhat.com>
73032         gl_ASSERT: don't say assertions are disabled when they're not
73033         * m4/assert.m4 (gl_ASSERT): Do not make configure report
73034         "checking whether to enable assertions... no", when they are in
73035         fact enabled.  This is solely a bug in the output of configure.
73036         In spite of saying "no", NDEBUG was not defined in that case.
73037         Also, as noted by Eric Blake, leave assertions enabled upon
73038         --enable-assert=INVALID.
73040 2008-12-10  Bruno Haible  <bruno@clisp.org>
73042         Change MODULES.html to refer to POSIX:2008 where possible.
73043         * MODULES.html.sh (POSIX2008_URL): New variable.
73044         (posix_headers): Remove sys/timeb, ucontext.
73045         (posix2001_headers): New variable.
73046         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
73047         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
73048         index, makecontext, mktemp, pthread_attr_getstackaddr,
73049         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
73050         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
73051         (posix2001_functions): New variable.
73052         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
73053         otherwise.
73055 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73057         add missing include to parse-duration.c
73058         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
73059         * modules/parse-duration (Depends-on): Add xalloc.
73061         fix sed script reading maint.mk
73062         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
73063         (syntax-check-rules): Use it.
73065 2008-12-09  Bruno Haible  <bruno@clisp.org>
73067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
73068         MacOS X 10.4/PowerPC.
73069         Reported by Simon Josefsson.
73071 2008-12-08  Jim Meyering  <meyering@redhat.com>
73073         work around mingw's lack of some S_IF definitions
73074         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
73075         Reported by Simon Josefsson.
73077 2008-12-08  Bruno Haible  <bruno@clisp.org>
73079         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
73080         applied to variables. Needed on MacOS X 10.4/PowerPC.
73081         Reported by Simon Josefsson.
73083 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
73084         and Eric Blake  <ebb9@byu.net>
73086         assert: honor --enable-assert
73087         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
73088         order to honor --enable-assert, rather than treating it as a
73089         synonym for --disable-assert.
73091 2008-12-08  Jim Meyering  <meyering@redhat.com>
73093         * lib/posixtm.c: Remove now-useless declaration of mktime.
73095         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
73097 2008-12-07  Bruno Haible  <bruno@clisp.org>
73099         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
73100         test_once): Mark functions as static.
73101         * tests/test-tls.c (test_tls): Likewise.
73103 2008-12-07  Bruno Haible  <bruno@clisp.org>
73105         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73106         iconv_register_autodetect.
73108 2008-12-07  Jim Meyering  <meyering@redhat.com>
73110         posixtm.c: avoid a warning
73111         * lib/posixtm.c (posixtime): Don't initialize tm0.
73112         It's no longer needed to placate gcc4's -Wuninitialized,
73113         and the attempt to placate would elicit a new warning.
73115         unicodeio.c: mark unused parameters
73116         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73117         (fallback_failure_callback): Likewise.
73119 2008-12-07  Bruno Haible  <bruno@clisp.org>
73121         * gnulib-tool (func_create_testdir): When building the tests
73122         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73123         Reported by Simon Josefsson.
73125 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73127         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73129 2008-12-06  Bruno Haible  <bruno@clisp.org>
73131         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73132         Suggested by Eric Blake.
73134 2008-12-06  Bruno Haible  <bruno@clisp.org>
73136         Fix a c-stack test failure on MacOS X.
73137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73138         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73139         handler for SIGBUS as well.
73140         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73141         install a signal handler for SIGBUS as well.
73142         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73144 2008-12-06  Bruno Haible  <bruno@clisp.org>
73146         Advocacy documentation.
73147         * doc/gnulib-intro.texi (Benefits): New section.
73148         * doc/gnulib.texi: Update.
73150 2008-12-06  Bruno Haible  <bruno@clisp.org>
73152         Document the 'manywarnings' module.
73153         * doc/manywarnings.texi: New file.
73154         * doc/gnulib.texi: Include it.
73156 2008-12-05  Eric Blake  <ebb9@byu.net>
73158         tests: silence some gcc warnings
73159         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73160         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73161         type mismatches.
73163 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73164             Bruno Haible  <bruno@clisp.org>
73166         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73168 2008-11-29  Jim Meyering  <meyering@redhat.com>
73170         unicodeio.c: mark unused parameters
73171         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73172         (fallback_failure_callback): Likewise.
73174         fts: fix a thinko
73175         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73176         (set_stat_type): Return S_IF*-valued "type" directly.
73177         Prompted by James Youngman's spotting a related bug.
73178         Confirmed by further testing through find.
73180         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73181         * lib/fts.c (D_TYPE): Define.
73182         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73183         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73184         (s_ifmt_shift_bits): New function.
73185         (set_stat_type): New function.
73186         (fts_build): When not calling fts_stat, call set_stat_type
73187         to propagate dirent.d_type info to fts_read caller.
73188         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73189         fts_statp->st_mode type information may be valid.
73191 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73193         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73194         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73195         <sds@gnu.org>.
73197 2008-11-20  Bruno Haible  <bruno@clisp.org>
73199         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73200         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73201         INCLUDE_NEXT.
73202         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73203         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73204         * modules/math (Makefile.am): Substitute
73205         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73206         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73208 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73209             Bruno Haible  <bruno@clisp.org>
73211         * lib/stdint.in.h: Define all type macros so that their expansion is
73212         a single typedef'ed token. Fixes a compilation failure in Boost which
73213         does "using ::int8_t;".
73215 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73217         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73218         gl_MANYWARN_ALL_GCC.
73219         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73220         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73221         * modules/manywarnings: New file.
73222         * MODULES.html.sh: Mention manywarnings module.
73224 2008-11-18  Bruno Haible  <bruno@clisp.org>
73226         * doc/gnulib-tool.texi (Unit tests): New section.
73228 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73230         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73231         paths like 'lib/po/foo.po'.
73233 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73235         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73236         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73238 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73240         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73241         parameter works.
73243 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73245         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73247 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73249         * modules/parse-duration-tests: New file.
73250         * tests/test-parse-duration.sh: New file.
73251         * tests/test-parse-duration.c: New file.
73253         New module 'parse-duration'.
73254         * lib/parse-duration.h: New file.
73255         * lib/parse-duration.c: New file.
73256         * modules/parse-duration: New file.
73258 2008-11-17  Bruno Haible  <bruno@clisp.org>
73260         * tests/test-select-out.sh: Comment out the first pipe test.
73261         Reported by Simon Josefsson.
73263 2008-11-17  Bruno Haible  <bruno@clisp.org>
73265         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73266         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73267         gl_HOSTENT.
73269 2008-11-17  Bruno Haible  <bruno@clisp.org>
73271         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73272         -lnetwork and -lnet. Needed for Haiku and BeOS.
73274 2008-11-16  Bruno Haible  <bruno@clisp.org>
73276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73278 2008-11-16  Bruno Haible  <bruno@clisp.org>
73280         Avoid test failure on Haiku.
73281         * tests/test-fsync.c: Include <errno.h>.
73282         (main): Don't require that fsync (0) fails.
73284 2008-11-15  Bruno Haible  <bruno@clisp.org>
73286         New module 'hostent'.
73287         * modules/hostent: New file.
73288         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73290 2008-11-15  Bruno Haible  <bruno@clisp.org>
73292         New module 'servent'.
73293         * modules/servent: New file.
73294         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73296 2008-11-15  Bruno Haible  <bruno@clisp.org>
73298         Avoid generating same test program with two different rules.
73299         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73300         test-frexp to test-frexp-nolibm.
73301         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73302         test-frexpl to test-frexpl-nolibm.
73304 2008-11-15  Bruno Haible  <bruno@clisp.org>
73306         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73307         $(FREXPL_LIBM).
73309 2008-11-15  Bruno Haible  <bruno@clisp.org>
73311         * lib/netdb.in.h: Activate the definitions also when the system's
73312         <netdb.h> has 'struct addrinfo'.
73313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73314         EAI_OVERFLOW or AI_NUMERICSERV.
73315         * doc/posix-headers/netdb.texi: Document the problem.
73317 2008-11-15  Bruno Haible  <bruno@clisp.org>
73319         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73321         Make the 'sched' module work on platforms where <sched.h> exists but
73322         is incomplete (such as Haiku).
73323         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73324         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73325         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73326         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73327         HAVE_STRUCT_SCHED_PARAM.
73328         * modules/sched (Depends-on): Add include_next.
73329         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73330         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73331         * doc/posix-headers/sched.texi: Document the issue.
73333 2008-11-13  Jim Meyering  <meyering@redhat.com>
73335         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73336         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73337         test would fail due to the difference in the Report bugs to ...
73338         line.  The expected address is empty, "<>", while the actual
73339         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73341 2008-11-12  Bruno Haible  <bruno@clisp.org>
73343         lstat: don't compile lstat.c on systems lacking lstat
73344         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73345         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73346         Reported by Daniel P. Berrange via Jim Meyering.
73348 2008-11-12  Jim Meyering  <meyering@redhat.com>
73350         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73352 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73354         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73355         instead.
73357 2008-11-12  Bruno Haible  <bruno@clisp.org>
73359         * lib/unicodeio.c: Include unistr.h.
73360         (utf8_wctomb): Remove function.
73361         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73363 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73365         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73366         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73367         <bruno@clisp.org>.
73368         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73370 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73372         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73373         * doc/gnulib.texi: Add section for warnings.
73375 2008-11-11  Bruno Haible  <bruno@clisp.org>
73377         * lib/sockets.h: Add a comment.
73379 2008-11-11  Karl Berry  <karl@gnu.org>
73381         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73383 2008-11-11  Eric Blake  <ebb9@byu.net>
73385         fdl.texi: avoid git symlinks
73386         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73388 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73390         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73392 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73394         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73395         (gl_WARN_ADD): Substitute $2 if literal.
73397 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73399         * m4/warning.m4: Remove.
73401 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73403         * m4/warnings.m4: Almost complete rewrite. :-)
73405 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73407         * modules/warnings: New module.
73408         * m4/warnings.m4: New file.
73409         * MODULES.html.sh: Mention warnings module.
73410         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73411         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73413 2008-11-10  Eric Blake  <ebb9@byu.net>
73415         fdl.texi: make a symlink to the latest version
73416         * doc/standards.texi: Revert today's earlier change.
73417         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73418         * doc/fdl.texi: ...and replace this with a symlink to the newer
73419         fdl-1.3.texi.
73421 2008-11-10  Bruno Haible  <bruno@clisp.org>
73423         * tests/test-select-fd.c (main): Accept the result file name as fourth
73424         argument.
73425         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73426         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73428 2008-11-10  Bruno Haible  <bruno@clisp.org>
73430         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73431         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73432         as autoconf-substituted macros.
73433         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73435         gl_NETDB_H_DEFAULTS. Set these variables.
73436         * modules/netdb (Makefile.am): Substitute these variables.
73438 2008-11-10  Eric Blake  <ebb9@byu.net>
73440         standards.texi: include correct file for FDL 1.3
73441         * doc/standards.texi (GNU Free Documentation License): Change
73442         include file to pull in FDL 1.3, not 1.2.
73444         fdl.texi: revert accidental change to license
73445         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73447 2008-11-10  Bruno Haible  <bruno@clisp.org>
73449         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73450         cross-compiling guesses also when the native compile gives no result.
73452 2008-11-10  Bruno Haible  <bruno@clisp.org>
73454         * lib/spawni.c (__spawni): Force variable into the stack.
73456 2008-11-10  Bruno Haible  <bruno@clisp.org>
73458         Add support for Haiku.
73459         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73460         glibc and BeOS, but also on Haiku.
73461         * lib/fpurge.c (fpurge): Likewise.
73462         * lib/freadable.c (freadable): Likewise.
73463         * lib/freadahead.c (freadahead): Likewise.
73464         * lib/freading.c (freading): Likewise.
73465         * lib/freadptr.c (freadptr): Likewise.
73466         * lib/freadseek.c (freadptrinc): Likewise.
73467         * lib/fseeko.c (rpl_fseeko): Likewise.
73468         * lib/fseterr.c (fseterr): Likewise.
73469         * lib/fwritable.c (fwritable): Likewise.
73470         * lib/fwriting.c (fwriting): Likewise.
73471         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73473 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73475         * lib/config.charset: Treat Haiku like BeOS.
73477 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73479         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73480         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73482 2008-11-08  Bruno Haible  <bruno@clisp.org>
73484         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73485         AC_CACHE_CHECK.
73487 2008-11-08  Bruno Haible  <bruno@clisp.org>
73489         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73491 2008-11-08  Bruno Haible  <bruno@clisp.org>
73493         * tests/test-select-fd.c: New file.
73494         * tests/test-select-in.sh: New file.
73495         * tests/test-select-out.sh: New file.
73496         * tests/test-select-stdin.c: New file.
73497         * modules/select-tests (Files): Add the new files.
73498         (Depends-on): Add gettimeofday.
73499         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73500         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73501         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73503 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73504             Bruno Haible  <bruno@clisp.org>
73506         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73508 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73510         * build-aux/pmccabe2html: Added support for C++ source files.
73512 2008-11-05  Ben Pfaff  <blp@gnu.org>
73514         Fix lib/close.c build on Windows.
73515         * modules/close (Files): Add lib/w32sock.h.
73517 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73519         Accept Bison's NEWS format.
73520         * build-aux/announce-gen (print_news_deltas): Tweak
73521         $re_prefix.
73523 2008-11-04  Bruno Haible  <bruno@clisp.org>
73525         * modules/random_r (Maintainer): Add glibc.
73527 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73529         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73530         by karl@freefriends.org (Karl Berry).
73531         * doc/alloca.texi: Likewise.
73532         * doc/c-ctype.texi: Likewise.
73533         * doc/c-strcase.texi: Likewise.
73534         * doc/c-strcaseeq.texi: Likewise.
73535         * doc/c-strcasestr.texi: Likewise.
73536         * doc/c-strstr.texi: Likewise.
73537         * doc/c-strtod.texi: Likewise.
73538         * doc/c-strtold.texi: Likewise.
73539         * doc/ctime.texi: Likewise.
73540         * doc/error.texi: Likewise.
73541         * doc/fdl.texi: Likewise.
73542         * doc/gcd.texi: Likewise.
73543         * doc/getdate.texi: Likewise.
73544         * doc/gnulib-intro.texi: Likewise.
73545         * doc/gnulib-tool.texi: Likewise.
73546         * doc/gnulib.texi: Likewise.
73547         * doc/inet_ntoa.texi: Likewise.
73548         * doc/maintain.texi: Likewise.
73549         * doc/make-stds.texi: Likewise.
73550         * doc/quote.texi: Likewise.
73551         * doc/regexprops-generic.texi: Likewise.
73552         * doc/standards.texi: Likewise.
73553         * doc/verify.texi: Likewise.
73554         * doc/visibility.texi: Likewise.
73555         * doc/gnulib.texi (GNU Free Documentation License): Include
73556         fdl-1.3.texi instead of fdl.texi.
73558 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73560         * doc/fdl-1.3.texi: New file, from
73561         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73562         * modules/fdl-1.3: Add.
73563         * MODULES.html.sh: Add fdl-1.3.
73565 2008-11-03  Bruno Haible  <bruno@clisp.org>
73567         Make determination of absolute name of header file work with AIX xlc.
73568         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73569         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73570         preprocessing.
73571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73572         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73574 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73576         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73577         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73578         <ludo@gnu.org>.
73580 2008-11-02  Bruno Haible  <bruno@clisp.org>
73582         Mark 'strpbrk' obsolete.
73583         * modules/strpbrk (Status, Notice): New sections.
73584         * modules/strtok_r (Depends-on): Add strpbrk.
73586 2008-11-02  Bruno Haible  <bruno@clisp.org>
73588         Mark 'strdup' obsolete.
73589         * modules/strdup (Status, Notice): New sections.
73590         * modules/findprog (Depends-on): Add strdup.
73591         * modules/getaddrinfo (Depends-on): Likewise.
73592         * modules/localename (Depends-on): Likewise.
73593         * modules/relocatable-lib (Depends-on): Likewise.
73594         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73595         * modules/relocatable-prog (Depends-on): Likewise.
73596         * modules/trim (Depends-on): Likewise.
73597         * modules/unictype/gen-ctype (Depends-on): Likewise.
73598         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73600 2008-11-02  Bruno Haible  <bruno@clisp.org>
73602         Mark 'strcspn' obsolete.
73603         * modules/strcspn (Status, Notice): New sections.
73605 2008-11-02  Bruno Haible  <bruno@clisp.org>
73607         Mark 'rmdir' obsolete.
73608         * modules/rmdir (Status, Notice): New sections.
73609         * modules/clean-temp (Depends-on): Add rmdir.
73610         * modules/openat (Depends-on): Likewise.
73612 2008-11-02  Bruno Haible  <bruno@clisp.org>
73614         Mark 'raise' obsolete.
73615         * modules/raise (Status, Notice): New sections.
73616         (Include): Specify <signal.h>.
73617         * modules/stdio (Depends-on): Add raise.
73618         * modules/write (Depends-on): Likewise.
73620 2008-11-02  Bruno Haible  <bruno@clisp.org>
73622         Mark 'memset' obsolete.
73623         * modules/memset (Status, Notice): New sections.
73625 2008-11-02  Bruno Haible  <bruno@clisp.org>
73627         Mark 'memmove' obsolete.
73628         * modules/memmove (Status, Notice): New sections.
73629         * modules/argp (Depends-on): Add memmove.
73630         * modules/argz (Depends-on): Likewise.
73631         * modules/canonicalize (Depends-on): Likewise.
73632         * modules/canonicalize-lgpl (Depends-on): Likewise.
73633         * modules/fts (Depends-on): Likewise.
73634         * modules/getcwd (Depends-on): Likewise.
73635         * modules/human (Depends-on): Likewise.
73636         * modules/regex (Depends-on): Likewise.
73637         * modules/striconveh (Depends-on): Likewise.
73638         * modules/trim (Depends-on): Likewise.
73639         * modules/unistr/u8-move (Depends-on): Likewise.
73640         * modules/unistr/u16-move (Depends-on): Likewise.
73641         * modules/unistr/u32-move (Depends-on): Likewise.
73643 2008-11-02  Bruno Haible  <bruno@clisp.org>
73645         Mark 'memcpy' obsolete.
73646         * modules/memcpy (Status, Notice): New sections.
73648 2008-11-02  Bruno Haible  <bruno@clisp.org>
73650         Mark 'memcmp' obsolete.
73651         * modules/memcmp (Status, Notice): New sections.
73652         * modules/argmatch (Depends-on): Add memchr.
73653         * modules/backupfile (Depends-on): Likewise.
73654         * modules/c-strcasestr (Depends-on): Likewise.
73655         * modules/crypto/des (Depends-on): Likewise.
73656         * modules/csharpcomp (Depends-on): Likewise.
73657         * modules/fnmatch (Depends-on): Likewise.
73658         * modules/git-merge-changelog (Depends-on): Likewise.
73659         * modules/isnand (Depends-on): Likewise.
73660         * modules/isnand-nolibm (Depends-on): Likewise.
73661         * modules/isnanf (Depends-on): Likewise.
73662         * modules/isnanf-nolibm (Depends-on): Likewise.
73663         * modules/isnanl (Depends-on): Likewise.
73664         * modules/isnanl-nolibm (Depends-on): Likewise.
73665         * modules/mbchar (Depends-on): Likewise.
73666         * modules/memcoll (Depends-on): Likewise.
73667         * modules/quotearg (Depends-on): Likewise.
73668         * modules/regex (Depends-on): Likewise.
73669         * modules/relocatable-prog (Depends-on): Likewise.
73670         * modules/same (Depends-on): Likewise.
73671         * modules/signbit (Depends-on): Likewise.
73672         * modules/strcasestr-simple (Depends-on): Likewise.
73673         * modules/unictype/gen-ctype (Depends-on): Likewise.
73674         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73675         * modules/uniname/uniname (Depends-on): Likewise.
73676         * modules/unistr/u8-cmp (Depends-on): Likewise.
73678 2008-11-02  Bruno Haible  <bruno@clisp.org>
73680         Mark 'memchr' obsolete.
73681         * modules/memchr (Status, Notice): New sections.
73682         * modules/argp (Depends-on): Add memchr.
73683         * modules/base64 (Depends-on): Likewise.
73684         * modules/c-strcasestr (Depends-on): Likewise.
73685         * modules/chdir-long (Depends-on): Likewise.
73686         * modules/fnmatch (Depends-on): Likewise.
73687         * modules/getsubopt (Depends-on): Likewise.
73688         * modules/git-merge-changelog (Depends-on): Likewise.
73689         * modules/glob (Depends-on): Likewise.
73690         * modules/strcasestr-simple (Depends-on): Likewise.
73691         * modules/strnlen (Depends-on): Likewise.
73693 2008-11-02  Bruno Haible  <bruno@clisp.org>
73695         Mark 'atexit' obsolete.
73696         * modules/atexit (Status, Notice): New sections.
73697         * modules/chdir-long (Depends-on): Add atexit.
73698         * modules/wait-process (Depends-on): Likewise.
73700 2008-11-02  Bruno Haible  <bruno@clisp.org>
73702         * gnulib-tool: New option --with-obsolete.
73703         (func_usage): Document it.
73704         (func_modules_transitive_closure): Drop obsolete dependencies if
73705         incobsolete is not true.
73706         (func_import): Read and save the incobsolete variable to the cache.
73708 2008-11-02  Bruno Haible  <bruno@clisp.org>
73710         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73711         * gnulib-tool: New option --extract-status.
73712         (func_usage): Document it.
73713         (sed_extract_prog): Recognize it.
73714         (func_get_status): New function.
73716 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73718         * modules/sockets (License): Change from LGPL to LGPLv2+.
73720 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73722         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73724 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73726         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73727         Mention times and sys_times.
73728         * modules/sys_times, modules/sys_times-tests: New modules.
73729         * modules/times, modules/times-tests: Likewise
73730         * m4/sys_times_h.m4: New file.
73731         * lib/sys_times.in.h: Likewise
73732         * lib/times.c: Likewise.
73733         * tests/test-sys_times.c: Likewise.
73734         * tests/test-times.c: Likewise.
73735         * doc/posix-headers/sys_times.texi: Update.
73736         * doc/posix-functions/times.texi: Update.
73738 2008-10-28  Jim Meyering  <meyering@redhat.com>
73740         * modules/tempname (Depends-on): Add lstat.
73742         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73744 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73746         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73747         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73748         using idiom used elsewhere in gnulib.
73750 2008-10-27  Jim Meyering  <meyering@redhat.com>
73752         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73754 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73756         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73757         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73758         programs.
73759         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73761 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73763         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73765 2008-10-27  Bruno Haible  <bruno@clisp.org>
73767         * tests/test-lstat.c: Include <stdio.h>.
73769 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73771         * modules/lstat-tests: New module.
73772         * tests/test-lstat.c: New file.
73774 2008-10-26  Jim Meyering  <meyering@redhat.com>
73776         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73778 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73779             Bruno Haible  <bruno@clisp.org>
73781         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73782         * modules/configmake (Include): Add a note that the include must come
73783         after all system headers.
73784         * lib/javaversion.c: Include configmake.h after all other includes.
73786 2008-10-26  Bruno Haible  <bruno@clisp.org>
73788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73789         HAVE_STRUCT_RANDOM_DATA to 1.
73790         (gl_STDLIB_H): Simplify.
73792 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73794         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73795         substitute HAVE_STRUCT_RANDOM_DATA.
73796         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73797         random_data.
73798         * modules/stdlib (Makefile.am): Substitute
73799         HAVE_STRUCT_RANDOM_DATA.
73801 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73803         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73804         * doc/gnulib-intro.texi (Copyright): Likewise.
73806 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73808         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73809         findings.
73811 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73812             Bruno Haible  <bruno@clisp.org>
73814         * lib/unistd.in.h: Include <winsock2.h>.
73815         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73816         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73817         Provide dummy declarations.
73818         (gethostname): Override.
73819         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73820         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73821         gl_PREREQ_SYS_H_WINSOCK2.
73822         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73823         * doc/posix-functions/gethostname.texi: More details.
73825 2008-10-25  Bruno Haible  <bruno@clisp.org>
73827         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73828         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73829         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73831         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73832         here ...
73833         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73834         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73835         gl_UNISTD_H_DEFAULTS.
73837 2008-10-25  Eric Blake  <ebb9@byu.net>
73839         signbit: avoid spurious compiler failure
73840         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73841         declarations inside function.
73843 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73844             Bruno Haible  <bruno@clisp.org>
73846         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73847         * modules/random_r (Depends-on): Add stdint.
73849 2008-10-24  Bruno Haible  <bruno@clisp.org>
73851         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73852         Eggert.
73853         * modules/strerror (License): Likewise.
73855 2008-10-24  Jim Meyering  <meyering@redhat.com>
73857         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73858         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73860 2008-10-24  Eric Blake  <ebb9@byu.net>
73862         getgroups: fix compilation when getgroups is available
73863         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73864         but with <config.h> override of getgroups disabled.
73866 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73868         * doc/gnulib.texi (Header files): Add note about C++ problems.
73869         Explained by Bruno Haible <bruno@clisp.org>.
73871 2008-10-23  Bruno Haible  <bruno@clisp.org>
73873         Define a dummy SA_NODEFER macro on Interix.
73874         * lib/signal.in.h (SA_NODEFER): Define fallback.
73875         Reported by Aleksey Cheusov <cheusov@tut.by> via
73876         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73878 2008-10-23  Bruno Haible  <bruno@clisp.org>
73880         * modules/freadahead (License): Change to LGPLv2+.
73881         Suggested by Simon Josefsson.
73883 2008-10-23  Jim Meyering  <meyering@redhat.com>
73885         random_r: new module
73886         * modules/random_r: New file.
73887         * m4/random_r.m4: New file.
73888         * lib/random_r.c: New file, from glibc.
73889         * modules/random_r-tests: New file.
73890         * tests/test-random_r.c: New file.
73891         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73892          Declare.
73893         (RAND_MAX): Define.
73894         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73895         * modules/stdlib: Substitute them, too.
73896         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73897         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73898         * doc/glibc-functions/random_r.texi: Likewise.
73899         * doc/glibc-functions/setstate_r.texi: Likewise.
73900         * doc/glibc-functions/srandom_r.texi: Likewise.
73901         * config/srclist.txt: Mention it.
73903 2008-10-23  David Lutterkort  <lutter@redhat.com>
73905         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73906         link requirement
73908 2008-10-23  Jim Meyering  <meyering@redhat.com>
73910         selinux-h: mark parameters of stub functions as intentionally unused
73911         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73912         * lib/se-context.in.h: Likewise.
73914 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73916         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73918 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73920         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73922 2008-10-22  Eric Blake  <ebb9@byu.net>
73924         glthread/thread: avoid compiler warning
73925         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73926         Add unreachable abort to silence compiler.
73928 2008-10-22  Eric Blake  <ebb9@byu.net>
73930         netdb: also supply struct addrinfo for cygwin 1.5.x
73931         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73932         older cygwin.
73933         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73934         cygwin.
73935         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73937 2008-10-22  Bruno Haible  <bruno@clisp.org>
73939         * users.txt: Update entry about pspp.
73941 2008-10-21  Bruno Haible  <bruno@clisp.org>
73943         Simplification.
73944         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73945         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73947         Simplification.
73948         * lib/ioctl.c (ioctl): Don't undefine.
73949         * lib/socket.c (socket): Don't undefine.
73951         Remove unused module indicator macros.
73952         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73953         GNULIB_$1 as a C macro.
73955         * doc/posix-functions/close.texi: Undo last change.
73956         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73957         Windows platforms.
73959 2008-10-21  Bruno Haible  <bruno@clisp.org>
73961         Add gethostname() declaration to <unistd.h>.
73962         * lib/unistd.in.h (gethostname): New declaration.
73963         * lib/gethostname.c: Include <unistd.h>.
73964         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73965         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73967         and HAVE_GETHOSTNAME.
73968         * modules/gethostname (Depends-on): Add unistd.
73969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73970         (Include): Specify <unistd.h>.
73971         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73972         HAVE_GETHOSTNAME.
73973         * tests/test-gethostname.c: Include <unistd.h> first.
73975 2008-10-21  Bruno Haible  <bruno@clisp.org>
73977         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73978         * modules/select-tests (Depends-on): Likewise.
73979         Reported by Simon Josefsson.
73981 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73983         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73984         * lib/accept.c: New file, based on winsock.c.
73985         * lib/bind.c: New file, based on winsock.c.
73986         * lib/connect.c: New file, based on winsock.c.
73987         * lib/getpeername.c: New file, based on winsock.c.
73988         * lib/getsockname.c: New file, based on winsock.c.
73989         * lib/getsockopt.c: New file, based on winsock.c.
73990         * lib/ioctl.c: New file, based on winsock.c.
73991         * lib/listen.c: New file, based on winsock.c.
73992         * lib/recv.c: New file, based on winsock.c.
73993         * lib/recvfrom.c: New file, based on winsock.c.
73994         * lib/send.c: New file, based on winsock.c.
73995         * lib/sendto.c: New file, based on winsock.c.
73996         * lib/setsockopt.c: New file, based on winsock.c.
73997         * lib/shutdown.c: New file, based on winsock.c.
73998         * lib/socket.c: New file, based on winsock.c.
73999         * lib/w32sock.h: New file, based on winsock.c.
74000         * lib/winsock.c: Remove file.
74001         * modules/accept: Likewise.
74002         * modules/bind: Likewise.
74003         * modules/connect: Likewise.
74004         * modules/getpeername: Likewise.
74005         * modules/getsockname: Likewise.
74006         * modules/getsockopt: Likewise.
74007         * modules/ioctl: Likewise.
74008         * modules/listen: Likewise.
74009         * modules/recv: Likewise.
74010         * modules/recvfrom: Likewise.
74011         * modules/send: Likewise.
74012         * modules/sendto: Likewise.
74013         * modules/setsockopt: Likewise.
74014         * modules/shutdown: Likewise.
74015         * modules/socket: Use socket.c instead of winsock.c.
74016         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
74017         * doc/posix-functions/accept.texi: Doc fix.
74018         * doc/posix-functions/bind.texi: Doc fix.
74019         * doc/posix-functions/close.texi: Doc fix.
74020         * doc/posix-functions/connect.texi: Doc fix.
74021         * doc/posix-functions/getpeername.texi: Doc fix.
74022         * doc/posix-functions/getsockname.texi: Doc fix.
74023         * doc/posix-functions/getsockopt.texi: Doc fix.
74024         * doc/posix-functions/ioctl.texi: Doc fix.
74025         * doc/posix-functions/listen.texi: Doc fix.
74026         * doc/posix-functions/recv.texi: Doc fix.
74027         * doc/posix-functions/recvfrom.texi: Doc fix.
74028         * doc/posix-functions/send.texi: Doc fix.
74029         * doc/posix-functions/sendto.texi: Doc fix.
74030         * doc/posix-functions/setsockopt.texi: Doc fix.
74031         * doc/posix-functions/shutdown.texi: Doc fix.
74032         * doc/posix-functions/socket.texi: Doc fix.
74034 2008-10-20  Bruno Haible  <bruno@clisp.org>
74036         Take into account the role of SIGABRT_COMPAT on Windows 2008.
74037         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
74038         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
74039         as an alias for SIGABRT.
74040         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
74041         (sigaction): Map it to SIGABRT.
74042         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
74044 2008-10-20  Bruno Haible  <bruno@clisp.org>
74046         * lib/fts.c: Don't include lstat.h.
74047         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
74049         Move the lstat() declaration to <sys/stat.h>.
74050         * lib/lstat.h: Remove file.
74051         * lib/sys_stat.in.h: Add special invocation convention.
74052         (lstat): New declaration.
74053         * lib/lstat.c (orig_lstat): New function.
74054         (rpl_lstat): Use orig_lstat instead of lstat.
74055         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
74056         AC_C_INLINE. Set REPLACE_LSTAT.
74057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
74058         and REPLACE_LSTAT.
74059         * modules/lstat (Files): Remove lib/lstat.h.
74060         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74061         (Include): Specify <sys/stat.h> instead of lstat.h.
74062         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
74063         REPLACE_LSTAT.
74064         * NEWS: Mention the change.
74066 2008-10-20  Bruno Haible  <bruno@clisp.org>
74068         * modules/posix_spawn-tests: New file.
74069         * tests/test-posix_spawn3.c: New file.
74071 2008-10-20  Bruno Haible  <bruno@clisp.org>
74073         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
74074         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74075         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
74076         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74077         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
74079 2008-10-20  Bruno Haible  <bruno@clisp.org>
74081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
74082         of posix_spawn on AIX 5.3.
74084 2008-10-20  Bruno Haible  <bruno@clisp.org>
74086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
74088 2008-10-20  Bruno Haible  <bruno@clisp.org>
74090         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
74091         of AC_LANG_PROGRAM.
74093 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74095         * lib/netdb.in.h: Don't define GNU specific constants until they
74096         are supported or needed.  Reported by Bruno Haible
74097         <bruno@clisp.org>.
74099 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74101         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
74103 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74105         * lib/getaddrinfo.h: Remove file.
74106         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74107         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74108         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74109         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74110         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74111         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74112         * tests/test-getaddrinfo.c: Likewise.
74113         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74114         * NEWS: Mention change.
74116 2008-10-19  Bruno Haible  <bruno@clisp.org>
74118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74120 2008-10-19  Bruno Haible  <bruno@clisp.org>
74122         * lib/wait-process.c: Include simply <sys/wait.h>.
74123         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74124         WIFSTOPPED): Remove fallback definitions.
74125         * modules/wait-process (Depends-on): Add sys_wait.
74127         New module 'sys_wait'.
74128         * modules/sys_wait: New file.
74129         * lib/sys_wait.in.h: New file, partially copied from
74130         lib/wait-process.c.
74131         * m4/sys_wait_h.m4: New file.
74132         * doc/posix-headers/sys_wait.texi: Mention the new module.
74134 2008-10-19  Bruno Haible  <bruno@clisp.org>
74136         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74138 2008-10-19  Bruno Haible  <bruno@clisp.org>
74140         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74141         * lib/wait-process.c (WAIT_T): Remove type.
74142         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74143         (wait_subprocess): Update.
74145 2008-10-19  Bruno Haible  <bruno@clisp.org>
74147         New module 'atoll'.
74148         * modules/atoll: New file.
74149         * lib/stdlib.in.h (atoll): New declaration.
74150         * lib/atoll.c: New file, from glibc with modifications.
74151         * m4/atoll.m4: New file.
74152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74153         HAVE_ATOLL.
74154         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74155         * doc/posix-functions/atoll.texi: Mention the new module.
74157 2008-10-19  Bruno Haible  <bruno@clisp.org>
74159         Add strtoull() declaration to <stdlib.h>.
74160         * lib/stdlib.in.h (strtoull): New declaration.
74161         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74162         Set HAVE_STRTOULL.
74163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74164         HAVE_STRTOULL.
74165         * modules/strtoull (Depends-on): Add stdlib.
74166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74167         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74168         HAVE_STRTOULL.
74170 2008-10-19  Bruno Haible  <bruno@clisp.org>
74172         Add strtoll() declaration to <stdlib.h>.
74173         * lib/stdlib.in.h (strtoll): New declaration.
74174         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74175         Set HAVE_STRTOLL.
74176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74177         HAVE_STRTOLL.
74178         * modules/strtoll (Depends-on): Add stdlib.
74179         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74180         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74182 2008-10-19  Bruno Haible  <bruno@clisp.org>
74184         * modules/bcopy (Depends-on): Add strings.
74185         (Include): Specify <strings.h>.
74187 2008-10-19  Bruno Haible  <bruno@clisp.org>
74189         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74191 2008-10-19  Bruno Haible  <bruno@clisp.org>
74193         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74194         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74195         mingw.
74197 2008-10-19  Bruno Haible  <bruno@clisp.org>
74199         * lib/atanl.c: Don't include isnanl.h.
74200         * lib/cosl.c: Likewise.
74201         * lib/ldexpl.c: Likewise.
74202         * lib/logl.c: Likewise.
74203         * lib/sinl.c: Likewise.
74204         * lib/sqrtl.c: Likewise.
74205         * lib/tanl.c: Likewise.
74207         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74208         * lib/isnanf.h: Remove file.
74209         * lib/isnand.h: Remove file.
74210         * lib/isnanl.h: Remove file.
74211         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74212         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74213         macros.
74214         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74215         HAVE_ISNANF, don't define it as a C macro.
74216         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74217         HAVE_ISNAND, don't define it as a C macro.
74218         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74219         HAVE_ISNANL, don't define it as a C macro.
74220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74221         HAVE_ISNAN[FDL].
74222         * modules/isnanf (Files): Remove lib/isnanf.h.
74223         (Depends-on): Add math.
74224         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74225         (Include): Specify <math.h> instead of isnanf.h.
74226         * modules/isnand (Files): Remove lib/isnand.h.
74227         (Depends-on): Add math.
74228         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74229         (Include): Specify <math.h> instead of isnand.h.
74230         * modules/isnanl (Files): Remove lib/isnanl.h.
74231         (Depends-on): Add math.
74232         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74233         (Include): Specify <math.h> instead of isnanl.h.
74234         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74235         HAVE_ISNAN[FDL].
74236         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74237         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74238         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74239         * NEWS: Mention the change.
74241 2008-10-18  Bruno Haible  <bruno@clisp.org>
74243         Add getusershell(), setusershell(), endusershell() declarations to
74244         <unistd.h>.
74245         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74246         declarations.
74247         * lib/getusershell.c: Include unistd.h.
74248         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74249         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74250         HAVE_GETUSERSHELL.
74251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74252         and HAVE_GETUSERSHELL.
74253         * modules/getusershell (Depends-on): Add unistd, extensions.
74254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74255         (Include): Specify <unistd.h>.
74256         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74257         HAVE_GETUSERSHELL.
74259 2008-10-18  Bruno Haible  <bruno@clisp.org>
74261         Add a getloadavg() declaration to <stdlib.h>.
74262         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74263         getloadavg declaration.
74264         (getloadavg): New declaration.
74265         * lib/getloadavg.c: Include <stdlib.h> first.
74266         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74267         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74268         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74270         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74271         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74272         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74273         (Include): Specify <stdlib.h>.
74274         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74275         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74277 2008-10-18  Bruno Haible  <bruno@clisp.org>
74279         * lib/dirchownmod.c: Don't include lchmod.h.
74281         Move the lchmod() declaration to <sys/stat.h>.
74282         * lib/lchmod.h: Remove file.
74283         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74284         (lchmod): New declaration, moved here from lib/lchown.h.
74285         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74286         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74288         and HAVE_LCHMOD.
74289         * modules/lchmod (Files): Remove lib/lchmod.h.
74290         (Depends-on): Add sys_stat, extensions.
74291         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74292         (Include): Specify <sys/stat.h> instead of lchmod.h.
74293         * modules/sys_stat (Depends-on): Add link-warning.
74294         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74295         definition of GL_LINK_WARNING.
74296         * NEWS: Mention the change.
74298 2008-10-18  Bruno Haible  <bruno@clisp.org>
74300         * lib/fchdir.c: Don't include dirfd.h.
74301         * lib/fts.c: Likewise.
74302         * lib/getcwd.c: Likewise.
74303         * lib/glob.c: Likewise.
74305         Move the dirfd() declaration to <dirent.h>.
74306         * lib/dirfd.h: Remove file.
74307         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74308         (dirfd): New declaration.
74309         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74310         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74311         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74312         HAVE_DECL_DIRFD.
74313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74314         HAVE_DECL_DIRFD.
74315         * modules/dirfd (Files): Remove lib/dirfd.h.
74316         (Depends-on): Add dirent, extensions.
74317         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74318         (Include): Specify <dirent.h> instead of dirfd.h.
74319         * modules/dirent (Depends-on): Add link-warning.
74320         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74321         definition of GL_LINK_WARNING.
74322         * NEWS: Mention the change.
74324 2008-10-18  Bruno Haible  <bruno@clisp.org>
74326         Move the euidaccess() declaration to <unistd.h>.
74327         * lib/euidaccess.h: Remove file.
74328         * lib/unistd.in.h (euidaccess): New declaration.
74329         * lib/euidaccess.c: Don't include euidaccess.h.
74330         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74331         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74333         and HAVE_EUIDACCESS.
74334         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74335         (Depends-on): Add unistd.
74336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74337         (Include): Specify <unistd.h> instead of euidaccess.h.
74338         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74339         HAVE_EUIDACCESS.
74340         * NEWS: Mention the change.
74342 2008-10-18  Bruno Haible  <bruno@clisp.org>
74344         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74346         Move the getdomainname() declaration to <unistd.h>.
74347         * lib/getdomainname.h: Remove file.
74348         * lib/unistd.in.h (getdomainname): New declaration.
74349         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74350         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74351         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74352         HAVE_GETDOMAINNAME.
74353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74354         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74355         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74356         (Depends-on): Add unistd, extensions.
74357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74358         (Includes): Specify <unistd.h> instead of getdomainname.h.
74359         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74360         HAVE_GETDOMAINNAME.
74361         * NEWS: Mention the change.
74363 2008-10-18  Bruno Haible  <bruno@clisp.org>
74365         * modules/dirent: New file.
74366         * m4/dirent_h.m4: New file.
74367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74368         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74369         * modules/fchdir (Files): Remove lib/dirent.in.h.
74370         (Depends-on): Add dirent.
74371         (Makefile.am): Move rules to modules/dirent.
74372         * doc/posix-headers/dirent.texi: Mention the new module.
74374 2008-10-18  Bruno Haible  <bruno@clisp.org>
74376         Avoid -Wunused-parameter warnings in public gnulib header files.
74377         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74378         macro.
74379         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74381 2008-10-18  Bruno Haible  <bruno@clisp.org>
74383         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74384         * doc/glibc-functions/error.texi: Mention the module 'error'.
74385         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74386         * doc/glibc-functions/getdomainname.texi: Mention the module
74387         'getdomainname'.
74388         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74389         * doc/glibc-functions/getpagesize.texi: Mention the module
74390         'getpagesize'.
74391         * doc/glibc-functions/getusershell.texi: Mention the module
74392         'getusershell'.
74393         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74394         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74395         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74396         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74397         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74398         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74399         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74400         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74401         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74402         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74403         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74404         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74405         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74406         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74408 2008-10-17  Bruno Haible  <bruno@clisp.org>
74410         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74411         HP-UX and IRIX, use -0.0L.
74412         * tests/test-ceill.c (minus_zero): Likewise.
74413         * tests/test-floorl.c (minus_zero): Likewise.
74414         * tests/test-frexpl.c (minus_zero): Likewise.
74415         * tests/test-isnan.c (minus_zerol): Likewise.
74416         * tests/test-isnanl.h (minus_zero): Likewise.
74417         * tests/test-ldexpl.c (minus_zero): Likewise.
74418         * tests/test-roundl.c (minus_zero): Likewise.
74419         * tests/test-signbit.c (minus_zerol): Likewise.
74420         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74421         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74422         * tests/test-truncl.c (minus_zero): Likewise.
74423         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74424         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74425         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74426         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74428 2008-10-17  Bruno Haible  <bruno@clisp.org>
74430         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74431         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74432         that it gets activated only for gcc >= 3.0.
74433         * lib/dirent.in.h: Likewise.
74434         * lib/errno.in.h: Likewise.
74435         * lib/fcntl.in.h: Likewise.
74436         * lib/float.in.h: Likewise.
74437         * lib/iconv.in.h: Likewise.
74438         * lib/inttypes.in.h: Likewise.
74439         * lib/locale.in.h: Likewise.
74440         * lib/math.in.h: Likewise.
74441         * lib/netdb.in.h: Likewise.
74442         * lib/netinet_in.in.h: Likewise.
74443         * lib/search.in.h: Likewise.
74444         * lib/signal.in.h: Likewise.
74445         * lib/spawn.in.h: Likewise.
74446         * lib/stdarg.in.h: Likewise.
74447         * lib/stdint.in.h: Likewise.
74448         * lib/stdio.in.h: Likewise.
74449         * lib/stdlib.in.h: Likewise.
74450         * lib/string.in.h: Likewise.
74451         * lib/strings.in.h: Likewise.
74452         * lib/sys_file.in.h: Likewise.
74453         * lib/sys_ioctl.in.h: Likewise.
74454         * lib/sys_select.in.h: Likewise.
74455         * lib/sys_socket.in.h: Likewise.
74456         * lib/sys_stat.in.h: Likewise.
74457         * lib/sys_time.in.h: Likewise.
74458         * lib/sysexits.in.h: Likewise.
74459         * lib/time.in.h: Likewise.
74460         * lib/unistd.in.h: Likewise.
74461         * lib/wchar.in.h: Likewise.
74462         * lib/wctype.in.h: Likewise.
74463         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74465 2008-10-17  Jim Meyering  <meyering@redhat.com>
74467         ignore-value: don't depend on inline module
74468         * modules/ignore-value (Depends-on): Remove 'inline'.
74469         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74470         Suggestion from Bruno Haible.
74472 2008-10-17  Bruno Haible  <bruno@clisp.org>
74474         New implementation of condition variables for Win32.
74475         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74476         (gl_linked_waitqueue_t): New type.
74477         (gl_cond_t): Use it.
74478         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74479         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74480         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74481         (glthread_cond_init_func, glthread_cond_wait_func,
74482         glthread_cond_timedwait_func, glthread_cond_signal_func,
74483         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74484         Reimplemented on the basis of gl_linked_waitqueue_t.
74485         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74486         gl_waitqueue_t.
74487         (gl_rwlock_t): Update.
74488         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74490 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74492         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74493         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74495 2008-10-17  Jim Meyering  <meyering@redhat.com>
74497         ignore-value: new module
74498         * modules/ignore-value: New file.
74499         * lib/ignore-value.h: New file.
74500         * MODULES.html.sh (Compiler warning management): New section,
74501         just for this module.  More to come.
74503 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74505         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74506         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74507         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74509 2008-10-16  Jim Meyering  <meyering@redhat.com>
74511         openat-die.c: avoid 'no previous prototype' warning
74512         * lib/openat-die.c: Include "openat.h".
74513         Reported by Reuben Thomas <rrt@sc3d.org>.
74515 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74517         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74518         * lib/netdb.in.h: Fix typo.
74519         Reported by Bruno Haible  <bruno@clisp.org>
74521         * lib/netdb.in.h: Include sys/socket.h for platforms without
74522         netdb.h, to get structures like hostent on MinGW.
74523         * modules/netdb (Depends-on): Add sys_socket.
74525 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74527         * modules/netdb, modules/netdb-tests: New file.
74528         * m4/netdb_h.m4: New file.
74529         * lib/netdb.in.h: Add, currently just an empty file pending
74530         definitions.
74531         * tests/test-netdb.c: New file.
74532         * doc/posix-headers/netdb.texi: Mention that we replace it if
74533         needed.
74534         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74535         netdb.
74537 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74539         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74540         with code.
74542 2008-10-13  Bruno Haible  <bruno@clisp.org>
74544         * lib/glthread/cond.c (glthread_cond_wait_func,
74545         glthread_cond_timedwait_func): Add a comment.
74547 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74549         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74550         * tests/test-select.c: Likewise,
74552 2008-10-13  Bruno Haible  <bruno@clisp.org>
74554         * lib/glthread/cond.c (glthread_cond_wait_func,
74555         glthread_cond_timedwait_func): Fix variable name.
74556         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74558 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74560         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74562         struct sockaddr.sa_len.
74563         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74565 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74567         * build-aux/pmccabe2html: Add css and css_url parameters.
74569 2008-10-12  Bruno Haible  <bruno@clisp.org>
74571         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74572         calling aclx_get.
74573         Reported by Rainer Tammer <tammer@tammer.net>.
74575 2008-10-12  Bruno Haible  <bruno@clisp.org>
74577         Use msvcrt aware primitives for creation/termination of Win32 threads.
74578         * lib/glthread/thread.c: Include <process.h>.
74579         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74580         (wrapper_func): Update signature.
74581         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74583 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74584             Bruno Haible  <bruno@clisp.org>
74586         Provide a Win32 implementation of the 'cond' module.
74587         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74588         * lib/glthread/cond.c (glthread_cond_init_func,
74589         glthread_cond_wait_func, glthread_cond_timedwait_func,
74590         glthread_cond_signal_func, glthread_cond_broadcast_func,
74591         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74592         * modules/cond (Dependencies): Add gettimeofday.
74594 2008-10-11  Bruno Haible  <bruno@clisp.org>
74596         Make sleep work on older versions of mingw.
74597         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74598         only whether it exists.
74599         * doc/posix-functions/sleep.texi: Mention the problem with older
74600         versions of mingw.
74602 2008-10-11  Bruno Haible  <bruno@clisp.org>
74604         New module 'shutdown'.
74605         * modules/shutdown: New file.
74606         * lib/sys_socket.in.h (shutdown): New declaration.
74607         * lib/winsock.c (shutdown): New function.
74608         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74609         GNULIB_SHUTDOWN.
74610         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74611         * doc/posix-functions/shutdown.texi: Document the new module.
74613 2008-10-11  Jim Meyering  <meyering@redhat.com>
74615         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74617 2008-10-11  Bruno Haible  <bruno@clisp.org>
74619         New module 'fclose'.
74620         * modules/fclose: New file.
74621         * lib/stdio.in.h (fclose): New declaration.
74622         * lib/fclose.c: New file.
74623         * m4/fclose.m4: New file.
74624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74625         REPLACE_FCLOSE.
74626         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74627         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74628         REPLACE_FCLOSE.
74629         * modules/close (Depends-on): fclose.
74630         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74632 2008-10-11  Bruno Haible  <bruno@clisp.org>
74634         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74635         set errno and don't call _close.
74637 2008-10-10  Bruno Haible  <bruno@clisp.org>
74639         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74640         ACL, not afterwards. Fixes test failure on Cygwin.
74642 2008-10-09  Ben Pfaff  <blp@gnu.org>
74644         * build-aux/announce-gen: Fix gnulib version related part of usage
74645         message.  Die with a useful error message if no tarballs are
74646         found.
74648 2008-10-10  Jim Meyering  <meyering@redhat.com>
74650         bootstrap: use git's --depth=N option only if it's supported
74651         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74652         recognize the --depth option.  Reported by Pádraig Brady.
74654 2008-10-09  Bruno Haible  <bruno@clisp.org>
74656         New module 'ioctl'.
74657         * modules/ioctl: New file.
74658         * lib/sys_socket.in.h (ioctl): Remove declaration.
74659         * lib/winsock.c: Include <sys/ioctl.h>.
74660         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74661         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74662         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74663         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74664         * doc/posix-functions/ioctl.texi: Mention the new module.
74666 2008-10-09  Bruno Haible  <bruno@clisp.org>
74668         New module 'sys_ioctl'.
74669         * lib/sys_ioctl.in.h: New file.
74670         * m4/sys_ioctl_h.m4: New file.
74671         * modules/sys_ioctl: New file.
74672         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74674 2008-10-09  Bruno Haible  <bruno@clisp.org>
74676         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74677         * lib/winsock.c: Include <stdarg.h>.
74678         (rpl_ioctl): Change to second argument 'int' and then varargs.
74680 2008-10-09  Bruno Haible  <bruno@clisp.org>
74682         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74683         when the sys_socket module is present and the system has <winsock2.h>.
74685 2008-10-09  Bruno Haible  <bruno@clisp.org>
74687         * doc/posix-functions/close.texi: Mention module 'close' instead of
74688         module 'sys_socket'.
74690 2008-10-09  Bruno Haible  <bruno@clisp.org>
74692         * doc/glibc-headers/sys_ioctl.texi: New file.
74693         * doc/gnulib.texi: Include it.
74695 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74696             Bruno Haible  <bruno@clisp.org>
74698         Combine the two replacements of 'close'.
74699         * lib/sys_socket.in.h (close): Define to a reminder to include
74700         <unistd.h>.
74701         (_gl_close_fd_maybe_socket): New declaration.
74702         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74703         * lib/winsock.c (close): Remove undefinition.
74704         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74705         needed for the gnulib module 'close'.
74706         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74707         define to an error symbol or to a warning, if suitable.
74708         * lib/close.c: Include <sys/socket.h>.
74709         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74710         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74711         UNISTD_H_HAVE_WINSOCK2_H.
74712         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74714         UNISTD_H_HAVE_WINSOCK2_H.
74715         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74716         (configure.ac): Set a module indicator.
74717         (Makefile.am): Substitute GNULIB_CLOSE.
74718         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74719         * modules/poll-tests (Depends-on): Add close.
74720         * modules/select-tests (Depends-on): Likewise.
74722 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74723             Bruno Haible  <bruno@clisp.org>
74725         New module 'close'.
74726         * modules/close: New file.
74727         * lib/unistd.in.h (close): Move declaration out of the
74728         FCHDIR_REPLACEMENT scope.
74729         (_gl_unregister_fd): New declaration.
74730         * lib/close.c: New file.
74731         * lib/fchdir.c (rpl_close): Remove function.
74732         * m4/close.m4: New file.
74733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74734         close.
74735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74736         REPLACE_CLOSE.
74737         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74738         REPLACE_CLOSE.
74739         * modules/fchdir (Depends-on): Add close.
74741 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74742             Bruno Haible  <bruno@clisp.org>
74744         * lib/fcntl.in.h (open): Simplify conditionals.
74745         (_gl_register_fd): New declaration.
74746         * lib/fchdir.c (rpl_open): Remove function.
74747         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74748         also.
74749         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74751         open.
74753 2008-10-09  Jim Meyering  <meyering@redhat.com>
74755         GNUmakefile: use the more name-space-friendly "_version"
74756         * top/GNUmakefile (_dummy): Update.
74757         (_version): Rename from "version".
74759 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74760             Bruno Haible  <bruno@clisp.org>
74762         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74763         rpl_close.
74764         (_gl_register_fd): New function, extracted from rpl_open.
74765         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74766         (rpl_open, rpl_opendir): Use _gl_register_fd.
74768 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74770         Fix organization of 'open' replacement.
74771         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74772         (gl_FUNC_OPEN): Use it.
74773         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74775 2008-10-08  Bruno Haible  <bruno@clisp.org>
74777         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74779 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74781         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74782         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74783         listen).
74785 2008-10-08  Eric Blake  <ebb9@byu.net>
74787         GNUmakefile: add 'make version' target
74788         * top/GNUmakefile (_curr-ver): Split version update rules...
74789         (version): ...into a target.
74791 2008-10-07  Bruno Haible  <bruno@clisp.org>
74793         Use a more portable replacement expression for -0.0L.
74794         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74795         instead of -0.0L. Fix m4 quotation.
74797         * tests/test-signbit.c: Include <float.h>.
74798         (minus_zero): New variable.
74799         (test_signbitl): Use minus_zero instead of -zero.
74800         * modules/signbit-tests (Depends-on): Add float.
74802         * tests/test-ceill.c: Include <float.h>.
74803         (zero): Remove variable.
74804         (minus_zero): New variable.
74805         (main): Use minus_zero instead of -zero.
74806         * modules/ceill-tests (Depends-on): Add float.
74808         * tests/test-floorl.c: Include <float.h>.
74809         (zero): Remove variable.
74810         (minus_zero): New variable.
74811         (main): Use minus_zero instead of -zero.
74812         * modules/floorl-tests (Depends-on): Add float.
74814         * tests/test-roundl.c: Include <float.h>.
74815         (zero): Remove variable.
74816         (minus_zero): New variable.
74817         (main): Use minus_zero instead of -zero.
74818         * modules/roundl-tests (Depends-on): Add float.
74820         * tests/test-truncl.c: Include <float.h>.
74821         (zero): Remove variable.
74822         (minus_zero): New variable.
74823         (main): Use minus_zero instead of -zero.
74824         * modules/truncl-tests (Depends-on): Add float.
74826         * tests/test-frexpl.c (zero): Remove variable.
74827         (minus_zero): New variable.
74828         (main): Use minus_zero instead of -zero.
74829         * modules/frexpl-tests (Depends-on): Add float.
74831         * tests/test-isnan.c (zerol): Remove variable.
74832         (minus_zerol): New variable.
74833         (test_long_double): Use minus_zerol instead of -zerol.
74834         * modules/isnan-tests (Depends-on): Add float.
74836         * tests/test-isnanl.h (zero): Remove variable.
74837         (minus_zero): New variable.
74838         (main): Use minus_zero instead of -zero.
74839         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74840         * modules/isnanl-tests (Depends-on): Add float.
74842         * tests/test-ldexpl.c (zero): Remove variable.
74843         (minus_zero): New variable.
74844         (main): Use minus_zero instead of -zero.
74845         * modules/ldexpl-tests (Depends-on): Add float.
74847         * tests/test-snprintf-posix.h (zerol): Remove variable.
74848         (minus_zerol): New variable.
74849         (test_function): Use minus_zerol instead of -zerol.
74850         * modules/snprintf-posix-tests (Depends-on): Add float.
74851         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74853         * tests/test-sprintf-posix.h (zerol): Remove variable.
74854         (minus_zerol): New variable.
74855         (test_function): Use minus_zerol instead of -zerol.
74856         * modules/sprintf-posix-tests (Depends-on): Add float.
74857         * modules/vsprintf-posix-tests (Depends-on): Add float.
74859         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74860         (minus_zerol): New variable.
74861         (test_function): Use minus_zerol instead of -zerol.
74862         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74864         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74865         (minus_zerol): New variable.
74866         (test_function): Use minus_zerol instead of -zerol.
74867         * modules/vasprintf-posix-tests (Depends-on): Add float.
74869 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74871         * MODULES.html.sh (Support for building documentation): Mention
74872         pmccabe2html.  Sort entries.
74874         Add pmccabe2html module, from gnupdf.
74875         * build-aux/pmccabe.css: New file.
74876         * build-aux/pmccabe2html: New file.
74877         * m4/pmccabe2html.m4: New file.
74878         * modules/pmccabe2html: New file.
74880 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74882         flock: new module
74883         * MODULES.html.sh: Add to list of modules.
74884         * lib/flock.c: flock implementation for Windows and Unix systems
74885         which have fcntl.
74886         * doc/glibc-functions/flock.texi: Update documentation.
74887         * lib/sys_file.in.h: <sys/file.h> header file.
74888         * m4/flock.m4: M4 macros.
74889         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74890         * modules/flock: flock module.
74891         * modules/flock-tests: flock tests module.
74892         * modules/sys_file: sys/file.h module.
74893         * tests/test-flock.c: test suite for flock.
74895 2008-10-06  Jim Meyering  <meyering@redhat.com>
74897         bootstrap: check for LT_INIT more portably still ;-)
74898         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74899         Spotted by Bruno Haible.
74901 2008-10-06  Eric Blake  <ebb9@byu.net>
74903         test-signbit: avoid tripping Irix cc bug on -0.0L
74904         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74905         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74906         entire testsuite consistent and avoids an Irix 6.2 bug.
74908 2008-10-05  Bruno Haible  <bruno@clisp.org>
74909             Jim Meyering  <jim@meyering.net>
74911         Add an option for ignoring EPIPE during close_stdout.
74912         * lib/closeout.h: Include <stdbool.h>.
74913         (close_stdout_set_ignore_EPIPE): New declaration.
74914         * lib/closeout.c: Include <stdbool.h>.
74915         (ignore_EPIPE): New variable.
74916         (close_stdout_set_ignore_EPIPE): New function.
74917         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74918         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74919         failure.
74920         * modules/closeout (Depends-on): Add stdbool.
74922 2008-10-05  Bruno Haible  <bruno@clisp.org>
74924         * modules/accept: New file.
74925         * modules/bind: New file.
74926         * modules/connect: New file.
74927         * modules/getpeername: New file.
74928         * modules/getsockname: New file.
74929         * modules/getsockopt: New file.
74930         * modules/listen: New file.
74931         * modules/recv: New file.
74932         * modules/recvfrom: New file.
74933         * modules/send: New file.
74934         * modules/sendto: New file.
74935         * modules/setsockopt: New file.
74936         * modules/socket: New file.
74937         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74938         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74939         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74940         the particular module is requested. Add a link warning when the
74941         particular module is not requested.
74942         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74943         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74944         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74945         the particular module is requested.
74946         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74947         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74948         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74949         * modules/sys_socket (Depends-on): Add link-warning.
74950         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74951         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74952         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74953         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74954         GL_LINK_WARNING.
74955         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74956         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74957         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74958         * doc/posix-functions/getpeername.texi: Mention the new module
74959         'getpeername'.
74960         * doc/posix-functions/getsockname.texi: Mention the new module
74961         'getsockname'.
74962         * doc/posix-functions/getsockopt.texi: Mention the new module
74963         'getsockopt'.
74964         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74965         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74966         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74967         * doc/posix-functions/send.texi: Mention the new module 'send'.
74968         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74969         * doc/posix-functions/setsockopt.texi: Mention the new module
74970         'setsockopt'.
74971         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74972         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74973         listen, connect, accept.
74974         * modules/select-tests (Depends-on): Likewise.
74976 2008-10-05  Bruno Haible  <bruno@clisp.org>
74978         * lib/winsock.c (strerror): Remove unused #undef.
74979         (rpl_close): Remove unused local variable.
74981         * modules/sys_socket (Depends-on); Add errno.
74983 2008-10-05  Bruno Haible  <bruno@clisp.org>
74985         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74986         (select): Add a link warning when the 'select' module is not used.
74987         * modules/sys_select (Depends-on): Add link-warning.
74988         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74989         Suggested by Paolo Bonzini.
74991 2008-10-05  Jim Meyering  <meyering@redhat.com>
74993         bootstrap: check for LT_INIT more portably
74994         * build-aux/bootstrap: Avoid using grep -E, since it's not
74995         portable enough.  Suggestion from Bruno Haible.
74997 2008-10-05  Bruno Haible  <bruno@clisp.org>
74999         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
75000         as being fixed by gnulib.
75002 2008-10-05  Bruno Haible  <bruno@clisp.org>
75004         * modules/select-tests: New file, mostly copied from
75005         modules/sys_select-tests.
75006         * tests/test-select.c: New file, mostly copied from
75007         tests/test-sys_select.c.
75008         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
75009         * modules/sys_select-tests (Depends-on): Remove all dependencies.
75010         (Makefile.am): Remove test_sys_select_LDADD.
75012         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
75013         to an undefined symbol, for an error message.
75014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
75015         (gl_SYS_SELECT_H_DEFAULTS): New macro.
75016         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
75017         winsock-select.c here.
75018         * modules/sys_select (Files): Remove lib/winsock-select.c.
75019         (Depends-on): Remove alloca.
75020         (Makefile.am): Substitute GNULIB_SELECT.
75021         * modules/select: New file.
75022         * doc/posix-functions/select.texi: Update.
75024 2008-10-05  Bruno Haible  <bruno@clisp.org>
75026         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
75027         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
75028         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
75029         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
75030         getdtablesize.
75031         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
75032         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
75034 2008-10-05  Bruno Haible  <bruno@clisp.org>
75036         * modules/getdtablesize-tests: New file.
75037         * tests/test-getdtablesize.c: New file.
75039         New module 'getdtablesize'.
75040         * lib/unistd.in.h (getdtablesize): New declaration.
75041         * lib/getdtablesize.c: New file.
75042         * m4/getdtablesize.m4: New file.
75043         * modules/getdtablesize: New file.
75044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75045         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
75046         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
75047         HAVE_GETDTABLESIZE.
75048         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
75050 2008-10-05  Bruno Haible  <bruno@clisp.org>
75052         * modules/sched (Makefile.am): Fix typo.
75053         Reported by Simon Josefsson.
75055 2008-10-05  Jim Meyering  <meyering@redhat.com>
75057         bootstrap: check for LT_INIT, too
75058         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
75059         are deprecated.  Suggestion from Ralf Wildenhues.
75061 2008-10-05  Bruno Haible  <bruno@clisp.org>
75063         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
75064         overriding them by ours.
75065         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
75067 2008-10-05  Jim Meyering  <meyering@redhat.com>
75069         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
75070         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
75071         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
75073 2008-10-04  Bruno Haible  <bruno@clisp.org>
75075         * modules/dup2 (License): Change to LGPLv2+.
75076         * modules/sleep (License): Likewise.
75077         * modules/perror (License): Likewise.
75078         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
75079         Blake.
75080         * modules/signal (License): Likewise.
75081         * modules/sigprocmask (License): Likewise.
75082         * modules/raise (License): Change to LGPLv2+, with approval by Jim
75083         Meyering.
75085 2008-10-04  Bruno Haible  <bruno@clisp.org>
75087         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
75088         Reported by Rainer Tammer <tammer@tammer.net>.
75090 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
75091             Bruno Haible  <bruno@clisp.org>
75093         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
75094         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
75095         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
75097 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
75099         filevercmp: new module
75100         * lib/filevercmp.h: New function filevercmp comparing version strings.
75101         * lib/filevercmp.c: Implementation of filevercmp function.
75102         * modules/filevercmp: Module metadata.
75103         * tests/test-filevercmp.c: Unit test for new module.
75104         * modules/filevercmp-tests: Unit test metadata.
75105         * MODULES.html.sh: Add filevercmp module.
75107 2008-10-03  Bruno Haible  <bruno@clisp.org>
75109         * lib/c-ctype.h: Add comment.
75110         Reported by Jim Meyering.
75112 2008-10-02  Bruno Haible  <bruno@clisp.org>
75114         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75116 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75118         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75119         name of bootstrap.conf accordingly.
75121 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75123         * build-aux/bootstrap: Install git-merge-changelog configuration
75124         items into .gitconfig if needed.
75126 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75128         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75129         git repository, and initialize/update it accordingly.
75131 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75133         * modules/fsync-tests: New file.
75134         * tests/test-fsync.c: New file.
75136         New module 'fsync'.
75137         * lib/fsync.c: New file.
75138         * m4/fsync.m4: New file.
75139         * modules/fsync: New file.
75140         * lib/unistd.in.h (fsync): New declaration.
75141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75142         GNULIB_FSYNC and HAVE_FSYNC.
75143         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75144         * MODULES.html.sh (posix_functions): Add fsync.
75145         * doc/posix-functions/fsync.texi: Mention the new module.
75147 2008-10-02  Jim Meyering  <meyering@redhat.com>
75149         fts.c: sync with similar code from coreutils' remove.c
75150         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75151         Guard also with "#if defined __linux__", since for now at least,
75152         this code is Linux-kernel-specific.
75154 2008-10-02  Jim Meyering  <meyering@redhat.com>
75156         fts: bug fixes
75157         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75158         Include <sys/vfs.h>, not <sys/statfs.h>.
75160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75161         Include <sys/vfs.h>, not <sys/statfs.h>.
75163 2008-10-01  Bruno Haible  <bruno@clisp.org>
75165         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75166         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75167         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75168         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75169         * doc/posix-functions/posix_spawnp.texi: Likewise.
75170         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75171         whether posix_spawn actually works.
75172         * m4/pipe.m4 (gl_PIPE): Likewise.
75173         * modules/execute (Files): Add m4/posix_spawn.m4.
75174         * modules/pipe (Files): Add m4/posix_spawn.m4.
75175         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75177 2008-10-01  Jim Meyering  <meyering@redhat.com>
75179         remove trailing spaces
75180         * NEWS: Likewise.
75181         * lib/poll.c (poll): Likewise.
75182         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75183         * lib/winsock.c (rpl_close): Likewise.
75184         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75185         * modules/yield: Likewise.
75186         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75187         * tests/test-sys_select.c (connect_to_socket): Likewise.
75189         fts.c: adjust a new interface to be more generally useful
75190         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75191         (fts_build): Adjust caller.
75193 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75195         * modules/cond-tests: New file.
75196         * tests/test-cond.c: New file.
75198 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75199             Bruno Haible  <bruno@clisp.org>
75201         * modules/cond (Dependencies): Add errno, time.
75202         * lib/glthread/cond.h: Include <time.h>.
75203         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75204         across platforms.
75206 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75207             Bruno Haible  <bruno@clisp.org>
75209         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75211 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75212             Bruno Haible  <bruno@clisp.org>
75214         * modules/tls-tests (Depends-on): Add thread, yield.
75215         (configure.ac): Remove all checks.
75216         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75217         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75218         gl_thread_self): Remove definitions. Include glthread/thread.h and
75219         glthread/yield.h instead.
75220         (test_tls): Pass an additional NULL argument to gl_thread_join.
75222 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75223             Bruno Haible  <bruno@clisp.org>
75225         * modules/lock-tests (Depends-on): Add thread, yield.
75226         (configure.ac): Remove all checks.
75227         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75228         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75229         gl_thread_self): Remove definitions. Include glthread/thread.h and
75230         glthread/yield.h instead.
75231         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75232         additional NULL argument to gl_thread_join.
75234 2008-09-30  Bruno Haible  <bruno@clisp.org>
75236         Fix the Win32 implementation of the 'thread' module.
75237         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75238         pointer type.
75239         (gl_thread_self): Invoke gl_thread_self_func.
75240         (gl_thread_self_func): New declaration.
75241         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75242         (do_init_self_key, init_self_key): New functions.
75243         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75244         Remove some fields.
75245         (running_threads, running_lock): Remove variables.
75246         (get_current_thread_handle): New function.
75247         (gl_thread_self_func, wrapper_func, glthread_create_func,
75248         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75249         simplified.
75251 2008-09-30  Bruno Haible  <bruno@clisp.org>
75253         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75254         files.
75256 2008-09-30  Jim Meyering  <meyering@redhat.com>
75258         fts.m4: correct the test for statfs.f_type
75259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75260         when checking for statfs.f_type.
75262 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75264         tests: avoid some compiler warnings
75265         * tests/test-memchr.c (main): Pass NULL indirectly.
75266         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75268 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75270         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75271         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75272         exactly specified dayshifts.
75273         (dayshift): New rule.
75274         (rel): Add dayshift.
75275         (relative_time_table) [tomorrow, yesterday, today, now]:
75276         Use tDAY_SHIFT in place of tDAY_UNIT.
75277         * tests/test-getdate.c: Add tests for now-disallowed countable
75278         dayshifts, e.g., "4 yesterday ago".
75280 2008-09-29  Bruno Haible  <bruno@clisp.org>
75282         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75283         * tests/test-posix_spawn1.in.sh: Renamed from
75284         tests/test-posix_spawn.in.sh.
75285         * tests/test-posix_spawn2.c: New file.
75286         * tests/test-posix_spawn2.in.sh: New file.
75287         * modules/posix_spawnp-tests (Files): Update.
75288         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75290 2008-09-29  Bruno Haible  <bruno@clisp.org>
75292         Propagate effects of putenv/setenv/unsetenv to child processes.
75293         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75294         * lib/pipe.c (create_pipe): Likewise.
75296 2008-09-29  Bruno Haible  <bruno@clisp.org>
75298         Enable use of shell scripts as executables in mingw.
75299         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75300         run the program as a shell script.
75301         * lib/pipe.c (create_pipe): Likewise.
75302         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75303         resulting array.
75305 2008-09-29  Eric Blake  <ebb9@byu.net>
75307         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75309 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75311         * doc/posix-functions/accept.texi: Update mingw problems.
75312         * doc/posix-functions/bind.texi: Update mingw problems.
75313         * doc/posix-functions/close.texi: Update mingw problems.
75314         * doc/posix-functions/connect.texi: Update mingw problems.
75315         * doc/posix-functions/getpeername.texi: Update mingw problems.
75316         * doc/posix-functions/getsockname.texi: Update mingw problems.
75317         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75318         * doc/posix-functions/ioctl.texi: Update mingw problems.
75319         * doc/posix-functions/listen.texi: Update mingw problems.
75320         * doc/posix-functions/recv.texi: Update mingw problems.
75321         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75322         * doc/posix-functions/select.texi: Update mingw problems.
75323         * doc/posix-functions/send.texi: Update mingw problems.
75324         * doc/posix-functions/sendto.texi: Update mingw problems.
75325         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75326         * doc/posix-functions/socket.texi: Update mingw problems.
75328 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75329             Bruno Haible  <bruno@clisp.org>
75331         * lib/sys_select.in.h: Include sys/time.h.
75332         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75333         * modules/sys_select: Depend on sys_time.
75334         * tests/test-sys_select.c: Test that sys/select.h defines struct
75335         timeval fully.
75337 2008-09-29  Bruno Haible  <bruno@clisp.org>
75339         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75340         * lib/sys_select.in.h: Likewise.
75342 2008-09-29  Bruno Haible  <bruno@clisp.org>
75344         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75346 2008-09-29  Bruno Haible  <bruno@clisp.org>
75348         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75349         Set LIBSOCKET instead of augmenting LIBS.
75350         * modules/sockets (Link): New section.
75351         * modules/sockets-tests (test_sockets_LDADD): New variable.
75352         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75353         * modules/poll-tests (test_poll_LDADD): New variable.
75354         * NEWS: Document the change.
75356 2008-09-29  Bruno Haible  <bruno@clisp.org>
75358         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75359         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75360         ARPA_INET_H directly.
75361         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75363 2008-09-28  Bruno Haible  <bruno@clisp.org>
75365         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75366         from gl_HEADER_SYS_SOCKET.
75367         (gl_HEADER_SYS_SOCKET): Invoke it.
75368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75370 2008-09-28  Bruno Haible  <bruno@clisp.org>
75372         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75373         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75374         Needed on OSF/1 4.0.
75376 2008-09-28  Bruno Haible  <bruno@clisp.org>
75378         Override open more carefully.
75379         * lib/open.c (orig_open): New function.
75380         (rpl_open): Use orig_open instead of open.
75381         * lib/fcntl.in.h: Add special invocation convention.
75382         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75383         (gl_FUNC_OPEN): Invoke it.
75385         Override freopen more carefully.
75386         * lib/freopen.c (orig_freopen): New function.
75387         (rpl_freopen): Use orig_freopen instead of freopen.
75388         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75389         (gl_FUNC_FREOPEN): Invoke it.
75391         Override fopen more carefully.
75392         * lib/fopen.c (orig_fopen): New function.
75393         (rpl_fopen): Use orig_fopen instead of fopen.
75394         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75395         (gl_FUNC_FOPEN): Invoke it.
75396         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75398 2008-09-28  Bruno Haible  <bruno@clisp.org>
75400         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75401         SIGPIPE.
75403 2008-09-28  Bruno Haible  <bruno@clisp.org>
75405         * tests/test-sigaction.c (handler, main): Disable the check whether
75406         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75407         glibc systems with LinuxThreads.
75409 2008-09-28  Bruno Haible  <bruno@clisp.org>
75411         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75413         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75414         with AIX xlc.
75415         * lib/fcntl.in.h (open): Likewise.
75416         Reported by Rainer Tammer <tammer@tammer.net>.
75418 2008-09-28  Bruno Haible  <bruno@clisp.org>
75420         * modules/posix_spawnp-tests: New file.
75421         * tests/test-posix_spawn.c: New file.
75422         * tests/test-posix_spawn.in.sh: New file.
75424         New module 'posix_spawnp'.
75425         * modules/posix_spawnp: New file.
75426         * lib/spawnp.c: New file, from GNU libc with modifications.
75427         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75429         New module 'posix_spawn'.
75430         * modules/posix_spawn: New file.
75431         * lib/spawn.c: New file, from GNU libc with modifications.
75432         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75434         New module 'posix_spawnattr_destroy'.
75435         * modules/posix_spawnattr_destroy: New file.
75436         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75437         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75438         module.
75440         New module 'posix_spawnattr_setsigmask'.
75441         * modules/posix_spawnattr_setsigmask: New file.
75442         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75443         modifications.
75444         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75445         new module.
75447         New module 'posix_spawnattr_getsigmask'.
75448         * modules/posix_spawnattr_getsigmask: New file.
75449         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75450         modifications.
75451         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75452         new module.
75454         New module 'posix_spawnattr_setsigdefault'.
75455         * modules/posix_spawnattr_setsigdefault: New file.
75456         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75457         modifications.
75458         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75459         new module.
75461         New module 'posix_spawnattr_getsigdefault'.
75462         * modules/posix_spawnattr_getsigdefault: New file.
75463         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75464         modifications.
75465         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75466         new module.
75468         New module 'posix_spawnattr_setschedpolicy'.
75469         * modules/posix_spawnattr_setschedpolicy: New file.
75470         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75471         modifications.
75472         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75473         new module.
75475         New module 'posix_spawnattr_getschedpolicy'.
75476         * modules/posix_spawnattr_getschedpolicy: New file.
75477         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75478         modifications.
75479         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75480         new module.
75482         New module 'posix_spawnattr_setschedparam'.
75483         * modules/posix_spawnattr_setschedparam: New file.
75484         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75485         modifications.
75486         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75487         new module.
75489         New module 'posix_spawnattr_getschedparam'.
75490         * modules/posix_spawnattr_getschedparam: New file.
75491         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75492         modifications.
75493         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75494         new module.
75496         New module 'posix_spawnattr_setpgroup'.
75497         * modules/posix_spawnattr_setpgroup: New file.
75498         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75499         modifications.
75500         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75501         module.
75503         New module 'posix_spawnattr_getpgroup'.
75504         * modules/posix_spawnattr_getpgroup: New file.
75505         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75506         modifications.
75507         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75508         module.
75510         New module 'posix_spawnattr_setflags'.
75511         * modules/posix_spawnattr_setflags: New file.
75512         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75513         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75514         module.
75516         New module 'posix_spawnattr_getflags'.
75517         * modules/posix_spawnattr_getflags: New file.
75518         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75519         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75520         module.
75522         New module 'posix_spawnattr_init'.
75523         * modules/posix_spawnattr_init: New file.
75524         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75525         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75526         module.
75528         New module 'posix_spawn_file_actions_destroy'.
75529         * modules/posix_spawn_file_actions_destroy: New file.
75530         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75531         modifications.
75532         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75533         the new module.
75535         New module 'posix_spawn_file_actions_addopen'.
75536         * modules/posix_spawn_file_actions_addopen: New file.
75537         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75538         modifications.
75539         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75540         the new module.
75542         New module 'posix_spawn_file_actions_adddup2'.
75543         * modules/posix_spawn_file_actions_adddup2: New file.
75544         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75545         modifications.
75546         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75547         the new module.
75549         New module 'posix_spawn_file_actions_addclose'.
75550         * modules/posix_spawn_file_actions_addclose: New file.
75551         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75552         modifications.
75553         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75554         the new module.
75556         New module 'posix_spawn_file_actions_init'.
75557         * modules/posix_spawn_file_actions_init: New file.
75558         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75559         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75560         new module.
75562         New module 'posix_spawn-internal'.
75563         * modules/posix_spawn-internal: New file.
75564         * lib/spawn_int.h: New file, from GNU libc with modifications.
75565         * lib/spawni.c: New file, from GNU libc with modifications.
75566         * m4/posix_spawn.m4: New file.
75568         New module 'spawn'.
75569         * modules/spawn: New file.
75570         * lib/spawn.in.h: New file, from GNU libc with modifications.
75571         * m4/spawn_h.m4: New file.
75572         * doc/posix-headers/spawn.texi: Mention the new module.
75574 2008-09-28  Bruno Haible  <bruno@clisp.org>
75576         * modules/sched-tests: New file.
75577         * tests/test-sched.c: New file.
75579         New module 'sched'.
75580         * modules/sched: New file.
75581         * lib/sched.in.h: New file.
75582         * m4/sched_h.m4: New file.
75583         * doc/posix-headers/sched.texi: Mention the new module.
75585 2008-09-27  Eric Blake  <ebb9@byu.net>
75587         Fix previous patch, and tweak references to $0.
75588         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75589         (func_version, func_gnulib_dir): Don't call this program
75590         gnulib-tool.
75591         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75592         with using $0 in function.
75593         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75594         (func_fatal_error): Reuse the name the user invoked us with.
75596 2008-09-27  Bruno Haible  <bruno@clisp.org>
75598         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75599         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75600         (gl_ICONV_H): Not here.
75601         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75602         instead of assigning ICONV_H directly.
75604         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75606         WCHAR_H directly.
75608 2008-09-27  Bruno Haible  <bruno@clisp.org>
75610         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75611         * modules/arpa_inet (Depends-on): Add link-warning.
75612         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75613         * modules/unistd (Makefile.am): Likewise.
75615 2008-09-26  Bruno Haible  <bruno@clisp.org>
75617         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75618         variables.
75619         (func_version): Essentially copied from gnulib-tool.
75620         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75621         func_readlink): Copied from gnulib-tool.
75623 2008-09-26  Bruno Haible  <bruno@clisp.org>
75625         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75626         invoking git-version-gen.
75628 2008-09-26  Bruno Haible  <bruno@clisp.org>
75630         * posix-modules: Update to directory names changed on 2008-01-19.
75631         Remove commas in output before splitting into words. No more need to
75632         avoid 'ftruncate' since 2007-02-19.
75634 2008-09-26  Bruno Haible  <bruno@clisp.org>
75636         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75638 2008-09-26  Bruno Haible  <bruno@clisp.org>
75640         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75641         * modules/fwriteerror (Depends-on): Add errno.
75643 2008-09-26  Bruno Haible  <bruno@clisp.org>
75645         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75646         * tests/test-vc-list-files-cvs.sh: Likewise.
75648 2008-09-26  Bruno Haible  <bruno@clisp.org>
75650         * doc/posix-headers/sys_resource.texi: Reorder items.
75652 2008-09-26  Jim Meyering  <meyering@redhat.com>
75654         fts: tweak inode comparison function
75655         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75656         inode numbers, as documented.
75658         fts: sort dirent entries on inode number before traversing
75659         This avoids a quadratic, seek-related performance penalty when
75660         operating on a directory containing many entries (measurable at 10k;
75661         3.5 hours at 2 million entries with a cold cache) on certain types
75662         of file systems, including ext3 and ext4, but not tmpfs.
75663         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75664         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75665         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75666         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75667         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75668         (fts_build): Set the stat.st_ino member from D_INO.
75669         If it is likely to be useful, sort dirent entries on inode number.
75671         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75672         and the struct statfs.f_type member.
75673         * modules/fts (Depends-on): Add d-ino.
75675 2008-09-26  Bruno Haible  <bruno@clisp.org>
75677         * modules/sigpipe-die (Depends-on): Add sigpipe.
75679         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75680         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75681         and GNULIB_STDIO_H_SIGPIPE are set.
75682         * lib/stdio-write.c: New file.
75683         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75684         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75685         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75686         REPLACE_STDIO_WRITE_FUNCS.
75687         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75688         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75689         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75690         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75691         * modules/stdio (Files): Add lib/stdio-write.c.
75692         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75693         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75694         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75695         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75696         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75697         REPLACE_FPRINTF_POSIX.
75698         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75699         REPLACE_PRINTF_POSIX.
75700         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75701         REPLACE_VFPRINTF_POSIX.
75702         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75703         REPLACE_VPRINTF_POSIX.
75704         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75705         SIGPIPE issue.
75706         * doc/posix-functions/fputc.texi: Likewise.
75707         * doc/posix-functions/fputs.texi: Likewise.
75708         * doc/posix-functions/fwrite.texi: Likewise.
75709         * doc/posix-functions/printf.texi: Likewise.
75710         * doc/posix-functions/putc.texi: Likewise.
75711         * doc/posix-functions/putchar.texi: Likewise.
75712         * doc/posix-functions/puts.texi: Likewise.
75713         * doc/posix-functions/vfprintf.texi: Likewise.
75714         * doc/posix-functions/vprintf.texi: Likewise.
75716         * modules/safe-write (Depends-on): Add write.
75718         * modules/sigpipe-tests: New file.
75719         * tests/test-sigpipe.c: New file.
75720         * tests/test-sigpipe.sh: New file.
75722         * modules/write: New file.
75723         * lib/unistd.in.h: Include <sys/types.h>.
75724         (write): New declaration.
75725         * lib/write.c: New file.
75726         * m4/write.m4: New file.
75727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75728         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75729         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75730         GNULIB_WRITE, REPLACE_WRITE.
75731         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75732         and the SIGPIPE issue.
75734         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75735         (raise): New declaration.
75736         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75737         (ext_signal): New function.
75738         (rpl_raise): New function.
75739         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75740         GNULIB_SIGNAL_H_SIGPIPE.
75741         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75742         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75744         * modules/sigpipe: New file.
75745         * m4/sigpipe.m4: New file.
75747 2008-09-25  Derek Price  <derek@ximbiot.com>
75748             Bruno Haible  <bruno@clisp.org>
75750         * gnulib-tool (func_import): Report all license incompatibilities, not
75751         just the first one.
75753 2008-09-25  Bruno Haible  <bruno@clisp.org>
75755         * gnulib-tool (func_import): When computing the edits, consider not
75756         only the Makefile.ams that exist but also those that will be generated.
75758 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75760         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75761         fixes gnulib-tool --test warning about duplicate dependency.
75763 2008-09-25  Bruno Haible  <bruno@clisp.org>
75765         * gnulib-tool: Don't ask the user to perform edits in the generated
75766         Makefile.ams.
75767         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75768         apply to the Makefile.am being generated.
75769         (func_emit_tests_Makefile_am): Execute edits that apply to the
75770         Makefile.am being generated.
75771         (func_import): Setup list of Makefile.am edits before emitting the
75772         Makefile.ams, not at the end.
75773         (func_create_testdir): Update.
75774         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75776 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75778         * gnulib-tool (func_import): Store the --tests-base option in the
75779         comment in gnulib-cache.m4.
75781 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75783         * NEWS: Document increased portability that sys_select now provides.
75785         * lib/sys_select.in.h: Install select wrapper.
75786         * lib/sys_socket.in.h: Use more descriptive name when there is no
75787         select wrapper.
75788         * lib/winsock-select.c: New.
75789         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75790         Require gl_HEADER_SYS_SOCKET.
75791         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75792         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75793         * tests/test-sys_select.c: Add functional tests.
75795 2008-09-24  Eric Blake  <ebb9@byu.net>
75797         open, fopen: close fd leak in last patch
75798         * lib/open.c (rpl_open): Close fd before returning error.
75799         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75800         * doc/posix-functions/open.texi (open): Document that Irix also
75801         has the bug.
75802         * doc/posix-functions/fopen.texi (fopen): Likewise.
75803         Reported by Paolo Bonzini.
75805 2008-09-24  Bruno Haible  <bruno@clisp.org>
75807         Ensure that a filename ending in a slash cannot be used to access a
75808         non-directory.
75809         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75810         to check whether it's really a directory.
75811         * lib/fopen.c: Include fcntl.h, unistd.h.
75812         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75813         and fdopen().
75814         * modules/fopen (Depends-on): Add unistd.
75815         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75816         * tests/test-fopen.c (main): Likewise.
75817         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75818         * doc/posix-functions/fopen.texi: Likewise.
75819         Reported by Eric Blake.
75821 2008-09-23  Eric Blake  <ebb9@byu.net>
75823         c-stack: avoid compiler optimizations when provoking overflow
75824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75825         recursion harder to optimize, to ensure a stack overflow occurs.
75826         * tests/test-c-stack.c (recurse): Likewise.
75827         Borrowed from libsigsegv.
75829         c-stack: work around Irix sigaltstack bug
75830         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75831         whether sigaltstack uses wrong end of stack_t (copied in part from
75832         libsigsegv).
75833         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75834         Irix bug, without requiring an over-allocation.
75835         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75836         bug.
75838         fopen: document mingw bug on directories
75839         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75840         not allowing a stream visiting a directory, even though reading
75841         from such a stream is not portable.
75843 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75845         * lib/poll.c: Rewrite.
75846         * modules/poll: Depend on alloca.
75848 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75850         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75851         instead define prototypes for a full set of wrappers.  Ensure
75852         that Cygwin does not use the compatibility code, which is only
75853         for MinGW.
75854         * lib/winsock.c: New.
75855         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75856         * modules/sys_socket: Add lib/winsock.c.
75858         * modules/poll-tests: Add errno and perror.
75859         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75861 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75863         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75865 2008-09-23  Bruno Haible  <bruno@clisp.org>
75867         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75868         * doc/glibc-functions/*: Likewise.
75870 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75872         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75873         success.
75875 2008-09-22  Eric Blake  <ebb9@byu.net>
75876             Bruno Haible  <bruno@clisp.org>
75878         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75879         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75880         supply %A but mishandle pseudo-NaN.
75881         Reported by Simon Josefsson.
75883 2008-09-21  Bruno Haible  <bruno@clisp.org>
75885         * tests/test-lock.c (main): Tweak skip message.
75886         * tests/test-tls.c (main): Likewise.
75888 2008-09-21  Bruno Haible  <bruno@clisp.org>
75890         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75891         whether 'struct sigaction' has sa_sigaction here...
75892         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75893         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75895 2008-09-21  Bruno Haible  <bruno@clisp.org>
75897         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75898         section.
75899         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75900         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75901         the new section.
75902         (Support for obsolete systems lacking POSIX:2001): New section.
75903         (String handling <string.h>): Move strdup to the new section.
75904         Suggested by Simon Josefsson and Paolo Bonzini.
75906 2008-09-21  Bruno Haible  <bruno@clisp.org>
75908         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75909         exponents in %e and %g results on 'long double'. Needed for mingw's
75910         improved *printf functions.
75911         * tests/test-vasprintf-posix.c (test_function): Likewise.
75912         * tests/test-snprintf-posix.h (test_function): Likewise.
75913         * tests/test-sprintf-posix.h (test_function): Likewise.
75914         Reported by Eric Blake.
75916 2008-09-21  Bruno Haible  <bruno@clisp.org>
75918         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75919         * tests/test-sprintf-posix.h (test_function): Likewise.
75921 2008-09-21  Bruno Haible  <bruno@clisp.org>
75923         * modules/getpass (Depends-on): Add strdup-posix.
75925         New module 'strdup-posix'.
75926         * modules/strdup-posix: New file.
75927         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75928         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75930         REPLACE_STRDUP.
75931         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75932         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75934         strdup-posix.
75936         * modules/strdup (Depends-on): Remove malloc-posix.
75938 2008-09-20  Bruno Haible  <bruno@clisp.org>
75940         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75941         Wildenhues.
75943 2008-09-20  Bruno Haible  <bruno@clisp.org>
75945         Ensure that wint_t gets defined on IRIX 5.3.
75946         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75947         * lib/wctype.in.h (wint_t): Likewise.
75948         (__wctype_wint_t): Remove type.
75949         (isw*): Use wint_t instead of __wctype_wint_t.
75950         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75951         * modules/wchar (Files): Add m4/wint_t.m4.
75952         (Makefile.am): Substitute HAVE_WINT_T.
75953         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75954         * tests/test-wctype.c: Check that wint_t is defined.
75955         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75956         * doc/posix-headers/wctype.texi: Likewise.
75957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75959 2008-09-18  Bruno Haible  <bruno@clisp.org>
75961         * gnulib-tool (func_exit): Update comment.
75963 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75965         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75966         assumes strdup exists and does not depend on strdup to return
75967         ENOMEM on out of memory conditions.
75969 2008-09-18  Bruno Haible  <bruno@clisp.org>
75971         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75972         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75973         digits for the exponent.
75975 2008-09-18  Jim Meyering  <meyering@redhat.com>
75976             Bruno Haible  <bruno@clisp.org>
75978         * lib/vasnprintf.c (decimal_point_char): Define also if
75979         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75981 2008-09-16  Bruno Haible  <bruno@clisp.org>
75982         and Eric Blake  <ebb9@byu.net>
75984         vasnprintf: support Irix 5.3
75985         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75986         that mishandle long double infinity.
75987         Reported by Tom G. Christensen.
75989 2008-09-16  Bruno Haible  <bruno@clisp.org>
75991         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75992         Solaris 9.
75993         * doc/glibc-functions/alphasort.texi: Likewise.
75994         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75996 2008-09-16  Jim Meyering  <meyering@redhat.com>
75998         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75999         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
76000         a umask modification leak out of a subshell.  Otherwise, the
76001         opensolaris /bin/sh would be accepted and thus cause unwarranted
76002         failures in the coreutils test suite.
76004 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
76006         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
76007         to succeed.
76009 2008-09-16  Jim Meyering  <meyering@redhat.com>
76011         avoid spurious test failure when library is built without ACL support
76012         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76013         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
76014         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
76015         * tests/test-copy-acl.sh: Likewise.
76017 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76019         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
76020         based on character occurrence counts.
76022 2008-09-15  Eric Blake  <ebb9@byu.net>
76024         tests: avoid some compiler warnings
76025         * tests/test-memchr.c (main): Pass NULL indirectly.
76026         * tests/test-closein.c (main): Avoid unused variable.
76028 2008-09-15  Bruno Haible  <bruno@clisp.org>
76030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
76031         are missing on OpenBSD 4.0 individually.
76032         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76034 2008-09-15  Bruno Haible  <bruno@clisp.org>
76036         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
76037         * doc/posix-functions/strerror.texi: Mention also Cygwin.
76038         * doc/posix-functions/perror.texi: Likewise.
76039         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
76040         is missing.
76041         Reported by Eric Blake.
76043         * lib/errno.in.h: Use replacement values >= 2000.
76044         Reported by Eric Blake.
76046 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76048         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
76049         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
76050         limit.
76051         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
76052         compareseq was aborted.
76054 2008-09-14  Bruno Haible  <bruno@clisp.org>
76056         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
76057         yvec_edit_count.
76058         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
76059         (fstrcmp_bounded): Simplify result computation accordingly.
76061 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76063         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
76064         (fstrcmp): Define in terms of fstrcmp_bounded.
76065         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
76066         lower_bound argument.
76067         Return quickly if the result is certainly < lower_bound.
76068         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
76070 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76072         * lib/diffseq.h (EARLY_ABORT): New macro.
76073         (compareseq): Change return type to bool. Return true when EARLY_ABORT
76074         evaluates to true.
76076 2008-09-14  Bruno Haible  <bruno@clisp.org>
76078         * modules/perror-tests: New file.
76079         * tests/test-perror.sh: New file.
76080         * tests/test-perror.c: New file.
76082         New module 'perror'.
76083         * lib/stdio.in.h (perror): New declaration.
76084         * lib/perror.c: New file.
76085         * m4/perror.m4: New file.
76086         * modules/perror: New file.
76087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
76088         * doc/posix-functions/perror.texi: Mention the perror module.
76089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
76090         REPLACE_PERROR.
76091         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
76092         REPLACE_PERROR.
76094 2008-09-14  Bruno Haible  <bruno@clisp.org>
76096         * modules/stdio (Makefile.am): Reorder to match the order in
76097         lib/stdio.in.h.
76098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76100 2008-09-13  Bruno Haible  <bruno@clisp.org>
76102         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
76104 2008-09-13  Bruno Haible  <bruno@clisp.org>
76106         Extend strerror to cover the added errno values.
76107         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76108         (rpl_strerror): Provide error messages for the added errno values and
76109         for the WSA* values.
76110         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76111         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76112         strerror.
76113         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76114         * modules/strerror (Depends-on): Add errno.
76115         * doc/posix-functions/strerror.texi: Document the change.
76116         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76117         and EOVERFLOW.
76119 2008-09-13  Bruno Haible  <bruno@clisp.org>
76121         * modules/EOVERFLOW: Remove file.
76122         * m4/eoverflow.m4: Remove file.
76123         * modules/EOVERFLOW-tests: Remove file.
76124         * tests/test-EOVERFLOW.c: Remove file.
76125         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76126         * modules/ftell (Depends-on): Likewise.
76127         * modules/getdelim (Depends-on): Likewise.
76128         * modules/getugroups (Depends-on): Likewise.
76129         * modules/poll (Depends-on): Likewise.
76130         * modules/snprintf (Depends-on): Likewise.
76131         * modules/sprintf-posix (Depends-on): Likewise.
76132         * modules/vasnprintf (Depends-on): Likewise.
76133         * modules/vasprintf (Depends-on): Likewise.
76134         * modules/vfprintf-posix (Depends-on): Likewise.
76135         * modules/vsnprintf (Depends-on): Likewise.
76136         * modules/vsprintf-posix (Depends-on): Likewise.
76137         * modules/xvasprintf (Depends-on): Likewise.
76138         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76139         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76140         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76141         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76142         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76143         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76144         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76145         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76146         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76147         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76148         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76149         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76151         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76152         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76153         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76154         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76155         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76156         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76157         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76158         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76159         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76160         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76161         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76162         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76163         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76164         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76165         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76166         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76167         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76168         * MODULES.html.sh: Remove EOVERFLOW.
76169         * NEWS: Mention the change.
76171 2008-09-13  Bruno Haible  <bruno@clisp.org>
76173         * modules/errno-tests: New file.
76174         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76176         * lib/errno.in.h: New file.
76177         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76178         * modules/errno: New file.
76179         * doc/posix-headers/errno.texi: Update documentation.
76180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76182 2008-09-13  Bruno Haible  <bruno@clisp.org>
76184         * tests/test-poll.c: Use #if for native Windows, rather than testing
76185         __MSVCRT__.
76187 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76188             Bruno Haible  <bruno@clisp.org>
76190         * lib/glob.c: Don't include <pwd.h> on native Windows.
76191         (WINDOWS32): New macro.
76192         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76194 2008-09-13  Bruno Haible  <bruno@clisp.org>
76196         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76197         (ETIMEDOUT): Remove macro.
76198         (glthread_cond_timedwait_multithreaded): New declaration.
76199         (glthread_cond_timedwait): Use it.
76200         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76201         (glthread_cond_timedwait_multithreaded): New function.
76203 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76205         * modules/poll-tests: Do not check for io.h.
76206         * tests/test-poll.c: Check for __MSVCRT__ instead.
76208 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76210         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76211         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76212         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76214 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76216         * modules/poll-tests: New.
76217         * tests/test-poll.c: New.
76219 2008-09-12  Eric Blake  <ebb9@byu.net>
76221         frexp: test for NetBSD failure on -0.0
76222         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76223         not all, bugs from NetBSD 3.0 have been fixed.
76224         * doc/posix-functions/frexp.texi (frexp): Document bug.
76225         Reported by Thomas Klausner.
76227         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76229         literal -0.0.
76230         Reported by Jonathan C. Patschke <jp@centtech.com>.
76232 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76234         * lib/glthread/cond.h: Use dummy implementation also if
76235         USE_WIN32_THREADS.
76237 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76239         * modules/fnmatch-posix (License): Change to LGPLv2+.
76240         * modules/fnmatch-gnu (License): Likewise.
76242 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76244         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76246 2008-09-11  Jim Meyering  <meyering@redhat.com>
76248         * users.txt: Add gtk-vnc.
76250 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76252         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76253         rotate amounts.
76255         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76256         required for 16-bit and 8-bit rotates.
76257         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76258         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76259         UINT8_MAX instead of hard-coded constants.
76260         Suggested by Paul Eggert.
76262 2008-09-07  Bruno Haible  <bruno@clisp.org>
76264         * tests/test-striconveh.c (main): Check behaviour when converting from
76265         UTF-7.
76267         Make striconveh work better with stateful encodings.
76268         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76269         that iconv does not increment the inptr when returning -1/EINVAL.
76271 2008-09-07  Bruno Haible  <bruno@clisp.org>
76273         * build-aux/config.rpath: Update according to libtool-2.2.6.
76274         * build-aux/config.libpath: Likewise.
76276 2008-09-06  Bruno Haible  <bruno@clisp.org>
76278         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76279         * lib/freadptr.c (freadptr): Likewise.
76280         * lib/freadseek.c (freadptrinc): Likewise.
76281         Reported by Simon Josefsson.
76283 2008-09-06  Bruno Haible  <bruno@clisp.org>
76285         * modules/freadptr (License): Change to LGPLv2+.
76286         * modules/freadseek (License): Likewise.
76287         Suggested by Eric Blake.
76289         * modules/memchr2 (License): Change to LGPLv2+.
76290         Approved by Eric Blake.
76292 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76293             Bruno Haible  <bruno@clisp.org>
76295         Make gnulib-tool work with native 'sed' on AIX.
76296         * gnulib-tool (sed_noop): New variable.
76297         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76298         func_add_or_update, func_create_testdir): Use it to initialize sed
76299         script variables.
76300         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76302 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76303             Bruno Haible  <bruno@clisp.org>
76305         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76306         also works after #include directives.
76308 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76310         getdate.y: reject an out-of-range timezone value
76311         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76312         the range [-24...+24].  When specified with only one or two digits,
76313         * tests/test-getdate.c: Tests for the fix.
76314         * doc/getdate.texi: Document this change.
76316 2008-09-03  Bruno Haible  <bruno@clisp.org>
76318         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76320 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76322         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76323         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76324         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76325         Blake <ebb9@byu.net>.
76327         * tests/test-bitrotate.c: Add more test vectors.
76329 2008-09-02  Eric Blake  <ebb9@byu.net>
76331         vasnprintf-posix: handle large precision via %.*d
76332         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76333         when handling it ourselves.
76334         * tests/test-vasnprintf-posix.c (test_function): Add test.
76335         * tests/test-snprintf-posix.h (test_function): Likewise.
76336         * tests/test-sprintf-posix.h (test_function): Likewise.
76337         * tests/test-vasprintf-posix.c (test_function): Likewise.
76338         Reported by Alain Guibert.
76340 2008-09-01  Eric Blake  <ebb9@byu.net>
76342         c-stack: make configure-time check more robust
76343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76344         successful sigaction call.
76345         Reported by Tom G. Christensen.
76347 2008-09-01  Bruno Haible  <bruno@clisp.org>
76349         New module 'findprog-lgpl'.
76350         * modules/findprog-lgpl: New file.
76351         * lib/findprog-lgpl.c: New file.
76352         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76353         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76354         to decide whether to use strdup or xstrdup, concatenated_filename or
76355         xconcatenated_filename.
76357 2008-09-01  Bruno Haible  <bruno@clisp.org>
76359         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76360         'xconcat-filename' (GPL).
76361         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76362         (License): Change to LGPLv2+.
76363         * modules/xconcat-filename: New file.
76364         * lib/concat-filename.h (concatenated_filename): Change specification.
76365         (xconcatenated_filename): New declaration.
76366         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76367         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76368         memory situations.
76369         * lib/xconcat-filename.c: New file.
76370         * NEWS: Mention the change.
76371         * lib/findprog.c: Include concat-filename.h, not filename.h.
76372         (find_in_path): Use xconcatenated_filename instead of
76373         concatenated_filename.
76374         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76375         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76376         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76377         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76378         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76379         instead of concatenated_filename.
76380         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76381         (execute_java_class): Use xconcatenated_filename instead of
76382         concatenated_filename.
76383         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76384         * modules/javacomp (Depends-on): Likewise.
76385         * modules/javaexec (Depends-on): Likewise.
76387 2008-09-01  Bruno Haible  <bruno@clisp.org>
76389         Split module 'filename' into 'filename' and 'concat-filename'.
76390         * modules/filename: Keep only lib/filename.h.
76391         (License): Change to LGPLv2+.
76392         * modules/concat-filename: New file, extracted from modules/filename.
76393         * lib/filename.h (concatenated_filename): Remove declaration.
76394         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76395         * lib/concat-filename.c: Include concat-filename.h.
76396         * NEWS: Mention the change.
76398 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76400         * lib/bitrotate.h (rotl8, rotr8): Add.
76402         * modules/bitrotate (configure.ac): Need
76403         AC_REQUIRE([AC_C_INLINE]).
76404         (Description): Mention stdint.h.  Reported by Bruno Haible
76405         <bruno@clisp.org>.
76407         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76408         Paolo Bonzini <bonzini@gnu.org>.
76410 2008-08-31  Bruno Haible  <bruno@clisp.org>
76412         Assume Solaris specific bi-arch conventions on Solaris systems.
76413         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76414         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76415         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76416         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76417         like acl_libdirstem.
76418         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76419         acl_libdirstem.
76420         * NEWS: Mention the change.
76421         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76423 2008-08-31  Jim Meyering  <meyering@redhat.com>
76425         * lib/strftime.h: Add comments describing the two added arguments.
76427         remove duplicate #include directives
76428         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76429         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76431 2008-08-31  Bruno Haible  <bruno@clisp.org>
76433         New module 'sigpipe-die'.
76434         * modules/sigpipe-die: New file.
76435         * lib/sigpipe-die.h: New file.
76436         * lib/sigpipe-die.c: New file.
76437         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76439 2008-08-31  Bruno Haible  <bruno@clisp.org>
76441         Don't override previously installed signal handlers.
76442         * lib/fatal-signal.c (saved_sigactions): New variable.
76443         (uninstall_handlers): Reset the signal to the saved handler, not
76444         to SIG_DFL (except when ignored).
76445         (install_handlers): Save the previous handlers.
76447 2008-08-30  Bruno Haible  <bruno@clisp.org>
76449         * gnulib-tool (func_reset_sigpipe): New function.
76450         (func_get_automake_snippet, func_modules_transitive_closure,
76451         func_import): Invoke it before a join command that reads from stdin,
76452         to avoid "echo: write error: Broken pipe" error messages on stderr.
76453         Reported by Sam Steingold <sds@gnu.org>.
76455 2008-08-30  Bruno Haible  <bruno@clisp.org>
76457         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76458         Code copied from m4/open.m4.
76459         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76460         access and the filename ends in a slash. Code copied from lib/open.c.
76461         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76462         * tests/test-fopen.c (main): Check against bug with trailing slash.
76464 2008-08-29  Bruno Haible  <bruno@clisp.org>
76466         Avoid some "gcc -pedantic" warnings.
76467         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76468         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76469         * lib/dirent.in.h: Likewise.
76470         * lib/fcntl.in.h: Likewise.
76471         * lib/float.in.h: Likewise.
76472         * lib/iconv.in.h: Likewise.
76473         * lib/inttypes.in.h: Likewise.
76474         * lib/locale.in.h: Likewise.
76475         * lib/math.in.h: Likewise.
76476         * lib/netinet_in.in.h: Likewise.
76477         * lib/search.in.h: Likewise.
76478         * lib/signal.in.h: Likewise.
76479         * lib/stdarg.in.h: Likewise.
76480         * lib/stdint.in.h: Likewise.
76481         * lib/stdio.in.h: Likewise.
76482         * lib/stdlib.in.h: Likewise.
76483         * lib/string.in.h: Likewise.
76484         * lib/strings.in.h: Likewise.
76485         * lib/sys_select.in.h: Likewise.
76486         * lib/sys_socket.in.h: Likewise.
76487         * lib/sys_stat.in.h: Likewise.
76488         * lib/sys_time.in.h: Likewise.
76489         * lib/sysexits.in.h: Likewise.
76490         * lib/time.in.h: Likewise.
76491         * lib/unistd.in.h: Likewise.
76492         * lib/wchar.in.h: Likewise.
76493         * lib/wctype.in.h: Likewise.
76494         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76495         * modules/fchdir (Makefile.am): Likewise.
76496         * modules/fcntl (Makefile.am): Likewise.
76497         * modules/float (Makefile.am): Likewise.
76498         * modules/iconv_open (Makefile.am): Likewise.
76499         * modules/inttypes (Makefile.am): Likewise.
76500         * modules/locale (Makefile.am): Likewise.
76501         * modules/math (Makefile.am): Likewise.
76502         * modules/netinet_in (Makefile.am): Likewise.
76503         * modules/search (Makefile.am): Likewise.
76504         * modules/signal (Makefile.am): Likewise.
76505         * modules/stdarg (Makefile.am): Likewise.
76506         * modules/stdint (Makefile.am): Likewise.
76507         * modules/stdio (Makefile.am): Likewise.
76508         * modules/stdlib (Makefile.am): Likewise.
76509         * modules/string (Makefile.am): Likewise.
76510         * modules/strings (Makefile.am): Likewise.
76511         * modules/sys_select (Makefile.am): Likewise.
76512         * modules/sys_socket (Makefile.am): Likewise.
76513         * modules/sys_stat (Makefile.am): Likewise.
76514         * modules/sys_time (Makefile.am): Likewise.
76515         * modules/sysexits (Makefile.am): Likewise.
76516         * modules/time (Makefile.am): Likewise.
76517         * modules/unistd (Makefile.am): Likewise.
76518         * modules/wchar (Makefile.am): Likewise.
76519         * modules/wctype (Makefile.am): Likewise.
76520         Reported by Reuben Thomas <rrt@sc3d.org>.
76522 2008-08-29  Bruno Haible  <bruno@clisp.org>
76524         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76525         any more.
76527 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76529         * MODULES.html.sh (Misc): Add bitrotate.
76531         * modules/bitrotate: New file.
76533         * lib/bitrotate.h: New file.
76535         * modules/bitrotate-tests: New file.
76537         * tests/test-bitrotate.c: New file.
76539         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76540         on the bitrotate module.
76542         * lib/arctwo.c: Use new bitrotate module.
76544 2008-08-29  Jim Meyering  <meyering@redhat.com>
76546         bootstrap: merge changes from coreutils
76547         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76548         of copied files.  Remove a kludge, now that this is fixed.
76549         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76550         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76551         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76553 2008-08-29  Bruno Haible  <bruno@clisp.org>
76555         * MODULES.html.sh: Remove --cvs-urls option.
76557 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76559         maint.mk: adjust to file name change
76560         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76562 2008-08-28  Jim Meyering  <meyering@redhat.com>
76564         * modules/getndelim2 (License): Relicense to LGPLv2+.
76565         Approved by Richard Stallman for the version of 1995, and by
76566         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76568 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76570         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76571         dummy if one is not available.  Do not touch them if
76572         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76573         (getc_maybe_unlocked): New.
76574         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76576 2008-08-26  Eric Blake  <ebb9@byu.net>
76578         doc/INSTALL: resync from autoconf
76579         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76580         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76581         moving...
76582         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76583         * INSTALL: Regenerate.
76584         * INSTALL.ISO: New file.
76585         * INSTALL.UTF-8: Likewise.
76587 2008-08-26  Jim Meyering  <meyering@redhat.com>
76589         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76590         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76591         these definitions conditional, so that they may be overridden, too.
76593 2008-08-26  Bruno Haible  <bruno@clisp.org>
76595         Generate INSTALL file variants with prettier quotes.
76596         * doc/Makefile (INSTALL_PRELUDE): New macro.
76597         (INSTALL): Use it.
76598         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76600 2008-08-26  Bruno Haible  <bruno@clisp.org>
76602         Run makeinfo in an English locale.
76603         * doc/Makefile (MAKEINFO): New variable.
76605 2008-08-26  Bruno Haible  <bruno@clisp.org>
76607         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76608         Suggested by Eric Blake.
76610 2008-08-25  Bruno Haible  <bruno@clisp.org>
76612         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76614 2008-08-25  Eric Blake  <ebb9@byu.net>
76616         c-stack: test that stack overflow can be caught
76617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76618         that platform allows handling stack overflow; at least OS/2 EMX
76619         has sigaltstack, but crashes before transferring control to
76620         handler on stack overflow.
76621         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76622         check for HAVE_STACK_OVERFLOW_HANDLING.
76623         Reported by Elbert Pol.
76625 2008-08-25  Bruno Haible  <bruno@clisp.org>
76627         * doc/posix-functions/strftime.texi: Fix description of strftime
76628         module.
76630 2008-08-24  Bruno Haible  <bruno@clisp.org>
76632         * tests/uniwidth/test-uc_width2.c: New file.
76633         * tests/uniwidth/test-uc_width2.sh: New file.
76634         * modules/uniwidth/width-tests (Files): Add the new files.
76635         (TESTS): Add uniwidth/test-uc_width2.sh.
76636         (TESTS_ENVIRONMENT): New variable.
76637         (check_PROGRAMS): Add test-uc_width2.
76638         (test_uc_width2_SOURCES): New variable.
76640         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76641         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76642         not 0x00AB.
76643         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76645 2008-08-22  Eric Blake  <ebb9@byu.net>
76647         test-lock, test-tls: mention why a test is skipped
76648         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76649         skipped.
76650         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76652         count-one-bits: relax license
76653         * modules/count-one-bits (License): Relicense to LGPLv2+.
76654         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76656 2008-08-22  Andreas Schwab  <schwab@suse.de>
76658         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76659         Remove spurious space in assignment.
76661 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76663         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76664         Paul Eggert <eggert@CS.UCLA.EDU>.
76666 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76668         * modules/gettext: Add m4/threadlib.m4.
76670 2008-08-19  Eric Blake  <ebb9@byu.net>
76672         test-c-stack: fix compilation failure on FreeBSD 5.0
76673         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76674         headers before <sys/resource.h>.
76675         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76676         the bug.
76677         Reported by Nelson H. F. Beebe.
76679         strverscmp: migrate from "strverscmp.h" to <string.h>
76680         * modules/string (Makefile.am): Add new hooks.
76681         * modules/strverscmp (Files): Remove strverscmp.h.
76682         (Depends-on): Add string.
76683         (configure.ac): Add indicator.
76684         (Include): Mention new header.
76685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76686         defaults.
76687         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76688         results.
76689         * lib/strverscmp.h: Delete.
76690         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76691         * tests/test-strverscmp.c (includes): Adjust client.
76692         * lib/check-version.c (includes): Likewise.
76693         * NEWS: Document the change.
76695         strverscmp: add unit test
76696         * modules/strverscmp-tests: New file.
76697         * tests/test-strverscmp.c: Likewise.
76699 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76701         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76702         regarding Windows crypto stuff, from Mono.
76704 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76706         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76707         if present, for intel RND.  Return error on failures.
76709 2008-08-18  Ben Pfaff  <blp@gnu.org>
76711         gitlog-to-changelog: give better diagnostic for failed pipe-open
76712         * build-aux/gitlog-to-changelog: Improve error message: suggest
76713         that the version of Git may be too old.
76715 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76717         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76718         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76720 2008-08-18  Bruno Haible  <bruno@clisp.org>
76722         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76723         pthread_in_use().
76725 2008-08-18  Bruno Haible  <bruno@clisp.org>
76727         * lib/glthread/threadlib.c: Include <pthread.h>.
76729 2008-08-18  Bruno Haible  <bruno@clisp.org>
76731         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76732         glthread_recursive_lock_* macros.
76733         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76734         Fix syntax error.
76736 2008-08-18  Bruno Haible  <bruno@clisp.org>
76738         * lib/glthread/thread.c: Avoid forcing a context switch right after
76739         thread creation.
76741 2008-08-17  Bruno Haible  <bruno@clisp.org>
76743         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76744         * lib/glthread/thread.h: Provide Win32 specific implementation.
76745         * modules/thread (Files): Add lib/glthread/thread.c.
76746         (Depends-on): Add lock.
76747         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76749 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76751         New module 'yield'.
76752         * modules/yield: New file.
76753         * lib/glthread/yield.h: New file.
76754         * m4/yield.m4: New file.
76755         * MODULES.html.sh (Multithreading): Add yield.
76757 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76759         New module 'thread'.
76760         * modules/thread: New file.
76761         * lib/glthread/thread.h: New file.
76762         * m4/thread.m4: New file.
76763         * MODULES.html.sh (Multithreading): Add thread.
76765 2008-08-17  Bruno Haible  <bruno@clisp.org>
76767         * lib/glthread/lock.h: Include <stdlib.h> always.
76768         * lib/glthread/tls.h: Likewise.
76769         * lib/glthread/cond.h: Likewise.
76771 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76773         New module 'cond'.
76774         * modules/cond: New file.
76775         * lib/glthread/cond.h: New file.
76776         * lib/glthread/cond.c: New file.
76777         * m4/cond.m4: New file.
76778         * MODULES.html.sh (Multithreading): Add cond.
76780 2008-08-16  Eric Blake  <ebb9@byu.net>
76782         c-stack: fix regression on Irix 5.3 from 2008-06-21
76783         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76784         sa_sigaction...
76785         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76786         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76787         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76788         * modules/signal (Makefile.am): Use the value.
76789         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76790         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76791         * doc/posix-headers/signal.texi (signal.h): Document this
76792         portability issue.
76793         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76794         Reported by Tom G. Christensen.
76796 2008-08-17  Bruno Haible  <bruno@clisp.org>
76798         New module 'threadlib'.
76799         * modules/threadlib: New file.
76800         * lib/glthread/threadlib.c: New file, extracted from
76801         lib/glthread/lock.c.
76802         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76803         functions.
76804         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76805         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76806         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76807         macros.
76808         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76809         (gl_DISABLE_THREADS): Remove macro.
76810         * modules/lock (Files): Remove build-aux/config.rpath.
76811         (Depends-on): Remove havelib. Add threadlib.
76812         (configure.ac-early): Remove section.
76813         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76814         * modules/tls (Depends-on): Remove lock. Add threadlib.
76815         (Link): New section, copied from threadlib.
76816         * MODULES.html.sh (Multithreading): Add threadlib.
76818 2008-08-14  Bruno Haible  <bruno@clisp.org>
76820         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76821         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76822         glthread_rwlock_unlock, glthread_rwlock_destroy,
76823         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76824         glthread_recursive_lock_destroy): Define as macros always.
76825         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76826         glthread_lock_lock.
76827         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76828         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76829         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76830         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76831         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76832         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76833         (glthread_recursive_lock_lock_func): Renamed from
76834         glthread_recursive_lock_lock.
76835         (glthread_recursive_lock_unlock_func): Renamed from
76836         glthread_recursive_lock_unlock.
76837         (glthread_recursive_lock_destroy_func): Renamed from
76838         glthread_recursive_lock_destroy.
76840 2008-08-14  Bruno Haible  <bruno@clisp.org>
76842         * lib/glthread/lock.h: Renamed from lib/lock.h.
76843         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76844         * lib/glthread/tls.h: Renamed from lib/tls.h.
76845         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76846         * lib/fstrcmp.c: Update includes.
76847         * lib/strsignal.c: Update includes.
76848         * modules/lock (Files, Makefile.am): Update.
76849         (Include): Change to "glthread/lock.h".
76850         * modules/tls (Files, Makefile.am): Update.
76851         (Include): Change to "glthread/tls.h".
76852         * tests/test-lock.c: Update includes.
76853         * tests/test-tls.c: Update includes.
76854         * NEWS: Mention the renamed header files.
76856 2008-08-11  Jim Meyering  <meyering@redhat.com>
76858         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76860 2008-08-11  Eric Blake  <ebb9@byu.net>
76862         test-c-stack: avoid C99-ism
76863         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76864         before statement.
76865         Reported by Alain Guibert.
76867 2008-08-10  Jim Meyering  <meyering@redhat.com>
76869         ensure that return value of uinttostr et al are not ignored
76870         * lib/inttostr.h (__GNUC_PREREQ): Define.
76871         (__attribute_warn_unused_result__): Define.
76872         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76874 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76876         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76877         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76879 2008-08-07  Jim Meyering  <meyering@redhat.com>
76881         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76883         * modules/mkstemp (License): Relicense under LGPLv2+.
76884         * modules/tempname (License): Likewise.
76886 2008-08-06  Bruno Haible  <bruno@clisp.org>
76888         * lib/poll.c (poll): Further micro-optimization.
76890 2008-08-06  Jim Meyering  <meyering@redhat.com>
76892         inet_pton.c: use locale-independent tolower
76893         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76894         (inet_pton6): Use c_tolower rather than tolower.
76895         * modules/inet_pton (Depends-on): Add c-ctype.
76897 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76899         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76900         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76902 2008-08-06  Jim Meyering  <meyering@redhat.com>
76904         * modules/inet_pton (License): Relicense under LGPLv2+.
76906 2008-08-03  Bruno Haible  <bruno@clisp.org>
76908         Additional non-aborting API for lock and tls.
76909         * lib/lock.h: Include <errno.h>.
76910         (glthread_lock_init): New macro/function.
76911         (gl_lock_init): Define as wrapper around glthread_lock_init.
76912         (glthread_lock_lock): New macro/function.
76913         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76914         (glthread_lock_unlock): New macro/function.
76915         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76916         (glthread_lock_destroy): New macro/function.
76917         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76918         (glthread_rwlock_init): New macro/function.
76919         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76920         (glthread_rwlock_rdlock): New macro/function.
76921         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76922         (glthread_rwlock_wrlock): New macro/function.
76923         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76924         (glthread_rwlock_unlock): New macro/function.
76925         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76926         (glthread_rwlock_destroy): New macro/function.
76927         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76928         (glthread_recursive_lock_init): New macro/function.
76929         (gl_recursive_lock_init): Define as wrapper around
76930         glthread_recursive_lock_init.
76931         (glthread_recursive_lock_lock): New macro/function.
76932         (gl_recursive_lock_lock): Define as wrapper around
76933         glthread_recursive_lock_lock.
76934         (glthread_recursive_lock_unlock): New macro/function.
76935         (gl_recursive_lock_unlock): Define as wrapper around
76936         glthread_recursive_lock_unlock.
76937         (glthread_recursive_lock_destroy): New macro/function.
76938         (gl_recursive_lock_destroy): Define as wrapper around
76939         glthread_recursive_lock_destroy.
76940         (glthread_once): New macro/function.
76941         (gl_once): Define as wrapper around glthread_once.
76942         Update function declarations.
76943         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76944         glthread_rwlock_init. Return error code.
76945         (glthread_rwlock_rdlock_multithreaded): Renamed from
76946         glthread_rwlock_rdlock. Return error code.
76947         (glthread_rwlock_wrlock_multithreaded): Renamed from
76948         glthread_rwlock_wrlock. Return error code.
76949         (glthread_rwlock_unlock_multithreaded): Renamed from
76950         glthread_rwlock_unlock. Return error code.
76951         (glthread_rwlock_destroy_multithreaded): Renamed from
76952         glthread_rwlock_destroy. Return error code.
76953         (glthread_recursive_lock_init_multithreaded): Renamed from
76954         glthread_recursive_lock_init. Return error code.
76955         (glthread_recursive_lock_lock_multithreaded): Renamed from
76956         glthread_recursive_lock_lock. Return error code.
76957         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76958         glthread_recursive_lock_unlock. Return error code.
76959         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76960         glthread_recursive_lock_destroy. Return error code.
76961         (glthread_once_call): Make static.
76962         (glthread_once_multithreaded): Renamed from glthread_once.
76963         * lib/tls.h: Include <errno.h>.
76964         (glthread_tls_key_init): New macro/function.
76965         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76966         (glthread_tls_set): New macro/function.
76967         (gl_tls_set): Define as wrapper around glthread_tls_set.
76968         (glthread_tls_key_destroy): New macro/function.
76969         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76970         Update function declarations.
76971         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76972         glthread_tls_get.
76973         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76975 2008-08-04  Eric Blake  <ebb9@byu.net>
76977         gnumakefile: use space, not TAB, outside of targets
76978         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76980 2008-08-02  Jim Meyering  <meyering@redhat.com>
76982         getdate.y: avoid locale-dependent date parsing failure
76983         In Turkish locales, getdate would fail to recognize keywords
76984         containing a lowercase "i".  The solution is not to rely on
76985         locale-sensitive case-conversion.
76986         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76987         (lookup_word): Use c_toupper in place of toupper.
76988         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76989         Reported by Vefa Bicakci <bicave@superonline.com> in
76990         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76991         * modules/getdate (Depends-on): Add c-ctype.
76993 2008-08-02  Bruno Haible  <bruno@clisp.org>
76995         * gnulib-tool (func_import): When updating or creating a .gitignore
76996         file, prepend each added line with a slash, and ignore leading slashes
76997         from the existing lines.
76998         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77000 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77002         Portability fix for GNU make 3.79.1.
77003         * top/GNUmakefile: Avoid 'else COND', which older GNU make
77004         versions do not understand.
77006 2008-08-01  Bruno Haible  <bruno@clisp.org>
77008         Work around bug of HP-UX 10.20 cc with -0.0 literal.
77009         * tests/test-isnanf.h (zero): New variable.
77010         (main): Avoid literal -0.0f.
77011         * tests/test-isnand.h (zero): New variable.
77012         (main): Avoid literal -0.0.
77013         * tests/test-isnanl.h (zero): New variable.
77014         (main): Avoid literal -0.0L.
77015         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
77016         (test_float, test_double, test_long_double): Avoid literals -0.0f,
77017         -0.0, -0.0L.
77018         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
77019         (test_signbitd): Avoid literal -0.0.
77020         (test_signbitl): Avoid literal -0.0L.
77021         * tests/test-ceilf1.c (zero): New variable.
77022         (main): Avoid literal -0.0f.
77023         * tests/test-ceill.c (zero): New variable.
77024         (main): Avoid literal -0.0L.
77025         * tests/test-floorf1.c (zero): New variable.
77026         (main): Avoid literal -0.0f.
77027         * tests/test-floorl.c (zero): New variable.
77028         (main): Avoid literal -0.0L.
77029         * tests/test-roundf1.c (zero): New variable.
77030         (main): Avoid literal -0.0f.
77031         * tests/test-round1.c (zero): New variable.
77032         (main): Avoid literal -0.0.
77033         * tests/test-roundl.c (zero): New variable.
77034         (main): Avoid literal -0.0L.
77035         * tests/test-truncf1.c (zero): New variable.
77036         (main): Avoid literal -0.0f.
77037         * tests/test-trunc1.c (zero): New variable.
77038         (main): Avoid literal -0.0.
77039         * tests/test-truncl.c (zero): New variable.
77040         (main): Avoid literal -0.0L.
77041         * tests/test-frexp.c (zero): New variable.
77042         (main): Avoid literal -0.0.
77043         * tests/test-frexpl.c (zero): New variable.
77044         (main): Avoid literal -0.0L.
77045         * tests/test-ldexpl.c (zero): New variable.
77046         (main): Avoid literal -0.0L.
77047         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77048         (zerod, zerol): New variables.
77049         (test_function): Avoid literals -0.0, -0.0L.
77050         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77051         (zerod, zerol): New variables.
77052         (test_function): Avoid literals -0.0, -0.0L.
77053         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77054         (zerod, zerol): New variables.
77055         (test_function): Avoid literals -0.0, -0.0L.
77056         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77057         (zerod, zerol): New variables.
77058         (test_function): Avoid literals -0.0, -0.0L.
77059         * tests/test-strtod.c (zero): New variable.
77060         (main): Avoid literal -0.0.
77061         Reported by Jonathan C. Patschke <jp@centtech.com>.
77063 2008-07-31  Jim Meyering  <meyering@redhat.com>
77065         sha256.h: correct definition of SHA224_DIGEST_SIZE
77066         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
77067         Reported by Paulie Pena IV <paulie4@gmail.com>.
77068         Define as 224 / 8, rather than as a literal.
77069         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
77070         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
77071         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
77073 2008-07-31  Bruno Haible  <bruno@clisp.org>
77075         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
77076         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
77077         Reported by Jonathan Patschke <jp@centtech.com>.
77079 2008-07-31  Bruno Haible  <bruno@clisp.org>
77081         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
77082         Reported by Paolo Bonzini <bonzini@gnu.org>.
77084 2008-07-30  Eric Blake  <ebb9@byu.net>
77086         test-strtod: allow compilation without -lm
77087         * tests/test-strtod.c (main): Avoid link dependence on fabs.
77088         Reported by Dennis Clarke <blastwave@gmail.com>.
77090 2008-07-28  Jim Meyering  <meyering@redhat.com>
77092         bootstrap: work also when there are no .po files in po/
77093         * build-aux/bootstrap (update_po_files): Complete the change
77094         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
77096 2008-07-27  Jim Meyering  <meyering@redhat.com>
77098         * users.txt: Add zile.
77100 2008-07-26  Ben Pfaff  <blp@gnu.org>
77102         Add missing dependencies on new m4/exponent[fdl].m4 files.
77103         * modules/isnanf-nolibm: Add m4/exponentf.m4.
77104         * modules/isnand-nolibm: Add m4/exponentd.m4.
77105         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77106         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77107         m4/isnan[fdl].m4, because the macros actually used moved.
77108         Reported by Jim Meyering.
77110 2008-07-14  Ben Pfaff  <blp@gnu.org>
77112         Add isinf module.
77113         * lib/isinf.c: New file.
77114         * lib/math.in.h: Define isinf macro if we have decided to replace
77115         it.
77116         * m4/isinf.m4: New file.
77117         * m4/math_h.m4: Initialize and substitute variables for isinf
77118         module.
77119         * modules/isinf: New file.
77120         * modules/isinf-tests: New file.
77121         * modules/math: Add substitutions for new module.
77122         * tests/test-isinf.c: New file.
77123         * doc/posix-functions/isinf.texi: Mention new module.
77124         * MODULES.html.sh: Mention new module.
77126 2008-07-14  Ben Pfaff  <blp@gnu.org>
77128         Factor out some macros for use by additional modules.
77129         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77130         exponentf.m4.
77131         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77132         exponentd.m4.
77133         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77134         file exponentl.m4.
77135         * m4/exponentf.m4: New file.
77136         * m4/exponentd.m4: New file.
77137         * m4/exponentl.m4: New file.
77138         * modules/isnanf: Use new file m4/exponentf.m4.
77139         * modules/isnand: Use new file m4/exponentd.m4.
77140         * modules/isnanl: Use new file m4/exponentl.m4.
77142 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77144         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77145         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77146         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77147         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77149         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77150         readlink on platforms without PATH_MAX.
77152 2008-07-21  Eric Blake  <ebb9@byu.net>
77154         Warn, not fail, on stale version.
77155         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77157         Don't allow installation with stale devel version number.
77158         * top/GNUmakefile (_is-install-target): New macro.
77159         (_curr-ver): Forbid installation with stale version number.
77161 2008-07-20  Bruno Haible  <bruno@clisp.org>
77163         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77164         TESTS_ENVIRONMENT.
77165         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77167 2008-07-20  Bruno Haible  <bruno@clisp.org>
77169         * lib/c-stack.h (c_stack_action): Add documentation.
77170         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77172 2008-07-20  Bruno Haible  <bruno@clisp.org>
77174         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77175         * modules/readlink (License): Likewise.
77177 2008-07-17  Eric Blake  <ebb9@byu.net>
77179         * modules/c-stack (Link): Fix typo.
77181         Make c-stack use libsigsegv, when available.
77182         * modules/c-stack (Depends-on): Add libsigsegv.
77183         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77184         needed.
77185         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77186         (segv_handler, overflow_handler, c_stack_action)
77187         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77188         implementation when libsigsegv is available, but only when using
77189         the library is necessary.
77190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77191         comment, explaining why XSI check fails on Linux.
77192         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77193         * tests/test-c-stack2.sh: Tweak skip message.
77194         * NEWS: Document new link-time requirements.
77196 2008-07-16  Eric Blake  <ebb9@byu.net>
77198         c-stack: Expose false positives when not using libsigsegv.
77199         * modules/c-stack-tests (Files): Expand test.
77200         * tests/test-c-stack.c (main): Add means to conditionally trigger
77201         non-overflow SIGSEGV.
77202         * tests/test-c-stack2.sh: New file.
77204 2008-07-14  Bruno Haible  <bruno@clisp.org>
77206         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77207         Reported by Eric Blake.
77209 2008-07-14  Sam Steingold  <sds@gnu.org>
77210             Bruno Haible  <bruno@clisp.org>
77212         New module libsigsegv.
77213         * modules/libsigsegv: New file.
77214         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77215         modifications.
77216         * MODULES.html.sh (Signal handling): New section.
77218 2008-07-14  Bruno Haible  <bruno@clisp.org>
77220         * modules/unictype/ctype-* (Description): Add the word "function".
77221         Improves the resulting doc in MODULES.html.
77223 2008-07-12  Ben Pfaff  <blp@gnu.org>
77225         Add longlong module.
77226         * modules/longlong: New file.
77228 2008-07-12  Bruno Haible  <bruno@clisp.org>
77230         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77231         to empty.
77233 2008-07-10  Ben Pfaff  <blp@gnu.org>
77235         Add isnan module.
77236         * doc/posix-functions/isnan.texi: Mention new module.
77237         * lib/math.in.h: Define isnan macro if we have decided to replace
77238         it.
77239         * m4/isnan.m4: New file.
77240         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77241         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77242         also.
77243         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77244         redundancy.
77245         * m4/math_h.m4: Initialize and substitute variables for isnan
77246         module.
77247         * modules/isnan: New file.
77248         * modules/isnan-tests: New file.
77249         * modules/math: Add substitutions for new module.
77250         * tests/test-isnan.c: New file.
77251         * MODULES.html.sh: Mention new module.
77253 2008-07-10  Ben Pfaff  <blp@gnu.org>
77255         Add isnanf module.
77256         * lib/isnanf.m4: New file.
77257         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77258         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77259         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77260         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77261         * modules/isnanf: New file.
77262         * modules/isnanf-tests: New file.
77263         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77264         files.
77265         * tests/test-isnanf-nolibm.c: factored most of its contents into
77266         new file tests/test-isnanf.h.
77267         * tests/test-isnanf.h: New file.
77268         * tests/test-isnanf.c: New file.
77269         * MODULES.html.sh: Mention new module.
77270         * doc/glibc-functions/isnanf.texi: Mention new module.
77272 2008-07-10  Ben Pfaff  <blp@gnu.org>
77274         Add isnand module.
77275         * lib/isnand.h: New file.
77276         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77277         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77278         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77279         functionality also.
77280         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77281         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77282         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77283         * modules/isnand: New file.
77284         * modules/isnand-tests: New file.
77285         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77286         files.
77287         * tests/test-isnand-nolibm.c: factored most of its contents into
77288         new file tests/test-isnand.h.
77289         * tests/test-isnand.h: New file.
77290         * tests/test-isnand.c: New file.
77291         * MODULES.html.sh: Mention new module.
77293 2008-07-10  Ben Pfaff  <blp@gnu.org>
77295         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77296         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77297         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77298         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77299         * modules/isnanf-nolibm: Update references to renamed files.
77300         * modules/isnand-nolibm: Likewise.
77301         * modules/isnanf-nolibm-tests: Likewise.
77302         * modules/isnand-nolibm-tests: Likewise.
77303         * lib/frexp.c: Likewise.
77304         * lib/isfinite.c: Likewise.
77305         * lib/signbitd.c: Likewise.
77306         * lib/signbitf.c: Likewise.
77307         * lib/vasnprintf.c: Likewise.
77308         * tests/test-ceilf1.c: Likewise.
77309         * tests/test-ceilf2.c: Likewise.
77310         * tests/test-floorf1.c: Likewise.
77311         * tests/test-floorf2.c: Likewise.
77312         * tests/test-frexp.c: Likewise.
77313         * tests/test-round1.c: Likewise.
77314         * tests/test-round2.c: Likewise.
77315         * tests/test-roundf1.c: Likewise.
77316         * tests/test-strtod.c: Likewise.
77317         * tests/test-trunc1.c: Likewise.
77318         * tests/test-trunc2.c: Likewise.
77319         * tests/test-truncf1.c: Likewise.
77320         * tests/test-truncf2.c: Likewise.
77321         * NEWS: Mention the renamed header files.
77323 2008-07-11  Jim Meyering  <meyering@redhat.com>
77325         vc-list-files: make the last-resort awk code more portable
77326         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77327         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77328         does not support it.
77330 2008-07-10  Eric Blake  <ebb9@byu.net>
77332         Work with tar's bootstrap.
77333         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77334         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77335         an m4 comment.
77337 2008-07-09  Jim Meyering  <meyering@redhat.com>
77339         posix-shell.m4: fix typo that made this test malfunction
77340         * m4/posix-shell.m4: Remove capitalization in variable name.
77342 2008-07-08  Bruno Haible  <bruno@clisp.org>
77344         * m4/onceonly.m4: Update comments.
77345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77347 2008-07-04  Jim Meyering  <meyering@redhat.com>
77349         * users.txt: Add vc-dwim.
77350         (bison, coreutils): Use the gitweb URL.
77352 2008-07-03  Jim Meyering  <meyering@redhat.com>
77354         * users.txt: Add libffcall.  From Sam Steingold.
77356 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77358         getdate.y: do not ignore TZ with relative day, month or year offset
77359         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77360         relative-date-handling, since otherwise, the latter would clobber the
77361         sole output (an updated Start value) of the tz-handling block.
77362         * tests/test-getdate.c: Tests for the fix
77364 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77366         Recognize 'foo_LIBRARIES += libgnu.a'.
77367         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77368         makefile snippet has already specified an installation location,
77369         also using '+='.
77371 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77373         getdate.y: factor out common actions
77374         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77375         Use them in place of open-coded actions.
77377 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77379         Add self-test for getdate module.
77380         * modules/getdate-tests: New file.
77381         * tests/test-getdate.c: New file.
77383 2008-06-29  Bruno Haible  <bruno@clisp.org>
77385         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77386         .gitignore.
77387         Reported by Sylvain Beucler <beuc@beuc.net>.
77389 2008-06-29  Bruno Haible  <bruno@clisp.org>
77391         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77392         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77394 2008-06-29  Bruno Haible  <bruno@clisp.org>
77396         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77397         EXTRA_DIST.
77398         Reported by Sylvain Beucler <beuc@beuc.net>.
77400 2008-06-26  Jim Meyering  <meyering@redhat.com>
77402         make several modules depend on the "open" module
77403         This provides slightly increased consistency when opening-for-write
77404         the name of a non-directory spelled with a trailing slash.
77405         * modules/chdir-safer: Likewise.
77406         * modules/chown: Likewise.
77407         * modules/clean-temp: Likewise.
77408         * modules/copy-file: Likewise.
77409         * modules/fchdir: Likewise.
77410         * modules/fcntl-safer: Likewise.
77411         * modules/pipe: Likewise.
77412         * modules/utime: Likewise.
77413         Prompted by Eric Blake and Bruno Haible.
77415 2008-06-24  Andreas Schwab  <schwab@suse.de>
77417         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77418         literals can be used as initializers for global variables.
77420 2008-06-23  Eric Blake  <ebb9@byu.net>
77422         Make gnulib-cache.m4 easier to diff.
77423         * gnulib-tool (func_import): Allow newlines when reading cached
77424         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77426 2008-06-23  Bruno Haible  <bruno@clisp.org>
77428         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77429         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77430         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77431         m4/signalblocking.m4.
77432         (gl_PREREQ_SIGACTION): Don't invoke it.
77433         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77434         gl_PREREQ_SIG_HANDLER_H.
77435         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77436         Don't check for sigaction here.
77438 2008-06-23  Bruno Haible  <bruno@clisp.org>
77440         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77441         (install_handlers): Don't set the SA_RESETHAND flag.
77443 2008-06-23  Bruno Haible  <bruno@clisp.org>
77445         * m4/sigaction.m4: Comment fixes.
77446         * lib/signal.in.h: Likewise.
77448 2008-06-23  Eric Blake  <ebb9@byu.net>
77450         Fix typo.
77451         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77453         Avoid SA_ namespace.
77454         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77455         Reported by Ralf Wildenhues.
77457         Avoid test failure due to SA_RESTORER.
77458         * tests/test-sigaction.c (SA_MASK): New macro.
77459         (main): Avoid failing due to extension flags being set.
77460         Reported by Jim Meyering.
77462         Revert use of sig-handler.h in sigprocmask.c.
77463         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77464         it requires the existence of struct sigaction.
77465         * lib/sigprocmask.c (handler_t): Restore typedef.
77466         (rpl_signal, old_handlers): Use local type.
77468 2008-06-22  Bruno Haible  <bruno@clisp.org>
77470         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77471         conditionally.
77472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77474 2008-06-22  Bruno Haible  <bruno@clisp.org>
77476         * doc/posix-functions/siginterrupt.texi: Move note.
77478         * lib/signal.in.h (SA_RESTART): New macro.
77479         * lib/sigaction.c: Update comment.
77481         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77483         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77484         (gl_PREREQ_SIGPROCMASK): Invoke it.
77485         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77487         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77489         * lib/sigprocmask.c: Update a comment.
77491 2008-06-21  Eric Blake  <ebb9@byu.net>
77493         Use sigaction module rather than signal().
77494         * modules/c-stack (Depends-on): Add sigaction.
77495         * modules/fatal-signal (Depends-on): Likewise.
77496         * modules/nanosleep (Depends-on): Likewise.
77497         * modules/sigprocmask (Files): Add sig-handler.h.
77498         * modules/sigaction (Files): Likewise.
77499         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77500         Eggert.
77501         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77502         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77503         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77504         (init_fatal_signals): Likewise.
77505         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77506         (siginterrupt): Delete fallback.
77507         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77508         instead.
77509         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77510         siginterrupt.
77512         New module sigaction, for mingw.
77513         * modules/sigaction: New module...
77514         * modules/sigaction-tests: ...and its test.
77515         * m4/sigaction.m4: New file.
77516         * lib/sigaction.c: Likewise.
77517         * tests/test-sigaction.c: Likewise.
77518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77519         * modules/signal (Makefile.am): Likewise.
77520         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77521         needed.
77522         * doc/posix-headers/signal.texi (signal.h): Mention provided
77523         types.
77524         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77525         that sigaction is preferable.
77526         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77527         module.
77528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77529         sigaction.
77531         Improve robustness of sigprocmask by overriding signal.
77532         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77533         is in use.
77534         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77535         (SIGKILL, SIGSTOP): Provide fallbacks.
77536         (rpl_signal): Implement.
77537         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77538         signal can be called inside handlers.
77540         Fix nanosleep module on mingw.
77541         * modules/nanosleep (Depends-on): Add sys_select.
77542         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77544         Fix licensing of sigprocmask.
77545         * modules/raise (License): Relicense as LGPL.
77547 2008-06-21  Bruno Haible  <bruno@clisp.org>
77549         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77550         result if it contains question marks.
77551         Reported by Michael Geng <linux@michaelgeng.de>.
77553 2008-06-19  Bruno Haible  <bruno@clisp.org>
77555         Fix CVS-ism.
77556         * doc/gnulib.texi: Include updated-stamp.texi.
77557         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77558         (updated-stamp.texi): New rule.
77559         (gnulib.info): Depend on it.
77560         * doc/.gitignore: Add updated-stamp.texi.
77561         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77563 2008-06-19  Bruno Haible  <bruno@clisp.org>
77565         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77566         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77568 2008-06-19  Eric Blake  <ebb9@byu.net>
77570         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77571         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77572         Reported by Stepan Kasal.
77574 2008-06-18  Bruno Haible  <bruno@clisp.org>
77576         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77577         Reported by Eric Blake.
77579 2008-06-18  Eric Blake  <ebb9@byu.net>
77581         Work around cygwin 1.5.25 strsignal bug.
77582         * tests/test-strsignal.c: Allow for const char *.
77583         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77585 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77587         * users.txt: Update URL to article and add author/date
77588         information.
77590 2008-06-17  Bruno Haible  <bruno@clisp.org>
77592         New macro gl_DISABLE_THREADS.
77593         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77594         if the user did not pass --enable-threads or --disable-threads option.
77595         (gl_DISABLE_THREADS): New macro.
77596         Reported by Eric Blake <ebb9@byu.net>.
77598 2008-06-17  Bruno Haible  <bruno@clisp.org>
77600         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77601         when the macro ignores it.
77602         Based on a patch by Eric Blake <ebb9@byu.net>.
77604 2008-06-17  Bruno Haible  <bruno@clisp.org>
77606         * modules/tls (License): Change to LGPLv2+.
77607         Reported by Eric Blake.
77609 2008-06-17  Eric Blake  <ebb9@byu.net>
77611         Simplify c-stack prerequisites.
77612         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77613         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77614         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77615         check.
77616         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77617         <sys/resource.h>.
77619         Move c-stack test into testsuite.
77620         * modules/c-stack-tests: New file.
77621         * lib/c-stack.c [DEBUG]: Move test program...
77622         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77623         fail test if sigaltstack is lacking.
77624         * tests/test-c-stack.sh: New driver file.
77626 2008-06-16  Eric Blake  <ebb9@byu.net>
77628         Use raise module consistently.
77629         * modules/fatal-signal (Depends-on): Add raise.
77630         * modules/sigprocmask (Depends-on): Likewise.
77631         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77632         * lib/sigprocmask.c (sigprocmask): Likewise.
77633         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77634         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77636         Fix compliance bug in sigpending.
77637         * lib/sigprocmask.c (sigpending): Return pending array via
77638         parameter, not return value.
77640 2008-06-14  Eric Blake  <ebb9@byu.net>
77642         Improve obstack-printf test code.
77643         * tests/test-obstack-printf.c (test_function): Fix comment, and
77644         simplify usage of obstack_* in macros.  Add a test for coverage.
77645         Reported by Bruno Haible.
77647 2008-06-14  Bruno Haible  <bruno@clisp.org>
77649         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77650         array size as a constant, not as a const variable.
77651         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77652         AC_USE_SYSTEM_EXTENSIONS.
77653         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77654         Test whether the obstack_printf function actually exists.
77655         * modules/obstack-printf (Depends-on): Add extensions.
77656         (Include): Remove obstack.h.
77657         * modules/obstack-printf-posix (Depends-on): Add extensions.
77658         (Include): Remove obstack.h.
77660 2008-06-13  Eric Blake  <ebb9@byu.net>
77662         Add obstack-printf and obstack-printf-posix modules.
77663         * modules/obstack-printf: New file.
77664         * modules/obstack-printf-posix: Likewise.
77665         * MODULES.html.sh (Misc): Mention them.
77666         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77667         Likewise.
77668         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77669         Likewise.
77670         * modules/stdio (Makefile.am): Accomodate new modules.
77671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77672         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77673         Declare.
77674         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77675         functions.
77676         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77677         (gl_REPLACE_OBSTACK_PRINTF): New macros
77678         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77679         * tests/test-obstack-printf.c: New file.
77680         * modules/obstack-printf-tests: Likewise.
77681         * modules/obstack-printf-posix-tests: Likewise.
77683 2008-06-11  Bruno Haible  <bruno@clisp.org>
77685         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77686         * lib/open.c: Include errno.h.
77687         (open): Fail when attempting to write to a file that has a trailing
77688         slash.
77689         * tests/test-open.c (main): Test against trailing slash bug.
77690         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77692 2008-06-10  Bruno Haible  <bruno@clisp.org>
77694         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77695         for $? to work inside the trap command, with various /bin/sh-s.
77696         * tests/test-vc-list-files-cvs.sh: Likewise.
77698 2008-06-10  Bruno Haible  <bruno@clisp.org>
77700         * lib/acl-internal.h: Don't include gettext.h here.
77701         * lib/set-mode-acl.c: Include gettext.h here.
77702         * lib/copy-acl.c: Likewise.
77704 2008-06-10  Bruno Haible  <bruno@clisp.org>
77706         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77707         * lib/wait-process.c (wait_subprocess): Likewise.
77708         * lib/execute.h (execute): Add termsigp argument.
77709         * lib/execute.c (execute): Likewise.
77710         * lib/csharpcomp.c (compile_csharp_using_pnet,
77711         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77712         * lib/csharpexec.c (execute_csharp_using_pnet,
77713         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77714         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77715         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77716         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77717         is_jikes_present): Update.
77718         * lib/javaexec.c (execute_java_class): Update.
77719         * lib/javaversion.c (execute_and_read_line): Update.
77720         * NEWS: Document the changes.
77721         Reported by Eric Blake.
77723 2008-06-10  Eric Blake  <ebb9@byu.net>
77725         Add missing include.
77726         * tests/test-strstr.c (includes): Add <signal.h>.
77727         * tests/test-strcasestr.c (includes): Likewise.
77728         * tests/test-memmem.c (includes): Likewise.
77730 2008-06-10  Bruno Haible  <bruno@clisp.org>
77732         * lib/wait-process.c (wait_subprocess): Add an assertion.
77734 2008-06-10  Bruno Haible  <bruno@clisp.org>
77736         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77738 2008-06-10  Bruno Haible  <bruno@clisp.org>
77740         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77741         using alarm().
77742         * tests/test-strcasestr.c (main): Likewise.
77743         * tests/test-strstr.c (main): Likewise.
77745 2008-06-09  Bruno Haible  <bruno@clisp.org>
77747         Work around the Solaris 10 ACE ACLs ABI change.
77748         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77749         declare if ACL_NO_TRIVIAL is present.
77750         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77751         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77752         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77753         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77754         define if ACL_NO_TRIVIAL is present.
77755         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77756         and use the current ABI.
77757         (file_has_acl): Use same #if condition as elsewhere.
77758         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77759         in use, and use the current ABI.
77760         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77761         Reported by Jim Meyering.
77763 2008-06-09  Eric Blake  <ebb9@byu.net>
77765         Work around environments that (stupidly) ignore SIGALRM.
77766         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77767         before using alarm().
77768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77769         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77770         Reported by Ian Beckwith <ianb@erislabs.net>.
77772         Produce autobuild blurb earlier in log.
77773         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77775 2008-06-09  Jim Meyering  <meyering@redhat.com>
77776         and Ondřej Vašík  <ovasik@redhat.com>
77778         utimens.c: correct kernel bug work-around
77779         Ondřej Vašík found that the invalid return value of 280 indicates
77780         failure, not success, and the kernel bug we're trying to work
77781         around affects not just the utimensat call, but also the fallback
77782         futimens call.
77783         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77784         not success.
77785         [HAVE_FUTIMENS]: Use the same work-around, here.
77787 2008-06-09  Jim Meyering  <meyering@redhat.com>
77789         add more guards around definition of ACE_-related code
77790         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77791         ALLOW and ACE_OWNER are also defined.
77793 2008-06-08  Bruno Haible  <bruno@clisp.org>
77795         * lib/acl-internal.h: Add me as co-author.
77796         * lib/file-has-acl.c: Likewise.
77797         * lib/set-mode-acl.c: Likewise.
77798         * lib/copy-acl.c: Likewise.
77800 2008-06-08  Bruno Haible  <bruno@clisp.org>
77802         Add support for AIX ACLs.
77803         * lib/acl-internal.h (acl_nontrivial): New declaration.
77804         * lib/file-has-acl.c (acl_nontrivial): New function.
77805         (file_has_acl): Add implementation using AIX 4 ACL API.
77806         * lib/set-mode-acl.c (qset_acl): Likewise.
77807         * lib/copy-acl.c (qcopy_acl): Likewise.
77809 2008-06-08  Bruno Haible  <bruno@clisp.org>
77811         Add support for HP-UX ACLs.
77812         * lib/acl-internal.h (acl_nontrivial): New declaration.
77813         * lib/file-has-acl.c (acl_nontrivial): New function.
77814         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77815         * lib/set-mode-acl.c (qset_acl): Likewise.
77816         * lib/copy-acl.c (qcopy_acl): Likewise.
77818 2008-06-08  Bruno Haible  <bruno@clisp.org>
77820         Add support for Cygwin ACLs.
77821         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77822         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77823         the chmod_or_fchmod call.
77824         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77826 2008-06-08  Bruno Haible  <bruno@clisp.org>
77828         Fix bug with setuid modes in Solaris 10+ code.
77829         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77830         succeeded, when the mode contains some special bits.
77832 2008-06-08  Bruno Haible  <bruno@clisp.org>
77834         Add support for Solaris 7..10 ACLs.
77835         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77836         declarations.
77837         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77838         functions.
77839         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77840         * lib/set-mode-acl.c (qset_acl): Likewise.
77841         * lib/copy-acl.c (qcopy_acl): Likewise.
77843 2008-06-08  Bruno Haible  <bruno@clisp.org>
77845         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77846         declaration.
77847         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77848         (acl_access_nontrivial): Remove MacOS X case.
77849         (file_has_acl): Use acl_extended_nontrivial.
77850         * lib/copy-acl.c (qcopy_acl): Likewise.
77852 2008-06-08  Bruno Haible  <bruno@clisp.org>
77854         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77856 2008-06-08  Jim Meyering  <meyering@redhat.com>
77858         * modules/acl (Maintainer): Add Bruno Haible.
77860 2008-06-07  Bruno Haible  <bruno@clisp.org>
77862         Improve support for Tru64 ACLs.
77863         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77864         ACL on OSF/1.
77866 2008-06-07  Bruno Haible  <bruno@clisp.org>
77868         Add support for MacOS X ACLs.
77869         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77870         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77871         * lib/set-mode-acl.c (qset_acl): Likewise.
77872         * lib/copy-acl.c (qcopy_acl): Likewise.
77874 2008-06-07  Bruno Haible  <bruno@clisp.org>
77876         Fix memory leak introduced on 2008-05-22.
77877         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77878         use.
77880 2008-06-07  Bruno Haible  <bruno@clisp.org>
77882         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77883         to construct an empty ACL.
77885 2008-06-07  Bruno Haible  <bruno@clisp.org>
77887         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77888         precisely.
77889         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77891 2008-06-07  Bruno Haible  <bruno@clisp.org>
77893         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77894         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77896 2008-06-07  Bruno Haible  <bruno@clisp.org>
77898         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77899         regardless of POSIX.
77900         * doc/posix-functions/_longjmp.texi: Likewise.
77901         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77902         SystemV platform in this case.
77904 2008-06-06  Eric Blake  <ebb9@byu.net>
77906         Document abort() bugs.
77907         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77909         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77910         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77911         sigsetjmp.
77912         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77913         siglongjmp, but only as a macro.
77914         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77915         is obsolete.
77916         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77918         Tweak documentation to cover cygwin argz bugs.
77919         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77920         argz bug fix; no code change needed since no cygwin releases
77921         occurred between the last fix and the bug being tested.
77922         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77923         module and recently fixed cygwin bugs.
77924         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77925         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77926         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77927         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77928         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77929         Likewise.
77930         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77931         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77932         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77933         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77934         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77935         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77936         Likewise.
77938         Avoid gcc warning on cygwin.
77939         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77940         !ACL_NO_TRIVIAL]: Avoid unused variable.
77942 2008-06-05  Eric Blake  <ebb9@byu.net>
77944         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77945         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77946         git-version-gen fails to come up with a version.
77947         Reported by Simon Josefsson.
77949 2008-06-05  Jim Meyering  <meyering@redhat.com>
77950             Paul Eggert  <eggert@cs.ucla.edu>
77952         utimens.c: work around a probable Linux kernel bug
77953         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77954         appears to be a kernel bug that causes utimensat to return 280
77955         instead of 0, indicating success.
77957 2008-06-04  Bruno Haible  <bruno@clisp.org>
77959         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77960         2008-06-01 commit.
77962 2008-06-04  Bruno Haible  <bruno@clisp.org>
77964         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77965         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77966         (file_has_acl): Use it. Save errno afterwards.
77967         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77969 2008-06-03  Bruno Haible  <bruno@clisp.org>
77971         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77972         draft code. Simplify #ifs.
77973         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77974         Put Solaris code after POSIX-draft code. Fix comments regarding
77975         Solaris 10, HP-UX. Mention Cygwin.
77976         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77978 2008-06-03  Eric Blake  <ebb9@byu.net>
77980         Provide fallback for older kernels.
77981         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77982         Provide runtime fallback if kernel lacks support.
77983         Reported by Mike Frysinger.
77985 2008-06-02  Bruno Haible  <bruno@clisp.org>
77987         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77988         it exists.
77990 2008-06-02  Bruno Haible  <bruno@clisp.org>
77992         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77993         * lib/copy-acl.c (qcopy_acl): Update comment.
77995 2008-06-02  Bruno Haible  <bruno@clisp.org>
77997         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77998         like ACL APIs.
78000 2008-06-02  Bruno Haible  <bruno@clisp.org>
78002         * tests/test-file-has-acl.sh: Use different code for Cygwin.
78003         * tests/test-set-mode-acl.sh: Likewise.
78004         * tests/test-copy-acl.sh: Likewise.
78005         * tests/test-copy-file.sh: Likewise.
78007 2008-06-02  Bruno Haible  <bruno@clisp.org>
78009         * tests/test-file-has-acl.sh: Remove unused code.
78011 2008-06-01  Bruno Haible  <bruno@clisp.org>
78013         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
78014         (copy_acl): Just a wrapper around qcopy_acl that emits the error
78015         messages.
78016         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
78018 2008-06-01  Bruno Haible  <bruno@clisp.org>
78020         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
78021         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
78022         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
78023         APIs.
78024         * modules/acl-tests (configure.ac): Remove tests now contained in
78025         m4/acl.m4.
78027 2008-06-02  Jim Meyering  <meyering@redhat.com>
78029         announce-gen: use a better key-server host name
78030         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
78031         it may be more consistently reliable.  Suggested by Werner Koch
78032         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
78034 2008-06-01  Bruno Haible  <bruno@clisp.org>
78036         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
78037         Reported by Voroskoi Andras <voroskoi@gmail.com>.
78039 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
78041         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
78043 2008-06-01  Bruno Haible  <bruno@clisp.org>
78045         New ACL tests.
78046         * tests/test-file-has-acl.sh: New file.
78047         * tests/test-file-has-acl.c: New file.
78048         * tests/test-set-mode-acl.sh: New file.
78049         * tests/test-set-mode-acl.c: New file.
78050         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
78051         * tests/test-copy-acl.c: New file.
78052         * modules/acl-tests: New file, based on modules/copy-file-tests.
78053         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
78054         (Depends-on): Add acl-tests.
78055         (configure.ac): Remove checks.
78056         (Makefile.am): Don't create test-sameacls program here any more.
78058 2008-06-01  Bruno Haible  <bruno@clisp.org>
78060         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
78061         * tests/test-sameacls.c: Include progname.h.
78062         (main): Invoke set_program_name. Portability fixes for MacOS X,
78063         Solaris, HP-UX.
78065 2008-06-01  Bruno Haible  <bruno@clisp.org>
78067         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
78068         function.
78069         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
78071 2008-06-01  Bruno Haible  <bruno@clisp.org>
78073         * modules/rpmatch (Depends-on): Add strdup.
78075 2008-06-01  Bruno Haible  <bruno@clisp.org>
78077         * lib/pipe.c: Include unistd-safer.h.
78078         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
78079         * modules/pipe (Depends-on): Add unistd-safer.
78081 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78083         * modules/autobuild (configure.ac): Call AB_INIT.
78085 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78087         * tests/test-getaddrinfo.c: Don't print debug messages by default.
78088         Suggested by Bruno Haible <bruno@clisp.org>.
78090 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78092         * tests/test-base64.c: Cast size_t to unsigned long when invoking
78093         printf.  Use %lu instead of %d.  Reported by Bruno Haible
78094         <bruno@clisp.org>.
78096 2008-05-29  Eric Blake  <ebb9@byu.net>
78098         Prefer new POSIX 200x interfaces over futimesat.
78099         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
78100         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
78101         when available.
78102         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
78104 2008-05-28  Bruno Haible  <bruno@clisp.org>
78106         * modules/stpcpy (License): Change to LGPLv2+.
78107         Requested by David Lutterkort <dlutter@redhat.com>.
78109 2008-05-27  Bruno Haible  <bruno@clisp.org>
78111         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78112         current mingw.
78113         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78115 2008-05-27  Bruno Haible  <bruno@clisp.org>
78117         * modules/iconv_open (Link): New section, from module 'iconv'.
78118         * modules/striconv (Link): Likewise.
78119         * modules/striconveh (Link): Likewise.
78120         * modules/xstriconv (Link): Likewise.
78121         * modules/unicodeio (Link): Likewise.
78122         * modules/propername (Link): Likewise.
78123         Reported by Jim Meyering.
78125 2008-05-26  Jim Meyering  <meyering@redhat.com>
78127         sha256: do not artificially restrict buffer length to be < 2^32
78128         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78129         uint32_t to size_t.
78130         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78131         to match.
78133         avoid unaligned access errors, e.g., on sparc
78134         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78135         direct access through a possibly-unaligned uint64* pointer.
78136         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78137         direct access through a possibly-unaligned uint32* pointer.
78138         Prompted by this patch from Tom "spot" Callaway:
78139         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78141         sha512.c: fix typo in comment
78142         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78144 2008-05-25  Bruno Haible  <bruno@clisp.org>
78146         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78147         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78148         (Makefile.am): Update lib_SOURCES.
78150 2008-05-25  Bruno Haible  <bruno@clisp.org>
78152         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78154 2008-05-25  Jim Meyering  <meyering@redhat.com>
78156         useless-if-before-free: freed expr may have white-space differences
78157         * build-aux/useless-if-before-free: Recognize cases in which the
78158         freed expression differs from the tested one in embedded white
78159         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78160         $1 was used, so we can't make any regexp shy.  Improved tests now
78161         detect this.
78163         useless-if-before-free: accept white space in the expression.
78164         * build-aux/useless-if-before-free: For now, any white space
78165         in the expression must be identical in the free argument.
78167         useless-if-before-free: efficiency tweak
78168         * build-aux/useless-if-before-free: Make the expression-matching
78169         regexp "shy".
78170         Make the *outer* regexp shy, not the expr-matching one.
78172         update code-in-comment to accept cast of free arg
78173         * build-aux/useless-if-before-free: Update regexp.
78175 2008-05-25  Bruno Haible  <bruno@clisp.org>
78177         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78178         * modules/copy-file-tests (Files, Makefile.am): Update.
78179         * tests/test-copy-file.c (func_test_copy): Update.
78181 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78183         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78185 2008-05-23  Bruno Haible  <bruno@clisp.org>
78187         Improve support for ACLs on OSF/1.
78188         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78189         Remove fallback for unknown flavors of ACLs.
78191 2008-05-22  Bruno Haible  <bruno@clisp.org>
78193         Add support for ACLs on OSF/1.
78194         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78195         replacements.
78196         (acl_free_text): New macro fallback.
78197         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78198         acl_free.
78199         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78200         acl_free_text function. Require AC_C_INLINE.
78202 2008-05-22  Bruno Haible  <bruno@clisp.org>
78204         Make copy_acl work on MacOS X 10.5.
78205         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78206         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78207         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78208         If MODE_INSIDE_ACL, don't assume that every system has the same text
78209         representation for ACLs as FreeBSD.
78210         * lib/copy-acl.c (copy_acl): Add support for platforms with
78211         !MODE_INSIDE_ACL.
78212         * lib/file-has-acl.c (file_has_acl): Likewise.
78213         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78214         FreeBSD, MacOS X, or IRIX, respectively.
78216 2008-05-22  Bruno Haible  <bruno@clisp.org>
78218         * lib/acl.h: Don't include <sys/acl.h>.
78219         (GETACLCNT): Move fallback to lib/acl-internal.h.
78220         * lib/acl-internal.h: Include <sys/acl.h> here.
78221         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78223 2008-05-22  Bruno Haible  <bruno@clisp.org>
78225         Split off copy_acl function to separate file.
78226         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78227         * lib/acl.c (copy_acl): Moved function to separate file.
78228         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78229         * modules/acl (Files): Add lib/copy-acl.c.
78230         (Makefiles.am): Augment lib_SOURCES.
78232 2008-05-22  Bruno Haible  <bruno@clisp.org>
78234         * modules/copy-file-tests: New file.
78235         * tests/test-copy-file.sh: New file.
78236         * tests/test-copy-file.c: New file.
78237         * tests/test-copy-file-sameacls.c: New file.
78239 2008-05-22  Eric Blake  <ebb9@byu.net>
78241         Avoid gcc warning.
78242         * tests/test-memcmp.c (main): Pass NULL indirectly.
78244 2008-05-21  Bruno Haible  <bruno@clisp.org>
78246         Add reference doc about ACLs.
78247         * doc/acl-resources.txt: New file.
78248         * doc/acl-cygwin.txt: New file.
78250 2008-05-21  Bruno Haible  <bruno@clisp.org>
78252         Avoid one more warning from gcc.
78253         * lib/vasnprintf.c (IF_LINT): Update comments.
78254         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78256 2008-05-21  Jim Meyering  <meyering@redhat.com>
78258         avoid a warning from gcc
78259         * lib/vasnprintf.c (IF_LINT): Define.
78260         (scale10_round_decimal_long_double):
78261         Use it to avoid a "may be used uninitialized" warning.
78262         (scale10_round_decimal_double): Likewise.
78264 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78266         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78267         declared.
78269 2008-05-20  Bruno Haible  <bruno@clisp.org>
78271         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78272         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78274 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78276         * modules/memcmp-tests: New file.
78277         * tests/test-memcmp.c: New file.
78279 2008-05-19  Bruno Haible  <bruno@clisp.org>
78281         * modules/propername (Notice, configure.ac): Put quoted "..." into
78282         --keyword option.
78283         * lib/propername.h: Update comments accordingly.
78284         Reported by Eric Blake.
78286 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78288         * modules/getpass-gnu (Depends-on): Add fseeko.
78290 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78292         * modules/base64-tests: New file.
78294 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78296         * lib/base64.c (base64_decode_ctx): If a decode context structure
78297         was passed in use it to ignore newlines.  If a context structure
78298         was _not_ passed in, continue to treat newlines as garbage (this
78299         is the historical behavior).  Formerly base64_decode.
78300         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78301         takes a decode context structure.
78302         * lib/base64.h (base64_decode): Macro for four-argument calls.
78303         (base64_decode_alloc): Likewise.
78304         * lib/base64.c (base64_decode_ctx): If a decode context structure
78305         was passed in use it to ignore newlines.  If a context structure
78306         was _not_ passed in, continue to treat newlines as garbage (this
78307         is the historical behavior).  Formerly base64_decode.
78308         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78309         takes a decode context structure.
78310         * lib/base64.h (base64_decode): Macro for four-argument calls.
78311         (base64_decode_alloc): Likewise.
78313 2008-05-19  Jim Meyering  <meyering@redhat.com>
78315         avoid a warning from gcc
78316         * lib/trim.c (IF_LINT): Define.
78317         (trim2): Use it to avoid a "may be used uninitialized" warning.
78319         Fix doc typo.
78320         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78322 2008-05-19  Bruno Haible  <bruno@clisp.org>
78324         * doc/glibc-functions/getpass.texi: Document limits of other
78325         implementations.
78327 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78328             Bruno Haible <bruno@clisp.org>
78330         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78332 2008-05-18  Bruno Haible  <bruno@clisp.org>
78334         * modules/propername: New file, from GNU gettext.
78335         * lib/propername.h: New file, from GNU gettext.
78336         * lib/propername.c: New file, from GNU gettext.
78337         * MODULES.html.sh (Internationalization functions): Add propername.
78339 2008-05-16  Jim Meyering  <meyering@redhat.com>
78340             Bruno Haible  <bruno@clisp.org>
78342         Avoid some warnings from "gcc -Wshadow".
78343         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78345 2008-05-15  Eric Blake  <ebb9@byu.net>
78347         Extend previous patch to cygwin 1.7.0.
78348         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78349         fast implementation in cygwin >= 1.7.0.
78350         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78353 2008-05-15  Bruno Haible  <bruno@clisp.org>
78355         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78356         implementation in glibc >= 2.9.
78357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78360 2008-05-15  Bruno Haible  <bruno@clisp.org>
78362         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78363         (Unicode string functions): Add unilbrk/*.
78364         Reported by Karl Berry.
78366 2008-05-15  Eric Blake  <ebb9@byu.net>
78368         Fix violation of <stdbool.h> replacement in regex.
78369         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78370         * lib/regexec.c (re_search_internal): Likewise.
78371         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78373 2008-05-15  Jim Meyering  <meyering@redhat.com>
78375         avoid distracting test output when git or cvs is not found
78376         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78377         * tests/test-vc-list-files-git.sh: Likewise.
78379 2008-05-15  Eric Blake  <ebb9@byu.net>
78381         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78382         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78383         glibc version.
78384         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78385         * doc/posix-functions/strstr.texi (strstr): Likewise.
78386         * lib/str-two-way.h (MAX): Sychronize with glibc.
78388 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78390         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78391         opr.ctx_type.
78392         (calc_first): Initialize constraint field.
78393         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78394         Fix grammar.
78395         (duplicate_node): Merge constraint field for all node types.
78396         (calc_eclosure_iter): Look at constraint field for all node types.
78397         * lib/regex_internal.c (create_cd_newstate): Don't look at
78398         opr.ctx_type.
78400 2008-05-14  Bruno Haible  <bruno@clisp.org>
78402         Help GCC to do better code generation.
78403         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78404         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78405         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78406         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78407         Declare with attribute 'malloc' if supported.
78409 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78411         use "echo STR|wc -c" rather than unportable "expr length STR"
78412         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78413         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78415 2008-05-14  Jim Meyering  <meyering@redhat.com>
78417         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78418         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78419         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78420         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78421         via Collin Lasse.
78423 2008-05-14  Eric Blake  <ebb9@byu.net>
78425         Avoid quadratic growth in gl_LIBSOURCES.
78426         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78427         Suggested by Bruno Haible.
78429         Test xmemdup0.
78430         * modules/xmemdup0-tests: New file.
78431         * tests/test-xmemdup0.c: Likewise.
78433 2008-05-13  Eric Blake  <ebb9@byu.net>
78435         Split xmemdup0 into its own module.
78436         * modules/xmemdup0: New file.
78437         * lib/xmemdup0.h: Likewise.
78438         * lib/xmemdup0.c: Likewise.
78439         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78440         * lib/xalloc.h (xmemdup0): Remove.
78441         * lib/xmalloc.c (xmemdup0): Likewise.
78443 2008-05-13  Eric Blake  <ebb9@byu.net>
78444             Bruno Haible  <bruno@clisp.org>
78446         Reduce number of forks required during autoconf.
78447         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78448         and gl_LIBSOURCES_DIR.
78449         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78450         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78451         m4_syscmd per file.
78452         <m4_foreach_w>: Move...
78453         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78455 2008-05-13  Eric Blake  <ebb9@byu.net>
78457         * gnulib-tool: Fix various comment typos.
78459 2008-05-12  Bruno Haible  <bruno@clisp.org>
78461         Tailor the linebreaking algorithm.
78462         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78464 2008-05-12  Bruno Haible  <bruno@clisp.org>
78466         Update to Unicode 5.0.0.
78467         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78468         LBP_JV, LBP_JT. Redistribute values.
78469         (unilbrk_table): Change size.
78470         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78471         Unicode TR#14 rev. 22.
78472         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78473         LBP_JV, LBP_JT. Redistribute values.
78474         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78475         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78476         Update.
78477         * lib/unilbrk/lbrkprop1.h: Regenerated.
78478         * lib/unilbrk/lbrkprop2.h: Regenerated.
78479         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78480         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78481         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78482         Likewise.
78483         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78484         Likewise.
78485         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78486         result.
78487         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78488         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78489         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78490         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78491         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78492         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78494 2008-05-11  Bruno Haible  <bruno@clisp.org>
78496         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78498 2008-05-11  Bruno Haible  <bruno@clisp.org>
78500         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78501         * modules/unilbrk/gen-lbrk: New file.
78503 2008-05-11  Bruno Haible  <bruno@clisp.org>
78505         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78506         * m4/sha512.m4 (gl_SHA512): Likewise.
78508 2008-05-11  Jim Meyering  <meyering@redhat.com>
78510         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78511         * modules/crypto/sha256: New file.
78512         * modules/crypto/sha512: Likewise.
78513         * lib/sha256.c: Likewise.
78514         * lib/sha256.h: Likewise.
78515         * lib/sha512.c: Likewise.
78516         * lib/sha512.h: Likewise.
78517         * lib/u64.h: Likewise.
78518         * m4/sha256.m4: Likewise.
78519         * m4/sha512.m4: Likewise.
78520         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78522 2008-05-10  Bruno Haible  <bruno@clisp.org>
78524         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78525         (Input/Output <stdio.h>): Add xprintf.
78526         (Signal handling <signal.h>): Add strsignal.
78527         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78528         (Core language properties): Add func.
78529         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78530         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78531         strings.
78532         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78533         (Input/output): New section.
78534         (File system functions): Add openat-die, stat-macros.
78535         (Networking functions): Add sockets.
78536         (Unicode string functions): Add unictype/*.
78537         (Support for building libraries and executables): Add gperf.
78538         (Support for building documentation): Add agpl-3.0.
78539         (Misc): Add nocrash.
78541 2008-05-10  Bruno Haible  <bruno@clisp.org>
78543         * modules/unictype/gen-ctype: New file.
78545 2008-05-10  Jim Meyering  <meyering@redhat.com>
78547         Make chdir-safer.c more efficient on a system with no symlinks.
78548         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78549         also if ELOOP is zero.  Suggested by Bruno Haible.
78551         Make chdir-safer.c slightly safer.
78552         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78553         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78555         Avoid compile failure on systems without ELOOP (like mingw).
78556         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78557         Reported by Bruno Haible.
78559 2008-05-10  Bruno Haible  <bruno@clisp.org>
78561         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78562         (is_utf8_encoding): Use a case-insensitive comparison.
78563         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78564         streq.
78566 2008-05-10  Bruno Haible  <bruno@clisp.org>
78568         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78569         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78570         * lib/unilbrk/ulc-common.h (iconv_string_length,
78571         iconv_string_keeping_offsets): Remove declarations.
78572         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78573         Don't include <iconv.h>, streq.h, xsize.h.
78574         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78575         conversion.
78576         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78577         <iconv.h>, streq.h, xsize.h.
78578         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78579         conversion.
78580         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78581         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78582         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78583         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78585 2008-05-10  Bruno Haible  <bruno@clisp.org>
78587         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78588         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78590         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78591         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78593         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78594         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78596         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78597         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78599         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78600         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78602         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78603         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78605         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78606         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78608         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78609         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78611 2008-05-10  Bruno Haible  <bruno@clisp.org>
78613         Split up 'linebreak' module.
78614         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78615         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78616         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78617         modifications.
78618         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78619         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78620         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78621         lib/linebreak.c.
78622         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78623         lib/linebreak.c.
78624         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78625         lib/linebreak.c.
78626         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78627         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78628         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78629         lib/linebreak.c.
78630         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78631         lib/linebreak.c.
78632         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78633         lib/linebreak.c.
78634         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78635         lib/linebreak.c.
78636         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78637         lib/linebreak.c.
78638         * modules/unilbrk/base: New file.
78639         * modules/unilbrk/tables: New file.
78640         * modules/unilbrk/u8-possible-linebreaks: New file.
78641         * modules/unilbrk/u16-possible-linebreaks: New file.
78642         * modules/unilbrk/u32-possible-linebreaks: New file.
78643         * modules/unilbrk/ulc-common: New file.
78644         * modules/unilbrk/ulc-possible-linebreaks: New file.
78645         * modules/unilbrk/u8-width-linebreaks: New file.
78646         * modules/unilbrk/u16-width-linebreaks: New file.
78647         * modules/unilbrk/u32-width-linebreaks: New file.
78648         * modules/unilbrk/ulc-width-linebreaks: New file.
78649         * lib/linebreak.h: Remove file.
78650         * lib/linebreak.c: Remove file.
78651         * m4/linebreak.m4: Remove file.
78652         * modules/linebreak: Remove file.
78653         * NEWS: Mention the changes.
78655 2008-05-09  Eric Blake  <ebb9@byu.net>
78657         Add xmemdup0.
78658         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78659         implementation.
78660         * lib/xmalloc.c (xmemdup0): New C implementation.
78662 2008-05-08  Bruno Haible  <bruno@clisp.org>
78664         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78666 2008-05-07  Eric Blake  <ebb9@byu.net>
78668         Support cross-compilation of <wctype.h>.
78669         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78670         AC_CACHE_CHECK.
78672 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78674         * build-aux/vc-list-files: Add support for bzr.
78676 2008-05-03  Jim Meyering  <meyering@redhat.com>
78678         avoid failed assertion with tight malloc
78679         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78681 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78683         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78684         are needed from arpa/inet.h.
78685         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78686         Reported by Bruno Haible.
78688 2008-05-02  Jim Meyering  <meyering@redhat.com>
78690         avoid compilation error on FreeBSD 6
78691         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78693 2008-05-01  Jim Meyering  <meyering@redhat.com>
78695         useless-if-before-free: correct --help's exit status description
78696         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78697         for one or more matches, etc.  Reported by Bruno Haible.
78699         vc-list-files: make the stand-alone gnulib test work
78700         * modules/vc-list-files-tests (configure.ac):
78701         Define and AC_SUBST abs_aux_dir.
78702         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78703         $(abs_top_srcdir) to each script and having each of them
78704         duplicate the work of setting PATH, set PATH here, using
78705         the new variable, abs_aux_dir instead.
78706         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78707         * tests/test-vc-list-files-git.sh: Likewise.
78708         Reported by Bruno Haible.
78710 2008-05-01  Bruno Haible  <bruno@clisp.org>
78712         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78713         reallocation. Rename 'done' to 'found_delimiter'.
78715 2008-05-01  Jim Meyering  <meyering@redhat.com>
78717         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78718         * build-aux/vc-list-files: Use `...`, not $(...).
78720 2008-04-30  Jim Meyering  <meyering@redhat.com>
78722         add tests for vc-list-files
78723         * modules/vc-list-files-tests: New module.
78724         * tests/test-vc-list-files-cvs.sh: New file.
78725         * tests/test-vc-list-files-git.sh: New file.
78727         avoid a warning from gcc
78728         * lib/getndelim2.c (IF_LINT): Define.
78729         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78731         vc-list-files: work properly with build-aux/cvsu, too
78732         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78733         to all cvs-based clauses.
78735         vc-list-files: work properly in the CVS+awk case, too
78736         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78738         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78739         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78740         take more than one file argument, so .  Add quotes, just in case $dir
78741         ever contains a shell meta-character.  Prompted by Soren Hansen in
78742         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78744 2008-04-29  Eric Blake  <ebb9@byu.net>
78746         Optimize getndelim2 to use block operations when possible.
78747         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78748         freadseek, and memchr2.
78749         * lib/getndelim2.c (getndelim2): Use them for block reads.
78751 2008-04-29  Bruno Haible  <bruno@clisp.org>
78753         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78754         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78755         * modules/inet_ntop (Depends-on): Add extensions.
78756         * modules/inet_pton (Depends-on): Likewise.
78757         Reported by Simon Josefsson.
78759 2008-04-29  Jim Meyering  <meyering@redhat.com>
78761         When the is more than one match in a block, match all of them.
78762         * build-aux/useless-if-before-free: Iterate through each block
78763         until there are no more matches.
78765         Fix broken useless-if-before-free script.
78766         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78767         the expression to match cast of argument to free-like function.
78769 2008-04-29  Eric Blake  <ebb9@byu.net>
78771         Use new header.
78772         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78774 2008-04-29  Jim Meyering  <meyering@redhat.com>
78776         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78777         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78778         by gnulib to exist and to declare e.g., inet_ntop.
78779         Don't include "inet_ntop.h", now removed.
78781         * m4/arpa_inet_h.m4: Remove trailing blanks.
78783 2008-04-29  Eric Blake  <ebb9@byu.net>
78785         Silence valgrind on safe reads beyond potential array bounds.
78786         * lib/rawmemchr.valgrind: New file.
78787         * lib/strchrnul.valgrind: Likewise.
78788         * modules/rawmemchr (Files): Distribute new file.
78789         * modules/strchrnul (Files): Likewise.
78790         Suggested by Bruno Haible.
78792 2008-04-29  Bruno Haible  <bruno@clisp.org>
78794         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78795         (inet_ntop, inet_pton): Change portability warning's wording.
78796         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78797         Invoke gl_CHECK_NEXT_HEADERS.
78798         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78799         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78800         set ARPA_INET_H.
78801         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78802         * modules/arpa_inet (Description): No longer only for systems that
78803         lack it.
78804         (Depends-on): Add include_next.
78805         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78806         HAVE_ARPA_INET_H.
78808 2008-04-29  Jim Meyering  <meyering@redhat.com>
78810         * modules/mkdir (License): Re-license as LGPLv2+.
78812 2008-04-29  Bruno Haible  <bruno@clisp.org>
78814         * modules/rawmemchr (Maintainer): Set to Eric.
78815         * modules/strchrnul (Maintainer): Likewise.
78817 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78819         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78820         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78822         * modules/arpa_inet (arpa/inet.h): Use them.
78824 2008-04-28  Eric Blake  <ebb9@byu.net>
78826         Test getndelim2.
78827         * modules/getndelim2-tests: New file.
78828         * tests/test-getndelim2.c: Likewise.
78829         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78830         stream.
78831         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78833         * MODULES.html.sh: Document new module.
78835 2008-04-20  Bruno Haible  <bruno@clisp.org>
78837         * lib/c-stack.c (die): Use raise.
78838         * modules/c-stack (Depends-on): Add raise.
78840 2008-04-28  Bruno Haible  <bruno@clisp.org>
78842         Expect rpmatch to be declared.
78843         * lib/yesno.c (rpmatch): Remove declaration.
78845         Declare rpmatch.
78846         * lib/stdlib.in.h (rpmatch): New declaration.
78847         * lib/rpmatch.c: Include <stdlib.h> first.
78848         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78849         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78851         HAVE_RPMATCH.
78852         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78854         (Include): Set to <stdlib.h>.
78855         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78856         HAVE_RPMATCH.
78857         * NEWS: Document the change.
78859 2008-04-28  Bruno Haible  <bruno@clisp.org>
78861         Change rpmatch to use nl_langinfo when appropriate.
78862         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78863         (N_): New macro.
78864         (localized_pattern): New function/macro.
78865         (try): Remove match, nomatch arguments. Copy the pattern into safe
78866         memory before caching it.
78867         (rpmatch): Use localized_pattern. Add translator comments.
78868         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78869         Suggested by Eric Blake.
78870         * modules/rpmatch (Depends-on): Add stdbool.
78872 2008-04-28  Eric Blake  <ebb9@byu.net>
78874         Add rawmemchr module, matching glibc.
78875         * modules/string (Makefile.am): New indicator.
78876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78877         * lib/string.in.h (rawmemchr): Declare when appropriate.
78878         * modules/rawmemchr: New file.
78879         * m4/rawmemchr.m4: Likewise.
78880         * lib/rawmemchr.c: Likewise.
78881         * modules/rawmemchr-tests: Likewise.
78882         * tests/test-rawmemchr.c: Likewise.
78883         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78884         module.
78885         * modules/strchrnul (Depends-on): Add rawmemchr.
78886         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78888         Whitespace cleanup.
78889         * tests/test-strchrnul.c: Reindent.
78890         * lib/strchrnul.c: Likewise.
78892         Optimize and test strchrnul.
78893         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78894         * modules/strchrnul-tests: New file.
78895         * tests/test-strchrnul.c: Likewise.
78897         Remove intprops dependency.
78898         * modules/memchr (Depends-on): Remove intprops.
78899         * modules/memrchr (Depends-on): Likewise.
78900         * modules/memchr2 (Depends-on): Likewise.
78901         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78902         * lib/memrchr.c (__memrchr): Likewise.
78903         * lib/memrchr2.c (memchr2): Likewise.
78904         Reported by Simon Josefsson.
78906 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78908         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78909         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78911 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78913         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78915         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78917         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78919         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78920         declarations.
78921         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78923         * m4/inet_pton.m4: Don't check for header files.
78925         * m4/inet_ntop.m4: Don't check for header files.
78927 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78929         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78930         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78931         trigger for cygwin).
78932         Reported by Bruno Haible  <bruno@clisp.org>.
78934 2008-04-28  Bruno Haible  <bruno@clisp.org>
78936         * doc/posix-functions/strdup.texi: Mention mingw problem.
78938 2008-04-27  Bruno Haible  <bruno@clisp.org>
78940         * modules/stat-time-tests (Depends-on): Add sleep.
78941         * tests/test-stat-time.c (force_unlink): New function.
78942         (cleanup): Use it.
78943         (test_mtime): Remove the ctime related tests.
78944         (test_ctime): New function, containing the ctime related tests.
78945         (main): Call test_ctime, except on native Windows platforms.
78947 2008-04-27  Bruno Haible  <bruno@clisp.org>
78949         * lib/rpmatch.c (rpmatch): Add some comments.
78950         Reported by James Youngman <jay@gnu.org>.
78952 2008-04-27  Bruno Haible  <bruno@clisp.org>
78954         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78955         quiet NaNs.
78957 2008-04-27  Bruno Haible  <bruno@clisp.org>
78959         Make test-yesno.sh work on mingw.
78960         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78961         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78962         (main): Set stdin to binary mode.
78963         * modules/yesno-tests (Depends-on): Add binary-io.
78965 2008-04-27  Bruno Haible  <bruno@clisp.org>
78967         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78968         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78969         argument that lie outside the IEEE 854 domain.
78970         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78971         (gl_ISFINITE): Use it.
78972         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78974 2008-04-27  Bruno Haible  <bruno@clisp.org>
78976         Allow local renaming in config.h.
78977         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78979 2008-04-27  Bruno Haible  <bruno@clisp.org>
78981         * lib/memchr.c (__memchr): Change type of 'i'.
78982         * lib/memchr2.c (memchr2): Likewise.
78984 2008-04-26  Eric Blake  <ebb9@byu.net>
78985         and Bruno Haible  <bruno@clisp.org>
78987         Optimize and test memrchr.
78988         * modules/memrchr (Depends-on): Add intprops.
78989         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78990         * modules/memrchr-tests: New file.
78991         * tests/test-memrchr.c: New file.
78993 2008-04-26  Bruno Haible  <bruno@clisp.org>
78995         Add tentative support for DragonFly BSD.
78996         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78997         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78998         fp.
78999         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79000         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
79001         * lib/fpurge.c (fpurge): Likewise.
79002         * lib/freadable.c (freaadable): Likewise.
79003         * lib/freadahead.c (freadahead): Likewise.
79004         * lib/freading.c (freading): Likewise.
79005         * lib/freadptr.c (freadptr): Likewise.
79006         * lib/freadseek.c (freadptrinc): Likewise.
79007         * lib/fseeko.c (fseeko): Likewise.
79008         * lib/fseterr.c (fseterr): Likewise.
79009         * lib/fwritable.c (fwritable): Likewise.
79010         * lib/fwriting.c (fwriting): Likewise.
79012 2008-04-26  Bruno Haible  <bruno@clisp.org>
79014         * lib/stdio-impl.h: New file.
79015         * lib/fbufmode.c: Include stdio-impl.h.
79016         (fbufmode): Use fp_, remove redundant #defines.
79017         * lib/fflush.c: Include stdio-impl.h.
79018         (clear_ungetc_buffer): Remove redundant #defines.
79019         * lib/fpurge.c: Include stdio-impl.h.
79020         (fpurge): Remove redundant #defines.
79021         * lib/freadable.c: Include stdio-impl.h.
79022         (freadable): Remove redundant #defines.
79023         * lib/freadahead.c: Include stdio-impl.h.
79024         (freadahead): Remove redundant #defines.
79025         * lib/freading.c: Include stdio-impl.h.
79026         (freading): Remove redundant #defines.
79027         * lib/freadptr.c: Include stdio-impl.h.
79028         (freadptr): Remove redundant #defines.
79029         * lib/freadseek.c: Include stdio-impl.h.
79030         (freadptrinc): Remove redundant #defines.
79031         * lib/fseeko.c: Include stdio-impl.h.
79032         (rpl_fseeko): Remove redundant #defines.
79033         * lib/fseterr.c: Include stdio-impl.h.
79034         (fseterr): Remove redundant #defines.
79035         * lib/fwritable.c: Include stdio-impl.h.
79036         (fwritable: Remove redundant #defines.
79037         * lib/fwriting.c: Include stdio-impl.h.
79038         (fwriting): Remove redundant #defines.
79039         * modules/fbufmode (Files): Add lib/stdio-impl.h.
79040         * modules/fflush (Files): Likewise.
79041         * modules/fpurge (Files): Likewise.
79042         * modules/freadable (Files): Likewise.
79043         * modules/freadahead (Files): Likewise.
79044         * modules/freading (Files): Likewise.
79045         * modules/freadptr (Files): Likewise.
79046         * modules/freadseek (Files): Likewise.
79047         * modules/fseeko (Files): Likewise.
79048         * modules/fseterr (Files): Likewise.
79049         * modules/fwritable (Files): Likewise.
79050         * modules/fwriting (Files): Likewise.
79052 2008-04-26  Bruno Haible  <bruno@clisp.org>
79054         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79055         restore_seek_optimization, update_fpos_cache): New functions, extracted
79056         from rpl_fflush.
79057         (rpl_fflush): Use them.
79058         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
79059         (gl_REPLACE_FFLUSH): Use it.
79061 2008-04-26  Bruno Haible  <bruno@clisp.org>
79063         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
79064         on Solaris.
79065         * tests/test-xstrtoimax.sh: Likewise.
79066         * tests/test-xstrtoumax.sh: Likewise.
79067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79069 2008-04-26  Bruno Haible  <bruno@clisp.org>
79071         * modules/memchr-tests: New file.
79072         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
79074 2008-04-26  Eric Blake  <ebb9@byu.net>
79075             Bruno Haible  <bruno@clisp.org>
79077         * lib/memchr.c: Include intprops.h.
79078         (__memchr): Optimize parallel detection of matching bytes. Rename local
79079         variables. Add explanatory comments.
79081 2008-04-26  Bruno Haible  <bruno@clisp.org>
79083         Fix module 'memchr', broken since 2000-10-28.
79084         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
79086 2008-04-26  Bruno Haible  <bruno@clisp.org>
79088         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
79089         comments.
79091 2008-04-25  Eric Blake  <ebb9@byu.net>
79093         Use native fstatat on cygwin 1.7.0.
79094         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
79095         first.
79097 2008-04-23  Eric Blake  <ebb9@byu.net>
79099         Improve memchr2 performance.
79100         * lib/memchr2.c (memchr2): Further optimize parallel detection of
79101         NUL bytes.
79102         * modules/memchr2 (Depends-on): Use intprops.h.
79104 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79106         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79107         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79108         <blp@cs.stanford.edu>.
79110 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79112         * lib/arpa_inet.in.h: New file.
79114         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79115         (Makefile.am): Sed in substitute header file.
79117         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79118         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79120         * modules/inet_ntop (configure.ac): Use
79121         gl_ARPA_INET_MODULE_INDICATOR.
79123         * modules/inet_pton (configure.ac): Use
79124         gl_ARPA_INET_MODULE_INDICATOR.
79126 2008-04-22  Jim Meyering  <meyering@redhat.com>
79128         * modules/verify (License): Re-license as LGPLv2+.
79130 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79132         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79133         parameter to void* as per POSIX standard (MinGW uses char*).
79135 2008-04-21  Bruno Haible  <bruno@clisp.org>
79137         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79138         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79139         Define to replacements if REPLACE_ISWCNTRL is 1.
79140         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79141         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79142         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79143         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79144         what it fixes.
79145         * doc/posix-functions/iswalpha.texi: Likewise.
79146         * doc/posix-functions/iswblank.texi: Likewise.
79147         * doc/posix-functions/iswcntrl.texi: Likewise.
79148         * doc/posix-functions/iswdigit.texi: Likewise.
79149         * doc/posix-functions/iswgraph.texi: Likewise.
79150         * doc/posix-functions/iswlower.texi: Likewise.
79151         * doc/posix-functions/iswprint.texi: Likewise.
79152         * doc/posix-functions/iswpunct.texi: Likewise.
79153         * doc/posix-functions/iswspace.texi: Likewise.
79154         * doc/posix-functions/iswupper.texi: Likewise.
79155         * doc/posix-functions/iswxdigit.texi: Likewise.
79156         Reported by Alain Guibert.
79158 2008-04-21  Bruno Haible  <bruno@clisp.org>
79160         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79161         Patch by Alain Guibert.
79163 2008-04-21  Bruno Haible  <bruno@clisp.org>
79165         Fix test failures on mingw.
79166         * tests/test-xstrtol.c (print_no_progname): New function.
79167         (main): Install it in error_print_progname hook.
79168         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79169         * tests/test-xstrtoimax.sh: Likewise.
79170         * tests/test-xstrtoumax.sh: Likewise.
79172 2008-04-21  Bruno Haible  <bruno@clisp.org>
79174         Fix test failure on mingw.
79175         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79177 2008-04-21  Bruno Haible  <bruno@clisp.org>
79179         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79180         Actually assign a value.
79182 2008-04-20  Bruno Haible  <bruno@clisp.org>
79184         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79185         take 2.
79186         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79187         'canonicalize-lgpl' module is also used.
79188         * lib/canonicalize-lgpl.c: Undo last change.
79189         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79191 2008-04-20  Bruno Haible  <bruno@clisp.org>
79193         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79194         config.h. Provide _mkdir based fallback for mingw.
79195         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79196         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79197         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79198         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79199         rather than defining mkdir in config.h.
79200         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79201         (gl_SYS_STAT_H_DEFAULTS): New macro.
79202         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79203         HAVE_IO_H any more.
79204         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79205         HAVE_DECL_MKDIR and HAVE_IO_H.
79207 2008-04-20  Bruno Haible  <bruno@clisp.org>
79209         * lib/isapipe.c: Port to native Windows platforms.
79211 2008-04-20  Bruno Haible  <bruno@clisp.org>
79213         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79215 2008-04-21  Eric Blake  <ebb9@byu.net>
79217         Work around preprocessors that don't handle UINTMAX_MAX.
79218         * lib/memchr2.c (memchr2): Avoid embedded #if.
79219         Reported by Alain Guibert, fix suggested by Bruno Haible.
79221 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79223         * doc/posix-functions/strftime.texi (strftime): Explain better
79224         Windows incompatibility.  Suggested by Micah Cowan
79225         <micah@cowan.name>.
79227 2008-04-20  Bruno Haible  <bruno@clisp.org>
79229         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79230         unistr/u8-mblen.
79232 2008-04-20  Bruno Haible  <bruno@clisp.org>
79234         Fix test failure on platforms with non-GNU iconv.
79235         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79236         (U_TO_U8): Use it, rather than u16_to_u8.
79237         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79238         units at the end of the input string.
79239         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79241 2008-04-20  Bruno Haible  <bruno@clisp.org>
79243         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79244         when the resulting length is 0.
79245         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79247 2008-04-20  Bruno Haible  <bruno@clisp.org>
79249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79250         works.
79251         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79253 2008-04-20  Bruno Haible  <bruno@clisp.org>
79255         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79256         * modules/tsearch-tests (configure.ac): Test for initstate function.
79258 2008-04-20  Bruno Haible  <bruno@clisp.org>
79260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79261         for nlink_t if missing.
79262         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79264 2008-04-19  Bruno Haible  <bruno@clisp.org>
79266         Work around snprintf bug on Linux libc5.
79267         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79269         gl_SNPRINTF_SIZE1.
79270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79271         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79272         that test failed.
79273         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79274         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79275         * modules/snprintf (Files): Add m4/printf.m4.
79276         * modules/vsnprintf (Files): Likewise.
79277         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79278         * doc/posix-functions/vsnprintf.texi: Likewise.
79280 2008-04-19  Bruno Haible  <bruno@clisp.org>
79282         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79283         from 0.0058 to less than 10^-7.
79285 2008-04-19  Bruno Haible  <bruno@clisp.org>
79287         Fix rounding when a precision is given.
79288         * lib/vasnprintf.c (is_borderline): New function.
79289         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79290         9...9x.
79291         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79292         %e, %g.
79293         * tests/test-vasprintf-posix.c (test_function): Likewise.
79294         * tests/test-snprintf-posix.h (test_function): Likewise.
79295         * tests/test-sprintf-posix.h (test_function): Likewise.
79296         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79297         * tests/test-printf-posix.h (test_function): Likewise.
79298         * tests/test-printf-posix.output: Update.
79299         Reported by John Darrington <john@darrington.wattle.id.au> via
79300         Ben Pfaff <blp@cs.stanford.edu>.
79302 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79304         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79305         Suggested by Bruno Haible <bruno@clisp.org>.
79307 2008-04-17  Bruno Haible  <bruno@clisp.org>
79309         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79310         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79311         implementation.
79312         Patch by Bruce Merry <bmerry@gmail.com>.
79314 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79316         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79317         doesn't work under Windows.
79319 2008-04-16  Bruno Haible  <bruno@clisp.org>
79321         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79322         New macros.
79323         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79324         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79325         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79326         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79327         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79328         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79329         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79330         macros.
79331         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79332         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79333         Northern Sotho, Uighur.
79335 2008-04-16  Bruno Haible  <bruno@clisp.org>
79337         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79338         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79339         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79340         Reported by Daniel Bergström <daniel@octocode.com>.
79342 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79343             Bruno Haible  <bruno@clisp.org>
79345         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79346         function.
79347         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79348         New functions, mostly extracted from gl_locale_name_default.
79349         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79351 2008-04-16  Eric Blake  <ebb9@byu.net>
79353         Adjust strtod detection to catch glibc 2.7 bug.
79354         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79355         Reported by John Gatewood Ham.
79357 2008-04-16  Bruno Haible  <bruno@clisp.org>
79359         Add tentative support for Linux libc5.
79360         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79361         * lib/fpurge.c (fpurge): Likewise.
79362         * lib/freadable.c (freadable): Likewise.
79363         * lib/freadahead.c (freadahead): Likewise.
79364         * lib/freading.c (freading): Likewise.
79365         * lib/freadptr.c (freadptr): Likewise.
79366         * lib/freadseek.c (freadptrinc): Likewise.
79367         * lib/fseeko.c (rpl_fseeko): Likewise.
79368         * lib/fseterr.c (fseterr): Likewise.
79369         * lib/fwritable.c (fwritable): Likewise.
79370         * lib/fwriting.c (fwriting): Likewise.
79371         Reported by Alain Guibert <alguibert+bts@free.fr>.
79373 2008-04-15  Bruno Haible  <bruno@clisp.org>
79375         * modules/mathl (configure.ac): Define module indicator.
79377 2008-04-15  Bruno Haible  <bruno@clisp.org>
79379         * lib/logl.c (logl): Remove unused variables.
79381 2008-04-15  Bruno Haible  <bruno@clisp.org>
79383         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79384         fails.
79386 2008-04-15  Bruno Haible  <bruno@clisp.org>
79388         * lib/trim.c (trim2): Fix argument of isspace() macro.
79390 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79392         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79393         to 0.
79394         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79396 2008-04-14  Bruno Haible  <bruno@clisp.org>
79398         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79399         AC_LANG_PROGRAM argument.
79400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79401         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79403         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79404         * m4/math_h.m4 (gl_MATH_H): Likewise.
79405         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79407         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79408         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79409         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79410         * m4/regex.m4 (gl_REGEX): Likewise.
79411         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79412         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79414         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79415         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79416         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79420 2008-04-14  Jim Meyering  <meyering@redhat.com>
79422         test-strtod: fix typos: s/abs/fabs/
79423         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79425 2008-04-13  Bruno Haible  <bruno@clisp.org>
79427         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79428         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79429         module is also used and while not building the reloc-wrapper.
79431 2008-04-13  Bruno Haible  <bruno@clisp.org>
79433         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79435 2008-04-13  Bruno Haible  <bruno@clisp.org>
79437         Fix AIX compilation failure introduced on 2008-04-02.
79438         * tests/test-frexp.c (exp): Undefine before redefining.
79439         * tests/test-frexpl.c (exp): Likewise.
79441 2008-04-13  Bruno Haible  <bruno@clisp.org>
79443         Work around a HP-UX stdio bug.
79444         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79445         * tests/test-ftello.c (main): Likewise.
79446         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79447         * doc/posix-functions/ftello.texi: Likewise.
79449 2008-04-13  Bruno Haible  <bruno@clisp.org>
79451         Make test-signbit pass on HP-UX/hppa.
79452         * tests/test-signbit.c (minus_zerol): New variable.
79453         (test_signbitl): Use it.
79455 2008-04-13  Bruno Haible  <bruno@clisp.org>
79457         Make truncl work on OSF/1 4.0.
79458         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79459         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79460         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79462         HAVE_DECL_TRUNCL.
79463         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79464         HAVE_DECL_TRUNCL.
79465         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79467 2008-04-13  Bruno Haible  <bruno@clisp.org>
79469         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79471 2008-04-13  Bruno Haible  <bruno@clisp.org>
79473         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79474         expression, so as to avoid HP-UX 11 cc compiler bug.
79476 2008-04-13  Bruno Haible  <bruno@clisp.org>
79478         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79480 2008-04-13  Bruno Haible  <bruno@clisp.org>
79482         * lib/git-merge-changelog.c: Remove empty declaration outside of
79483         functions.
79485 2008-04-13  Bruno Haible  <bruno@clisp.org>
79487         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79489 2008-04-13  Bruno Haible  <bruno@clisp.org>
79491         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79492         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79494         also if it exists but lacks definitions of the SHUT_* macros.
79495         * modules/sys_socket (Description): Update.
79496         Reported by Elbert Pol <e.pol@chello.nl>.
79498 2008-04-13  Bruno Haible  <bruno@clisp.org>
79500         * lib/localcharset.c (OS2): Don't redefine if already defined.
79501         Reported by Elbert Pol <e.pol@chello.nl>.
79503 2008-04-13  Bruno Haible  <bruno@clisp.org>
79505         * lib/binary-io.h [__EMX__]: Include <io.h>.
79506         Reported by Elbert Pol <e.pol@chello.nl>.
79508 2008-04-12  Bruno Haible  <bruno@clisp.org>
79510         * lib/fpucw.h: Enable the definitions also for x86_64.
79511         Needed for NetBSD/x86_64.
79512         Reported by Thomas Klausner <tk@giga.or.at>.
79514 2008-04-12  Bruno Haible  <bruno@clisp.org>
79516         * tests/test-strtod.c: Include isnand.h.
79517         (main): Use isnand instead of isnan.
79518         Reported by Jim Meyering.
79520 2008-04-12  Bruno Haible  <bruno@clisp.org>
79522         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79523         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79525 2008-04-12  Jim Meyering  <meyering@redhat.com>
79527         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79529 2008-04-12  Bruno Haible  <bruno@clisp.org>
79531         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79532         Reported by Elbert Pol <e.pol@chello.nl>.
79534 2008-04-12  Eric Blake  <ebb9@byu.net>
79536         Work around Solaris 10 math.h bug.
79537         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79538         (gl_MATH_H_DEFAULTS): Set up default.
79539         * modules/math (Makefile.am): Replace new indicators.
79540         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79541         * tests/test-math.c (main): Test this.
79542         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79543         * doc/posix-headers/math.texi (math.h): Mention bug.
79544         Reported by Nelson H. F. Beebe and Jim Meyering.
79546 2008-04-11  Bruno Haible  <bruno@clisp.org>
79548         Adapt to future versions of Apple GCC.
79549         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79550         Reported by Peter O'Gorman <peter@pogma.com>.
79552 2008-04-11  Bruno Haible  <bruno@clisp.org>
79554         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79556 2008-04-11  Bruno Haible  <bruno@clisp.org>
79558         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79560         * modules/getaddrinfo-tests (Makefile.am): Define
79561         test_getaddrinfo_LDADD.
79563 2008-04-11  Bruno Haible  <bruno@clisp.org>
79565         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79566         (init): Fix syntax error.
79567         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79568         is declared.
79570 2008-04-11  Bruno Haible  <bruno@clisp.org>
79572         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79573         * modules/glob (Depends-on): Add stdbool.
79575 2008-04-11  Bruno Haible  <bruno@clisp.org>
79577         * lib/trim.c: Include <string.h>.
79579 2008-04-11  Eric Blake  <ebb9@byu.net>
79581         Avoid compile failure on OS/2.
79582         * lib/regex_internal.h (internal_function): Disable optimization
79583         on OS/2 (__EMX__), where it caused compiler error.
79584         Reported by Elbert Pol.
79586 2008-04-11  Bruno Haible  <bruno@clisp.org>
79588         Flush the standard error stream before aborting. Needed on mingw.
79589         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79590         * tests/test-array_list.c (ASSERT): Likewise.
79591         * tests/test-array_oset.c (ASSERT): Likewise.
79592         * tests/test-avltree_list.c (ASSERT): Likewise.
79593         * tests/test-avltree_oset.c (ASSERT): Likewise.
79594         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79595         * tests/test-binary-io.c (ASSERT): Likewise.
79596         * tests/test-byteswap.c (ASSERT): Likewise.
79597         * tests/test-c-ctype.c (ASSERT): Likewise.
79598         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79599         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79600         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79601         * tests/test-c-strstr.c (ASSERT): Likewise.
79602         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79603         * tests/test-canonicalize.c (ASSERT): Likewise.
79604         * tests/test-carray_list.c (ASSERT): Likewise.
79605         * tests/test-ceilf1.c (ASSERT): Likewise.
79606         * tests/test-ceilf2.c (ASSERT): Likewise.
79607         * tests/test-ceill.c (ASSERT): Likewise.
79608         * tests/test-count-one-bits.c (ASSERT): Likewise.
79609         * tests/test-fbufmode.c (ASSERT): Likewise.
79610         * tests/test-fflush2.c (ASSERT): Likewise.
79611         * tests/test-floorf1.c (ASSERT): Likewise.
79612         * tests/test-floorf2.c (ASSERT): Likewise.
79613         * tests/test-floorl.c (ASSERT): Likewise.
79614         * tests/test-fopen.c (ASSERT): Likewise.
79615         * tests/test-fpending.c (ASSERT): Likewise.
79616         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79617         * tests/test-fpurge.c (ASSERT): Likewise.
79618         * tests/test-freadable.c (ASSERT): Likewise.
79619         * tests/test-freadahead.c (ASSERT): Likewise.
79620         * tests/test-freading.c (ASSERT): Likewise.
79621         * tests/test-freadptr.c (ASSERT): Likewise.
79622         * tests/test-freadptr2.c (ASSERT): Likewise.
79623         * tests/test-freadseek.c (ASSERT): Likewise.
79624         * tests/test-freopen.c (ASSERT): Likewise.
79625         * tests/test-frexp.c (ASSERT): Likewise.
79626         * tests/test-frexpl.c (ASSERT): Likewise.
79627         * tests/test-fseek.c (ASSERT): Likewise.
79628         * tests/test-fseeko.c (ASSERT): Likewise.
79629         * tests/test-fstrcmp.c (ASSERT): Likewise.
79630         * tests/test-ftell.c (ASSERT): Likewise.
79631         * tests/test-ftello.c (ASSERT): Likewise.
79632         * tests/test-func.c (ASSERT): Likewise.
79633         * tests/test-fwritable.c (ASSERT): Likewise.
79634         * tests/test-fwriting.c (ASSERT): Likewise.
79635         * tests/test-getdelim.c (ASSERT): Likewise.
79636         * tests/test-getline.c (ASSERT): Likewise.
79637         * tests/test-i-ring.c (ASSERT): Likewise.
79638         * tests/test-iconv-utf.c (ASSERT): Likewise.
79639         * tests/test-iconv.c (ASSERT): Likewise.
79640         * tests/test-isfinite.c (ASSERT): Likewise.
79641         * tests/test-isnand.c (ASSERT): Likewise.
79642         * tests/test-isnanf.c (ASSERT): Likewise.
79643         * tests/test-isnanl.h (ASSERT): Likewise.
79644         * tests/test-ldexpl.c (ASSERT): Likewise.
79645         * tests/test-linked_list.c (ASSERT): Likewise.
79646         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79647         * tests/test-localename.c (ASSERT): Likewise.
79648         * tests/test-lseek.c (ASSERT): Likewise.
79649         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79650         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79651         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79652         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79653         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79654         * tests/test-mbschr.c (ASSERT): Likewise.
79655         * tests/test-mbscspn.c (ASSERT): Likewise.
79656         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79657         * tests/test-mbspbrk.c (ASSERT): Likewise.
79658         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79659         * tests/test-mbsrchr.c (ASSERT): Likewise.
79660         * tests/test-mbsspn.c (ASSERT): Likewise.
79661         * tests/test-mbsstr1.c (ASSERT): Likewise.
79662         * tests/test-mbsstr2.c (ASSERT): Likewise.
79663         * tests/test-mbsstr3.c (ASSERT): Likewise.
79664         * tests/test-memchr2.c (ASSERT): Likewise.
79665         * tests/test-memmem.c (ASSERT): Likewise.
79666         * tests/test-open.c (ASSERT): Likewise.
79667         * tests/test-printf-frexp.c (ASSERT): Likewise.
79668         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79669         * tests/test-printf-posix.c (ASSERT): Likewise.
79670         * tests/test-quotearg.c (ASSERT): Likewise.
79671         * tests/test-rbtree_list.c (ASSERT): Likewise.
79672         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79673         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79674         * tests/test-round1.c (ASSERT): Likewise.
79675         * tests/test-roundf1.c (ASSERT): Likewise.
79676         * tests/test-roundl.c (ASSERT): Likewise.
79677         * tests/test-signbit.c (ASSERT): Likewise.
79678         * tests/test-sleep.c (ASSERT): Likewise.
79679         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79680         * tests/test-snprintf.c (ASSERT): Likewise.
79681         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79682         * tests/test-stat-time.c (ASSERT): Likewise.
79683         * tests/test-strcasestr.c (ASSERT): Likewise.
79684         * tests/test-strerror.c (ASSERT): Likewise.
79685         * tests/test-striconv.c (ASSERT): Likewise.
79686         * tests/test-striconveh.c (ASSERT): Likewise.
79687         * tests/test-striconveha.c (ASSERT): Likewise.
79688         * tests/test-strsignal.c (ASSERT): Likewise.
79689         * tests/test-strstr.c (ASSERT): Likewise.
79690         * tests/test-strtod.c (ASSERT): Likewise.
79691         * tests/test-trunc1.c (ASSERT): Likewise.
79692         * tests/test-trunc2.c (ASSERT): Likewise.
79693         * tests/test-truncf1.c (ASSERT): Likewise.
79694         * tests/test-truncf2.c (ASSERT): Likewise.
79695         * tests/test-truncl.c (ASSERT): Likewise.
79696         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79697         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79698         * tests/test-vasnprintf.c (ASSERT): Likewise.
79699         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79700         * tests/test-vasprintf.c (ASSERT): Likewise.
79701         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79702         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79703         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79704         * tests/test-vsnprintf.c (ASSERT): Likewise.
79705         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79706         * tests/test-wcwidth.c (ASSERT): Likewise.
79707         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79708         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79709         * tests/test-xvasprintf.c (ASSERT): Likewise.
79710         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79711         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79712         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79713         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79714         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79715         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79716         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79717         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79718         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79719         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79720         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79721         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79722         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79723         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79724         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79725         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79726         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79727         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79728         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79729         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79730         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79731         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79732         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79733         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79734         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79735         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79736         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79737         * tests/unictype/test-combining.c (ASSERT): Likewise.
79738         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79739         * tests/unictype/test-digit.c (ASSERT): Likewise.
79740         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79741         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79742         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79743         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79744         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79745         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79746         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79747         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79748         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79749         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79750         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79751         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79752         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79753         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79754         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79755         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79756         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79757         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79758         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79759         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79760         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79761         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79762         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79763         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79764         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79765         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79766         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79767         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79768         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79769         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79770         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79771         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79772         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79773         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79774         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79775         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79776         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79777         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79778         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79779         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79780         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79781         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79782         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79783         Reported by Eric Blake.
79785 2008-04-11  Bruno Haible  <bruno@clisp.org>
79787         * lib/wchar.in.h: Tweak comment.
79789 2008-04-11  Bruno Haible  <bruno@clisp.org>
79791         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79792         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79793         gl_COMMON.
79794         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79796 2008-04-11  Bruno Haible  <bruno@clisp.org>
79798         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79800 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79802         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79803         of attempting to use non-existing /dev/*random.  Based on patch
79804         from Adam Strzelecki <ono@java.pl> in
79805         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79807 2008-04-08  Bruno Haible  <bruno@clisp.org>
79809         Add tentative support for emx+gcc.
79810         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79811         * lib/fpurge.c (fpurge): Likewise.
79812         * lib/freadable.c (freadable): Likewise.
79813         * lib/freadahead.c (freadahead): Likewise.
79814         * lib/freading.c (freading): Likewise.
79815         * lib/freadptr.c (freadptr): Likewise.
79816         * lib/freadseek.c (freadptrinc): Likewise.
79817         * lib/fseeko.c (rpl_fseeko): Likewise.
79818         * lib/fseterr.c (fseterr): Likewise.
79819         * lib/fwritable.c (fwritable): Likewise.
79820         * lib/fwriting.c (fwriting): Likewise.
79821         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79823 2008-04-09  Eric Blake  <ebb9@byu.net>
79825         Avoid some autoconf warnings.
79826         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79827         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79828         * m4/afs.m4 (gl_AFS): Likewise.
79829         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79830         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79832         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79833         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79834         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79835         (AC_CHECK_DECLS_ONCE): Likewise.
79836         Rename file...
79837         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79838         gnulib-tool requires autoconf 2.59 or better.
79839         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79841 2008-04-08  Eric Blake  <ebb9@byu.net>
79843         Use 'git describe --match' if present (added in git 1.5.5).
79844         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79845         if possible.
79847 2008-04-08  Bruno Haible  <bruno@clisp.org>
79849         Add tentative support for OpenServer.
79850         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79851         _ptr, _cnt.
79852         * lib/fpurge.c (fpurge): Likewise.
79853         * lib/freadable.c (freadable): Likewise.
79854         * lib/freadahead.c (freadahead): Likewise.
79855         * lib/freading.c (freading): Likewise.
79856         * lib/freadptr.c (freadptr): Likewise.
79857         * lib/freadseek.c (freadptrinc): Likewise.
79858         * lib/fseeko.c (rpl_fseeko): Likewise.
79859         * lib/fseterr.c (fseterr): Likewise.
79860         * lib/fwritable.c (fwritable): Likewise.
79861         * lib/fwriting.c (fwriting): Likewise.
79862         Reported by Roger Cornelius <rac@tenzing.org> and
79863         Brian K. White <brian@aljex.com>.
79865 2008-04-06  Jim Meyering  <meyering@redhat.com>
79867         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79869 2008-04-06  Bruno Haible  <bruno@clisp.org>
79871         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79872         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79873         * tests/test-printf-posix.sh: Likewise.
79874         * tests/test-vfprintf-posix.sh: Likewise.
79875         * tests/test-vprintf-posix.sh: Likewise.
79876         * tests/test-xprintf-posix.sh: Likewise.
79878 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79880         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79881         hide error from 'ls', needed on OS/2.
79882         Report by Elbert Pol <elbert.pol@gmail.com>.
79884 2008-04-04  Eric Blake  <ebb9@byu.net>
79886         Make test-fseeko.c failures meaningful.
79887         * tests/test-fseeko.c: Print line number on failure.
79888         * tests/test-fseek.c: Likewise.
79889         Reported by Nelson H. F. Beebe.
79891         Improve strtod bug detection check.
79892         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79893         required for Solaris 10.
79894         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79896 2008-04-04  Bruno Haible  <bruno@clisp.org>
79898         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79899         by m4/setenv.m4.
79901 2008-04-03  Eric Blake  <ebb9@byu.net>
79903         Ensure sane .version contents.
79904         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79905         version string.
79906         * build-aux/git-version-gen: Improve documentation.
79908         Make GNU make output nicer.
79909         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79910         MAKECMDGOALS to enforce message for all command line targets.  Set
79911         srcdir for use in maint.mk.
79913         Another maintainer tweak.
79914         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79915         a target that regenerates version.
79917 2008-04-03  Jim Meyering  <meyering@redhat.com>
79919         vc-list-files: don't cause coreutils "make po-check" failure
79920         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79922 2008-04-03  Eric Blake  <ebb9@byu.net>
79924         Allow VPATH usage of vc-list-files.
79925         * build-aux/vc-list-files (scriptversion): Add timestamp.
79926         (options): Add --help, --version, -C.
79927         (CVS): Support installed cvsu.
79929 2008-04-02  Bruno Haible  <bruno@clisp.org>
79931         Avoid some "statement with no effect" warnings from gcc.
79932         * tests/test-wctype.c (main): Explicitly ignore unused values.
79933         Reported by Jim Meyering.
79935 2008-04-02  Jim Meyering  <meyering@redhat.com>
79937         Avoid some warnings from "gcc -Wshadow".
79938         * tests/test-frexp.c (exp): Define to a different identifier.
79939         * tests/test-frexpl.c (exp): Likewise.
79941 2008-04-03  Jim Meyering  <meyering@redhat.com>
79943         bootstrap: remove dangling *.[ch] symlinks from lib
79944         * build-aux/bootstrap [dangling symlink removal]: Move find's
79945         -depth option to precede all others, to avoid a warning.
79946         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79948 2008-04-02  Bruno Haible  <bruno@clisp.org>
79950         Avoid some warnings from "gcc -Wshadow".
79951         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79952         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79953         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79954         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79955         Reported by Jim Meyering.
79957 2008-04-01  Bruno Haible  <bruno@clisp.org>
79959         Fix test to work on IRIX 6.5 with cc.
79960         * tests/test-math.c (numeric_equal): New function.
79961         (main): Use it.
79963 2008-04-01  Bruno Haible  <bruno@clisp.org>
79965         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79967 2008-04-01  Bruno Haible  <bruno@clisp.org>
79969         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79970         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79971         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79972         (Depends-on): Remove math.
79974         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79975         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79976         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79977         (Depends-on): Remove math.
79979         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79980         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79981         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79982         (Depends-on): Remove math.
79983         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79984         (Depends-on): Remove math.
79986         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79987         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79988         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79989         (Depends-on): Remove math.
79990         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79991         (Depends-on): Remove math.
79993         * tests/test-round1.c: Include nan.h.
79994         (main): Use NaNd instead of NAN.
79995         * modules/round-tests (Files): Add tests/nan.h.
79997         * tests/test-trunc1.c: Include nan.h.
79998         (main): Use NaNd instead of NAN.
79999         * modules/trunc-tests (Files): Add tests/nan.h.
80001         * tests/test-roundf1.c: Include nan.h.
80002         (main): Use NaNf instead of NAN.
80003         * modules/roundf-tests (Files): Add tests/nan.h.
80005         * tests/test-truncf1.c: Include nan.h.
80006         (main): Use NaNf instead of NAN.
80007         * modules/truncf-tests (Files): Add tests/nan.h.
80009         * tests/test-ceilf1.c: Include nan.h.
80010         (main): Use NaNf instead of NAN.
80011         * modules/ceilf-tests (Files): Add tests/nan.h.
80013         * tests/test-floorf1.c: Include nan.h.
80014         (main): Use NaNf instead of NAN.
80015         * modules/floorf-tests (Files): Add tests/nan.h.
80017         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
80018         (main): Use NaNf instead of NAN.
80019         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
80021         * tests/test-isnand.c: Include nan.h instead of <math.h>.
80022         (main): Use NaNd instead of NAN.
80023         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
80025         * tests/test-frexp.c: Include nan.h.
80026         (main): Use NaNd instead of NAN.
80027         * modules/frexp-tests (Files): Add tests/nan.h.
80029         * lib/isnan.c: Don't include <math.h>.
80030         (FUNC): Don't use NAN macro.
80031         * modules/isnand-nolibm (Depends-on): Remove math.
80032         * modules/isnanf-nolibm (Depends-on): Remove math.
80033         * modules/isnanl (Depends-on): Remove math.
80034         * modules/isnanl-nolibm (Depends-on): Remove math.
80036         * tests/nan.h: New file.
80038 2008-04-01  Eric Blake  <ebb9@byu.net>
80040         Fix typos.
80041         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
80042         values to be the right type.
80044         For now, cater to gnulib strtod inaccuracies.
80045         * tests/test-strtod.c (main): Allow 1-ulp error on expected
80046         fractional results.  While not as nice from a QoI perspective, it
80047         is a quicker patch than correctly implementing decimal to binary
80048         rounding.
80050 2008-03-31  Eric Blake  <ebb9@byu.net>
80052         Guarantee a definition of NAN.
80053         * lib/math.in.h (NAN): Define if missing.
80054         * tests/test-math.c (main): Test it.
80055         * doc/posix-headers/math.texi (math.h): Document this.
80056         * lib/isnan.c (rpl_isnand): Use it.
80057         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
80058         * tests/test-floorf1.c (NaN): Likewise.
80059         * tests/test-frexp.c (NaN): Likewise.
80060         * tests/test-isnand.c (NaN): Likewise.
80061         * tests/test-isnanf.c (NaN): Likewise.
80062         * tests/test-round1.c (NaN): Likewise.
80063         * tests/test-roundf1.c (NaN): Likewise.
80064         * tests/test-snprintf-posix.h (NaN): Likewise.
80065         * tests/test-sprintf-posix.h (NaN): Likewise.
80066         * tests/test-trunc1.c (NaN): Likewise.
80067         * tests/test-truncf1.c (NaN): Likewise.
80068         * tests/test-vasnprintf-posix.c (NaN): Likewise.
80069         * tests/test-vasprintf-posix.c (NaN): Likewise.
80070         * modules/isnand-nolibm (Depends-on): Add math.
80071         * modules/isnanf-nolibm (Depends-on): Likewise.
80072         * modules/isnanl (Depends-on): Likewise.
80073         * modules/isnanl-nolibm (Depends-on): Likewise.
80074         * modules/snprintf-posix-tests (Depends-on): Likewise.
80075         * modules/sprintf-posix-tests (Depends-on): Likewise.
80076         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
80077         * modules/vsprintf-posix-tests (Depends-on): Likewise.
80078         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
80079         * modules/vasprintf-posix-tests (Depends-on): Likewise.
80081 2008-03-31  Bruno Haible  <bruno@clisp.org>
80083         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
80084         * doc/posix-functions/strtod.texi: Likewise.
80086 2008-03-31  Bruno Haible  <bruno@clisp.org>
80088         * tests/test-strtod.c (main): Don't use C99 syntax.
80090 2008-03-31  Bruno Haible  <bruno@clisp.org>
80092         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
80093         Reported by Eric Blake.
80095 2008-03-31  Jim Meyering  <meyering@redhat.com>
80097         Don't compare actual signbit return values.
80098         * tests/test-strtod.c (main): Rather, compare only their
80099         zero/non-zero nature.
80101 2008-03-31  Eric Blake  <ebb9@byu.net>
80103         More strtod documentation.
80104         * doc/posix-functions/strtod.texi (strtod): Interpret more test
80105         failures as distinct bugs.
80107 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80109         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80110         Problem reported by Erik Benada in
80111         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80113 2008-03-30  Bruno Haible  <bruno@clisp.org>
80115         * tests/test-strtod.c: Add comments about which assertion fails on which
80116         platform.
80117         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80119 2008-03-30  Eric Blake  <ebb9@byu.net>
80121         Test signbit behavior on zeros.
80122         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80123         (test_signbitd, test_signbitl): Likewise.
80125         More strtod touchups.
80126         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80127         sign of negative underflow, for now.  Use .5, not .1.
80128         * doc/posix-functions/strtod.texi (strtod): Mention these
80129         limitations.
80130         Reported by Jim Meyering.
80132 2008-03-30  Bruno Haible  <bruno@clisp.org>
80134         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80135         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80137 2008-03-30  Bruno Haible  <bruno@clisp.org>
80139         Avoid failure when attempting to return empty iconv results on some
80140         platforms.
80141         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80142         allocation, don't report ENOMEM when the resulting string is empty.
80144 2008-03-30  Bruno Haible  <bruno@clisp.org>
80146         Fix buffer overrun.
80147         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80148         Don't consider the width for tmp_length. Check count against tmp_length
80149         before doing the padding. Ensure enough allocation during padding.
80151 2008-03-30  Eric Blake  <ebb9@byu.net>
80153         strtod touchups.
80154         * lib/strtod.c (strtod): Avoid compiler warnings.
80155         Reported by Jim Meyering.
80157 2008-03-30  Bruno Haible  <bruno@clisp.org>
80159         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80160         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80161         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80162         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80163         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80164         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80165         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80166         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80168         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80169         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80170         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80171         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80172         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80173         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80174         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80175         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80177         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80178         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80179         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80180         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80181         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80182         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80183         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80184         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80186         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80187         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80189         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80190         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80192         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80193         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80195         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80196         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80197         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80199         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80201         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80203         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80205         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80207         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80209         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80211         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80212         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80214         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80215         (Depends-on): Add EOVERFLOW.
80216         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80217         (Depends-on): Add EOVERFLOW.
80218         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80219         (Depends-on): Add EOVERFLOW.
80220         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80221         (Depends-on): Add EOVERFLOW.
80222         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80223         (Depends-on): Add EOVERFLOW.
80224         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80225         (Depends-on): Add EOVERFLOW.
80226         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80227         (Depends-on): Add EOVERFLOW.
80228         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80229         (Depends-on): Add EOVERFLOW.
80231         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80233         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80235         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80237         * modules/snprintf (Depends-on): Add EOVERFLOW.
80239         * lib/poll.c (EOVERFLOW): Remove fallback.
80240         * modules/poll (Depends-on): Add EOVERFLOW.
80242         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80243         * modules/getugroups (Depends-on): Add EOVERFLOW.
80245         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80246         * modules/getdelim (Depends-on): Add EOVERFLOW.
80248         * lib/ftell.c (EOVERFLOW): Remove fallback.
80249         * modules/ftell (Depends-on): Add EOVERFLOW.
80251         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80253         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80255         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80257         * modules/EOVERFLOW-tests: New file.
80258         * tests/test-EOVERFLOW.c: New file.
80260         * modules/EOVERFLOW: New file.
80261         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80263 2008-03-30  Bruno Haible  <bruno@clisp.org>
80265         Fix bug introduced on 2007-06-10.
80266         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80267         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80269 2008-03-30  Bruno Haible  <bruno@clisp.org>
80271         Improve freadseek's efficiency after ungetc.
80272         * lib/freadseek.c: Include freadahead.h.
80273         (freadptrinc): New function, extracted from freadseek.
80274         (freadseek): Use it in a loop. Use freadahead to determine the number
80275         of loop iterations.
80276         * modules/freadseek (Depends-on): Add freadahead.
80277         (configure.ac): Require AC_C_INLINE.
80279 2008-03-30  Bruno Haible  <bruno@clisp.org>
80281         * lib/freadseek.c (freadseek): Don't ignore the return value of
80282         freadptr.
80284 2008-03-29  Eric Blake  <ebb9@byu.net>
80286         Add hex float support.
80287         * modules/strtod (Depends-on): Add c-ctype.
80288         (Link): Mention POW_LIB.
80289         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80290         whitespace between 'e' and exponent.
80291         * tests/test-strtod.c (main): Enable hex float tests.
80292         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80293         now provides.
80295         Document various strtod bugs, with some fixes.
80296         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80297         "-0x", "inf", "nan", and hex constants.
80298         * doc/posix-functions/atof.texi (atof): Likewise.
80299         * modules/stdlib (Makefile.am): Support strtod.
80300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80301         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80302         detect additional strtod bugs.
80303         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80304         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80305         bool where appropriate.  Parse 'inf' and 'nan'.
80306         * tests/test-strtod.c: New file.
80307         * modules/strtod (Depends-on): Add stdbool, stdlib.
80308         (configure.ac): Turn on module indicator.
80309         * modules/strtod-tests: New module.
80311 2008-03-29  Eric Blake  <ebb9@byu.net>
80313         Fix ftell on mingw.
80314         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80315         * modules/ftell-tests (Depends-on): Add binary-io.
80316         * modules/ftello-tests (Depends-on): Likewise.
80317         * tests/test-ftell.c (main): Enhance test to cover behavior after
80318         ungetc.  Enforce binary mode.
80319         * tests/test-ftello.c (main): Likewise.
80321         Pass test-freadseek on cygwin.
80322         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80323         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80324         ungetc buffer.
80326         * tests/test-fflush2.c (main): Fix typo.
80328 2008-03-29  Bruno Haible  <bruno@clisp.org>
80330         * tests/test-fflush2.c (main): Temporarily disable the contents of
80331         this test.
80332         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80333         Reported by Eric Blake.
80335 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80337         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80338         (GC_SHA224_DIGEST_SIZE): Add.
80340         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80341         (gc_hash_digest_length): Likewise.
80342         (gc_hash_buffer): Likewise.
80344 2008-03-25  Bruno Haible  <bruno@clisp.org>
80346         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80347         detail which gettext release to use.
80348         Reported by Simon Josefsson.
80350 2008-03-26  Jim Meyering  <meyering@redhat.com>
80352         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80353         * modules/gnumakefile (clean-GNUmakefile): Also, use
80354         test ... && ... || : syntax rather than if-then ... fi.
80356         gnumakefile: Don't double-quote-expand $(VPATH) value.
80357         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80359 2008-03-24  Eric Blake  <ebb9@byu.net>
80361         Alter GNUmakefile to install into top directory.
80362         * modules/maintainer-makefile: Split, and add dependency...
80363         * modules/gnumakefile: to this new module.
80364         * build-aux/GNUmakefile: Move...
80365         * top/GNUmakefile: ...here.
80366         * build-aux/maint.mk: Move...
80367         * top/maint.mk: ...here.
80368         * MODULES.html.sh (Support for maintaining...): Document new
80369         module.
80371 2008-03-23  Bruno Haible  <bruno@clisp.org>
80373         * gnulib-tool: New options --vc-files, --no-vc-files.
80374         (func_usage): Document them.
80375         (vc_files): New variable.
80376         (func_import): Consider vc_files.
80377         (func_create_testdir): Set vc_files to empty.
80378         Suggested by Jim Meyering and Karl Berry.
80380 2008-03-23  Bruno Haible  <bruno@clisp.org>
80382         Fix regex compilation error on HP-UX 11.
80383         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80384         * modules/regex (Files): Add m4/mbstate_t.m4.
80385         Reported by Ton Voon <ton.voon@altinity.com>.
80387 2008-03-23  Bruno Haible  <bruno@clisp.org>
80389         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80391 2008-03-23  Eric Blake  <ebb9@byu.net>
80392             Bruno Haible  <bruno@clisp.org>
80394         Install files from top/ in the destination directory.
80395         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80396         augmentation also for the files from top/.
80397         (func_import, func_create_testdir): Rewrite file names:
80398         top/filename -> filename.
80400 2008-03-23  Bruno Haible  <bruno@clisp.org>
80402         Tweak "gnulib --version" output.
80403         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80405 2008-03-23  Bruno Haible  <bruno@clisp.org>
80407         Tweak "gnulib --version" output.
80408         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80409         rather than contents of ChangeLog, when possible.
80411 2008-03-21  Eric Blake  <ebb9@byu.net>
80413         More --version tweaks.
80414         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80415         date of last ChangeLog entry.
80417 2008-03-21  Jim Meyering  <meyering@redhat.com>
80419         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80421 2008-03-20  Eric Blake  <ebb9@byu.net>
80423         VPATH fix.
80424         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80426 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80428         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80429         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80431 2008-03-20  Eric Blake  <ebb9@byu.net>
80433         Sync GNUmakefile with coreutils.
80434         * build-aux/GNUmakefile (have-Makefile): Rename...
80435         (_have-Makefile): ...to this, for namespace consideration.
80436         (GNUmakefile.cfg): Include, if present.
80437         (_autoreconf): Define a default.
80438         (_is-dist-target): New rule for rebuilds to pick up intra-release
80439         version.
80440         (maint-cfg.mk): Rename...
80441         (cfg.mk): ...to this.
80443 2008-03-18  Jim Meyering  <meyering@redhat.com>
80445         New script and module: mktempd
80446         * MODULES.html.sh (maint+release support): Add mktempd.
80447         * build-aux/mktempd: New file.
80448         * modules/mktempd: New file.
80450 2008-03-15  Jim Meyering  <meyering@redhat.com>
80452         Undo last change.
80453         * lib/sha1.c, lib/md5.c: 63 != ~63.
80454         Reported by Andreas Schwab.
80456         sha1.c, md5.c: Hoist a redundant expression.
80457         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80458         "ctx->buflen" only once, before calling *_process_block.
80459         * lib/md5.c (md5_process_bytes): Likewise.
80461 2008-03-14  Eric Blake  <ebb9@byu.net>
80463         Bump copyright year in files generated by gnulib-tool.
80464         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80465         gnulib-tool, rather than hard-coding it.
80467         Fix 'gnulib-tool --version' output to work with git.
80468         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80469         (startup): ...here.
80470         (func_version): Use it to invoke git-version-gen, rather than
80471         relying on CVS keyword expansion.  Modernize wording.
80472         (cvsdatestamp, last_checkin_date, version): Kill unused
80473         variables.
80475 2008-03-12  Jim Meyering  <meyering@redhat.com>
80477         Recognize optional cast of the argument to free.
80478         * build-aux/useless-if-before-free: Update regexps.
80480         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80482 2008-03-11  Bruno Haible  <bruno@clisp.org>
80484         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80485         by a single package.
80486         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80487         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80488         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80489         Reported by Sam Steingold <sds@gnu.org>.
80491 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80493         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80494         repositories.
80496 2008-03-11  Bruno Haible  <bruno@clisp.org>
80498         Avoid conflicts between local macro definitions.
80499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80500         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80502 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80503             Bruno Haible  <bruno@clisp.org>
80505         Make va_copy work with some version of xlc on AIX 5.1.
80506         * lib/stdarg.in.h: New file.
80507         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80508         On AIX, use a <stdarg.h> file substitute.
80509         * modules/stdarg (Files): Add lib/stdarg.in.h.
80510         (Depends-on): Add include_next.
80511         (Makefile.am): Build a stdarg.h substitute if requested.
80512         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80514 2008-03-10  Bruno Haible  <bruno@clisp.org>
80516         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80518         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80520 2008-03-10  Bruno Haible  <bruno@clisp.org>
80522         * modules/stdlib (Depends-on): Add include_next, remove
80523         absolute-header.
80525 2008-03-09  Bruno Haible  <bruno@clisp.org>
80527         * lib/freadahead.h (freadahead): Document more precisely.
80528         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80529         the sum of both buffer sizes.
80530         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80531         * NEWS: Document the change.
80533 2008-03-09  Bruno Haible  <bruno@clisp.org>
80535         Extend freadptr to return also the buffer size.
80536         * lib/freadptr.h (freadptr): Add sizep argument.
80537         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80538         (freadptr): Add sizep argument. Determine buffer size like freadahead
80539         does.
80540         * tests/test-freadptr.c: Don't include freadahead.h.
80541         (main): Adapt for new calling convention of freadptr.
80542         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80543         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80544         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80545         tests/test-freadptr2.sh.
80546         (Depends): Remove freadahead.
80547         (TESTS): Add test-freadptr2.sh.
80548         (check_PROGRAMS): Add test-freadptr2.
80550 2008-03-09  Bruno Haible  <bruno@clisp.org>
80552         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80553         Report and solution by Simon Josefsson.
80555 2008-03-06  Bruno Haible  <bruno@clisp.org>
80557         Make fflush after ungetc work on BSD platforms.
80558         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80559         * tests/test-fflush2.c: New file.
80560         * tests/test-fflush2.sh: New file.
80561         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80562         tests/test-fflush2.c.
80563         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80564         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80566 2008-03-06  Eric Blake  <ebb9@byu.net>
80568         Likewise for ftello.
80569         * modules/ftello (Dependencies): Add extensions.
80570         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80572 2008-03-06  Bruno Haible  <bruno@clisp.org>
80574         * modules/fseeko (Dependencies): Add extensions.
80575         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80576         Needed on glibc systems.
80578 2008-03-06  Bruno Haible  <bruno@clisp.org>
80580         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80581         email address.
80582         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80584 2008-03-06  Bruno Haible  <bruno@clisp.org>
80586         * users.txt: Add libgnupdf.
80588 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80590         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80591         (Header File Substitutes, Function Substitutes,
80592         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80593         (Build robot for gnulib): Fix typo.
80595 2008-03-06  Bruno Haible  <bruno@clisp.org>
80597         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80598         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80600 2008-03-06  Bruno Haible  <bruno@clisp.org>
80602         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80603         * doc/gnulib.texi: Include it.
80605 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80607         * modules/func (License): Change license to unlimited; there was
80608         no LGPL parts in the module anyway.
80610 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80612         * modules/__func__: Renamed to modules/func.
80613         * modules/__func__-tests: Renamed to modules/func-tests.
80614         * tests/test-__func__.c: Renamed to tests/test-func.c.
80615         * m4/__func__.m4: Renamed to m4/func.m4.
80616         * doc/gnulib.texi (__func__): Section renamed to func.
80617         Suggested by Eric Blake <ebb9@byu.net>.
80619 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80621         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80622         about __func__.  Make example self-contained.  Suggested by Eric
80623         Blake <ebb9@byu.net>.
80625         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80626         Suggested by Eric Blake <ebb9@byu.net>.
80628 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80630         * modules/__func__: New file.
80631         * modules/__func__-tests: New file.
80632         * tests/test-__func__.c: New file.
80633         * m4/__func__.m4: New file.
80634         * doc/gnulib.texi (__func__): Document __func__ module.
80636 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80638         * modules/byteswap (License): Re-license as LGPLv2+.
80640 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80642         * doc/Makefile: Add pdf target.
80644 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80646         * modules/inline (License): Use 'unlimited', since there are only
80647         *.m4 files in this module.
80649 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80650             Bruno Haible  <bruno@clisp.org>
80652         Add support for HP C 7.1 on OpenVMS 8.3.
80653         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80655 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80657         Update VMS specifics.
80658         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80660 2008-03-02  Jim Meyering  <meyering@redhat.com>
80662         Remove the last dependency on the "free" module.
80663         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80664         Reported by Bob Proulx.
80666         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80668         Remove useless "if" tests before free.  Deprecate "free" module.
80669         * doc/posix-functions/free.texi: Mention that this
80670         module is no longer useful.
80671         * modules/free (Notice): Say this module is obsolete.
80672         * modules/readutmp (Depends-on): Remove free.
80673         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80674         * lib/putenv.c (putenv): Likewise.
80675         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80676         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80677         * tests/test-c-strcasestr.c (main): Likewise.
80678         * tests/test-c-strstr.c (main): Likewise.
80679         * tests/test-mbscasestr1.c (main): Likewise.
80680         * tests/test-mbscasestr2.c (main): Likewise.
80681         * tests/test-mbsstr1.c (main): Likewise.
80682         * tests/test-mbsstr2.c (main): Likewise.
80683         * tests/test-memmem.c (main): Likewise.
80684         * tests/test-strcasestr.c (main): Likewise.
80685         * tests/test-striconv.c (main): Likewise.
80686         * tests/test-striconveh.c (main): Likewise.
80687         * tests/test-striconveha.c (main): Likewise.
80688         * tests/test-strstr.c (main): Likewise.
80690         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80692         bootstrap: sync from coreutils again
80693         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80695 2008-03-01  Jim Meyering  <meyering@redhat.com>
80697         bootstrap: sync from coreutils
80698         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80699         also when the target doesn't exist.
80701 2008-03-01  Eric Blake  <ebb9@byu.net>
80703         Fix bugs in last patch.
80704         * lib/memchr2.c (memchr2): Fix typo.
80705         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80706         extension.
80707         Reported by Bruce Korb.
80709         New module 'memchr2'.
80710         * modules/memchr2: New file.
80711         * modules/memchr2-tests: Likewise.
80712         * lib/memchr2.h: Likewise.
80713         * lib/memchr2.c: Likewise, based on memchr.c.
80714         * tests/test-memchr2.c: New test.
80715         * MODULES.html.sh (String handling): Add memchr2.
80717 2008-02-29  Bruno Haible  <bruno@clisp.org>
80719         * modules/freadseek-tests: New file.
80720         * tests/test-freadseek.sh: New file.
80721         * tests/test-freadseek.c: New file.
80723         New module 'freadseek'.
80724         * modules/freadseek: New file.
80725         * lib/freadseek.h: New file.
80726         * lib/freadseek.c: New file.
80727         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80729 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80731         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80732         wydawca.
80734         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80735         program_invocation_name and program_invocation_short_name are
80736         present.
80738 2008-02-28  Bruno Haible  <bruno@clisp.org>
80740         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80741         * tests/test-freadptr.sh: Also test non-seekable stdin.
80743 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80745         * build-aux/bootstrap (source_base, m4_base)
80746         (doc_base, tests_base): New variables.
80747         (gnulib_tool_options): Do not hardcode base directories, use
80748         the above variables instead.
80750 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80752         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80754 2008-02-28  Bruno Haible  <bruno@clisp.org>
80756         * modules/freadptr-tests: New file.
80757         * tests/test-freadptr.sh: New file.
80758         * tests/test-freadptr.c: New file.
80760         New module 'freadptr'.
80761         * modules/freadptr: New file.
80762         * lib/freadptr.h: New file.
80763         * lib/freadptr.c: New file.
80764         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80766 2008-02-26  Karl Berry  <karl@freefriends.org>
80768         Sync from Libtool:
80769         * libltdl/argz.c (argz_add, argz_count): New functions.
80770         * libltdl/argz.in.h: Declare them.
80771         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80773 2008-02-22  Bruno Haible  <bruno@clisp.org>
80775         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80776         is a pointer type.  Needed for HP-UX 10.
80777         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80778         * doc/posix-functions/gmtime_r.texi: Likewise.
80779         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80781 2008-02-24  Bruno Haible  <bruno@clisp.org>
80783         * modules/environ-tests: New file.
80784         * tests/test-environ.c: New file.
80786         New module 'environ'.
80787         * modules/environ: New file.
80788         * lib/unistd.in.h (environ): New declaration.
80789         * m4/environ.m4: New file.
80790         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80791         after use.
80792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80793         HAVE_DECL_ENVIRON.
80794         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80795         HAVE_DECL_ENVIRON.
80796         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80797         wrong claim that 'environ' is missing on some systems.
80798         * modules/execute (Depends-on): Add environ.
80799         * lib/execute.c (environ): Remove fallback declaration.
80800         * modules/pipe (Depends-on): Add environ.
80801         * lib/pipe.c (environ): Remove fallback declaration.
80802         * modules/setenv (Depends-on): Add environ.
80803         * lib/setenv.c (environ): Remove fallback declaration.
80804         * modules/unsetenv (Depends-on): Add environ.
80805         * lib/unsetenv.c (environ): Remove fallback declaration.
80806         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80807         m4/environ.m4.
80808         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80809         (gl_PREREQ_UNSETENV): Likewise.
80811 2008-02-24  Bruno Haible  <bruno@clisp.org>
80813         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80815 2008-02-20  Bob Proulx  <bob@proulx.com>
80817         Enable use of older two part flavor 'git describe'.
80818         * build-aux/git-version-gen: If using the older two part flavor of
80819         git version then recreate the third part now present in the
80820         newer three part flavor of git describe.
80822 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80824         * lib/fts.c (fts_build): Typo correction to comment.
80826 2008-02-17  Bruno Haible  <bruno@clisp.org>
80828         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80829         generating no-op conflicts.
80831 2008-02-17  Bruno Haible  <bruno@clisp.org>
80833         Speed up by 10%.
80834         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80835         result_entries, rather than an index-based loop.
80837 2008-02-17  Bruno Haible  <bruno@clisp.org>
80839         Speed up by 25%.
80840         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80841         'hashcode_cached'.
80842         (entry_create): New function.
80843         (entry_hashcode): Use the cached hashcode if possible.
80844         (read_changelog_file, try_split_merged_entry): Use entry_create.
80846 2008-02-17  Bruno Haible  <bruno@clisp.org>
80848         Speed up from O(n^2) to O(n) for long ChangeLog files.
80849         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80850         (read_changelog_file): Change implementation of entries_reversed list
80851         to rbtreehash.
80852         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80854 2008-02-17  Bruno Haible  <bruno@clisp.org>
80856         New option --split-merged-entry.
80857         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80858         (find_paragraph_end, try_split_merged_entry): New functions.
80859         (long_options): Add option --split-merged-entry.
80860         (usage): Document option --split-merged-entry.
80861         (main): Implement option --split-merged-entry.
80862         Reported by Eric Blake.
80864 2008-02-17  Bruno Haible  <bruno@clisp.org>
80866         * lib/git-merge-changelog.c: Include c-strstr.h.
80867         (main): Support the "git pull --rebase" situation.
80868         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80869         Reported by Eric Blake.
80871 2008-02-16  Eric Blake  <ebb9@byu.net>
80873         Avoid doubling \ in common case of "c-maybe" quoting style.
80874         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80875         eliding outer quotes.
80876         * lib/quotearg.h: Document this.
80877         * tests/test-quotearg.c (result_strings, inputs, results_g)
80878         (flag_results, locale_results): Test it by adding a new string to
80879         each test group.
80880         (compare_strings): Test new string.
80882 2008-02-13  Eric Blake  <ebb9@byu.net>
80884         Avoid trigraph quoting in default output.
80885         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80886         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80887         unless explicitly requested.
80888         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80890 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80892         Don't rely on signed integer overflowing to negative value.
80893         * lib/getugroups.c (getugroups): Include <limits.h>.
80894         Instead, compare against INT_MAX, and increment only if the test passes.
80896 2008-02-13  Jim Meyering  <meyering@redhat.com>
80897         and Eric Blake  <ebb9@byu.net>
80899         Avoid shadowing warning and compile errors on Linux.
80900         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80901         forwarding macros on Linux.
80902         (dcgettext): Define a stub, for Linux.
80903         (results_g, main): Avoid warnings.
80905 2008-02-12  Eric Blake  <ebb9@byu.net>
80907         Silence warning in last patch.
80908         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80910         Quotearg part 4: add tests, fix c-maybe colon quoting.
80911         * lib/quotearg.h: Improve documentation.
80912         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80913         escapes when adding outer quotes.  When quoting trigraphs, use
80914         valid C notation.  When quoting NUL, omit extra characters if next
80915         character is not digit.  Alter prototype.
80916         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80917         callers.
80918         * modules/quotearg-tests: New module.
80919         * tests/test-quotearg.c: New test.
80921 2008-02-07  Eric Blake  <ebb9@byu.net>
80923         Quotearg part 3: add flag to control outer quote elision.
80924         * lib/quotearg.h (c_maybe_quoting_style): New style.
80925         (enum quoting_flags): Better documentation of flags.
80926         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80927         c-maybe style.
80928         (quotearg_buffer_restyled): Handle new flag to elide outer
80929         quotes.
80931         Quotearg part 2: add flag that can control NUL elision.
80932         * lib/quotearg.h (set_quoting_flags): New prototype.
80933         * lib/quotearg.c (struct quoting_options): Add flag field.
80934         (set_quoting_flags): New function.
80935         (quotearg_buffer_restyled): Add flags parameter.
80936         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80937         (quotearg_n_options): Set the flag, since length cannot be
80938         returned.
80939         (quoting_options_from_style): Default flags correctly.
80941         Quotearg part 1: more wrappers, restore quotearg_char state.
80942         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80943         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80944         (quotearg_colon_mem): New wrappers.
80945         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80946         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80947         functions.
80948         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80949         (quotearg_colon_mem): New functions.
80951 2008-02-11  Bruno Haible  <bruno@clisp.org>
80953         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80954         library in the current directory: it does not work with parallel make.
80955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80957 2008-02-11  Bruno Haible  <bruno@clisp.org>
80959         * .gitattributes: New file.
80961 2008-02-11  Jim Meyering  <meyering@redhat.com>
80963         useless-if-before-free: Fix reversed exit values.
80964         * build-aux/useless-if-before-free: Use correct values
80965         for EXIT_MATCH and EXIT_NO_MATCH.
80967         * build-aux/useless-if-before-free: Close stdout carefully.
80969 2008-02-10  Bruno Haible  <bruno@clisp.org>
80971         New module 'git-merge-changelog'.
80972         * modules/git-merge-changelog: New file.
80973         * lib/git-merge-changelog.c: New file.
80975 2008-02-10  Jim Meyering  <meyering@redhat.com>
80977         useless-if-before-free: New option: --list (-l).
80979         useless-if-before-free: Don't exit immediately upon open failure.
80980         * build-aux/useless-if-before-free: Exit 2 for errors.
80981         Upon failure to open a file, don't exit immediately.
80982         Rather, just warn and continue with any remaining files.
80984 2008-02-10  Bruno Haible  <bruno@clisp.org>
80986         New abstract list operation 'node_set_value'.
80987         * lib/gl_list.h (gl_list_node_set_value): New function.
80988         (struct gl_list_implementation): New field node_set_value.
80989         * lib/gl_list.c (gl_list_node_set_value): New function.
80990         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80991         (gl_array_list_implementation): Update.
80992         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80993         (gl_carray_list_implementation): Update.
80994         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80995         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80996         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80997         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80998         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80999         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
81000         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
81001         Update.
81002         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
81003         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
81004         (gl_sublist_list_implementation): Update.
81006 2008-02-10  Bruno Haible  <bruno@clisp.org>
81008         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
81009         Needed when ELEMENT is #defined to 'some_type *'.
81011 2008-02-10  Jim Meyering  <meyering@redhat.com>
81013         New script and module: useless-if-before-free
81014         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
81015         * build-aux/useless-if-before-free: New file.
81016         * modules/useless-if-before-free: New file.
81018         * build-aux/gitlog-to-changelog: Use committer date, not author date.
81020         xstrtol_error: Fix typo.
81021         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
81022         s/exit_failure/exit_status/.
81024 2008-02-09  Jim Meyering  <meyering@redhat.com>
81026         New script and module: gitlog-to-changelog
81027         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
81028         * modules/gitlog-to-changelog: New file.
81029         * build-aux/gitlog-to-changelog: New file.
81031 2008-02-08  Jim Meyering  <meyering@redhat.com>
81033         Avoid two "parameter unused" warnings.
81034         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
81035         Mark "st" as used.
81037         Use "git COMMAND", not "git-COMMAND".
81038         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
81039         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
81040         * build-aux/git-version-gen: Use "git status", not "git-status".
81042 2008-02-07  Bruno Haible  <bruno@clisp.org>
81044         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
81045         Avoids a crash on Windows Vista.
81046         Reported by Adam Strzelecki <ono@java.pl> via
81047         Simon Josefsson <simon@josefsson.org>.
81049 2008-02-06  Bruno Haible  <bruno@clisp.org>
81051         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
81052         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
81053         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
81054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
81055         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81056         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81057         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
81058         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
81059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81061         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81062         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81063         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81065         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81066         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
81067         left-adjust flag.
81068         * tests/test-snprintf-posix.h (test_function): Likewise.
81069         * tests/test-sprintf-posix.h (test_function): Likewise.
81070         * tests/test-vasprintf-posix.c (test_function): Likewise.
81071         * doc/posix-functions/fprintf.texi: Update.
81072         * doc/posix-functions/printf.texi: Update.
81073         * doc/posix-functions/snprintf.texi: Update.
81074         * doc/posix-functions/sprintf.texi: Update.
81075         * doc/posix-functions/vfprintf.texi: Update.
81076         * doc/posix-functions/vprintf.texi: Update.
81077         * doc/posix-functions/vsnprintf.texi: Update.
81078         * doc/posix-functions/vsprintf.texi: Update.
81079         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81081 2008-02-06  Bruno Haible  <bruno@clisp.org>
81083         Fix bug introduced on 2008-01-26.
81084         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
81086 2008-02-06  Bruno Haible  <bruno@clisp.org>
81088         Fix bug introduced on 2007-06-10.
81089         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
81090         !NEED_PRINTF_FLAG_ZERO.
81092 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
81094         getloadavg: use libperfstat on AIX5
81095         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
81097 2008-02-03  Bruno Haible  <bruno@clisp.org>
81099         * lib/diffseq.h: Add comments about required #includes.
81100         Reported by Michael Biggs <gnulib@doubleplum.net>.
81102 2008-02-01  Bruno Haible  <bruno@clisp.org>
81104         * users.txt: Add gnuit.
81106 2008-01-31  Bruno Haible  <bruno@clisp.org>
81108         * lib/md4.c (set_uint32): Mark as inline.
81109         * lib/md5.c (set_uint32): Likewise.
81110         * lib/sha1.c (set_uint32): Likewise.
81111         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81112         * m4/md5.m4 (gl_MD5): Likewise.
81113         * m4/sha1.m4 (gl_SHA1): Likewise.
81115 2008-01-31  Jim Meyering  <meyering@redhat.com>
81117         Use "sizeof VAR", rather than a literal "4".
81118         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81119         * lib/md4.c (md4_read_ctx): Likewise.
81120         * lib/sha1.c (sha1_read_ctx): Likewise.
81122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81124         * tests/test-sha1.c: New file, based on test-md5.c.
81126         * modules/crypto/sha1-tests: New file.
81128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81130         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81132 2008-01-31  Jim Meyering  <meyering@redhat.com>
81134         Prefer "sizeof v" over the equivalent "4".
81135         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81136         * lib/md5.c (set_uint32): Likewise.
81137         * lib/sha1.c (set_uint32): Likewise.
81139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81141         * lib/sha1.c (set_uint32): Mark function as static.
81143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81145         md2: clarify comments to say that alignment is not required.
81146         * lib/md2.h: Remove warning about alignment in comment.
81147         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81148         never been required.
81150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81152         md4: adapt alignment constraint fix from sha1.
81153         * lib/md4.c (set_uint32): New function, from sha1.c
81154         (md4_read_ctx): Use it.
81155         (md4_finish_ctx): Doc fix.
81156         * lib/md4.h: Doc fix.
81158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81160         md5: adapt alignment constraint fix from sha1.
81161         * lib/md5.c (set_uint32): New function, from sha1.c
81162         (md5_read_ctx): Use it.
81163         (md5_finish_ctx): Doc fix.
81164         * lib/md5.h: Doc fix.
81166 2008-01-30  Peter Palfrader  <weasel@debian.org>
81168         sha1: remove the result buffer alignment constraint
81169         * lib/sha1.c (set_uint32): New function.
81170         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81171         constraint.
81172         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81173         * lib/sha1.h: Likewise.
81175 2008-01-30  Andreas Schwab  <schwab@suse.de>
81176             Bruno Haible  <bruno@clisp.org>
81178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81179         correct definition of LDBL_MIN_EXP.
81181 2008-01-30  Karl Berry  <karl@gnu.org>
81183         * config/srclist-update: try to preserve x bit on updates.
81184         * config/srclistvars.sh: update for karl.
81186 2008-01-29  Jim Meyering  <meyering@redhat.com>
81188         vasnprintf.c: Avoid warning about unused label
81189         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81190         "overflow" label definition and associated code with the
81191         same cpp condition that guards the sole use of that label.
81193 2008-01-26  Bruno Haible  <bruno@clisp.org>
81195         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81196         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81197         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81198         * lib/isnanl-nolibm.h (isnanl): Likewise.
81199         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81201 2008-01-26  Bruno Haible  <bruno@clisp.org>
81203         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81204         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81206 2008-01-26  Bruno Haible  <bruno@clisp.org>
81208         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81209         GCC >= 4.0 built-in.
81210         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81212 2008-01-26  Bruno Haible  <bruno@clisp.org>
81214         Rename isnan, applicable to 'double' only, to isnand.
81215         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81216         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81217         (configure.ac): Update.
81218         (Include): Replace "isnan.h" with "isnand.h".
81219         * m4/isnand.m4: Renamed from m4/isnan.m4.
81220         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81221         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81222         instead of isnan.c.
81223         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81224         instead of HAVE_ISNAN_IN_LIBC.
81225         (isnand): Renamed from isnan.
81226         * lib/isnand.c: New file.
81227         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81228         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81229         (Makefile.am): Update.
81230         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81231         Include isnand.h instead of isnan.h.
81232         (main): Test isnand instead of isnan.
81233         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81234         isnan-nolibm.
81235         * modules/frexp (Depends-on): Likewise.
81236         * modules/frexp-tests (Depends-on): Likewise.
81237         * modules/frexp-nolibm (Depends-on): Likewise.
81238         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81239         * modules/isfinite (Depends-on): Likewise.
81240         * modules/round-tests (Depends-on): Likewise.
81241         * modules/signbit (Depends-on): Likewise.
81242         * modules/signbit-tests (Depends-on): Likewise.
81243         * modules/snprintf-posix (Depends-on): Likewise.
81244         * modules/sprintf-posix (Depends-on): Likewise.
81245         * modules/trunc-tests (Depends-on): Likewise.
81246         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81247         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81248         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81249         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81250         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81251         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81252         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81253         * modules/vasnprintf-posix (Depends-on): Likewise.
81254         * modules/vasprintf-posix (Depends-on): Likewise.
81255         * modules/vfprintf-posix (Depends-on): Likewise.
81256         * modules/vsnprintf-posix (Depends-on): Likewise.
81257         * modules/vsprintf-posix (Depends-on): Likewise.
81258         * lib/frexp.c: Include isnand.h instead of isnan.h.
81259         (ISNAN): Set to isnand instead of isnan.
81260         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81261         (gl_isfinited): Use isnand instead of isnan.
81262         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81263         (gl_signbitd): Use isnand instead of isnan.
81264         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81265         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81266         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81267         (main): Use isnand instead of isnan.
81268         * tests/test-round1.c: Include isnand.h.
81269         (main): Use isnand instead of isnan.
81270         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81271         (ISNAN): Set to isnand instead of isnan.
81272         * tests/test-trunc1.c: Include isnand.h.
81273         (main): Use isnand instead of isnan.
81274         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81275         (equal): Use isnand instead of isnan.
81276         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81277         isnand-nolibm.
81278         * NEWS: Mention the change.
81280 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81281             Bruno Haible  <bruno@clisp.org>
81283         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81284         the GCC builtins for signbits are present and set
81285         REPLACE_SIGNBIT_USING_GCC if so.
81286         * lib/math.in.h (signbit): Define using GCC builtins if
81287         REPLACE_SIGNBIT_USING_GCC is set.
81288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81289         REPLACE_SIGNBIT_USING_GCC.
81290         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81292 2008-01-25  Jim Meyering  <meyering@redhat.com>
81294         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81295         * lib/poll.c: Include <config.h>, not "config.h".
81296         * tests/test-getaddrinfo.c: Likewise.
81298 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81300         * modules/sockets-tests: New file.
81302 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81304         * modules/sockets: New module, can be used to call WSA_Startup and
81305         WSA_Cleanup when needed.
81307         * lib/sockets.h, lib/sockets.c: New files.
81309         * m4/sockets.m4: New file.
81311         * tests/test-sockets.c: New file.
81313 2008-01-19  Bruno Haible  <bruno@clisp.org>
81315         * doc/posix-headers: Renamed from doc/headers.
81316         * doc/posix-functions: Renamed from doc/functions.
81317         * doc/gnulib.texi: Update.
81319 2008-01-19  Bruno Haible  <bruno@clisp.org>
81321         * doc/glibc-functions/strcasestr.texi: Include contents of
81322         doc/functions/strcasestr.texi, fixing the list of platforms.
81323         * doc/functions/strcasestr.texi: Remove file.
81325 2008-01-19  Bruno Haible  <bruno@clisp.org>
81327         * doc/glibc-functions/memmem.texi: Include contents of
81328         doc/functions/memmem.texi.
81329         * doc/functions/memmem.texi: Remove file.
81331 2008-01-18  Bruno Haible  <bruno@clisp.org>
81333         * doc/glibc-functions/*.texi: New files.
81334         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81335         to use the new files.
81337 2008-01-17  Bruno Haible  <bruno@clisp.org>
81339         * tests/test-gethostname.c (main): Fix printf statement.
81341 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81343         * modules/gethostname-tests: New file.
81345         * tests/test-gethostname.c: New file.
81347 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81349         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81350         used by the UNAME case.  Reported by Bruno Haible
81351         <bruno@clisp.org>.
81353 2008-01-17  Eric Blake  <ebb9@byu.net>
81355         Convert c-strcasestr to be more efficient.
81356         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81357         (Depends-on): Add c-strcase, remove malloca, strnlen.
81358         * tests/test-c-strcasestr.c (main): Enhance test.
81359         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81361 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81363         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81364         Use it in creating po/Makevars.
81366 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81368         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81369         Applications that requires it should initialize libgcrypt
81370         manually.
81372 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81374         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81376 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81378         Fix problem with getdate on mingw32 reported by Simon Josefsson
81379         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81380         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81381         tzname", when deciding whether to declare tzname.
81382         * lib/strftime.c (tzname): Likewise.
81384 2008-01-15  Bruno Haible  <bruno@clisp.org>
81386         Work around a MacOS X 10.5 bug in frexpl().
81387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81388         * doc/functions/frexpl.texi: Document the bug.
81389         Reported by Elias Pipping <pipping@gentoo.org>.
81391 2008-01-14  Eric Blake  <ebb9@byu.net>
81393         Touch up previous patch.
81394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81395         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81397         Convert strcasestr module to use Two-Way algorithm.
81398         * modules/strcasestr-simple: New module, based on the old
81399         strcasestr, but with Two-Way rather than KMP.
81400         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81401         * lib/string.in.h (rpl_strcasestr): Declare.
81402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81403         performance.
81404         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81405         * modules/string (Makefile.am): Support strcasestr.
81406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81407         * modules/strcasestr-tests (Depends-on): Check for alarm.
81408         * tests/test-strcasestr.c: Augment test.
81409         * lib/str-two-way.h: Clean up stray macro.
81410         * NEWS: Document new module.
81411         * MODULES.html.sh (string handling): Likewise.
81412         * doc/functions/strcasestr.texi: New file.
81413         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81414         here, since it is not a POSIX function.
81416 2008-01-14  Colin Watson  <cjwatson@debian.org>
81417             Bruno Haible  <bruno@clisp.org>
81419         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81420         works fine; if not, set REPLACE_STRSIGNAL.
81421         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81423         REPLACE_STRSIGNAL.
81424         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81425         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81426         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81428 2008-01-14  Bruno Haible  <bruno@clisp.org>
81430         * modules/strsignal (Include): Change to <string.h>.
81432 2008-01-14  Colin Watson  <cjwatson@debian.org>
81434         * modules/argp (Notice): Add a notice recommending to change
81435         XGETTEXT_OPTIONS.
81436         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81438 2008-01-13  Colin Watson  <cjwatson@debian.org>
81440         * modules/strsignal-tests: New file.
81441         * tests/test-strsignal.c: New file.
81443         * lib/strsignal.c: New file, from glibc with modifications.
81444         * lib/siglist.h: New file, from glibc with modifications.
81445         * lib/string.in.h (strsignal): New declaration.
81446         * m4/strsignal.m4: New file.
81447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81448         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81449         * modules/strsignal: New file.
81450         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81451         HAVE_DECL_STRSIGNAL.
81453 2008-01-13  Bruno Haible  <bruno@clisp.org>
81455         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81456         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81457         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81458         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81460 2008-01-13  Bruno Haible  <bruno@clisp.org>
81462         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81463         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81464         * lib/argp.h (__attribute__): Likewise.
81465         * lib/c-stack.c (__attribute__): Likewise.
81466         * lib/error.h (__attribute__): Likewise.
81467         * lib/fts.c (__attribute__): Likewise.
81468         * lib/openat.h (__attribute__): Likewise.
81469         * lib/stdio.in.h (__attribute__): Likewise.
81470         * lib/string.in.h (__attribute__): Likewise.
81471         * lib/utimens.c (__attribute__): Likewise.
81472         * lib/vasnprintf.h (__attribute__): Likewise.
81473         * lib/xalloc.h (__attribute__): Likewise.
81474         * lib/xprintf.h (__attribute__): Likewise.
81475         * lib/xstrtol.h (__attribute__): Likewise.
81476         * lib/xvasprintf.h (__attribute__): Likewise.
81478 2008-01-12  Bruno Haible  <bruno@clisp.org>
81480         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81481         * doc/glibc-headers/a.out.texi: New file.
81482         * doc/glibc-headers/aliases.texi: New file.
81483         * doc/glibc-headers/alloca.texi: New file.
81484         * doc/glibc-headers/ar.texi: New file.
81485         * doc/glibc-headers/argp.texi: New file.
81486         * doc/glibc-headers/argz.texi: New file.
81487         * doc/glibc-headers/byteswap.texi: New file.
81488         * doc/glibc-headers/crypt.texi: New file.
81489         * doc/glibc-headers/endian.texi: New file.
81490         * doc/glibc-headers/envz.texi: New file.
81491         * doc/glibc-headers/err.texi: New file.
81492         * doc/glibc-headers/error.texi: New file.
81493         * doc/glibc-headers/execinfo.texi: New file.
81494         * doc/glibc-headers/fpu_control.texi: New file.
81495         * doc/glibc-headers/fstab.texi: New file.
81496         * doc/glibc-headers/fts.texi: New file.
81497         * doc/glibc-headers/getopt.texi: New file.
81498         * doc/glibc-headers/ieee754.texi: New file.
81499         * doc/glibc-headers/ifaddrs.texi: New file.
81500         * doc/glibc-headers/libintl.texi: New file.
81501         * doc/glibc-headers/mcheck.texi: New file.
81502         * doc/glibc-headers/mntent.texi: New file.
81503         * doc/glibc-headers/obstack.texi: New file.
81504         * doc/glibc-headers/paths.texi: New file.
81505         * doc/glibc-headers/printf.texi: New file.
81506         * doc/glibc-headers/pty.texi: New file.
81507         * doc/glibc-headers/resolv.texi: New file.
81508         * doc/glibc-headers/shadow.texi: New file.
81509         * doc/glibc-headers/sysexits.texi: New file.
81510         * doc/glibc-headers/ttyent.texi: New file.
81512 2008-01-12  Jim Meyering  <meyering@redhat.com>
81514         announce-gen: emit Gnulib's git-based version string.
81515         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81516         New option --gnulib-version=V, where V is expected to be
81517         the output of running git describe in the gnulib directory.
81518         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81519         not useful, and plan to stop publishing an xdelta file with each
81520         coreutils release.
81522         * build-aux/announce-gen: Also check for lzma-compressed files.
81524 2008-01-11  Bruno Haible  <bruno@clisp.org>
81526         * tests/test-memmem.c (main): Increase maximum allowed time.
81527         * tests/test-strstr.c (main): Likewise.
81529 2008-01-11  Bruno Haible  <bruno@clisp.org>
81531         * doc/functions/memmem.texi: Add more precisions about platforms.
81532         * doc/functions/strstr.texi: Likewise.
81534 2008-01-10  Eric Blake  <ebb9@byu.net>
81536         * m4/strstr.m4: Delete cruft from copy-n-paste.
81537         Reported by Bruno Haible.
81539 2008-01-10  Bruno Haible  <bruno@clisp.org>
81541         Make c-strstr rely on strstr.
81542         * lib/c-strstr.c: Don't include str-kmp.h.
81543         (c_strstr): Define in terms of strstr.
81544         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81545         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81547 2008-01-10  Bruno Haible  <bruno@clisp.org>
81549         * doc/gnulib.texi (String Functions in C Locale): New section.
81550         * doc/c-ctype.texi: New file.
81551         * doc/c-strcase.texi: New file.
81552         * doc/c-strcaseeq.texi: New file.
81553         * doc/c-strcasestr.texi: New file.
81554         * doc/c-strstr.texi: New file.
81555         * doc/c-strtod.texi: New file.
81556         * doc/c-strtold.texi: New file.
81558 2008-01-10  Eric Blake  <ebb9@byu.net>
81560         * lib/relocatable.h: Fix a comment.
81562 2008-01-10  Eric Blake  <ebb9@byu.net>
81564         Share two-way algorithm.
81565         * lib/str-two-way.h: New file, merged from...
81566         * lib/memmem.c: ...here...
81567         * lib/strstr.c: ...and here.
81568         * modules/memmem (Files): Use it.
81569         * modules/strstr (Files): Likewise.
81571         Avoid quadratic strstr implementations.
81572         * lib/strstr.c: New file.
81573         * m4/strstr.m4: Likewise.
81574         * modules/strstr: Likewise.
81575         * modules/strstr-tests: Likewise.
81576         * tests/test-strstr.c: Likewise.
81577         * lib/string.in.h (rpl_strstr): Declare.
81578         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81580         * modules/string (Makefile.am): Likewise.
81581         * MODULES.html.sh (string handling): Mention new module.
81582         * doc/functions/strstr.texi (strstr): Document the bug.
81584 2008-01-10  Bruno Haible  <bruno@clisp.org>
81586         * lib/relocatable.h (relocate): State whether result is freshly
81587         allocated or not.
81588         * lib/relocatable.c (relocate): Return a freshly allocated string
81589         instead of a pointer to a privately held string.
81590         Reported by Sylvain Beucler <beuc@gnu.org>.
81592 2008-01-10  Colin Watson  <cjwatson@debian.org>
81594         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81595         s/S_ISNLK/S_ISLNK/.
81597 2008-01-09  Bruno Haible  <bruno@clisp.org>
81599         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81600         and other files.
81601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81602         if it's only a guess.
81603         * modules/memmem: Simplify by depending on memmem-simple.
81605 2008-01-09  Bruno Haible  <bruno@clisp.org>
81607         Work around OpenBSD 4.0 tdelete() bug.
81608         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81609         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81610         macros and don't redefine the enum values.
81611         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81612         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81613         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81615 2008-01-09  Bruno Haible  <bruno@clisp.org>
81617         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81618         (main): Don't perform the tests if setlocale did not install a UTF-8
81619         locale. Needed on OpenBSD 4.0.
81620         * modules/wcwidth-tests (Depends-on): Add localcharset.
81622 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81624         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81625         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81626         * NEWS: announce this.
81627         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81629 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81630         and Eric Blake  <ebb9@byu.net>
81632         Add memmem-simple module.
81633         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81634         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81635         * modules/memmem-simple: New file.
81636         * modules/memmem (Description): Tweak.
81637         * MODULES.html.sh (string handling): Mention new module.
81638         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81639         addressed by memmem-simple.
81640         * NEWS: Document the difference.
81642 2008-01-09  Eric Blake  <ebb9@byu.net>
81644         Give gcc some memmem optimization hints.
81645         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81646         (strcasestr): Declare as pure.
81647         * modules/memmem (Maintainer): Claim my implementation.
81649 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81651         Support AIX 6.1 and higher.
81652         * build-aux/config.libpath: Likewise.
81653         * build-aux/config.rpath: Likewise.
81655 2008-01-08  Jim Meyering  <meyering@redhat.com>
81656             Bruno Haible  <bruno@clisp.org>
81658         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81659         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81660         Reported by Peter Fales in
81661         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81663 2008-01-08  Bruno Haible  <bruno@clisp.org>
81665         * modules/unictype/category-of (Depends-on): Add
81666         unictype/category-none.
81667         * modules/unictype/category-and-tests (Depends-on): Add
81668         unictype/category-{L,N,Lu,Nd}.
81669         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81670         * modules/unictype/category-or-tests (Depends-on): Add
81671         unictype/category-{L,N}.
81672         * modules/unictype/category-name-tests (Depends-on): Add
81673         unictype/category-{Z,Nl}.
81674         Reported by Simon Josefsson.
81676 2008-01-08  Bruno Haible  <bruno@clisp.org>
81678         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81679         convention better.
81680         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81681         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81682         Reported by Peter Miller <millerp@canb.auug.org.au>.
81684 2008-01-08  Eric Blake  <ebb9@byu.net>
81686         Rewrite memmem to guarantee linear complexity without malloc.
81687         * lib/memmem.c (memmem): Use Two-Way rather than
81688         Knuth-Morris-Pratt, to allow O(1) space usage.
81689         (critical_factorization, two_way_short_needle)
81690         (two_way_long_needle): New functions.
81691         (knuth_morris_pratt): Delete.
81692         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81693         Add stdint.
81694         * tests/test-memmem.c (main): Add tests for periodic needle and
81695         sublinear performance.
81696         * doc/functions/memmem.texi (memmem): Document other deficiencies
81697         in cygwin and older glibc.
81699 2008-01-08  Bruno Haible  <bruno@clisp.org>
81701         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81702         augmentation.
81704 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81706         Add a configure time option: --disable-acl.
81707         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81708         AC_ARG_ENABLE(acl).
81710 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81712         * tests/test-localename.c: Don't include obsolete "setenv.h".
81714         * modules/localename-tests (Depends-on): Need unsetenv.
81716 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81718         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81720 2008-01-06  Colin Watson  <cjwatson@debian.org>
81722         * users.txt: Add man-db.
81724 2008-01-07  Bruno Haible  <bruno@clisp.org>
81726         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81727         previous section name.
81729 2008-01-07  Bruno Haible  <bruno@clisp.org>
81731         * lib/progname.c (set_program_name): Don't strip off a leading
81732         "lt-" prefix outside a .libs directory.
81733         Suggested by Paul Eggert.
81735 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81736             Bruno Haible  <bruno@clisp.org>
81738         Improve memory cleanup in 'relocatable' module.
81739         * lib/relocatable.h (compute_curr_prefix): Change return type to
81740         'char *'.
81741         * lib/relocatable.c (compute_curr_prefix): Change return type to
81742         'char *'. Free curr_installdir after use.
81743         (relocate): Free curr_prefix_better after use.
81744         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81746 2008-01-01  Bruno Haible  <bruno@clisp.org>
81748         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81749         failure on older glibc systems.
81750         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81752 2008-01-05  Eric Blake  <ebb9@byu.net>
81754         Avoid quadratic system memmem.
81755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81756         Reported by Ralf Wildenhues.
81758         Fix memmem test for mingw.
81759         * modules/memmem-tests (configure.ac): Check for alarm.
81760         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81761         it.
81762         * doc/functions/memmem.texi: New file.
81763         * doc/gnulib.texi (Function Substitutes): Add memmem.
81764         Reported by Bruno Haible.
81766 2008-01-04  Bruno Haible  <bruno@clisp.org>
81768         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81769         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81770         gl_HEADER_STRING_H_DEFAULTS.
81772 2008-01-04  Eric Blake  <ebb9@byu.net>
81774         Shorten duration of memmem test.
81775         * tests/test-memmem.c (main): Use alarm to declare failure if test
81776         is taking too long.
81777         Reported by Ralf Wildenhues.
81779 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81781         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81782         string, needed by strerror.
81784 2008-01-03  Colin Watson  <cjwatson@debian.org>
81785             Bruno Haible  <bruno@clisp.org>
81787         * doc/gnulib-tool.texi (Localization): New section.
81789 2008-01-02  Bruno Haible  <bruno@clisp.org>
81791         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81792         variables to 'unsigned char *' type.
81793         Reported by Paul Eggert.
81795 2008-01-02  Jim Meyering  <jim@meyering.net>
81797         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81799 2007-12-31  Jim Meyering  <jim@meyering.net>
81801         Avoid use of private FTS type name.
81802         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81804 2007-12-30  Karl Berry  <karl@gnu.org>
81806         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81807         work around defect in Texinfo and/or the standalone Info browser.
81809 2007-12-30  Bruno Haible  <bruno@clisp.org>
81811         Unify 5 copies of the KMP code.
81812         * lib/str-kmp.h: New file.
81813         * lib/c-strcasestr.c: Include str-kmp.h.
81814         (knuth_morris_pratt): Remove function.
81815         (c_strcasestr): Update.
81816         * lib/c-strstr.c: Include str-kmp.h.
81817         (knuth_morris_pratt): Remove function.
81818         (c_strcasestr): Update.
81819         * lib/mbscasestr.c: Include str-kmp.h.
81820         (knuth_morris_pratt_unibyte): Remove function.
81821         * lib/mbsstr.c: Include str-kmp.h.
81822         (knuth_morris_pratt_unibyte): Remove function.
81823         * lib/strcasestr.c: Include str-kmp.h.
81824         (knuth_morris_pratt): Remove function.
81825         (strcasestr): Update.
81826         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81827         * modules/c-strstr (Files): Likewise.
81828         * modules/mbscasestr (Files): Likewise.
81829         * modules/mbsstr (Files): Likewise.
81830         * modules/strcasestr (Files): Likewise.
81831         Suggested by Paul Eggert.
81833 2007-12-30  Bruno Haible  <bruno@clisp.org>
81835         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81836         defined.
81838 2007-12-30  Bruno Haible  <bruno@clisp.org>
81840         * lib/xmalloca.h: Include xalloc.h.
81841         (xnmalloca): New macro.
81843 2007-12-30  Bruno Haible  <bruno@clisp.org>
81845         * lib/malloca.h (nmalloca): New macro.
81846         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81847         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81848         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81849         knuth_morris_pratt_multibyte): Likewise.
81850         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81851         knuth_morris_pratt_multibyte): Likewise.
81852         * lib/memmem.c (knuth_morris_pratt): Likewise.
81853         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81855 2007-12-25  Bruno Haible  <bruno@clisp.org>
81857         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81858         * lib/glob.c: Don't include openat.h.
81859         (link_exists2_p): Add back the code that deals with the
81860         !GLOB_ALTDIRFUNC case.
81861         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81862         let it do the filename concatenation.
81863         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81864         * modules/glob (Depends-on): Remove openat.
81866 2007-12-31  Bruno Haible  <bruno@clisp.org>
81868         * modules/dirfd (License): Change to LGPLv2+.
81869         Approved by Jim Meyering.
81871 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81873         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81874         when multiplying M by sizeof (size_t).
81876 2007-12-10  Martin Lambers  <marlam@marlam.de>
81878         Override getpagesize on mingw.
81879         * lib/getpagesize.c: New file.
81880         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81881         * modules/getpagesize (Files): Add lib/getpagesize.c.
81882         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81884         REPLACE_GETPAGESIZE.
81885         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81887 2007-12-25  Bruno Haible  <bruno@clisp.org>
81889         * modules/localcharset (Notice): New field.
81890         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81891         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81893 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81894             Bruno Haible  <bruno@clisp.org>
81896         Avoid using the syntax symbol() in formatted documentation.
81897         * MODULES.html.sh (func_module): When replacing symbol() with a
81898         hyperlink, remove the parentheses. Show an error if some remain.
81899         Recognize and render the '...' syntax.
81900         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81901         Rework. Add paragraph about GCC's inlining.
81902         * doc/alloca.texi: Likewise.
81903         * doc/error.texi: Remove parentheses from symbol reference.
81904         * doc/gnulib-intro.texi: Likewise.
81905         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81906         * modules/fnmatch (Description): Reword to say "the ... function".
81907         * modules/full-read (Description): Likewise.
81908         * modules/full-write (Description): Likewise.
81909         * modules/safe-read (Description): Likewise.
81910         * modules/safe-write (Description): Likewise.
81911         * modules/strchrnul (Description): Likewise.
81912         * modules/trim (Description): Likewise.
81913         * modules/error (Description): Remove parentheses from symbol
81914         references.
81915         * modules/verror (Description): Likewise.
81916         Reported by Karl Berry.
81918 2007-12-25  Bruno Haible  <bruno@clisp.org>
81920         Fixup after 2007-10-16 commit.
81921         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81923 2007-12-24  Bruno Haible  <bruno@clisp.org>
81925         Make --enable-relocatable work with DESTDIR.
81926         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81927         to compute installdir from destprog.
81928         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81929         also set the RELOC_DESTDIR variable.
81930         Reported by Левашев Иван <octagram@bluebottle.com>.
81932 2007-12-24  Bruno Haible  <bruno@clisp.org>
81934         Fix link error due to xalloc_die().
81935         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81936         of xreadlink.
81937         * lib/relocwrapper.c: Update comments.
81938         * build-aux/install-reloc: Remove xreadlink.c from file list.
81939         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81940         xreadlink.c.
81941         Reported by Левашев Иван <octagram@bluebottle.com>.
81943 2007-12-24  Bruno Haible  <bruno@clisp.org>
81945         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81946         * lib/setenv.h: Remove file.
81947         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81948         lib/setenv.h.
81949         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81950         (Depends-on): Add stdlib.
81951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81952         gl_FUNC_UNSETENV.
81953         (Include): Replace setenv.h with <stdlib.h>.
81954         * modules/unsetenv: New file.
81955         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81956         * lib/unsetenv.c: Include <stdlib.h> first.
81957         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81958         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81959         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81960         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81961         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81962         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81964         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81965         * doc/functions/unsetenv.texi: Update.
81966         * modules/xsetenv (Depends-on): Add unsetenv.
81967         * modules/getdate (Depends-on): Likewise.
81968         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81969         * lib/xsetenv.c: Don't include setenv.h.
81970         * lib/getdate.y: Likewise.
81971         * lib/relocwrapper.c: Likewise.
81972         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81973         (Depends-on): Add stdlib.
81974         * NEWS: Mention the changes.
81975         Reported by Левашев Иван <octagram@bluebottle.com>.
81977 2007-12-23  Bruno Haible  <bruno@clisp.org>
81979         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81980         indentation.
81982 2007-12-23  Bruno Haible  <bruno@clisp.org>
81984         * lib/c-strcasestr.c: Add more comments.
81985         * lib/c-strstr.c: Likewise.
81986         * lib/mbscasestr.c: Likewise.
81987         * lib/mbsstr.c: Likewise.
81988         * lib/strcasestr.c: Likewise.
81989         * lib/memmem.c: Likewise.
81991 2007-12-23  Bruno Haible  <bruno@clisp.org>
81993         * tests/test-memmem.c: Include <string.h> first.
81995 2007-12-22  Bruno Haible  <bruno@clisp.org>
81997         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81998         the contents of $testsbase.
81999         Reported by Ralf Wildenhues.
82001 2007-12-22  Bruno Haible  <bruno@clisp.org>
82003         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
82004         two variables local_ldadd_before, local_ldadd_last.
82006 2007-12-20  Eric Blake  <ebb9@byu.net>
82008         Work around circular library issue when cross-compiling.
82009         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
82010         that progname.o does not need to pull in rpl_memcmp.
82012 2007-12-19  Eric Blake  <ebb9@byu.net>
82014         Fix memmem to avoid O(n^2) worst-case complexity.
82015         * lib/memmem.c (knuth_morris_pratt): New function.
82016         (memmem): Use it if first few naive iterations fail.
82017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
82018         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
82019         * modules/memchr (License): Likewise.
82020         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
82021         malloca.
82022         * tests/test-memmem.c: Rewrite, borrowing ideas from
82023         test-mbsstr1.c; the old version wouldn't even compile!
82024         * modules/memmem-tests: New file.
82025         * lib/string.in.h (rpl_memmem): Add declaration.
82026         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
82027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
82028         REPLACE_MEMMEM.
82030 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
82032         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
82033         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
82034         before any system include files, and undef after them all.  This
82035         should fix a problem on VMS reported by John E. Malmberg in
82036         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
82038 2007-12-17  Eric Blake  <ebb9@byu.net>
82040         Revert addition of verify, for BSD/OS.
82041         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
82042         can't handle large files, for the sake of obsolete platforms.
82043         * modules/fseeko (Depends-on): Remove verify.
82044         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
82045         * doc/functions/ftello.texi (ftello): Likewise.
82046         * doc/functions/fgetpos.texi (fgetpos): Likewise.
82047         Reported by Larry Jones.
82049 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
82051         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
82052         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
82054 2007-12-17  Jim Meyering  <meyering@redhat.com>
82056         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
82057         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
82058         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
82059         * modules/getcwd (Depends-on): Add openat.
82060         Reported by Petr Salinger.
82062 2007-12-17  Bruno Haible  <bruno@clisp.org>
82064         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
82065         avoid a segmentation fault of the configure test on x86_64 systems.
82067 2007-12-15  Jim Meyering  <meyering@redhat.com>
82069         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
82071 2007-12-13  Eric Blake  <ebb9@byu.net>
82073         Another fseek test.
82074         * tests/test-fseek.c (main): Also test ungetc handling.
82075         * tests/test-fseeko.c (main): Likewise.
82076         * modules/fseeko (Depends-on): Add verify.
82077         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
82078         large.
82079         Reported by Larry Jones.
82081         Fix fseeko on mingw.
82082         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
82083         seek.
82085         Beef up fseek tests.
82086         * tests/test-fseek.c (main): Also test eof handling.
82087         * tests/test-fseeko.c (main): Likewise.
82088         Reported by Larry Jones.
82090 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
82092         Fix fseeko on BSD-based platforms.
82093         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
82094         successful seek.
82096 2007-12-12  Eric Blake  <ebb9@byu.net>
82098         Allow circular dependency of separate libtests.a
82099         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
82100         when use_libtests.
82102 2007-12-11  Eric Blake  <ebb9@byu.net>
82104         Fix bug with -0.0L in previous patch.
82105         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82106         * tests/test-isnan.c (main): Also test on zeroes.
82107         * tests/test-isnanf.c (main): Likewise.
82108         * tests/test-isnanl.h (main): Likewise.
82110         Detect pseudo-denormals on x86 even when cross-compiling.
82111         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82112         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82113         invalid bit patterns that happen to satisfy ==.
82115         Avoid link failures with separate libtests.a.
82116         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82117         last, to satisfy circular dependencies.
82119 2007-12-11  Eric Blake  <ebb9@byu.net>
82120         and Bruno Haible  <bruno@clisp.org>
82122         Fix OpenBSD 4.0 <float.h> handling of long double.
82123         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82124         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82125         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82127 2007-12-11  Jim Meyering  <meyering@redhat.com>
82129         * users.txt: Add libvirt.
82131         Support versions of autoconf prior to 2.59c.
82132         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82133         if it is not already defined.
82135 2007-12-09  Bruno Haible  <bruno@clisp.org>
82137         Let 'gnulib-tool --import' collect sources needed for the tests in
82138         tests/ rather than in lib/.
82139         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82140         argument. If true, add rules to generate libtests.a, and put libtests.a
82141         into $(LDADD). Consider source files in subdirectories and set
82142         uses_subdirs.
82143         (func_emit_initmacro_start, func_emit_initmacro_end,
82144         func_emit_initmacro_done): Pass all arguments explicitly.
82145         (func_import): Determine two module lists main_modules,
82146         testsrelated_modules. Determine use_libtests. Determine two variables
82147         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82148         instead of just sed_transform_lib_file. Determine two variables
82149         main_files and testsrelated_files. Compute 'files' as the union of
82150         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82151         func_add_or_update. In the generated gnulib-comp.m4, collect the
82152         object files for tests/ in different variables than those for lib/.
82153         Substitute LIBTESTS_LIBDEPS.
82154         (func_create_testdir): Combine the uses_subdirs results from
82155         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82157 2007-12-09  Bruno Haible  <bruno@clisp.org>
82159         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82160         the build-aux directory.
82162 2007-12-09  Bruno Haible  <bruno@clisp.org>
82164         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82165         introduced on 2006-09-09.
82167 2007-12-07  Jim Meyering  <meyering@redhat.com>
82169         Let these macros work also with autoconf-2.59.
82170         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82171         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82174 2007-12-06  Jim Meyering  <meyering@redhat.com>
82176         Avoid a configure-time syntax error in gl_FUNC_ACL.
82177         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82178         function in each branch, before testing the cache variable.
82180 2007-12-04  Eric Blake  <ebb9@byu.net>
82182         Make scripts executable.
82183         * build-aux/config.guess: Add execute permissions.
82184         * build-aux/config.sub: Likewise.
82185         * build-aux/gendocs.sh: Likewise.
82187         Fix frexp on mingw.
82188         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82189         cross-compiling.
82190         * doc/functions/frexp.texi (frexp): Document the bug.
82192         Make cygwin fseeko check more reliable.
82193         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82194         version numbers, rather than unrelated feature check.
82195         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82196         * doc/functions/ftello.texi (ftello): Likewise.
82197         Reported by Bruno Haible.
82199         * m4/strerror.m4: Bump version number.
82201 2007-12-03  Bruno Haible  <bruno@clisp.org>
82203         * doc/functions/mprotect.texi: Mention the mingw problem.
82205 2007-12-03  Eric Blake  <ebb9@byu.net>
82207         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82208         REPLACE_STRERROR is initialized before this macro.
82210 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82212         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82213         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82214         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82215         put -lsec in even for programs other than 'ls'.  This fixes a problem
82216         for gettext reported by Bruno Haible in
82217         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82218         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82219         Add support for Solaris 10.  This isn't efficient, but should get the
82220         job done for now.
82222 2007-12-03  James Youngman  <jay@gnu.org>
82224         * doc/regexprops-generic.texi: change "an close-group" to "a
82225         close-group" and "illegal" to "not allowed".
82227 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82229         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82230         pr_byname.h. Needed for the rare case when the maintainer has done
82231         "make maintainer-clean" in the source directory and then attempts a
82232         build outside the source directory.
82233         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82234         scripts_byname.h.
82236 2007-12-02  Martin Lambers  <marlam@marlam.de>
82237             Bruno Haible  <bruno@clisp.org>
82239         * lib/getpagesize.h: Remove file.
82240         * lib/unistd.in.h: Include declaration of getpagesize here.
82241         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82242         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82243         HAVE_SYS_PARAM_H.
82244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82245         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82246         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82247         (Depends-on): Add unistd.
82248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82249         (Include): Use <unistd.h> instead of getpagesize.h.
82250         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82251         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82252         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82253         gl_GETPAGESIZE invocation, already handled by module dependency.
82254         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82256 2007-12-02  Bruno Haible  <bruno@clisp.org>
82258         * modules/strings-tests: New file.
82259         * tests/test-strings.c: New file.
82261         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82262         * lib/strings.in.h: New file.
82263         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82264         * m4/strings_h.m4: New file.
82265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82266         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82267         * modules/strings: New file.
82268         * modules/string (Makefile.am): Update.
82269         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82270         Reported by Karl Berry.
82272 2007-12-01  Eric Blake  <ebb9@byu.net>
82274         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82275         accommodate fix in cygwin 1.5.25.
82277 2007-12-01  Jim Meyering  <meyering@redhat.com>
82279         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82280         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82281         that would inhibit utf8-optimization of a regexp containing line-
82282         or buffer-anchors, e.g., `^', `$'.
82284 2007-11-30  Bruno Haible  <bruno@clisp.org>
82286         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82287         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82288         glthread_recursive_lock_init.
82289         * lib/lock.c (glthread_recursive_lock_init)
82290         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82293 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82295         New function qset_acl, like set_acl but with syscall semantics.
82296         * lib/acl.h (qset_acl): New decl.
82297         * lib/acl.c (qset_acl): New function.
82298         (set_acl): Use new function.  Use more-consistent diagnostics.
82300 2007-11-28  Jim Meyering  <meyering@redhat.com>
82302         * modules/physmem (License): Change from GPL to LGPLv2+.
82304 2007-11-26  Bruno Haible  <bruno@clisp.org>
82306         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82307         'long double' type has excess precision.
82308         Reported by Jim Meyering in
82309         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82311 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82313         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82314         Sync from <http://gnu.org/licenses>.
82315         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82316         with license text from same location.
82317         * doc/maintain.texi, doc/standards.texi:  Sync from
82318         <http://savannah.gnu.org/projects/gnustandards>.
82320 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82321         and Jim Meyering  <meyering@redhat.com>
82323         Adjust getdate' grammar to accept a slightly more regular language.
82324         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82325         Before, the former was rejected.
82326         * lib/getdate.y (digits_to_date_time): New function, factored
82327         out of ...
82328         (number): ...here.  Just call digits_to_date_time.
82329         (hybrid): New non-terminal to handle an <unsigned number,
82330         signed relative offset> sequence consistently.
82332 2007-11-18  Jim Meyering  <meyering@redhat.com>
82334         Pull my changes from coreutils:
82335         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82336         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82337         use of $gnulib_tool_option_extras, so that it's separated from the
82338         preceding argument.
82340         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82341         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82342         parent destination directories before copying a file into place.
82344 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82346         bootstrap: work also with 4-argument variant of AC_INIT
82347         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82349 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82351         Port test-getaddrinfo to Solaris.
82352         Problem reported by Bruno Haible in
82353         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82354         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82355         explanation of setting 'hints'.
82356         Don't reject an implementation merely because it returns EAI_SERVICE.
82357         (EAI_SERVICE): Define to 0 if not defined.
82359 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82361         The license of gnu-make and posix-shell is now "GPLed build tool".
82362         * modules/gnu-make (License): Likewise.
82363         * modules/posix-shell (License): Likewise.
82365         New module posix-shell, for determining a POSIX shell
82366         or perhaps something that is close enough to a POSIX shell.
82367         * m4/posix-shell.m4: New file.
82368         * modules/posix-shell: New file.
82370         * MODULES.html.sh: Mention new module.
82372         New module gnu-make, for determining whether we're using GNU Make.
82373         * m4/gnu-make.m4: New file.
82374         * modules/gnu-make: New file.
82375         * MODULES.html.sh: Mention new module.
82377 2007-11-14  Jim Meyering  <meyering@redhat.com>
82379         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82380         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82381         use this macro to create a function _definition_.
82382         Remove useless "#undef ARGMATCH_DIE".
82384 2007-11-14  Bruno Haible  <bruno@clisp.org>
82386         * lib/config.charset: Update for OpenBSD 4.1.
82387         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82389 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82391         Document 64-bit #if problems in stdint.texi.
82392         * doc/headers/stdint.texi (stdint.h): Mention problems with
82393         64-bit-#if, and how to work around them.
82395         Don't insist on 'long long int' support in the preprocessor.  It
82396         breaks too many things.  For example, PRIdMAX still uses a 'long
82397         long int' format with the latest Sun compiler, even though
82398         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82399         preprocessor problem.  This causes the latest coreutils to dump
82400         core on Solaris 10 sparc with the Sun C compiler.
82401         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82402         the troublesome expressions at configure-time, not at #if-time.
82403         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82404         preprocessor.
82405         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82406         compile-time C checks, done at 'configure'-time.
82407         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82408         * modules/inttypes (Makefile): Substitute the new symbols that
82409         gl_INTTYPES_H now generates.
82410         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82412 2007-11-12  Bruno Haible  <bruno@clisp.org>
82414         Tests for Unicode character classification functions.
82416         * modules/unictype/bidicategory-byname-tests: New file.
82417         * modules/unictype/bidicategory-name-tests: New file.
82418         * modules/unictype/bidicategory-of-tests: New file.
82419         * modules/unictype/bidicategory-test-tests: New file.
82420         * modules/unictype/block-list-tests: New file.
82421         * modules/unictype/block-of-tests: New file.
82422         * modules/unictype/block-test-tests: New file.
82423         * modules/unictype/category-C-tests: New file.
82424         * modules/unictype/category-Cc-tests: New file.
82425         * modules/unictype/category-Cf-tests: New file.
82426         * modules/unictype/category-Cn-tests: New file.
82427         * modules/unictype/category-Co-tests: New file.
82428         * modules/unictype/category-Cs-tests: New file.
82429         * modules/unictype/category-L-tests: New file.
82430         * modules/unictype/category-Ll-tests: New file.
82431         * modules/unictype/category-Lm-tests: New file.
82432         * modules/unictype/category-Lo-tests: New file.
82433         * modules/unictype/category-Lt-tests: New file.
82434         * modules/unictype/category-Lu-tests: New file.
82435         * modules/unictype/category-M-tests: New file.
82436         * modules/unictype/category-Mc-tests: New file.
82437         * modules/unictype/category-Me-tests: New file.
82438         * modules/unictype/category-Mn-tests: New file.
82439         * modules/unictype/category-N-tests: New file.
82440         * modules/unictype/category-Nd-tests: New file.
82441         * modules/unictype/category-Nl-tests: New file.
82442         * modules/unictype/category-No-tests: New file.
82443         * modules/unictype/category-P-tests: New file.
82444         * modules/unictype/category-Pc-tests: New file.
82445         * modules/unictype/category-Pd-tests: New file.
82446         * modules/unictype/category-Pe-tests: New file.
82447         * modules/unictype/category-Pf-tests: New file.
82448         * modules/unictype/category-Pi-tests: New file.
82449         * modules/unictype/category-Po-tests: New file.
82450         * modules/unictype/category-Ps-tests: New file.
82451         * modules/unictype/category-S-tests: New file.
82452         * modules/unictype/category-Sc-tests: New file.
82453         * modules/unictype/category-Sk-tests: New file.
82454         * modules/unictype/category-Sm-tests: New file.
82455         * modules/unictype/category-So-tests: New file.
82456         * modules/unictype/category-Z-tests: New file.
82457         * modules/unictype/category-Zl-tests: New file.
82458         * modules/unictype/category-Zp-tests: New file.
82459         * modules/unictype/category-Zs-tests: New file.
82460         * modules/unictype/category-and-not-tests: New file.
82461         * modules/unictype/category-and-tests: New file.
82462         * modules/unictype/category-byname-tests: New file.
82463         * modules/unictype/category-name-tests: New file.
82464         * modules/unictype/category-none-tests: New file.
82465         * modules/unictype/category-of-tests: New file.
82466         * modules/unictype/category-or-tests: New file.
82467         * modules/unictype/category-test-withtable-tests: New file.
82468         * modules/unictype/combining-class-tests: New file.
82469         * modules/unictype/ctype-alnum-tests: New file.
82470         * modules/unictype/ctype-alpha-tests: New file.
82471         * modules/unictype/ctype-blank-tests: New file.
82472         * modules/unictype/ctype-cntrl-tests: New file.
82473         * modules/unictype/ctype-digit-tests: New file.
82474         * modules/unictype/ctype-graph-tests: New file.
82475         * modules/unictype/ctype-lower-tests: New file.
82476         * modules/unictype/ctype-print-tests: New file.
82477         * modules/unictype/ctype-punct-tests: New file.
82478         * modules/unictype/ctype-space-tests: New file.
82479         * modules/unictype/ctype-upper-tests: New file.
82480         * modules/unictype/ctype-xdigit-tests: New file.
82481         * modules/unictype/decimal-digit-tests: New file.
82482         * modules/unictype/digit-tests: New file.
82483         * modules/unictype/mirror-tests: New file.
82484         * modules/unictype/numeric-tests: New file.
82485         * modules/unictype/property-alphabetic-tests: New file.
82486         * modules/unictype/property-ascii-hex-digit-tests: New file.
82487         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82488         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82489         * modules/unictype/property-bidi-block-separator-tests: New file.
82490         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82491         * modules/unictype/property-bidi-common-separator-tests: New file.
82492         * modules/unictype/property-bidi-control-tests: New file.
82493         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82494         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82495         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82496         * modules/unictype/property-bidi-european-digit-tests: New file.
82497         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82498         * modules/unictype/property-bidi-left-to-right-tests: New file.
82499         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82500         * modules/unictype/property-bidi-other-neutral-tests: New file.
82501         * modules/unictype/property-bidi-pdf-tests: New file.
82502         * modules/unictype/property-bidi-segment-separator-tests: New file.
82503         * modules/unictype/property-bidi-whitespace-tests: New file.
82504         * modules/unictype/property-byname-tests: New file.
82505         * modules/unictype/property-combining-tests: New file.
82506         * modules/unictype/property-composite-tests: New file.
82507         * modules/unictype/property-currency-symbol-tests: New file.
82508         * modules/unictype/property-dash-tests: New file.
82509         * modules/unictype/property-decimal-digit-tests: New file.
82510         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82511         * modules/unictype/property-deprecated-tests: New file.
82512         * modules/unictype/property-diacritic-tests: New file.
82513         * modules/unictype/property-extender-tests: New file.
82514         * modules/unictype/property-format-control-tests: New file.
82515         * modules/unictype/property-grapheme-base-tests: New file.
82516         * modules/unictype/property-grapheme-extend-tests: New file.
82517         * modules/unictype/property-grapheme-link-tests: New file.
82518         * modules/unictype/property-hex-digit-tests: New file.
82519         * modules/unictype/property-hyphen-tests: New file.
82520         * modules/unictype/property-id-continue-tests: New file.
82521         * modules/unictype/property-id-start-tests: New file.
82522         * modules/unictype/property-ideographic-tests: New file.
82523         * modules/unictype/property-ids-binary-operator-tests: New file.
82524         * modules/unictype/property-ids-trinary-operator-tests: New file.
82525         * modules/unictype/property-ignorable-control-tests: New file.
82526         * modules/unictype/property-iso-control-tests: New file.
82527         * modules/unictype/property-join-control-tests: New file.
82528         * modules/unictype/property-left-of-pair-tests: New file.
82529         * modules/unictype/property-line-separator-tests: New file.
82530         * modules/unictype/property-logical-order-exception-tests: New file.
82531         * modules/unictype/property-lowercase-tests: New file.
82532         * modules/unictype/property-math-tests: New file.
82533         * modules/unictype/property-non-break-tests: New file.
82534         * modules/unictype/property-not-a-character-tests: New file.
82535         * modules/unictype/property-numeric-tests: New file.
82536         * modules/unictype/property-other-alphabetic-tests: New file.
82537         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82538         * modules/unictype/property-other-grapheme-extend-tests: New file.
82539         * modules/unictype/property-other-id-continue-tests: New file.
82540         * modules/unictype/property-other-id-start-tests: New file.
82541         * modules/unictype/property-other-lowercase-tests: New file.
82542         * modules/unictype/property-other-math-tests: New file.
82543         * modules/unictype/property-other-uppercase-tests: New file.
82544         * modules/unictype/property-paired-punctuation-tests: New file.
82545         * modules/unictype/property-paragraph-separator-tests: New file.
82546         * modules/unictype/property-pattern-syntax-tests: New file.
82547         * modules/unictype/property-pattern-white-space-tests: New file.
82548         * modules/unictype/property-private-use-tests: New file.
82549         * modules/unictype/property-punctuation-tests: New file.
82550         * modules/unictype/property-quotation-mark-tests: New file.
82551         * modules/unictype/property-radical-tests: New file.
82552         * modules/unictype/property-sentence-terminal-tests: New file.
82553         * modules/unictype/property-soft-dotted-tests: New file.
82554         * modules/unictype/property-space-tests: New file.
82555         * modules/unictype/property-terminal-punctuation-tests: New file.
82556         * modules/unictype/property-test-tests: New file.
82557         * modules/unictype/property-titlecase-tests: New file.
82558         * modules/unictype/property-unassigned-code-value-tests: New file.
82559         * modules/unictype/property-unified-ideograph-tests: New file.
82560         * modules/unictype/property-uppercase-tests: New file.
82561         * modules/unictype/property-variation-selector-tests: New file.
82562         * modules/unictype/property-white-space-tests: New file.
82563         * modules/unictype/property-xid-continue-tests: New file.
82564         * modules/unictype/property-xid-start-tests: New file.
82565         * modules/unictype/property-zero-width-tests: New file.
82566         * modules/unictype/scripts-tests: New file.
82567         * modules/unictype/syntax-c-ident-tests: New file.
82568         * modules/unictype/syntax-c-whitespace-tests: New file.
82569         * modules/unictype/syntax-java-ident-tests: New file.
82570         * modules/unictype/syntax-java-whitespace-tests: New file.
82571         * tests/unictype/test-bidi_byname.c: New file.
82572         * tests/unictype/test-bidi_name.c: New file.
82573         * tests/unictype/test-bidi_of.c: New file.
82574         * tests/unictype/test-bidi_test.c: New file.
82575         * tests/unictype/test-block_list.c: New file.
82576         * tests/unictype/test-block_of.c: New file.
82577         * tests/unictype/test-block_test.c: New file.
82578         * tests/unictype/test-categ_and.c: New file.
82579         * tests/unictype/test-categ_and_not.c: New file.
82580         * tests/unictype/test-categ_byname.c: New file.
82581         * tests/unictype/test-categ_name.c: New file.
82582         * tests/unictype/test-categ_none.c: New file.
82583         * tests/unictype/test-categ_of.c: New file.
82584         * tests/unictype/test-categ_or.c: New file.
82585         * tests/unictype/test-categ_test_withtable.c: New file.
82586         * tests/unictype/test-combining.c: New file.
82587         * tests/unictype/test-decdigit.c: New file.
82588         * tests/unictype/test-digit.c: New file.
82589         * tests/unictype/test-mirror.c: New file.
82590         * tests/unictype/test-numeric.c: New file.
82591         * tests/unictype/test-pr_byname.c: New file.
82592         * tests/unictype/test-pr_test.c: New file.
82593         * tests/unictype/test-predicate-part1.h: New file.
82594         * tests/unictype/test-predicate-part2.h: New file.
82595         * tests/unictype/test-scripts.c: New file.
82596         * tests/unictype/test-sy_c_ident.c: New file.
82597         * tests/unictype/test-sy_java_ident.c: New file.
82599         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82600         for Unicode 5.0.0.
82601         * tests/unictype/test-categ_Cc.c: Likewise.
82602         * tests/unictype/test-categ_Cf.c: Likewise.
82603         * tests/unictype/test-categ_Cn.c: Likewise.
82604         * tests/unictype/test-categ_Co.c: Likewise.
82605         * tests/unictype/test-categ_Cs.c: Likewise.
82606         * tests/unictype/test-categ_L.c: Likewise.
82607         * tests/unictype/test-categ_Ll.c: Likewise.
82608         * tests/unictype/test-categ_Lm.c: Likewise.
82609         * tests/unictype/test-categ_Lo.c: Likewise.
82610         * tests/unictype/test-categ_Lt.c: Likewise.
82611         * tests/unictype/test-categ_Lu.c: Likewise.
82612         * tests/unictype/test-categ_M.c: Likewise.
82613         * tests/unictype/test-categ_Mc.c: Likewise.
82614         * tests/unictype/test-categ_Me.c: Likewise.
82615         * tests/unictype/test-categ_Mn.c: Likewise.
82616         * tests/unictype/test-categ_N.c: Likewise.
82617         * tests/unictype/test-categ_Nd.c: Likewise.
82618         * tests/unictype/test-categ_Nl.c: Likewise.
82619         * tests/unictype/test-categ_No.c: Likewise.
82620         * tests/unictype/test-categ_P.c: Likewise.
82621         * tests/unictype/test-categ_Pc.c: Likewise.
82622         * tests/unictype/test-categ_Pd.c: Likewise.
82623         * tests/unictype/test-categ_Pe.c: Likewise.
82624         * tests/unictype/test-categ_Pf.c: Likewise.
82625         * tests/unictype/test-categ_Pi.c: Likewise.
82626         * tests/unictype/test-categ_Po.c: Likewise.
82627         * tests/unictype/test-categ_Ps.c: Likewise.
82628         * tests/unictype/test-categ_S.c: Likewise.
82629         * tests/unictype/test-categ_Sc.c: Likewise.
82630         * tests/unictype/test-categ_Sk.c: Likewise.
82631         * tests/unictype/test-categ_Sm.c: Likewise.
82632         * tests/unictype/test-categ_So.c: Likewise.
82633         * tests/unictype/test-categ_Z.c: Likewise.
82634         * tests/unictype/test-categ_Zl.c: Likewise.
82635         * tests/unictype/test-categ_Zp.c: Likewise.
82636         * tests/unictype/test-categ_Zs.c: Likewise.
82637         * tests/unictype/test-ctype_alnum.c: Likewise.
82638         * tests/unictype/test-ctype_alpha.c: Likewise.
82639         * tests/unictype/test-ctype_blank.c: Likewise.
82640         * tests/unictype/test-ctype_cntrl.c: Likewise.
82641         * tests/unictype/test-ctype_digit.c: Likewise.
82642         * tests/unictype/test-ctype_graph.c: Likewise.
82643         * tests/unictype/test-ctype_lower.c: Likewise.
82644         * tests/unictype/test-ctype_print.c: Likewise.
82645         * tests/unictype/test-ctype_punct.c: Likewise.
82646         * tests/unictype/test-ctype_space.c: Likewise.
82647         * tests/unictype/test-ctype_upper.c: Likewise.
82648         * tests/unictype/test-ctype_xdigit.c: Likewise.
82649         * tests/unictype/test-decdigit.h: Likewise.
82650         * tests/unictype/test-digit.h: Likewise.
82651         * tests/unictype/test-numeric.h: Likewise.
82652         * tests/unictype/test-pr_alphabetic.c: Likewise.
82653         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82654         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82655         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82656         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82657         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82658         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82659         * tests/unictype/test-pr_bidi_control.c: Likewise.
82660         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82661         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82662         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82663         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82664         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82665         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82666         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82667         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82668         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82669         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82670         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82671         * tests/unictype/test-pr_combining.c: Likewise.
82672         * tests/unictype/test-pr_composite.c: Likewise.
82673         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82674         * tests/unictype/test-pr_dash.c: Likewise.
82675         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82676         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82677         * tests/unictype/test-pr_deprecated.c: Likewise.
82678         * tests/unictype/test-pr_diacritic.c: Likewise.
82679         * tests/unictype/test-pr_extender.c: Likewise.
82680         * tests/unictype/test-pr_format_control.c: Likewise.
82681         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82682         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82683         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82684         * tests/unictype/test-pr_hex_digit.c: Likewise.
82685         * tests/unictype/test-pr_hyphen.c: Likewise.
82686         * tests/unictype/test-pr_id_continue.c: Likewise.
82687         * tests/unictype/test-pr_id_start.c: Likewise.
82688         * tests/unictype/test-pr_ideographic.c: Likewise.
82689         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82690         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82691         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82692         * tests/unictype/test-pr_iso_control.c: Likewise.
82693         * tests/unictype/test-pr_join_control.c: Likewise.
82694         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82695         * tests/unictype/test-pr_line_separator.c: Likewise.
82696         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82697         * tests/unictype/test-pr_lowercase.c: Likewise.
82698         * tests/unictype/test-pr_math.c: Likewise.
82699         * tests/unictype/test-pr_non_break.c: Likewise.
82700         * tests/unictype/test-pr_not_a_character.c: Likewise.
82701         * tests/unictype/test-pr_numeric.c: Likewise.
82702         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82703         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82704         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82705         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82706         * tests/unictype/test-pr_other_id_start.c: Likewise.
82707         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82708         * tests/unictype/test-pr_other_math.c: Likewise.
82709         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82710         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82711         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82712         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82713         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82714         * tests/unictype/test-pr_private_use.c: Likewise.
82715         * tests/unictype/test-pr_punctuation.c: Likewise.
82716         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82717         * tests/unictype/test-pr_radical.c: Likewise.
82718         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82719         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82720         * tests/unictype/test-pr_space.c: Likewise.
82721         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82722         * tests/unictype/test-pr_titlecase.c: Likewise.
82723         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82724         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82725         * tests/unictype/test-pr_uppercase.c: Likewise.
82726         * tests/unictype/test-pr_variation_selector.c: Likewise.
82727         * tests/unictype/test-pr_white_space.c: Likewise.
82728         * tests/unictype/test-pr_xid_continue.c: Likewise.
82729         * tests/unictype/test-pr_xid_start.c: Likewise.
82730         * tests/unictype/test-pr_zero_width.c: Likewise.
82731         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82732         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82734 2007-11-12  Bruno Haible  <bruno@clisp.org>
82736         Unicode character classification functions.
82737         * lib/unictype.h: New file.
82738         * modules/unictype/base: New file.
82739         * modules/unictype/category-L: New file.
82740         * modules/unictype/category-Lu: New file.
82741         * modules/unictype/category-Ll: New file.
82742         * modules/unictype/category-Lt: New file.
82743         * modules/unictype/category-Lm: New file.
82744         * modules/unictype/category-Lo: New file.
82745         * modules/unictype/category-M: New file.
82746         * modules/unictype/category-Mn: New file.
82747         * modules/unictype/category-Mc: New file.
82748         * modules/unictype/category-Me: New file.
82749         * modules/unictype/category-N: New file.
82750         * modules/unictype/category-Nd: New file.
82751         * modules/unictype/category-Nl: New file.
82752         * modules/unictype/category-No: New file.
82753         * modules/unictype/category-P: New file.
82754         * modules/unictype/category-Pc: New file.
82755         * modules/unictype/category-Pd: New file.
82756         * modules/unictype/category-Ps: New file.
82757         * modules/unictype/category-Pe: New file.
82758         * modules/unictype/category-Pi: New file.
82759         * modules/unictype/category-Pf: New file.
82760         * modules/unictype/category-Po: New file.
82761         * modules/unictype/category-S: New file.
82762         * modules/unictype/category-Sm: New file.
82763         * modules/unictype/category-Sc: New file.
82764         * modules/unictype/category-Sk: New file.
82765         * modules/unictype/category-So: New file.
82766         * modules/unictype/category-Z: New file.
82767         * modules/unictype/category-Zs: New file.
82768         * modules/unictype/category-Zl: New file.
82769         * modules/unictype/category-Zp: New file.
82770         * modules/unictype/category-C: New file.
82771         * modules/unictype/category-Cc: New file.
82772         * modules/unictype/category-Cf: New file.
82773         * modules/unictype/category-Cs: New file.
82774         * modules/unictype/category-Co: New file.
82775         * modules/unictype/category-Cn: New file.
82776         * modules/unictype/category-or: New file.
82777         * modules/unictype/category-of: New file.
82778         * modules/unictype/category-test: New file.
82779         * modules/unictype/category-test-withtable: New file.
82780         * modules/unictype/category-byname: New file.
82781         * modules/unictype/category-none: New file.
82782         * modules/unictype/category-and: New file.
82783         * modules/unictype/category-and-not: New file.
82784         * modules/unictype/category-name: New file.
82785         * modules/unictype/combining-class: New file.
82786         * modules/unictype/category-all: New file.
82787         * modules/unictype/bidicategory-all: New file.
82788         * modules/unictype/bidicategory-byname: New file.
82789         * modules/unictype/bidicategory-name: New file.
82790         * modules/unictype/bidicategory-of: New file.
82791         * modules/unictype/bidicategory-test: New file.
82792         * modules/unictype/decimal-digit: New file.
82793         * modules/unictype/digit: New file.
82794         * modules/unictype/numeric: New file.
82795         * modules/unictype/mirror: New file.
82796         * modules/unictype/property-white-space: New file.
82797         * modules/unictype/property-alphabetic: New file.
82798         * modules/unictype/property-other-alphabetic: New file.
82799         * modules/unictype/property-not-a-character: New file.
82800         * modules/unictype/property-default-ignorable-code-point: New file.
82801         * modules/unictype/property-other-default-ignorable-code-point: New
82802         file.
82803         * modules/unictype/property-deprecated: New file.
82804         * modules/unictype/property-logical-order-exception: New file.
82805         * modules/unictype/property-variation-selector: New file.
82806         * modules/unictype/property-private-use: New file.
82807         * modules/unictype/property-unassigned-code-value: New file.
82808         * modules/unictype/property-uppercase: New file.
82809         * modules/unictype/property-other-uppercase: New file.
82810         * modules/unictype/property-lowercase: New file.
82811         * modules/unictype/property-other-lowercase: New file.
82812         * modules/unictype/property-titlecase: New file.
82813         * modules/unictype/property-soft-dotted: New file.
82814         * modules/unictype/property-id-start: New file.
82815         * modules/unictype/property-other-id-start: New file.
82816         * modules/unictype/property-id-continue: New file.
82817         * modules/unictype/property-other-id-continue: New file.
82818         * modules/unictype/property-xid-start: New file.
82819         * modules/unictype/property-xid-continue: New file.
82820         * modules/unictype/property-pattern-white-space: New file.
82821         * modules/unictype/property-pattern-syntax: New file.
82822         * modules/unictype/property-join-control: New file.
82823         * modules/unictype/property-grapheme-base: New file.
82824         * modules/unictype/property-grapheme-extend: New file.
82825         * modules/unictype/property-other-grapheme-extend: New file.
82826         * modules/unictype/property-grapheme-link: New file.
82827         * modules/unictype/property-bidi-control: New file.
82828         * modules/unictype/property-bidi-left-to-right: New file.
82829         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82830         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82831         * modules/unictype/property-bidi-european-digit: New file.
82832         * modules/unictype/property-bidi-eur-num-separator: New file.
82833         * modules/unictype/property-bidi-eur-num-terminator: New file.
82834         * modules/unictype/property-bidi-arabic-digit: New file.
82835         * modules/unictype/property-bidi-common-separator: New file.
82836         * modules/unictype/property-bidi-block-separator: New file.
82837         * modules/unictype/property-bidi-segment-separator: New file.
82838         * modules/unictype/property-bidi-whitespace: New file.
82839         * modules/unictype/property-bidi-non-spacing-mark: New file.
82840         * modules/unictype/property-bidi-boundary-neutral: New file.
82841         * modules/unictype/property-bidi-pdf: New file.
82842         * modules/unictype/property-bidi-embedding-or-override: New file.
82843         * modules/unictype/property-bidi-other-neutral: New file.
82844         * modules/unictype/property-hex-digit: New file.
82845         * modules/unictype/property-ascii-hex-digit: New file.
82846         * modules/unictype/property-ideographic: New file.
82847         * modules/unictype/property-unified-ideograph: New file.
82848         * modules/unictype/property-radical: New file.
82849         * modules/unictype/property-ids-binary-operator: New file.
82850         * modules/unictype/property-ids-trinary-operator: New file.
82851         * modules/unictype/property-zero-width: New file.
82852         * modules/unictype/property-space: New file.
82853         * modules/unictype/property-non-break: New file.
82854         * modules/unictype/property-iso-control: New file.
82855         * modules/unictype/property-format-control: New file.
82856         * modules/unictype/property-dash: New file.
82857         * modules/unictype/property-hyphen: New file.
82858         * modules/unictype/property-punctuation: New file.
82859         * modules/unictype/property-line-separator: New file.
82860         * modules/unictype/property-paragraph-separator: New file.
82861         * modules/unictype/property-quotation-mark: New file.
82862         * modules/unictype/property-sentence-terminal: New file.
82863         * modules/unictype/property-terminal-punctuation: New file.
82864         * modules/unictype/property-currency-symbol: New file.
82865         * modules/unictype/property-math: New file.
82866         * modules/unictype/property-other-math: New file.
82867         * modules/unictype/property-paired-punctuation: New file.
82868         * modules/unictype/property-left-of-pair: New file.
82869         * modules/unictype/property-combining: New file.
82870         * modules/unictype/property-composite: New file.
82871         * modules/unictype/property-decimal-digit: New file.
82872         * modules/unictype/property-numeric: New file.
82873         * modules/unictype/property-diacritic: New file.
82874         * modules/unictype/property-extender: New file.
82875         * modules/unictype/property-ignorable-control: New file.
82876         * modules/unictype/property-test: New file.
82877         * modules/unictype/property-byname: New file.
82878         * modules/unictype/property-all: New file.
82879         * modules/unictype/scripts: New file.
82880         * modules/unictype/scripts-all: New file.
82881         * modules/unictype/block-of: New file.
82882         * modules/unictype/block-test: New file.
82883         * modules/unictype/block-list: New file.
82884         * modules/unictype/block-all: New file.
82885         * modules/unictype/syntax-c-whitespace: New file.
82886         * modules/unictype/syntax-java-whitespace: New file.
82887         * modules/unictype/syntax-c-ident: New file.
82888         * modules/unictype/syntax-java-ident: New file.
82889         * modules/unictype/ctype-alnum: New file.
82890         * modules/unictype/ctype-alpha: New file.
82891         * modules/unictype/ctype-cntrl: New file.
82892         * modules/unictype/ctype-digit: New file.
82893         * modules/unictype/ctype-graph: New file.
82894         * modules/unictype/ctype-lower: New file.
82895         * modules/unictype/ctype-print: New file.
82896         * modules/unictype/ctype-punct: New file.
82897         * modules/unictype/ctype-space: New file.
82898         * modules/unictype/ctype-upper: New file.
82899         * modules/unictype/ctype-xdigit: New file.
82900         * modules/unictype/ctype-blank: New file.
82901         * lib/unictype/bidi_byname.c: New file.
82902         * lib/unictype/bidi_name.c: New file.
82903         * lib/unictype/bidi_of.c: New file.
82904         * lib/unictype/bidi_test.c: New file.
82905         * lib/unictype/bitmap.h: New file.
82906         * lib/unictype/block_test.c: New file.
82907         * lib/unictype/blocks.c: New file.
82908         * lib/unictype/categ_C.c: New file.
82909         * lib/unictype/categ_Cc.c: New file.
82910         * lib/unictype/categ_Cf.c: New file.
82911         * lib/unictype/categ_Cn.c: New file.
82912         * lib/unictype/categ_Co.c: New file.
82913         * lib/unictype/categ_Cs.c: New file.
82914         * lib/unictype/categ_L.c: New file.
82915         * lib/unictype/categ_Ll.c: New file.
82916         * lib/unictype/categ_Lm.c: New file.
82917         * lib/unictype/categ_Lo.c: New file.
82918         * lib/unictype/categ_Lt.c: New file.
82919         * lib/unictype/categ_Lu.c: New file.
82920         * lib/unictype/categ_M.c: New file.
82921         * lib/unictype/categ_Mc.c: New file.
82922         * lib/unictype/categ_Me.c: New file.
82923         * lib/unictype/categ_Mn.c: New file.
82924         * lib/unictype/categ_N.c: New file.
82925         * lib/unictype/categ_Nd.c: New file.
82926         * lib/unictype/categ_Nl.c: New file.
82927         * lib/unictype/categ_No.c: New file.
82928         * lib/unictype/categ_P.c: New file.
82929         * lib/unictype/categ_Pc.c: New file.
82930         * lib/unictype/categ_Pd.c: New file.
82931         * lib/unictype/categ_Pe.c: New file.
82932         * lib/unictype/categ_Pf.c: New file.
82933         * lib/unictype/categ_Pi.c: New file.
82934         * lib/unictype/categ_Po.c: New file.
82935         * lib/unictype/categ_Ps.c: New file.
82936         * lib/unictype/categ_S.c: New file.
82937         * lib/unictype/categ_Sc.c: New file.
82938         * lib/unictype/categ_Sk.c: New file.
82939         * lib/unictype/categ_Sm.c: New file.
82940         * lib/unictype/categ_So.c: New file.
82941         * lib/unictype/categ_Z.c: New file.
82942         * lib/unictype/categ_Zl.c: New file.
82943         * lib/unictype/categ_Zp.c: New file.
82944         * lib/unictype/categ_Zs.c: New file.
82945         * lib/unictype/categ_and.c: New file.
82946         * lib/unictype/categ_and_not.c: New file.
82947         * lib/unictype/categ_byname.c: New file.
82948         * lib/unictype/categ_name.c: New file.
82949         * lib/unictype/categ_none.c: New file.
82950         * lib/unictype/categ_of.c: New file.
82951         * lib/unictype/categ_or.c: New file.
82952         * lib/unictype/categ_test.c: New file.
82953         * lib/unictype/combining.c: New file.
82954         * lib/unictype/ctype_alnum.c: New file.
82955         * lib/unictype/ctype_alpha.c: New file.
82956         * lib/unictype/ctype_blank.c: New file.
82957         * lib/unictype/ctype_cntrl.c: New file.
82958         * lib/unictype/ctype_digit.c: New file.
82959         * lib/unictype/ctype_graph.c: New file.
82960         * lib/unictype/ctype_lower.c: New file.
82961         * lib/unictype/ctype_print.c: New file.
82962         * lib/unictype/ctype_punct.c: New file.
82963         * lib/unictype/ctype_space.c: New file.
82964         * lib/unictype/ctype_upper.c: New file.
82965         * lib/unictype/ctype_xdigit.c: New file.
82966         * lib/unictype/decdigit.c: New file.
82967         * lib/unictype/digit.c: New file.
82968         * lib/unictype/identsyntaxmap.h: New file.
82969         * lib/unictype/mirror.c: New file.
82970         * lib/unictype/numeric.c: New file.
82971         * lib/unictype/pr_alphabetic.c: New file.
82972         * lib/unictype/pr_ascii_hex_digit.c: New file.
82973         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82974         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82975         * lib/unictype/pr_bidi_block_separator.c: New file.
82976         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82977         * lib/unictype/pr_bidi_common_separator.c: New file.
82978         * lib/unictype/pr_bidi_control.c: New file.
82979         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82980         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82981         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82982         * lib/unictype/pr_bidi_european_digit.c: New file.
82983         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82984         * lib/unictype/pr_bidi_left_to_right.c: New file.
82985         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82986         * lib/unictype/pr_bidi_other_neutral.c: New file.
82987         * lib/unictype/pr_bidi_pdf.c: New file.
82988         * lib/unictype/pr_bidi_segment_separator.c: New file.
82989         * lib/unictype/pr_bidi_whitespace.c: New file.
82990         * lib/unictype/pr_byname.c: New file.
82991         * lib/unictype/pr_byname.gperf: New file.
82992         * lib/unictype/pr_combining.c: New file.
82993         * lib/unictype/pr_composite.c: New file.
82994         * lib/unictype/pr_currency_symbol.c: New file.
82995         * lib/unictype/pr_dash.c: New file.
82996         * lib/unictype/pr_decimal_digit.c: New file.
82997         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82998         * lib/unictype/pr_deprecated.c: New file.
82999         * lib/unictype/pr_diacritic.c: New file.
83000         * lib/unictype/pr_extender.c: New file.
83001         * lib/unictype/pr_format_control.c: New file.
83002         * lib/unictype/pr_grapheme_base.c: New file.
83003         * lib/unictype/pr_grapheme_extend.c: New file.
83004         * lib/unictype/pr_grapheme_link.c: New file.
83005         * lib/unictype/pr_hex_digit.c: New file.
83006         * lib/unictype/pr_hyphen.c: New file.
83007         * lib/unictype/pr_id_continue.c: New file.
83008         * lib/unictype/pr_id_start.c: New file.
83009         * lib/unictype/pr_ideographic.c: New file.
83010         * lib/unictype/pr_ids_binary_operator.c: New file.
83011         * lib/unictype/pr_ids_trinary_operator.c: New file.
83012         * lib/unictype/pr_ignorable_control.c: New file.
83013         * lib/unictype/pr_iso_control.c: New file.
83014         * lib/unictype/pr_join_control.c: New file.
83015         * lib/unictype/pr_left_of_pair.c: New file.
83016         * lib/unictype/pr_line_separator.c: New file.
83017         * lib/unictype/pr_logical_order_exception.c: New file.
83018         * lib/unictype/pr_lowercase.c: New file.
83019         * lib/unictype/pr_math.c: New file.
83020         * lib/unictype/pr_non_break.c: New file.
83021         * lib/unictype/pr_not_a_character.c: New file.
83022         * lib/unictype/pr_numeric.c: New file.
83023         * lib/unictype/pr_other_alphabetic.c: New file.
83024         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
83025         * lib/unictype/pr_other_grapheme_extend.c: New file.
83026         * lib/unictype/pr_other_id_continue.c: New file.
83027         * lib/unictype/pr_other_id_start.c: New file.
83028         * lib/unictype/pr_other_lowercase.c: New file.
83029         * lib/unictype/pr_other_math.c: New file.
83030         * lib/unictype/pr_other_uppercase.c: New file.
83031         * lib/unictype/pr_paired_punctuation.c: New file.
83032         * lib/unictype/pr_paragraph_separator.c: New file.
83033         * lib/unictype/pr_pattern_syntax.c: New file.
83034         * lib/unictype/pr_pattern_white_space.c: New file.
83035         * lib/unictype/pr_private_use.c: New file.
83036         * lib/unictype/pr_punctuation.c: New file.
83037         * lib/unictype/pr_quotation_mark.c: New file.
83038         * lib/unictype/pr_radical.c: New file.
83039         * lib/unictype/pr_sentence_terminal.c: New file.
83040         * lib/unictype/pr_soft_dotted.c: New file.
83041         * lib/unictype/pr_space.c: New file.
83042         * lib/unictype/pr_terminal_punctuation.c: New file.
83043         * lib/unictype/pr_test.c: New file.
83044         * lib/unictype/pr_titlecase.c: New file.
83045         * lib/unictype/pr_unassigned_code_value.c: New file.
83046         * lib/unictype/pr_unified_ideograph.c: New file.
83047         * lib/unictype/pr_uppercase.c: New file.
83048         * lib/unictype/pr_variation_selector.c: New file.
83049         * lib/unictype/pr_white_space.c: New file.
83050         * lib/unictype/pr_xid_continue.c: New file.
83051         * lib/unictype/pr_xid_start.c: New file.
83052         * lib/unictype/pr_zero_width.c: New file.
83053         * lib/unictype/scripts.c: New file.
83054         * lib/unictype/sy_c_ident.c: New file.
83055         * lib/unictype/sy_c_whitespace.c: New file.
83056         * lib/unictype/sy_java_ident.c: New file.
83057         * lib/unictype/sy_java_whitespace.c: New file.
83059         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
83060         Unicode 5.0.0.
83061         * lib/unictype/blocks.h: Likewise.
83062         * lib/unictype/categ_C.h: Likewise.
83063         * lib/unictype/categ_Cc.h: Likewise.
83064         * lib/unictype/categ_Cf.h: Likewise.
83065         * lib/unictype/categ_Cn.h: Likewise.
83066         * lib/unictype/categ_Co.h: Likewise.
83067         * lib/unictype/categ_Cs.h: Likewise.
83068         * lib/unictype/categ_L.h: Likewise.
83069         * lib/unictype/categ_Ll.h: Likewise.
83070         * lib/unictype/categ_Lm.h: Likewise.
83071         * lib/unictype/categ_Lo.h: Likewise.
83072         * lib/unictype/categ_Lt.h: Likewise.
83073         * lib/unictype/categ_Lu.h: Likewise.
83074         * lib/unictype/categ_M.h: Likewise.
83075         * lib/unictype/categ_Mc.h: Likewise.
83076         * lib/unictype/categ_Me.h: Likewise.
83077         * lib/unictype/categ_Mn.h: Likewise.
83078         * lib/unictype/categ_N.h: Likewise.
83079         * lib/unictype/categ_Nd.h: Likewise.
83080         * lib/unictype/categ_Nl.h: Likewise.
83081         * lib/unictype/categ_No.h: Likewise.
83082         * lib/unictype/categ_P.h: Likewise.
83083         * lib/unictype/categ_Pc.h: Likewise.
83084         * lib/unictype/categ_Pd.h: Likewise.
83085         * lib/unictype/categ_Pe.h: Likewise.
83086         * lib/unictype/categ_Pf.h: Likewise.
83087         * lib/unictype/categ_Pi.h: Likewise.
83088         * lib/unictype/categ_Po.h: Likewise.
83089         * lib/unictype/categ_Ps.h: Likewise.
83090         * lib/unictype/categ_S.h: Likewise.
83091         * lib/unictype/categ_Sc.h: Likewise.
83092         * lib/unictype/categ_Sk.h: Likewise.
83093         * lib/unictype/categ_Sm.h: Likewise.
83094         * lib/unictype/categ_So.h: Likewise.
83095         * lib/unictype/categ_Z.h: Likewise.
83096         * lib/unictype/categ_Zl.h: Likewise.
83097         * lib/unictype/categ_Zp.h: Likewise.
83098         * lib/unictype/categ_Zs.h: Likewise.
83099         * lib/unictype/categ_of.h: Likewise.
83100         * lib/unictype/combining.h: Likewise.
83101         * lib/unictype/ctype_alnum.h: Likewise.
83102         * lib/unictype/ctype_alpha.h: Likewise.
83103         * lib/unictype/ctype_blank.h: Likewise.
83104         * lib/unictype/ctype_cntrl.h: Likewise.
83105         * lib/unictype/ctype_digit.h: Likewise.
83106         * lib/unictype/ctype_graph.h: Likewise.
83107         * lib/unictype/ctype_lower.h: Likewise.
83108         * lib/unictype/ctype_print.h: Likewise.
83109         * lib/unictype/ctype_punct.h: Likewise.
83110         * lib/unictype/ctype_space.h: Likewise.
83111         * lib/unictype/ctype_upper.h: Likewise.
83112         * lib/unictype/ctype_xdigit.h: Likewise.
83113         * lib/unictype/decdigit.h: Likewise.
83114         * lib/unictype/digit.h: Likewise.
83115         * lib/unictype/mirror.h: Likewise.
83116         * lib/unictype/numeric.h: Likewise.
83117         * lib/unictype/pr_alphabetic.h: Likewise.
83118         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83119         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83120         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83121         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83122         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83123         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83124         * lib/unictype/pr_bidi_control.h: Likewise.
83125         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83126         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83127         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83128         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83129         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83130         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83131         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83132         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83133         * lib/unictype/pr_bidi_pdf.h: Likewise.
83134         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83135         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83136         * lib/unictype/pr_combining.h: Likewise.
83137         * lib/unictype/pr_composite.h: Likewise.
83138         * lib/unictype/pr_currency_symbol.h: Likewise.
83139         * lib/unictype/pr_dash.h: Likewise.
83140         * lib/unictype/pr_decimal_digit.h: Likewise.
83141         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83142         * lib/unictype/pr_deprecated.h: Likewise.
83143         * lib/unictype/pr_diacritic.h: Likewise.
83144         * lib/unictype/pr_extender.h: Likewise.
83145         * lib/unictype/pr_format_control.h: Likewise.
83146         * lib/unictype/pr_grapheme_base.h: Likewise.
83147         * lib/unictype/pr_grapheme_extend.h: Likewise.
83148         * lib/unictype/pr_grapheme_link.h: Likewise.
83149         * lib/unictype/pr_hex_digit.h: Likewise.
83150         * lib/unictype/pr_hyphen.h: Likewise.
83151         * lib/unictype/pr_id_continue.h: Likewise.
83152         * lib/unictype/pr_id_start.h: Likewise.
83153         * lib/unictype/pr_ideographic.h: Likewise.
83154         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83155         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83156         * lib/unictype/pr_ignorable_control.h: Likewise.
83157         * lib/unictype/pr_iso_control.h: Likewise.
83158         * lib/unictype/pr_join_control.h: Likewise.
83159         * lib/unictype/pr_left_of_pair.h: Likewise.
83160         * lib/unictype/pr_line_separator.h: Likewise.
83161         * lib/unictype/pr_logical_order_exception.h: Likewise.
83162         * lib/unictype/pr_lowercase.h: Likewise.
83163         * lib/unictype/pr_math.h: Likewise.
83164         * lib/unictype/pr_non_break.h: Likewise.
83165         * lib/unictype/pr_not_a_character.h: Likewise.
83166         * lib/unictype/pr_numeric.h: Likewise.
83167         * lib/unictype/pr_other_alphabetic.h: Likewise.
83168         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83169         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83170         * lib/unictype/pr_other_id_continue.h: Likewise.
83171         * lib/unictype/pr_other_id_start.h: Likewise.
83172         * lib/unictype/pr_other_lowercase.h: Likewise.
83173         * lib/unictype/pr_other_math.h: Likewise.
83174         * lib/unictype/pr_other_uppercase.h: Likewise.
83175         * lib/unictype/pr_paired_punctuation.h: Likewise.
83176         * lib/unictype/pr_paragraph_separator.h: Likewise.
83177         * lib/unictype/pr_pattern_syntax.h: Likewise.
83178         * lib/unictype/pr_pattern_white_space.h: Likewise.
83179         * lib/unictype/pr_private_use.h: Likewise.
83180         * lib/unictype/pr_punctuation.h: Likewise.
83181         * lib/unictype/pr_quotation_mark.h: Likewise.
83182         * lib/unictype/pr_radical.h: Likewise.
83183         * lib/unictype/pr_sentence_terminal.h: Likewise.
83184         * lib/unictype/pr_soft_dotted.h: Likewise.
83185         * lib/unictype/pr_space.h: Likewise.
83186         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83187         * lib/unictype/pr_titlecase.h: Likewise.
83188         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83189         * lib/unictype/pr_unified_ideograph.h: Likewise.
83190         * lib/unictype/pr_uppercase.h: Likewise.
83191         * lib/unictype/pr_variation_selector.h: Likewise.
83192         * lib/unictype/pr_white_space.h: Likewise.
83193         * lib/unictype/pr_xid_continue.h: Likewise.
83194         * lib/unictype/pr_xid_start.h: Likewise.
83195         * lib/unictype/pr_zero_width.h: Likewise.
83196         * lib/unictype/scripts.h: Likewise.
83197         * lib/unictype/scripts_byname.gperf: Likewise.
83198         * lib/unictype/sy_c_ident.h: Likewise.
83199         * lib/unictype/sy_c_whitespace.h: Likewise.
83200         * lib/unictype/sy_java_ident.h: Likewise.
83201         * lib/unictype/sy_java_whitespace.h: Likewise.
83203         * lib/unictype/Makefile: New file.
83204         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83205         glibc.
83206         * lib/unictype/3level.h: New file, copied from glibc.
83207         * lib/unictype/3levelbit.h: New file.
83209 2007-11-11  Bruno Haible  <bruno@clisp.org>
83211         * modules/gperf: New file.
83212         * modules/iconv_open (Depends-on): Add it.
83213         (Makefile.am): Remove the GPERF definition.
83215 2007-11-11  Bruno Haible  <bruno@clisp.org>
83217         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83218         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83220 2007-11-11  Bruno Haible  <bruno@clisp.org>
83222         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83223         (usage): Remove function.
83225 2007-11-11  Bruno Haible  <bruno@clisp.org>
83227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83228         gl_FUNC_CEILF_LIBS.
83229         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83230         gl_FUNC_CEIL_LIBS.
83231         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83232         gl_FUNC_CEILL_LIBS.
83233         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83234         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83235         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83237 2007-11-11  Bruno Haible  <bruno@clisp.org>
83239         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83240         roundf were declared but do not exist on functions.
83241         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83242         roundl were declared but do not exist on functions.
83243         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83244         HAVE_FLOORL_AND_CEILL, respectively.
83245         Needed for Sun C on Solaris 10.
83247 2007-11-11  Bruno Haible  <bruno@clisp.org>
83249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83250         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83251         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83252         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83253         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83254         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83255         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83256         HAVE_DECL_ROUNDF.
83257         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83258         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83260         of HAVE_DECL_ROUND*.
83261         * modules/math (Makefile.am): Update.
83263 2007-11-10  Bruno Haible  <bruno@clisp.org>
83265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83266         ptrdiff_t as m4/intl.m4.
83268 2007-11-10  Jim Meyering  <meyering@redhat.com>
83270         Avoid link failure for the argmatch test.
83271         * tests/test-argmatch.c (usage): Define function to avoid a link
83272         failure: argmatch_die requires a usage function.
83274 2007-11-09  Bruno Haible  <bruno@clisp.org>
83276         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83277         * doc/functions/vsnprintf.texi: Likewise.
83278         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83279         with a size argument < 2.
83281 2007-11-09  Bruno Haible  <bruno@clisp.org>
83283         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83284         buffer. Fixes an inefficiency introduced on 2007-11-03.
83286 2007-11-09  Bruno Haible  <bruno@clisp.org>
83288         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83289         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83291 2007-11-08  Jim Meyering  <meyering@redhat.com>
83293         Change cache variable name prefix "jm_" to "gl_" everywhere.
83294         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83295         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83296         * m4/uptime.m4: s/gl_/jm_/
83298 2007-11-07  Bruno Haible  <bruno@clisp.org>
83300         Update to GNU gettext 0.17.
83301         * m4/intl.m4: Update to GNU gettext 0.17.
83302         * m4/po.m4: Likewise.
83303         * modules/gettext (Files): Remove m4/ulonglong.m4.
83304         (configure.ac): Require gettext infrastructure from version 0.17.
83306 2007-11-06  Bruno Haible  <bruno@clisp.org>
83308         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83309         symbolic values are not defined in a public header.
83310         * lib/freadable.c (freadable) [QNX]: Likewise.
83311         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83312         * lib/freading.c (freading) [QNX]: Likewise.
83313         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83314         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83315         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83316         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83317         Reported by Alain Magloire.
83319         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83321 2007-11-05  Bruno Haible  <bruno@clisp.org>
83323         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83324         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83325         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83326         Reported by Eric Blake.
83328 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83329             Bruno Haible  <bruno@clisp.org>
83331         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83332         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83333         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83334         (malloc): Undefine also before including <stdlib.h>.
83335         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83336         Needed on OSF/1 4.0.
83338 2007-11-05  Jim Meyering  <meyering@redhat.com>
83340         git-version-gen: sync from coreutils.
83341         * build-aux/git-version-gen: Add comments.
83342         Change the first '-' to '.' in the snapshot version string,
83343         e.g., 6.9-377-08144 -> 6.9.377-08144
83344         Remove first parameter.
83345         Don't declare a version "-dirty" merely because a time
83346         stamp has changed.
83348 2007-11-04  Bruno Haible  <bruno@clisp.org>
83350         * lib/lock.h: Protect all macro definitions containing an 'if'
83351         statement through a "do { ... } while (0)".
83352         * lib/tls.h: Likewise.
83354 2007-11-04  Bruno Haible  <bruno@clisp.org>
83356         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83358 2007-11-04  Bruno Haible  <bruno@clisp.org>
83360         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83361         * modules/fprintf-posix (Depends-on): Add nocrash.
83362         * modules/snprintf-posix (Depends-on): Likewise.
83363         * modules/sprintf-posix (Depends-on): Likewise.
83364         * modules/vasnprintf-posix (Depends-on): Likewise.
83365         * modules/vasprintf-posix (Depends-on): Likewise.
83366         * modules/vfprintf-posix (Depends-on): Likewise.
83367         * modules/vsnprintf-posix (Depends-on): Likewise.
83368         * modules/vsprintf-posix (Depends-on): Likewise.
83369         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83370         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83371         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83372         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83373         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83375         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83377 2007-11-04  Bruno Haible  <bruno@clisp.org>
83379         * modules/nocrash: New file.
83380         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83381         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83383 2007-11-04  Bruno Haible  <bruno@clisp.org>
83385         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83386         precision handling.
83387         * tests/test-vasprintf-posix.c (test_function): Likewise.
83388         * tests/test-snprintf-posix.h (test_function): Likewise.
83389         * tests/test-sprintf-posix.h (test_function): Likewise.
83391         Fix *printf behaviour for large precisions on mingw and BeOS.
83392         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83393         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83395         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83396         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83397         gl_PRINTF_PRECISION and test its result. Invoke
83398         gl_PREREQ_VASNPRINTF_PRECISION.
83399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83406         * doc/functions/fprintf.texi: Update.
83407         * doc/functions/printf.texi: Update.
83408         * doc/functions/snprintf.texi: Update.
83409         * doc/functions/sprintf.texi: Update.
83410         * doc/functions/vfprintf.texi: Update.
83411         * doc/functions/vprintf.texi: Update.
83412         * doc/functions/vsnprintf.texi: Update.
83413         * doc/functions/vsprintf.texi: Update.
83415 2007-11-04  Bruno Haible  <bruno@clisp.org>
83417         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83419 2007-11-04  Bruno Haible  <bruno@clisp.org>
83421         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83422         Reported by Sylvain Beucler <beuc@gnu.org>.
83424 2007-11-03  Bruno Haible  <bruno@clisp.org>
83426         * tests/test-fprintf-posix2.sh: New file.
83427         * tests/test-fprintf-posix2.c: New file.
83428         * modules/fprintf-posix-tests (Files): Add them.
83429         (TESTS): Add test-fprintf-posix2.sh.
83430         (configure.ac): Check for getrlimit and setrlimit.
83431         (check_PROGRAMS): Add test-fprintf-posix2.
83433         * tests/test-printf-posix2.sh: New file.
83434         * tests/test-printf-posix2.c: New file.
83435         * modules/printf-posix-tests (Files): Add them.
83436         (TESTS): Add test-printf-posix2.sh.
83437         (configure.ac): Check for getrlimit and setrlimit.
83438         (check_PROGRAMS): Add test-printf-posix2.
83440         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83441         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83442         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83443         (decode_double): New function, copied from decode_long_double.
83444         (scale10_round_decimal_decoded): New function, extracted from
83445         scale10_round_decimal_long_double.
83446         (scale10_round_decimal_long_double): Use it.
83447         (scale10_round_decimal_double): New function.
83448         (floorlog10): New function.
83449         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83451         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83453         gl_PRINTF_ENOMEM and test its result. Invoke
83454         gl_PREREQ_VASNPRINTF_ENOMEM.
83455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83462         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83463         * modules/snprintf-posix (Depends-on): Likewise.
83464         * modules/sprintf-posix (Depends-on): Likewise.
83465         * modules/vasnprintf-posix (Depends-on): Likewise.
83466         * modules/vasprintf-posix (Depends-on): Likewise.
83467         * modules/vfprintf-posix (Depends-on): Likewise.
83468         * modules/vsnprintf-posix (Depends-on): Likewise.
83469         * modules/vsprintf-posix (Depends-on): Likewise.
83470         * doc/functions/fprintf.texi: Update.
83471         * doc/functions/printf.texi: Update.
83472         * doc/functions/snprintf.texi: Update.
83473         * doc/functions/sprintf.texi: Update.
83474         * doc/functions/vfprintf.texi: Update.
83475         * doc/functions/vprintf.texi: Update.
83476         * doc/functions/vsnprintf.texi: Update.
83477         * doc/functions/vsprintf.texi: Update.
83479 2007-11-03  Bruno Haible  <bruno@clisp.org>
83481         * modules/frexp-nolibm-tests: New file.
83483         * modules/frexp-nolibm: New file.
83484         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83486 2007-11-03  Bruno Haible  <bruno@clisp.org>
83488         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83489         value is C99 compliant.
83490         Needed for OSF/1 5.1.
83492 2007-11-03  Bruno Haible  <bruno@clisp.org>
83494         Fix out-of-memory handling of vasnprintf.
83495         * lib/printf-parse.c: Include <errno.h>.
83496         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83497         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83498         is already set.
83500 2007-11-02  Eric Blake  <ebb9@byu.net>
83502         Fix tests on cygwin.
83503         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83505 2007-11-01  Bruno Haible  <bruno@clisp.org>
83507         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83508         warning.
83509         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83510         needed for POSIX compatibility.
83512 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83514         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83515         for compatibility with GNU.
83517 2007-11-01  Bruno Haible  <bruno@clisp.org>
83519         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83520         (putenv): Renamed from rpl_putenv. Change argument type from
83521         'const char *' to 'char *'.
83522         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83523         of defining putenv in config.h, just set REPLACE_PUTENV.
83524         * modules/putenv (Depends-on): Add stdlib.
83525         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83526         (Include): Use <stdlib.h>.
83527         * lib/stdlib.in.h (putenv): New declaration.
83528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83529         REPLACE_PUTENV.
83530         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83531         REPLACE_PUTENV.
83532         Needed for MacOS X 10.5.0.
83533         Reported by Peter O'Gorman <peter@pogma.com>.
83535 2007-11-01  Jim Meyering  <meyering@redhat.com>
83537         Treat an empty date string exactly like "0".
83538         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83539         if the remaining date string (to be parsed) is empty, use "0".
83540         Reported by Mischa Molhoek and discussed in this thread:
83541         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83543 2007-10-31  Bruno Haible  <bruno@clisp.org>
83545         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83546         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83547         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83548         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83549         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83550         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83552 2007-10-31  Bruno Haible  <bruno@clisp.org>
83554         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83555         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83556         (AC_TYPE_LONG_LONG_INT): Use it.
83557         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83558         it as well.
83559         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83560         to m4/longlong.m4.
83561         * modules/stdint (Files): Remove m4/ulonglong.m4.
83562         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83563         m4/ulonglong.m4.
83564         * modules/strtoumax (Files): Likewise.
83566 2007-10-30  Bruno Haible  <bruno@clisp.org>
83568         * modules/xvasprintf-posix: New file.
83569         Suggested by Eric Blake.
83571 2007-10-30  Bruno Haible  <bruno@clisp.org>
83573         * modules/xprintf-posix-tests: New file.
83574         * tests/test-xprintf-posix.sh: New file.
83575         * tests/test-xprintf-posix.c: New file.
83576         * tests/test-xfprintf-posix.c: New file.
83578         * modules/xprintf-posix: New file.
83580 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83582         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83583         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83584         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83586 2007-10-29  Bruno Haible  <bruno@clisp.org>
83588         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83589         contain the special marker '_cv_'.
83590         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83591         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83593         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83594         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83595         Reported by Ralf Wildenhues.
83597 2007-10-29  Bruno Haible  <bruno@clisp.org>
83599         * gnulib-tool (func_import): When --lgpl is not specified, set
83600         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83601         GPLv3.
83602         Reported by Simon Josefsson.
83604 2007-10-28  Bruno Haible  <bruno@clisp.org>
83606         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83607         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83608         HAVE_DECL_ISFINITE.
83609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83610         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83611         HAVE_DECL_ISFINITE.
83613 2007-10-28  Bruno Haible  <bruno@clisp.org>
83615         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83616         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83618 2007-10-28  Bruno Haible  <bruno@clisp.org>
83620         Fix link errors with Sun C 5.0 on Solaris 10.
83621         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83622         function is declared but not present in the compiler's libm.
83623         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83624         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83625         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83626         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83627         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83628         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83629         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83631         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83632         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83633         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83634         HAVE_DECL_FLOORL.
83636 2007-10-28  Bruno Haible  <bruno@clisp.org>
83638         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83639         gl_FUNC_FLOORL. Cache the result.
83640         (gl_FUNC_FLOORL): Use it.
83641         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83642         gl_FUNC_CEILL. Cache the result.
83643         (gl_FUNC_CEILL): Use it.
83645         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83646         gl_FUNC_FLOOR. Cache the result.
83647         (gl_FUNC_FLOOR): Use it.
83648         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83649         gl_FUNC_CEIL. Cache the result.
83650         (gl_FUNC_CEIL): Use it.
83652         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83653         gl_FUNC_FLOORF. Cache the result.
83654         (gl_FUNC_FLOORF): Use it.
83655         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83656         gl_FUNC_CEILF. Cache the result.
83657         (gl_FUNC_CEILF): Use it.
83659 2007-10-28  Bruno Haible  <bruno@clisp.org>
83661         * gnulib-tool: Allow specifying the LGPL version number through
83662         --lgpl=2 or --lgpl=3.
83663         (func_usage): Document --lgpl with argument.
83664         Handle --lgpl=... arguments.
83665         (func_import): Recognize also gl_LGPL calls with an argument. When
83666         --lgpl=2 is used and the module's license is just LGPL, report an
83667         error. Set sed_transform_lib_file according to the lgpl variable. In
83668         the generated files, use --lgpl or gl_LGPL invocations with argument,
83669         if necessary.
83670         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83671         an LGPv2+ license.
83672         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83673         gl_LGPL macro.
83675 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83676             Bruno Haible  <bruno@clisp.org>
83678         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83679         (u16_uctomb_aux): Likewise.
83680         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83681         !HAVE_INLINE.
83682         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83684 2007-10-28  Bruno Haible  <bruno@clisp.org>
83686         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83687         Invoke AM_GETTEXT_OPTION if it exists.
83688         * modules/vasprintf: Likewise.
83689         * modules/verror: Likewise.
83690         * modules/xprintf: Likewise.
83691         * modules/xvasprintf: Likewise.
83693 2007-10-27  Ben Pfaff  <blp@gnu.org>
83695         * lib/math.in.h: Define isfinite macro and prototypes for
83696         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83697         implementations.
83698         * m4/math_h.m4: New substitutions for isfinite module.
83699         * lib/isfinite.c: New file.
83700         * m4/isfinite.m4: New file.
83701         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83702         * modules/isfinite: New file.
83703         * modules/isfinite-tests: New file.
83704         * tests/tests-isfinite.c: New file.
83705         * doc/functions/isfinite.texi: Mention isfinite module.
83706         * MODULES.html.sh: Mention new module.
83708 2007-10-27  Ben Pfaff  <blp@gnu.org>
83710         Ralf Wildenhues reported that Tru64 4.0D declares the round
83711         functions but does not have definitions.
83712         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83713         cannot be found in any library, set the output variable to
83714         "missing" instead of "".
83715         * m4/round.m4: Also use our substitute if we cannot find round in
83716         any library, even if it is declared.
83717         * m4/roundf.m4: Likewise for roundf.
83718         * m4/roundl.m4: Likewise for roundl.
83719         * lib/math.in.h: Undefine roundf, round, roundl before defining
83720         their replacements, to allow for hypothetical systems where these
83721         may be defined as macros but not available in libraries.
83723 2007-10-27  Bruno Haible  <bruno@clisp.org>
83725         * doc/gnulib.texi: Invoke @firstparagraphindent.
83726         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83727         changes in gnulib.
83728         (Source changes): New section.
83730 2007-10-26  Bruno Haible  <bruno@clisp.org>
83732         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83733         borrowed from autoconf.
83735 2007-10-26  Bruno Haible  <bruno@clisp.org>
83737         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83738         strerror returned the empty string. Needed on HP-UX 11.00.
83740 2007-10-24  Micah Cowan  <micah@cowan.name>
83742         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83743         * build-aux/bootstrap: Remove support for now-unnecessary option,
83744         --cvs-user, and envvars CVS_USER, CVS_RSH.
83746 2007-10-24  Jim Meyering  <meyering@redhat.com>
83748         Avoid diagnostics from sha1sum when there is no cached checksum.
83749         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83750         if the po.s1 file hasn't been created yet.
83752         * build-aux/bootstrap: Sync from coreutils:
83753         2007-10-24  Jim Meyering  <meyering@redhat.com>
83754         Get gnulib from the git repository, not from an obsolete cvs one.
83755         * build-aux/bootstrap: Suggestion from Micah Cowan.
83756         2007-10-04  Jim Meyering  <jim@meyering.net>
83757         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83758         (update_po_files): Work also when there are no .po files in po/.
83760 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83762         * README: Append ".git" to git and cg examples.
83763         Problem reported by Benoit Sigoure.
83765 2007-10-23  Micah Cowan  <micah@cowan.name>
83767         * users.txt: Add wget.
83769 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83771         Fix linking of some unistdio tests on FreeBSD.
83772         * modules/unistdio/u16-vsnprintf-tests
83773         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83774         * modules/unistdio/u16-vsprintf-tests
83775         (test_u16_vsnprintf1_LDADD): Likewise.
83776         * modules/unistdio/u32-vsnprintf-tests
83777         (test_u32_vsnprintf1_LDADD): Likewise.
83778         * modules/unistdio/u32-vsprintf-tests
83779         (test_u32_vsprintf1_LDADD): Likewise.
83780         * modules/unistdio/u8-vsnprintf-tests
83781         (test_u8_vsnprintf1_LDADD): Likewise.
83782         * modules/unistdio/u8-vsprintf-tests
83783         (test_u8_vsprintf1_LDADD): Likewise.
83784         * modules/unistdio/ulc-vsnprintf-tests
83785         (test_ulc_vsnprintf1_LDADD): Likewise.
83786         * modules/unistdio/ulc-vsprintf-tests
83787         (test_ulc_vsprintf1_LDADD): Likewise.
83789         Fix linking of some uniconv tests on FreeBSD.
83790         * modules/uniconv/u16-conv-from-enc-tests
83791         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83792         * modules/uniconv/u16-conv-to-enc-tests
83793         (test_u16_conv_to_enc_LDADD): Likewise.
83794         * modules/uniconv/u16-strconv-from-enc-tests
83795         (test_u16_strconv_from_enc_LDADD): Likewise.
83796         * modules/uniconv/u16-strconv-to-enc-tests
83797         (test_u16_strconv_to_enc_LDADD): Likewise.
83798         * modules/uniconv/u32-conv-from-enc-tests
83799         (test_u32_conv_from_enc_LDADD): Likewise.
83800         * modules/uniconv/u32-conv-to-enc-tests
83801         (test_u32_conv_to_enc_LDADD): Likewise.
83802         * modules/uniconv/u32-strconv-from-enc-tests
83803         (test_u32_strconv_from_enc_LDADD): Likewise.
83804         * modules/uniconv/u32-strconv-to-enc-tests
83805         (test_u32_strconv_to_enc_LDADD): Likewise.
83806         * modules/uniconv/u8-conv-from-enc-tests
83807         (test_u8_conv_from_enc_LDADD): Likewise.
83808         * modules/uniconv/u8-conv-to-enc-tests
83809         (test_u8_conv_to_enc_LDADD): Likewise.
83810         * modules/uniconv/u8-strconv-from-enc-tests
83811         (test_u8_strconv_from_enc_LDADD): Likewise.
83812         * modules/uniconv/u8-strconv-to-enc-tests
83813         (test_u8_strconv_to_enc_LDADD): Likewise.
83815 2007-10-22  Bruno Haible  <bruno@clisp.org>
83817         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83818         size.
83820 2007-10-22  Eric Blake  <ebb9@byu.net>
83822         Tweak x*printf documentation.
83823         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83824         variable name and comments.
83825         Suggested by Bruno Haible.
83827 2007-10-22  Bruno Haible  <bruno@clisp.org>
83829         * lib/acl.c (copy_acl): Fix file name in comment.
83831 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83833         Fix Tru64 problem with stdbool.h.
83834         * lib/stdbool.in.h (false, true):
83835         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83836         Don't declare as an enum in this situation; it runs afoul of Tru64.
83837         Problem reported by Steven M. Schweda in
83838         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83840 2007-10-22  Eric Blake  <ebb9@byu.net>
83842         Also wrap vf?printf.
83843         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83844         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83845         (xvprintf, xvfprintf): New functions.
83847 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83849         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83850         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83852         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83853         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83855 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83857         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83858         by Bruno Haible.
83860 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83862         * lib/getloadavg.c
83863         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83864         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83866         * tests/test-i-ring.c: Work for C89.
83868 2007-10-22  Bruno Haible  <bruno@clisp.org>
83870         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83871         -1u, in preprocessor expression, so that we don't test for the bug
83872         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83873         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83875 2007-10-22  Eric Blake  <ebb9@byu.net>
83877         * tests/test-yesno.sh: Silence stderr during test.
83879 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83881         * modules/crypto/gc-camellia: New file.
83883         * m4/gc-camellia.m4: New file.
83885         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83887         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83889 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83891         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83892         --help to stdout.  Reported by sms@antinode.org (Steven
83893         M. Schweda).
83895 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83897         * users.txt: Fix link to libksba.
83899 2007-10-21  Ben Pfaff  <blp@gnu.org>
83901         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83902         round.c roundf implementation that depends on floorf and ceilf to
83903         be tested unconditionally.
83905 2007-10-21  Ben Pfaff  <blp@gnu.org>
83907         * m4/check-libm-func.m4: Removed.
83908         * m4/check-math-lib.m4: New file.
83909         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83910         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83911         definition and lack of AC_LIBOBJ([roundf]).
83912         * m4/roundl.m4: Ditto, and similarly for roundl.
83913         * modules/round: Reference new m4 file.
83914         * modules/roundf: Ditto.
83915         * modules/roundl: Ditto.
83916         * tests/test-round2.c (main): Use ROUND instead of round.
83917         Bug report from Bruno Haible.
83919 2007-10-21  Bruno Haible  <bruno@clisp.org>
83921         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83922         context.
83924 2007-10-21  Bruno Haible  <bruno@clisp.org>
83926         * tests/test-wcwidth.c (main): Allow negative result for some control
83927         characters.
83929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83930         Needed on OSF/1 5.1.
83932 2007-10-21  Bruno Haible  <bruno@clisp.org>
83934         * tests/test-floorf1.c: Include isnanf.h.
83935         (main): Use isnanf() instead of isnan().
83936         * tests/test-ceilf1.c: Include isnanf.h.
83937         (main): Use isnanf() instead of isnan().
83938         * tests/test-truncf1.c: Include isnanf.h.
83939         (main): Use isnanf() instead of isnan().
83940         * tests/test-roundf1.c: Include isnanf.h.
83941         (main): Use isnanf() instead of isnan().
83943 2007-10-21  Eric Blake  <ebb9@byu.net>
83945         * users.txt: Update URL for m4.
83947 2007-10-21  Bruno Haible  <bruno@clisp.org>
83949         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83951 2007-10-21  Bruno Haible  <bruno@clisp.org>
83953         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83954         Git's management files if the CVS files are not present.
83956 2007-10-20  Bruno Haible  <bruno@clisp.org>
83958         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83959         gcc-3.4.x.
83961 2007-10-20  Ben Pfaff  <blp@gnu.org>
83963         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83964         implementations.
83965         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83966         * lib/round.c: New file.
83967         * lib/roundf.c: New file.
83968         * lib/roundl.c: New file.
83969         * m4/round.m4: New file.
83970         * m4/roundf.m4: New file.
83971         * m4/roundl.m4: New file.
83972         * m4/check-libm-func-m4: New file.
83973         * modules/math: Replace round, roundf, roundl related @VARS@ in
83974         math.in.h.
83975         * modules/round: New file.
83976         * modules/round-tests: New file.
83977         * modules/roundf: New file.
83978         * modules/roundf-tests: New file.
83979         * modules/roundl: New file.
83980         * modules/roundl-tests: New file.
83981         * tests/test-round1.c: New file.
83982         * tests/test-round2.c: New file.
83983         * tests/test-roundf1.c: New file.
83984         * tests/test-roundf2.c: New file.
83985         * tests/test-roundl.c: New file.
83986         * doc/functions/round.texi: Mention round module.
83987         * doc/functions/roundf.texi: Mention roundf module.
83988         * doc/functions/roundl.texi: Mention roundl module.
83989         * MODULES.html.sh: Mention new modules.
83990         Thanks to Bruno Haible for suggestions.
83992 2007-10-20  Jim Meyering  <meyering@redhat.com>
83994         * lib/xprintf.c: Include <config.h> unconditionally.
83996         Change xprintf's license to GPL.
83997         * modules/xprintf (License): s/LGPL/GPL/, since this module
83998         depends on modules (exit and exitfail) which are GPL.
83999         Suggestion from Bruno Haible.
84001         xprintf fixes.
84002         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
84003         Use a clearer diagnostic.
84004         Patch from Bruno Haible.
84006 2007-10-20  Bruno Haible  <bruno@clisp.org>
84008         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
84009         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
84010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84012 2007-10-20  Bruno Haible  <bruno@clisp.org>
84014         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
84015         precision in the comparison result > x - 1 or similar.
84016         * tests/test-ceilf2.c (correct_result_p): Likewise.
84017         * tests/test-truncf2.c (correct_result_p): Likewise.
84018         * tests/test-trunc2.c (correct_result_p): Likewise.
84019         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84021 2007-10-20  Bruno Haible  <bruno@clisp.org>
84023         * modules/ceil: New file.
84024         * m4/ceil.m4: New file.
84025         * doc/functions/ceil.texi: Mention the 'ceil' module.
84027 2007-10-20  Bruno Haible  <bruno@clisp.org>
84029         * modules/floor: New file.
84030         * m4/floor.m4: New file.
84031         * doc/functions/floor.texi: Mention the 'floor' module.
84033 2007-10-20  Bruno Haible  <bruno@clisp.org>
84035         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
84036         of %a.
84037         * modules/floorf-tests (Depends-on): Likewise.
84038         * modules/truncf-tests (Depends-on): Likewise.
84039         * modules/trunc-tests (Depends-on): Likewise.
84040         Reported by Ben Pfaff.
84042 2007-10-19  Jim Meyering  <meyering@redhat.com>
84044         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
84045         Don't bother testing specific errno values.  Just test ferror.
84047         New module: xprintf
84048         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
84050 2007-10-19  Bruno Haible  <bruno@clisp.org>
84052         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
84053         syntax.
84054         * modules/javaexec (Makefile.am): Likewise.
84055         * modules/relocatable-prog (Makefile.am): Likewise.
84056         Suggested by Jim Meyering.
84058 2007-10-18  Bruno Haible  <bruno@clisp.org>
84060         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
84061         Reported by Jim Meyering.
84063 2007-10-18  Eric Blake  <ebb9@byu.net>
84065         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
84067 2007-10-18  Bruno Haible  <bruno@clisp.org>
84069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
84070         the format string into writable memory. Needed in Fortify conditions.
84072 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
84073             Bruno Haible  <bruno@clisp.org>
84075         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
84076         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
84077         * modules/trim (Depends-on): Add mbchar.
84078         (configure.ac): Add gl_FUNC_MBRTOWC.
84079         (Makefile.am): Augment lib_SOURCES.
84081 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84083         Modify glob.c to use fstatat and dirfd, to simplify it.
84084         Suggested by Eric Blake.
84085         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
84086         Don't include <stdbool.h>; not used.
84087         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
84088         (link_exists_p): Simplify implementation, since we can now assume
84089         dirfd and fstatat.
84090         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
84092 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84094         * gnulib-tool (func_get_dependencies): Fix sed script to
84095         match only tests.
84097 2007-10-17  Bruno Haible  <bruno@clisp.org>
84099         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
84100         allow locale names without encoding suffix.
84101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
84102         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84104 2007-10-16  Bruno Haible  <bruno@clisp.org>
84106         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84107         * lib/getgroups.c (getgroups): Likewise.
84108         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84110 2007-10-16  Bruno Haible  <bruno@clisp.org>
84112         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84113         * modules/malloc-posix (License): Likewise.
84114         * modules/realloc-posix (License): Likewise.
84115         * modules/calloc-posix (License): Likewise.
84116         * modules/intprops (License): Change from GPL to LGPL, with
84117         Paul Eggert's approval.
84119 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84121         Merge glibc changes into lib/glob.c.
84123         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84124         2007-10-15 04:59:03 UTC.  Here are the changes:
84126         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84128         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84130         * lib/glob.c: Add some branch prediction throughout.
84132         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84134         [BZ #5103]
84135         * lib/glob.c (glob): Recognize patterns starting \/.
84137         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84139         [BZ #3996]
84140         * lib/glob.c (attribute_hidden): Define if not defined.
84141         (glob): Unescape dirname, filename or username when needed and not
84142         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84143         is NULL.  Handle unescaped [ in pattern without closing ].
84144         Don't pass GLOB_CHECK down to recursive glob for directories.
84145         (__glob_pattern_type): New function.
84146         (__glob_pattern_p): Implement using __glob_pattern_type.
84147         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84148         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84149         Remove unreachable code.
84151         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84153         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84154         explain why there are no leaks.
84156         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84158         [BZ #3253]
84159         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84160         time, rather allocate increasingly bigger arrays of pointers, if
84161         possible with alloca, if too large with malloc.
84163 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84165         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84166         Problem reported by H.Merijn Brand in
84167         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84169         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84171 2007-10-15  Bruno Haible  <bruno@clisp.org>
84173         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84174         with explicit rpl_ prefix.
84175         * lib/fopen.c (fopen): Likewise.
84176         * lib/freopen.c (freopen): Likewise.
84177         * lib/iconv.c (iconv): Likewise.
84178         * lib/iconv_close.c (iconv_close): Likewise.
84180 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84182         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84184 2007-10-15  Bruno Haible  <bruno@clisp.org>
84186         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84187         <stddef.h> instead of <stdlib.h> since we only need NULL.
84188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84190 2007-10-15  Bruno Haible  <bruno@clisp.org>
84192         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84193         Replace paragraph talking about LIBOBJS.
84194         Reported by Colin Watson <cjwatson@debian.org>.
84196 2007-10-15  Bruno Haible  <bruno@clisp.org>
84198         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84199         <stdlib.h> before using NULL.
84201 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84203         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84204         Reported by Albert Chin <china@thewrittenword.com>.
84206 2007-10-14  Bruno Haible  <bruno@clisp.org>
84208         * modules/iconv_open-utf-tests: New file.
84209         * tests/test-iconv-utf.c: New file.
84211         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84212         * modules/iconv_open-utf: New file.
84213         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84214         (iconv, iconv_close): New declarations.
84215         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84216         be defined.
84217         (iconv_open): Add special handling of conversion between UTF-8 and
84218         UTF-{16,32}{BE,LE}.
84219         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84220         * lib/iconv_close.c: New file.
84221         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84222         gl_FUNC_ICONV_OPEN.
84223         (gl_FUNC_ICONV_OPEN): Use it.
84224         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84225         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84226         and REPLACE_ICONV_UTF.
84227         * modules/iconv_open (Depends-on): Add c-strcase.
84228         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84229         ICONV_CONST.
84230         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84232 2007-10-13  Albert Chin  <china@thewrittenword.com>
84233             Bruno Haible  <bruno@clisp.org>
84235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84236         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84238 2007-10-13  Bruno Haible  <bruno@clisp.org>
84240         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84241         defined, use the ISO C99 inline semantics.
84242         * lib/argp.h (ARGP_EI): Likewise.
84244 2007-10-13  Bruno Haible  <bruno@clisp.org>
84246         Handle 'inline' change in gcc 4.3.0.
84247         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84248         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84249         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84250         argp_fmtstream_point): Disable 'extern' declaration if the function
84251         definition is going to be provided inline.
84252         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84253         semantics, not the ISO C99 inline semantics.
84254         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84255         'extern' declaration if the function definition is going to be provided
84256         inline.
84257         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84258         the GNU C inline semantics, not the ISO C99 inline semantics. With
84259         GCC 4.2, avoid a warning.
84261 2007-10-13  Bruno Haible  <bruno@clisp.org>
84263         * lib/freading.h (freading): Enable the use of __freading for
84264         glibc >= 2.7.
84265         * lib/freading.c (freading): Likewise.
84267 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84269         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84270         "warning: C99 inline functions are not supported; using GNU89".
84272 2007-10-12  Bruno Haible  <bruno@clisp.org>
84274         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84275         of 2.
84276         * tests/test-ceilf2.c: New file.
84277         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84279         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84280         * modules/ceilf-tests: Update.
84282 2007-10-12  Bruno Haible  <bruno@clisp.org>
84284         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84285         of 2.
84286         * tests/test-floorf2.c: New file.
84287         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84289         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84290         * modules/floorf-tests: Update.
84292 2007-10-12  Bruno Haible  <bruno@clisp.org>
84294         * tests/test-trunc2.c: New file.
84295         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84297         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84298         * modules/trunc-tests: Update.
84300 2007-10-12  Bruno Haible  <bruno@clisp.org>
84302         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84303         of 2.
84304         * tests/test-truncf2.c: New file.
84305         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84307         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84308         * modules/truncf-tests: Update.
84310 2007-10-11  Eric Blake  <ebb9@byu.net>
84312         Don't claim strerror is broken on Interix.
84313         * doc/functions/strerror.texi (strerror): Known broken systems are
84314         now Solaris 8, and not Interix.
84315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84316         Interix on cross-compile.
84317         Reported by Martin Koeppe in
84318         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84320 2007-10-11  Bruno Haible  <bruno@clisp.org>
84322         * modules/i-ring-tests: New file.
84323         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84324         instead of assert.
84326 2007-10-11  Bruno Haible  <bruno@clisp.org>
84328         * modules/filenamecat-tests: New file.
84329         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84330         * lib/filenamecat.c: Remove test code.
84332 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84334         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84336         * lib/strerror.c: Include <string.h> always, to test interface,
84337         and to remove the need for the dummy.
84338         Include intprops.h to compute width instead of doing it ourselves
84339         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84340         (strerror): Define it to return NULL if there's no system strerror.
84341         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84342         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84343         ancient pre-strerror Unix systems well any more.  Saying "unknown
84344         system error" is enough.
84345         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84346         simpler strerror.c implementation.
84347         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84348         Simplify the tests to reflect the simpler strerror implementation.
84349         * modules/strerror (Depends-on): Add intprops.
84351 2007-10-09  Eric Blake  <ebb9@byu.net>
84353         Silence test-fpending.
84354         * modules/fpending-tests (Files): Add wrapper script.
84355         * tests/test-fpending.sh: New file.
84357 2007-10-09  Bruno Haible  <bruno@clisp.org>
84359         * MODULES.html.sh (func_module): Don't create a hyperlink for
84360         function names like 'printf_frexp'.
84361         (Misc): Add crc, memxor.
84362         (Characteristics of floating types): New section.
84363         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84364         isnanf-nolibm, signbit, trunc, truncf, truncl.
84365         (Enhancements for ISO C 99 functions): New subsection Input/output.
84366         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84367         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84368         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84369         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84370         (Enhancements for POSIX:2001 functions): Add chdir-long.
84371         (File system functions): Add areadlink, chdir-safer, read-file.
84372         Remove cycle-check.
84373         (File system as inode set): New section.
84374         (Date and time): Add gethrxtime.
84375         (Multithreading): Add openmp.
84376         (Internationalization functions): Add localename.
84377         (Unicode string functions): Add unistr/u*-mbsnlen.
84378         (Support for maintaining and releasing projects): Add git-version-gen.
84379         (Lone files): Remove directories.
84381 2007-10-08  Ben Pfaff  <blp@gnu.org>
84383         * lib/xmalloca.h: Fix typo in comment.
84385 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84387         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84388         when avoiding problems with integer overflow.  Use a portable test
84389         instead.
84391 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84393         * modules/dummy (License): Change to LGPLv2+.
84394         * modules/float (License): Likewise
84395         * modules/realloc (License): Likewise
84396         * modules/stdlib (License): Likewise
84398 2007-10-07  Bruno Haible  <bruno@clisp.org>
84400         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84401         * floor.c (TWO_MANT_DIG): Likewise.
84402         * ceil.c (TWO_MANT_DIG): Likewise.
84403         Reported by Ben Pfaff.
84405 2007-10-07  Bruno Haible  <bruno@clisp.org>
84407         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84408         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84409         * lib/frexp.c (FUNC): Likewise.
84410         * lib/printf-frexp.h (printf_frexp): Likewise.
84411         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84412         * lib/printf-frexp.c (FUNC): Likewise.
84413         Suggested by Jim Meyering.
84415 2007-10-07  Jim Meyering  <meyering@redhat.com>
84417         Make xnanosleep's integer overflow test more robust.
84418         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84419         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84421 2007-10-07  Bruno Haible  <bruno@clisp.org>
84423         * NEWS: Mention the license change.
84425         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84426         abbreviations in the modules files.
84428         Change copyright notice from GPLv2+ to GPLv3+.
84429         * README: Change copyright notice.
84430         * MODULES.html.sh: Likewise.
84431         * build-aux/bootstrap.conf: Likewise.
84432         * build-aux/config.libpath: Likewise.
84433         * build-aux/csharpcomp.sh.in: Likewise.
84434         * build-aux/csharpexec.sh.in: Likewise.
84435         * build-aux/install-reloc: Likewise.
84436         * build-aux/javacomp.sh.in: Likewise.
84437         * build-aux/javaexec.sh.in: Likewise.
84438         * build-aux/ldd.sh.in: Likewise.
84439         * build-aux/reloc-ldflags: Likewise.
84440         * build-aux/relocatable.sh.in: Likewise.
84441         * build-aux/x-to-1.in: Likewise.
84442         * check-module: Likewise.
84443         * config/srclistvars.sh: Likewise.
84444         * gnulib-tool: Likewise.
84445         * lib/acl-internal.h: Likewise.
84446         * lib/acl.c: Likewise.
84447         * lib/acl.h: Likewise.
84448         * lib/acl_entries.c: Likewise.
84449         * lib/areadlink-with-size.c: Likewise.
84450         * lib/areadlink.c: Likewise.
84451         * lib/areadlink.h: Likewise.
84452         * lib/argmatch.c: Likewise.
84453         * lib/argmatch.h: Likewise.
84454         * lib/argp-ba.c: Likewise.
84455         * lib/argp-eexst.c: Likewise.
84456         * lib/argp-fmtstream.c: Likewise.
84457         * lib/argp-fmtstream.h: Likewise.
84458         * lib/argp-fs-xinl.c: Likewise.
84459         * lib/argp-help.c: Likewise.
84460         * lib/argp-namefrob.h: Likewise.
84461         * lib/argp-parse.c: Likewise.
84462         * lib/argp-pin.c: Likewise.
84463         * lib/argp-pv.c: Likewise.
84464         * lib/argp-pvh.c: Likewise.
84465         * lib/argp-xinl.c: Likewise.
84466         * lib/argp.h: Likewise.
84467         * lib/at-func.c: Likewise.
84468         * lib/atanl.c: Likewise.
84469         * lib/backupfile.c: Likewise.
84470         * lib/backupfile.h: Likewise.
84471         * lib/basename.c: Likewise.
84472         * lib/binary-io.h: Likewise.
84473         * lib/byteswap.in.h: Likewise.
84474         * lib/c-stack.c: Likewise.
84475         * lib/c-stack.h: Likewise.
84476         * lib/c-strcasestr.c: Likewise.
84477         * lib/c-strcasestr.h: Likewise.
84478         * lib/c-strstr.c: Likewise.
84479         * lib/c-strstr.h: Likewise.
84480         * lib/c-strtod.c: Likewise.
84481         * lib/calloc.c: Likewise.
84482         * lib/canon-host.c: Likewise.
84483         * lib/canon-host.h: Likewise.
84484         * lib/canonicalize-lgpl.c: Likewise.
84485         * lib/canonicalize.c: Likewise.
84486         * lib/canonicalize.h: Likewise.
84487         * lib/ceil.c: Likewise.
84488         * lib/ceilf.c: Likewise.
84489         * lib/ceill.c: Likewise.
84490         * lib/chdir-long.c: Likewise.
84491         * lib/chdir-long.h: Likewise.
84492         * lib/chdir-safer.c: Likewise.
84493         * lib/chdir-safer.h: Likewise.
84494         * lib/chown.c: Likewise.
84495         * lib/classpath.c: Likewise.
84496         * lib/classpath.h: Likewise.
84497         * lib/clean-temp.c: Likewise.
84498         * lib/clean-temp.h: Likewise.
84499         * lib/cloexec.c: Likewise.
84500         * lib/close-stream.c: Likewise.
84501         * lib/closein.c: Likewise.
84502         * lib/closein.h: Likewise.
84503         * lib/closeout.c: Likewise.
84504         * lib/closeout.h: Likewise.
84505         * lib/concat-filename.c: Likewise.
84506         * lib/copy-file.c: Likewise.
84507         * lib/copy-file.h: Likewise.
84508         * lib/count-one-bits.h: Likewise.
84509         * lib/crc.c: Likewise.
84510         * lib/crc.h: Likewise.
84511         * lib/creat-safer.c: Likewise.
84512         * lib/csharpcomp.c: Likewise.
84513         * lib/csharpcomp.h: Likewise.
84514         * lib/csharpexec.c: Likewise.
84515         * lib/csharpexec.h: Likewise.
84516         * lib/cycle-check.c: Likewise.
84517         * lib/cycle-check.h: Likewise.
84518         * lib/diacrit.c: Likewise.
84519         * lib/diacrit.h: Likewise.
84520         * lib/diffseq.h: Likewise.
84521         * lib/dirchownmod.c: Likewise.
84522         * lib/dirent.in.h: Likewise.
84523         * lib/dirfd.c: Likewise.
84524         * lib/dirfd.h: Likewise.
84525         * lib/dirname.c: Likewise.
84526         * lib/dirname.h: Likewise.
84527         * lib/dummy.c: Likewise.
84528         * lib/dup-safer.c: Likewise.
84529         * lib/dup2.c: Likewise.
84530         * lib/eealloc.h: Likewise.
84531         * lib/error.c: Likewise.
84532         * lib/error.h: Likewise.
84533         * lib/euidaccess.c: Likewise.
84534         * lib/exclude.c: Likewise.
84535         * lib/exclude.h: Likewise.
84536         * lib/execute.c: Likewise.
84537         * lib/execute.h: Likewise.
84538         * lib/exitfail.c: Likewise.
84539         * lib/exitfail.h: Likewise.
84540         * lib/expl.c: Likewise.
84541         * lib/fatal-signal.c: Likewise.
84542         * lib/fatal-signal.h: Likewise.
84543         * lib/fbufmode.c: Likewise.
84544         * lib/fbufmode.h: Likewise.
84545         * lib/fchdir.c: Likewise.
84546         * lib/fchmodat.c: Likewise.
84547         * lib/fchownat.c: Likewise.
84548         * lib/fcntl--.h: Likewise.
84549         * lib/fcntl-safer.h: Likewise.
84550         * lib/fcntl.in.h: Likewise.
84551         * lib/fd-safer.c: Likewise.
84552         * lib/fflush.c: Likewise.
84553         * lib/file-has-acl.c: Likewise.
84554         * lib/file-set.c: Likewise.
84555         * lib/file-type.c: Likewise.
84556         * lib/file-type.h: Likewise.
84557         * lib/fileblocks.c: Likewise.
84558         * lib/filemode.c: Likewise.
84559         * lib/filemode.h: Likewise.
84560         * lib/filename.h: Likewise.
84561         * lib/filenamecat.c: Likewise.
84562         * lib/filenamecat.h: Likewise.
84563         * lib/findprog.c: Likewise.
84564         * lib/findprog.h: Likewise.
84565         * lib/float.in.h: Likewise.
84566         * lib/floor.c: Likewise.
84567         * lib/floorf.c: Likewise.
84568         * lib/floorl.c: Likewise.
84569         * lib/fopen-safer.c: Likewise.
84570         * lib/fopen.c: Likewise.
84571         * lib/fpending.c: Likewise.
84572         * lib/fpending.h: Likewise.
84573         * lib/fprintf.c: Likewise.
84574         * lib/fprintftime.h: Likewise.
84575         * lib/fpucw.h: Likewise.
84576         * lib/fpurge.c: Likewise.
84577         * lib/fpurge.h: Likewise.
84578         * lib/freadable.c: Likewise.
84579         * lib/freadable.h: Likewise.
84580         * lib/freadahead.c: Likewise.
84581         * lib/freadahead.h: Likewise.
84582         * lib/freading.c: Likewise.
84583         * lib/freading.h: Likewise.
84584         * lib/free.c: Likewise.
84585         * lib/freopen.c: Likewise.
84586         * lib/frexp.c: Likewise.
84587         * lib/frexpl.c: Likewise.
84588         * lib/fseek.c: Likewise.
84589         * lib/fseterr.c: Likewise.
84590         * lib/fseterr.h: Likewise.
84591         * lib/fstatat.c: Likewise.
84592         * lib/fstrcmp.c: Likewise.
84593         * lib/fstrcmp.h: Likewise.
84594         * lib/fsusage.c: Likewise.
84595         * lib/fsusage.h: Likewise.
84596         * lib/ftell.c: Likewise.
84597         * lib/ftello.c: Likewise.
84598         * lib/fts-cycle.c: Likewise.
84599         * lib/fts.c: Likewise.
84600         * lib/fts_.h: Likewise.
84601         * lib/full-read.c: Likewise.
84602         * lib/full-read.h: Likewise.
84603         * lib/full-write.c: Likewise.
84604         * lib/full-write.h: Likewise.
84605         * lib/fwritable.c: Likewise.
84606         * lib/fwritable.h: Likewise.
84607         * lib/fwriteerror.c: Likewise.
84608         * lib/fwriteerror.h: Likewise.
84609         * lib/fwriting.c: Likewise.
84610         * lib/fwriting.h: Likewise.
84611         * lib/gcd.c: Likewise.
84612         * lib/gcd.h: Likewise.
84613         * lib/getcwd.c: Likewise.
84614         * lib/getdate.h: Likewise.
84615         * lib/getdate.y: Likewise.
84616         * lib/getdomainname.c: Likewise.
84617         * lib/getdomainname.h: Likewise.
84618         * lib/getgroups.c: Likewise.
84619         * lib/gethostname.c: Likewise.
84620         * lib/gethrxtime.c: Likewise.
84621         * lib/gethrxtime.h: Likewise.
84622         * lib/getloadavg.c: Likewise.
84623         * lib/getndelim2.c: Likewise.
84624         * lib/getndelim2.h: Likewise.
84625         * lib/getnline.c: Likewise.
84626         * lib/getnline.h: Likewise.
84627         * lib/getopt.c: Likewise.
84628         * lib/getopt.in.h: Likewise.
84629         * lib/getopt1.c: Likewise.
84630         * lib/getopt_int.h: Likewise.
84631         * lib/getpagesize.h: Likewise.
84632         * lib/getsubopt.c: Likewise.
84633         * lib/gettime.c: Likewise.
84634         * lib/getugroups.c: Likewise.
84635         * lib/getugroups.h: Likewise.
84636         * lib/getusershell.c: Likewise.
84637         * lib/gl_anyavltree_list1.h: Likewise.
84638         * lib/gl_anyavltree_list2.h: Likewise.
84639         * lib/gl_anyhash_list1.h: Likewise.
84640         * lib/gl_anyhash_list2.h: Likewise.
84641         * lib/gl_anylinked_list1.h: Likewise.
84642         * lib/gl_anylinked_list2.h: Likewise.
84643         * lib/gl_anyrbtree_list1.h: Likewise.
84644         * lib/gl_anyrbtree_list2.h: Likewise.
84645         * lib/gl_anytree_list1.h: Likewise.
84646         * lib/gl_anytree_list2.h: Likewise.
84647         * lib/gl_anytree_oset.h: Likewise.
84648         * lib/gl_anytreehash_list1.h: Likewise.
84649         * lib/gl_anytreehash_list2.h: Likewise.
84650         * lib/gl_array_list.c: Likewise.
84651         * lib/gl_array_list.h: Likewise.
84652         * lib/gl_array_oset.c: Likewise.
84653         * lib/gl_array_oset.h: Likewise.
84654         * lib/gl_avltree_list.c: Likewise.
84655         * lib/gl_avltree_list.h: Likewise.
84656         * lib/gl_avltree_oset.c: Likewise.
84657         * lib/gl_avltree_oset.h: Likewise.
84658         * lib/gl_avltreehash_list.c: Likewise.
84659         * lib/gl_avltreehash_list.h: Likewise.
84660         * lib/gl_carray_list.c: Likewise.
84661         * lib/gl_carray_list.h: Likewise.
84662         * lib/gl_linked_list.c: Likewise.
84663         * lib/gl_linked_list.h: Likewise.
84664         * lib/gl_linkedhash_list.c: Likewise.
84665         * lib/gl_linkedhash_list.h: Likewise.
84666         * lib/gl_list.c: Likewise.
84667         * lib/gl_list.h: Likewise.
84668         * lib/gl_oset.c: Likewise.
84669         * lib/gl_oset.h: Likewise.
84670         * lib/gl_rbtree_list.c: Likewise.
84671         * lib/gl_rbtree_list.h: Likewise.
84672         * lib/gl_rbtree_oset.c: Likewise.
84673         * lib/gl_rbtree_oset.h: Likewise.
84674         * lib/gl_rbtreehash_list.c: Likewise.
84675         * lib/gl_rbtreehash_list.h: Likewise.
84676         * lib/gl_sublist.c: Likewise.
84677         * lib/gl_sublist.h: Likewise.
84678         * lib/group-member.c: Likewise.
84679         * lib/group-member.h: Likewise.
84680         * lib/hard-locale.c: Likewise.
84681         * lib/hard-locale.h: Likewise.
84682         * lib/hash-pjw.c: Likewise.
84683         * lib/hash-pjw.h: Likewise.
84684         * lib/hash-triple.c: Likewise.
84685         * lib/hash.c: Likewise.
84686         * lib/hash.h: Likewise.
84687         * lib/human.c: Likewise.
84688         * lib/human.h: Likewise.
84689         * lib/i-ring.c: Likewise.
84690         * lib/i-ring.h: Likewise.
84691         * lib/idcache.c: Likewise.
84692         * lib/imaxabs.c: Likewise.
84693         * lib/imaxdiv.c: Likewise.
84694         * lib/inet_pton.c: Likewise.
84695         * lib/inet_pton.h: Likewise.
84696         * lib/intprops.h: Likewise.
84697         * lib/inttostr.c: Likewise.
84698         * lib/inttostr.h: Likewise.
84699         * lib/inttypes.in.h: Likewise.
84700         * lib/isapipe.c: Likewise.
84701         * lib/isdir.c: Likewise.
84702         * lib/isnan.c: Likewise.
84703         * lib/isnan.h: Likewise.
84704         * lib/isnanf.c: Likewise.
84705         * lib/isnanf.h: Likewise.
84706         * lib/isnanl-nolibm.h: Likewise.
84707         * lib/isnanl.c: Likewise.
84708         * lib/isnanl.h: Likewise.
84709         * lib/javacomp.c: Likewise.
84710         * lib/javacomp.h: Likewise.
84711         * lib/javaexec.c: Likewise.
84712         * lib/javaexec.h: Likewise.
84713         * lib/javaversion.c: Likewise.
84714         * lib/javaversion.h: Likewise.
84715         * lib/javaversion.java: Likewise.
84716         * lib/lbrkprop.h: Likewise.
84717         * lib/lchmod.h: Likewise.
84718         * lib/lchown.c: Likewise.
84719         * lib/ldexpl.c: Likewise.
84720         * lib/linebreak.c: Likewise.
84721         * lib/linebreak.h: Likewise.
84722         * lib/linebuffer.c: Likewise.
84723         * lib/linebuffer.h: Likewise.
84724         * lib/locale.in.h: Likewise.
84725         * lib/logl.c: Likewise.
84726         * lib/long-options.c: Likewise.
84727         * lib/long-options.h: Likewise.
84728         * lib/lstat.c: Likewise.
84729         * lib/lstat.h: Likewise.
84730         * lib/math.in.h: Likewise.
84731         * lib/mbchar.c: Likewise.
84732         * lib/mbchar.h: Likewise.
84733         * lib/mbfile.h: Likewise.
84734         * lib/mbiter.h: Likewise.
84735         * lib/mbscasecmp.c: Likewise.
84736         * lib/mbscasestr.c: Likewise.
84737         * lib/mbschr.c: Likewise.
84738         * lib/mbscspn.c: Likewise.
84739         * lib/mbslen.c: Likewise.
84740         * lib/mbsncasecmp.c: Likewise.
84741         * lib/mbsnlen.c: Likewise.
84742         * lib/mbspbrk.c: Likewise.
84743         * lib/mbspcasecmp.c: Likewise.
84744         * lib/mbsrchr.c: Likewise.
84745         * lib/mbssep.c: Likewise.
84746         * lib/mbsspn.c: Likewise.
84747         * lib/mbsstr.c: Likewise.
84748         * lib/mbstok_r.c: Likewise.
84749         * lib/mbswidth.c: Likewise.
84750         * lib/mbswidth.h: Likewise.
84751         * lib/mbuiter.h: Likewise.
84752         * lib/memcasecmp.c: Likewise.
84753         * lib/memcasecmp.h: Likewise.
84754         * lib/memchr.c: Likewise.
84755         * lib/memcmp.c: Likewise.
84756         * lib/memcoll.c: Likewise.
84757         * lib/memcoll.h: Likewise.
84758         * lib/memcpy.c: Likewise.
84759         * lib/memrchr.c: Likewise.
84760         * lib/mkancesdirs.c: Likewise.
84761         * lib/mkdir-p.c: Likewise.
84762         * lib/mkdir-p.h: Likewise.
84763         * lib/mkdir.c: Likewise.
84764         * lib/mkdirat.c: Likewise.
84765         * lib/mkdtemp.c: Likewise.
84766         * lib/mkstemp-safer.c: Likewise.
84767         * lib/mkstemp.c: Likewise.
84768         * lib/modechange.c: Likewise.
84769         * lib/modechange.h: Likewise.
84770         * lib/mountlist.c: Likewise.
84771         * lib/mountlist.h: Likewise.
84772         * lib/mpsort.c: Likewise.
84773         * lib/nanosleep.c: Likewise.
84774         * lib/obstack.c: Likewise.
84775         * lib/obstack.h: Likewise.
84776         * lib/open-safer.c: Likewise.
84777         * lib/open.c: Likewise.
84778         * lib/openat-die.c: Likewise.
84779         * lib/openat-priv.h: Likewise.
84780         * lib/openat-proc.c: Likewise.
84781         * lib/openat.c: Likewise.
84782         * lib/openat.h: Likewise.
84783         * lib/pagealign_alloc.c: Likewise.
84784         * lib/pagealign_alloc.h: Likewise.
84785         * lib/physmem.c: Likewise.
84786         * lib/physmem.h: Likewise.
84787         * lib/pipe-safer.c: Likewise.
84788         * lib/pipe.c: Likewise.
84789         * lib/pipe.h: Likewise.
84790         * lib/posixtm.c: Likewise.
84791         * lib/posixtm.h: Likewise.
84792         * lib/posixver.c: Likewise.
84793         * lib/printf-frexp.c: Likewise.
84794         * lib/printf-frexp.h: Likewise.
84795         * lib/printf-frexpl.c: Likewise.
84796         * lib/printf-frexpl.h: Likewise.
84797         * lib/printf.c: Likewise.
84798         * lib/progname.c: Likewise.
84799         * lib/progname.h: Likewise.
84800         * lib/progreloc.c: Likewise.
84801         * lib/putenv.c: Likewise.
84802         * lib/quote.c: Likewise.
84803         * lib/quote.h: Likewise.
84804         * lib/quotearg.c: Likewise.
84805         * lib/quotearg.h: Likewise.
84806         * lib/raise.c: Likewise.
84807         * lib/readline.c: Likewise.
84808         * lib/readline.h: Likewise.
84809         * lib/readlink.c: Likewise.
84810         * lib/readtokens.c: Likewise.
84811         * lib/readtokens.h: Likewise.
84812         * lib/readtokens0.c: Likewise.
84813         * lib/readtokens0.h: Likewise.
84814         * lib/readutmp.c: Likewise.
84815         * lib/readutmp.h: Likewise.
84816         * lib/realloc.c: Likewise.
84817         * lib/relocwrapper.c: Likewise.
84818         * lib/rename-dest-slash.c: Likewise.
84819         * lib/rename.c: Likewise.
84820         * lib/rmdir.c: Likewise.
84821         * lib/rpmatch.c: Likewise.
84822         * lib/safe-read.c: Likewise.
84823         * lib/safe-read.h: Likewise.
84824         * lib/safe-write.c: Likewise.
84825         * lib/safe-write.h: Likewise.
84826         * lib/same-inode.h: Likewise.
84827         * lib/same.c: Likewise.
84828         * lib/same.h: Likewise.
84829         * lib/save-cwd.c: Likewise.
84830         * lib/save-cwd.h: Likewise.
84831         * lib/savedir.c: Likewise.
84832         * lib/savedir.h: Likewise.
84833         * lib/savewd.c: Likewise.
84834         * lib/savewd.h: Likewise.
84835         * lib/search.in.h: Likewise.
84836         * lib/setenv.c: Likewise.
84837         * lib/setenv.h: Likewise.
84838         * lib/settime.c: Likewise.
84839         * lib/sh-quote.c: Likewise.
84840         * lib/sh-quote.h: Likewise.
84841         * lib/sig2str.c: Likewise.
84842         * lib/sig2str.h: Likewise.
84843         * lib/signal.in.h: Likewise.
84844         * lib/signbitd.c: Likewise.
84845         * lib/signbitf.c: Likewise.
84846         * lib/signbitl.c: Likewise.
84847         * lib/sigprocmask.c: Likewise.
84848         * lib/sincosl.c: Likewise.
84849         * lib/sleep.c: Likewise.
84850         * lib/sprintf.c: Likewise.
84851         * lib/sqrtl.c: Likewise.
84852         * lib/stat-time.h: Likewise.
84853         * lib/stdio--.h: Likewise.
84854         * lib/stdio-safer.h: Likewise.
84855         * lib/stdlib--.h: Likewise.
84856         * lib/stdlib-safer.h: Likewise.
84857         * lib/stdlib.in.h: Likewise.
84858         * lib/stpcpy.c: Likewise.
84859         * lib/stpncpy.c: Likewise.
84860         * lib/strchrnul.c: Likewise.
84861         * lib/strcspn.c: Likewise.
84862         * lib/strerror.c: Likewise.
84863         * lib/strftime.c: Likewise.
84864         * lib/strftime.h: Likewise.
84865         * lib/striconveh.c: Likewise.
84866         * lib/striconveh.h: Likewise.
84867         * lib/striconveha.c: Likewise.
84868         * lib/striconveha.h: Likewise.
84869         * lib/stripslash.c: Likewise.
84870         * lib/strnlen1.c: Likewise.
84871         * lib/strnlen1.h: Likewise.
84872         * lib/strtod.c: Likewise.
84873         * lib/strtoimax.c: Likewise.
84874         * lib/strtok_r.c: Likewise.
84875         * lib/strtol.c: Likewise.
84876         * lib/strtoll.c: Likewise.
84877         * lib/strtoul.c: Likewise.
84878         * lib/strtoull.c: Likewise.
84879         * lib/sysexits.in.h: Likewise.
84880         * lib/tempname.c: Likewise.
84881         * lib/tempname.h: Likewise.
84882         * lib/timespec.h: Likewise.
84883         * lib/tls.c: Likewise.
84884         * lib/tls.h: Likewise.
84885         * lib/tmpdir.c: Likewise.
84886         * lib/tmpdir.h: Likewise.
84887         * lib/tmpfile-safer.c: Likewise.
84888         * lib/tmpfile.c: Likewise.
84889         * lib/trigl.c: Likewise.
84890         * lib/trigl.h: Likewise.
84891         * lib/trim.c: Likewise.
84892         * lib/trim.h: Likewise.
84893         * lib/trunc.c: Likewise.
84894         * lib/truncf.c: Likewise.
84895         * lib/truncl.c: Likewise.
84896         * lib/tsearch.c: Likewise.
84897         * lib/unicodeio.c: Likewise.
84898         * lib/unicodeio.h: Likewise.
84899         * lib/unistd--.h: Likewise.
84900         * lib/unistd-safer.h: Likewise.
84901         * lib/unistdio/ulc-fprintf.c: Likewise.
84902         * lib/unistdio/ulc-vfprintf.c: Likewise.
84903         * lib/unlinkdir.c: Likewise.
84904         * lib/unlinkdir.h: Likewise.
84905         * lib/unlocked-io.h: Likewise.
84906         * lib/unsetenv.c: Likewise.
84907         * lib/userspec.c: Likewise.
84908         * lib/utime.c: Likewise.
84909         * lib/utimecmp.c: Likewise.
84910         * lib/utimecmp.h: Likewise.
84911         * lib/utimens.c: Likewise.
84912         * lib/verify.h: Likewise.
84913         * lib/verror.c: Likewise.
84914         * lib/verror.h: Likewise.
84915         * lib/version-etc-fsf.c: Likewise.
84916         * lib/version-etc.c: Likewise.
84917         * lib/version-etc.h: Likewise.
84918         * lib/vfprintf.c: Likewise.
84919         * lib/vprintf.c: Likewise.
84920         * lib/vsprintf.c: Likewise.
84921         * lib/w32spawn.h: Likewise.
84922         * lib/wait-process.c: Likewise.
84923         * lib/wait-process.h: Likewise.
84924         * lib/wcwidth.c: Likewise.
84925         * lib/write-any-file.c: Likewise.
84926         * lib/xalloc-die.c: Likewise.
84927         * lib/xalloc.h: Likewise.
84928         * lib/xasprintf.c: Likewise.
84929         * lib/xgetcwd.c: Likewise.
84930         * lib/xgetcwd.h: Likewise.
84931         * lib/xgetdomainname.c: Likewise.
84932         * lib/xgetdomainname.h: Likewise.
84933         * lib/xgethostname.c: Likewise.
84934         * lib/xmalloc.c: Likewise.
84935         * lib/xmalloca.c: Likewise.
84936         * lib/xmalloca.h: Likewise.
84937         * lib/xmemcoll.c: Likewise.
84938         * lib/xnanosleep.c: Likewise.
84939         * lib/xreadlink.c: Likewise.
84940         * lib/xreadlink.h: Likewise.
84941         * lib/xsetenv.c: Likewise.
84942         * lib/xsetenv.h: Likewise.
84943         * lib/xstriconv.c: Likewise.
84944         * lib/xstriconv.h: Likewise.
84945         * lib/xstrndup.c: Likewise.
84946         * lib/xstrndup.h: Likewise.
84947         * lib/xstrtod.c: Likewise.
84948         * lib/xstrtod.h: Likewise.
84949         * lib/xstrtol-error.c: Likewise.
84950         * lib/xstrtol.c: Likewise.
84951         * lib/xstrtol.h: Likewise.
84952         * lib/xtime.h: Likewise.
84953         * lib/xvasprintf.c: Likewise.
84954         * lib/xvasprintf.h: Likewise.
84955         * lib/yesno.c: Likewise.
84956         * lib/yesno.h: Likewise.
84957         * posix-modules: Likewise.
84958         * tests/test-alloca-opt.c: Likewise.
84959         * tests/test-arcfour.c: Likewise.
84960         * tests/test-arctwo.c: Likewise.
84961         * tests/test-argmatch.c: Likewise.
84962         * tests/test-argp-2.sh: Likewise.
84963         * tests/test-argp.c: Likewise.
84964         * tests/test-arpa_inet.c: Likewise.
84965         * tests/test-array_list.c: Likewise.
84966         * tests/test-array_oset.c: Likewise.
84967         * tests/test-atexit.c: Likewise.
84968         * tests/test-avltree_list.c: Likewise.
84969         * tests/test-avltree_oset.c: Likewise.
84970         * tests/test-avltreehash_list.c: Likewise.
84971         * tests/test-base64.c: Likewise.
84972         * tests/test-binary-io.c: Likewise.
84973         * tests/test-byteswap.c: Likewise.
84974         * tests/test-c-ctype.c: Likewise.
84975         * tests/test-c-strcasecmp.c: Likewise.
84976         * tests/test-c-strcasestr.c: Likewise.
84977         * tests/test-c-strncasecmp.c: Likewise.
84978         * tests/test-c-strstr.c: Likewise.
84979         * tests/test-canonicalize-lgpl.c: Likewise.
84980         * tests/test-canonicalize.c: Likewise.
84981         * tests/test-carray_list.c: Likewise.
84982         * tests/test-ceilf.c: Likewise.
84983         * tests/test-ceill.c: Likewise.
84984         * tests/test-count-one-bits.c: Likewise.
84985         * tests/test-crc.c: Likewise.
84986         * tests/test-dirname.c: Likewise.
84987         * tests/test-fbufmode.c: Likewise.
84988         * tests/test-fcntl.c: Likewise.
84989         * tests/test-fflush.c: Likewise.
84990         * tests/test-floorf.c: Likewise.
84991         * tests/test-floorl.c: Likewise.
84992         * tests/test-fopen.c: Likewise.
84993         * tests/test-fprintf-posix.c: Likewise.
84994         * tests/test-fprintf-posix.h: Likewise.
84995         * tests/test-fpurge.c: Likewise.
84996         * tests/test-freadable.c: Likewise.
84997         * tests/test-freadahead.c: Likewise.
84998         * tests/test-freading.c: Likewise.
84999         * tests/test-freopen.c: Likewise.
85000         * tests/test-frexp.c: Likewise.
85001         * tests/test-frexpl.c: Likewise.
85002         * tests/test-fseek.c: Likewise.
85003         * tests/test-fseeko.c: Likewise.
85004         * tests/test-fseterr.c: Likewise.
85005         * tests/test-fstrcmp.c: Likewise.
85006         * tests/test-ftell.c: Likewise.
85007         * tests/test-ftello.c: Likewise.
85008         * tests/test-fwritable.c: Likewise.
85009         * tests/test-fwriting.c: Likewise.
85010         * tests/test-getaddrinfo.c: Likewise.
85011         * tests/test-getpass.c: Likewise.
85012         * tests/test-gettimeofday.c: Likewise.
85013         * tests/test-hmac-md5.c: Likewise.
85014         * tests/test-hmac-sha1.c: Likewise.
85015         * tests/test-iconv.c: Likewise.
85016         * tests/test-iconvme.c: Likewise.
85017         * tests/test-inttypes.c: Likewise.
85018         * tests/test-isnan.c: Likewise.
85019         * tests/test-isnanf.c: Likewise.
85020         * tests/test-isnanl-nolibm.c: Likewise.
85021         * tests/test-isnanl.c: Likewise.
85022         * tests/test-isnanl.h: Likewise.
85023         * tests/test-ldexpl.c: Likewise.
85024         * tests/test-linked_list.c: Likewise.
85025         * tests/test-linkedhash_list.c: Likewise.
85026         * tests/test-locale.c: Likewise.
85027         * tests/test-localename.c: Likewise.
85028         * tests/test-lock.c: Likewise.
85029         * tests/test-lseek.c: Likewise.
85030         * tests/test-malloca.c: Likewise.
85031         * tests/test-math.c: Likewise.
85032         * tests/test-mbscasecmp.c: Likewise.
85033         * tests/test-mbscasestr1.c: Likewise.
85034         * tests/test-mbscasestr2.c: Likewise.
85035         * tests/test-mbscasestr3.c: Likewise.
85036         * tests/test-mbscasestr4.c: Likewise.
85037         * tests/test-mbschr.c: Likewise.
85038         * tests/test-mbscspn.c: Likewise.
85039         * tests/test-mbsncasecmp.c: Likewise.
85040         * tests/test-mbspbrk.c: Likewise.
85041         * tests/test-mbspcasecmp.c: Likewise.
85042         * tests/test-mbsrchr.c: Likewise.
85043         * tests/test-mbsspn.c: Likewise.
85044         * tests/test-mbsstr1.c: Likewise.
85045         * tests/test-mbsstr2.c: Likewise.
85046         * tests/test-mbsstr3.c: Likewise.
85047         * tests/test-md5.c: Likewise.
85048         * tests/test-memmem.c: Likewise.
85049         * tests/test-netinet_in.c: Likewise.
85050         * tests/test-open.c: Likewise.
85051         * tests/test-printf-frexp.c: Likewise.
85052         * tests/test-printf-frexpl.c: Likewise.
85053         * tests/test-printf-posix.c: Likewise.
85054         * tests/test-printf-posix.h: Likewise.
85055         * tests/test-rbtree_list.c: Likewise.
85056         * tests/test-rbtree_oset.c: Likewise.
85057         * tests/test-rbtreehash_list.c: Likewise.
85058         * tests/test-read-file.c: Likewise.
85059         * tests/test-rijndael.c: Likewise.
85060         * tests/test-search.c: Likewise.
85061         * tests/test-signbit.c: Likewise.
85062         * tests/test-sleep.c: Likewise.
85063         * tests/test-snprintf-posix.c: Likewise.
85064         * tests/test-snprintf-posix.h: Likewise.
85065         * tests/test-snprintf.c: Likewise.
85066         * tests/test-sprintf-posix.c: Likewise.
85067         * tests/test-sprintf-posix.h: Likewise.
85068         * tests/test-stat-time.c: Likewise.
85069         * tests/test-stdbool.c: Likewise.
85070         * tests/test-stdint.c: Likewise.
85071         * tests/test-stdio.c: Likewise.
85072         * tests/test-stdlib.c: Likewise.
85073         * tests/test-stpncpy.c: Likewise.
85074         * tests/test-strcasestr.c: Likewise.
85075         * tests/test-striconv.c: Likewise.
85076         * tests/test-striconveh.c: Likewise.
85077         * tests/test-striconveha.c: Likewise.
85078         * tests/test-string.c: Likewise.
85079         * tests/test-sys_select.c: Likewise.
85080         * tests/test-sys_socket.c: Likewise.
85081         * tests/test-sys_stat.c: Likewise.
85082         * tests/test-sys_time.c: Likewise.
85083         * tests/test-sysexits.c: Likewise.
85084         * tests/test-time.c: Likewise.
85085         * tests/test-tls.c: Likewise.
85086         * tests/test-trunc.c: Likewise.
85087         * tests/test-truncf.c: Likewise.
85088         * tests/test-truncl.c: Likewise.
85089         * tests/test-unistd.c: Likewise.
85090         * tests/test-vasnprintf-posix.c: Likewise.
85091         * tests/test-vasnprintf-posix2.c: Likewise.
85092         * tests/test-vasnprintf.c: Likewise.
85093         * tests/test-vasprintf-posix.c: Likewise.
85094         * tests/test-vasprintf.c: Likewise.
85095         * tests/test-verify.c: Likewise.
85096         * tests/test-vfprintf-posix.c: Likewise.
85097         * tests/test-vprintf-posix.c: Likewise.
85098         * tests/test-vsnprintf-posix.c: Likewise.
85099         * tests/test-vsnprintf.c: Likewise.
85100         * tests/test-vsprintf-posix.c: Likewise.
85101         * tests/test-wchar.c: Likewise.
85102         * tests/test-wctype.c: Likewise.
85103         * tests/test-wcwidth.c: Likewise.
85104         * tests/test-xstrtol.c: Likewise.
85105         * tests/test-xvasprintf.c: Likewise.
85106         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85107         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85108         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85109         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85110         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85111         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85112         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85113         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85114         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85115         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85116         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85117         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85118         * tests/uniname/test-uninames.c: Likewise.
85119         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85120         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85121         * tests/unistdio/test-u16-printf1.h: Likewise.
85122         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85123         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85124         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85125         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85126         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85127         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85128         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85129         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85130         * tests/unistdio/test-u32-printf1.h: Likewise.
85131         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85132         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85133         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85134         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85135         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85136         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85137         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85138         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85139         * tests/unistdio/test-u8-printf1.h: Likewise.
85140         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85141         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85142         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85143         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85144         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85145         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85146         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85147         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85148         * tests/unistdio/test-ulc-printf1.h: Likewise.
85149         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85150         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85151         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85152         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85153         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85154         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85155         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85156         * tests/uniwidth/test-u16-width.c: Likewise.
85157         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85158         * tests/uniwidth/test-u32-width.c: Likewise.
85159         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85160         * tests/uniwidth/test-u8-width.c: Likewise.
85161         * tests/uniwidth/test-uc_width.c: Likewise.
85162         * config/srclist-update: Likewise.
85163         (fixlicense): Update to GPLv3+.
85165         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85166         * tests/test-tsearch.c: Change copyright notice.
85168         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85169         * lib/c-strcaseeq.h: Change copyright notice.
85170         * lib/streq.h: Likewise.
85171         * lib/uniconv.h: Likewise.
85172         * lib/uniconv/u-conv-from-enc.h: Likewise.
85173         * lib/uniconv/u-conv-to-enc.h: Likewise.
85174         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85175         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85176         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85177         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85178         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85179         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85180         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85181         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85182         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85183         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85184         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85185         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85186         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85187         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85188         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85189         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85190         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85191         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85192         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85193         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85194         * lib/uniname.h: Likewise.
85195         * lib/uniname/uniname.c: Likewise.
85196         * lib/unistdio.h: Likewise.
85197         * lib/unistdio/u-asnprintf.h: Likewise.
85198         * lib/unistdio/u-asprintf.h: Likewise.
85199         * lib/unistdio/u-printf-args.c: Likewise.
85200         * lib/unistdio/u-printf-args.h: Likewise.
85201         * lib/unistdio/u-printf-parse.h: Likewise.
85202         * lib/unistdio/u-snprintf.h: Likewise.
85203         * lib/unistdio/u-sprintf.h: Likewise.
85204         * lib/unistdio/u-vasprintf.h: Likewise.
85205         * lib/unistdio/u-vsnprintf.h: Likewise.
85206         * lib/unistdio/u-vsprintf.h: Likewise.
85207         * lib/unistdio/u16-asnprintf.c: Likewise.
85208         * lib/unistdio/u16-asprintf.c: Likewise.
85209         * lib/unistdio/u16-printf-parse.c: Likewise.
85210         * lib/unistdio/u16-snprintf.c: Likewise.
85211         * lib/unistdio/u16-sprintf.c: Likewise.
85212         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85213         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85214         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85215         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85216         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85217         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85218         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85219         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85220         * lib/unistdio/u16-vasnprintf.c: Likewise.
85221         * lib/unistdio/u16-vasprintf.c: Likewise.
85222         * lib/unistdio/u16-vsnprintf.c: Likewise.
85223         * lib/unistdio/u16-vsprintf.c: Likewise.
85224         * lib/unistdio/u32-asnprintf.c: Likewise.
85225         * lib/unistdio/u32-asprintf.c: Likewise.
85226         * lib/unistdio/u32-printf-parse.c: Likewise.
85227         * lib/unistdio/u32-snprintf.c: Likewise.
85228         * lib/unistdio/u32-sprintf.c: Likewise.
85229         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85230         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85231         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85232         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85233         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85234         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85235         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85236         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85237         * lib/unistdio/u32-vasnprintf.c: Likewise.
85238         * lib/unistdio/u32-vasprintf.c: Likewise.
85239         * lib/unistdio/u32-vsnprintf.c: Likewise.
85240         * lib/unistdio/u32-vsprintf.c: Likewise.
85241         * lib/unistdio/u8-asnprintf.c: Likewise.
85242         * lib/unistdio/u8-asprintf.c: Likewise.
85243         * lib/unistdio/u8-printf-parse.c: Likewise.
85244         * lib/unistdio/u8-snprintf.c: Likewise.
85245         * lib/unistdio/u8-sprintf.c: Likewise.
85246         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85247         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85248         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85249         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85250         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85251         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85252         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85253         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85254         * lib/unistdio/u8-vasnprintf.c: Likewise.
85255         * lib/unistdio/u8-vasprintf.c: Likewise.
85256         * lib/unistdio/u8-vsnprintf.c: Likewise.
85257         * lib/unistdio/u8-vsprintf.c: Likewise.
85258         * lib/unistdio/ulc-asnprintf.c: Likewise.
85259         * lib/unistdio/ulc-asprintf.c: Likewise.
85260         * lib/unistdio/ulc-printf-parse.c: Likewise.
85261         * lib/unistdio/ulc-snprintf.c: Likewise.
85262         * lib/unistdio/ulc-sprintf.c: Likewise.
85263         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85264         * lib/unistdio/ulc-vasprintf.c: Likewise.
85265         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85266         * lib/unistdio/ulc-vsprintf.c: Likewise.
85267         * lib/unistr.h: Likewise.
85268         * lib/unistr/u-cpy-alloc.h: Likewise.
85269         * lib/unistr/u-cpy.h: Likewise.
85270         * lib/unistr/u-endswith.h: Likewise.
85271         * lib/unistr/u-move.h: Likewise.
85272         * lib/unistr/u-set.h: Likewise.
85273         * lib/unistr/u-startswith.h: Likewise.
85274         * lib/unistr/u-stpcpy.h: Likewise.
85275         * lib/unistr/u-stpncpy.h: Likewise.
85276         * lib/unistr/u-strcat.h: Likewise.
85277         * lib/unistr/u-strcpy.h: Likewise.
85278         * lib/unistr/u-strcspn.h: Likewise.
85279         * lib/unistr/u-strdup.h: Likewise.
85280         * lib/unistr/u-strlen.h: Likewise.
85281         * lib/unistr/u-strncat.h: Likewise.
85282         * lib/unistr/u-strncpy.h: Likewise.
85283         * lib/unistr/u-strnlen.h: Likewise.
85284         * lib/unistr/u-strpbrk.h: Likewise.
85285         * lib/unistr/u-strspn.h: Likewise.
85286         * lib/unistr/u-strstr.h: Likewise.
85287         * lib/unistr/u-strtok.h: Likewise.
85288         * lib/unistr/u16-check.c: Likewise.
85289         * lib/unistr/u16-chr.c: Likewise.
85290         * lib/unistr/u16-cmp.c: Likewise.
85291         * lib/unistr/u16-cpy-alloc.c: Likewise.
85292         * lib/unistr/u16-cpy.c: Likewise.
85293         * lib/unistr/u16-endswith.c: Likewise.
85294         * lib/unistr/u16-mblen.c: Likewise.
85295         * lib/unistr/u16-mbsnlen.c: Likewise.
85296         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85297         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85298         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85299         * lib/unistr/u16-mbtouc.c: Likewise.
85300         * lib/unistr/u16-mbtoucr.c: Likewise.
85301         * lib/unistr/u16-move.c: Likewise.
85302         * lib/unistr/u16-next.c: Likewise.
85303         * lib/unistr/u16-prev.c: Likewise.
85304         * lib/unistr/u16-set.c: Likewise.
85305         * lib/unistr/u16-startswith.c: Likewise.
85306         * lib/unistr/u16-stpcpy.c: Likewise.
85307         * lib/unistr/u16-stpncpy.c: Likewise.
85308         * lib/unistr/u16-strcat.c: Likewise.
85309         * lib/unistr/u16-strchr.c: Likewise.
85310         * lib/unistr/u16-strcmp.c: Likewise.
85311         * lib/unistr/u16-strcpy.c: Likewise.
85312         * lib/unistr/u16-strcspn.c: Likewise.
85313         * lib/unistr/u16-strdup.c: Likewise.
85314         * lib/unistr/u16-strlen.c: Likewise.
85315         * lib/unistr/u16-strmblen.c: Likewise.
85316         * lib/unistr/u16-strmbtouc.c: Likewise.
85317         * lib/unistr/u16-strncat.c: Likewise.
85318         * lib/unistr/u16-strncmp.c: Likewise.
85319         * lib/unistr/u16-strncpy.c: Likewise.
85320         * lib/unistr/u16-strnlen.c: Likewise.
85321         * lib/unistr/u16-strpbrk.c: Likewise.
85322         * lib/unistr/u16-strrchr.c: Likewise.
85323         * lib/unistr/u16-strspn.c: Likewise.
85324         * lib/unistr/u16-strstr.c: Likewise.
85325         * lib/unistr/u16-strtok.c: Likewise.
85326         * lib/unistr/u16-to-u32.c: Likewise.
85327         * lib/unistr/u16-to-u8.c: Likewise.
85328         * lib/unistr/u16-uctomb-aux.c: Likewise.
85329         * lib/unistr/u16-uctomb.c: Likewise.
85330         * lib/unistr/u32-check.c: Likewise.
85331         * lib/unistr/u32-chr.c: Likewise.
85332         * lib/unistr/u32-cmp.c: Likewise.
85333         * lib/unistr/u32-cpy-alloc.c: Likewise.
85334         * lib/unistr/u32-cpy.c: Likewise.
85335         * lib/unistr/u32-endswith.c: Likewise.
85336         * lib/unistr/u32-mblen.c: Likewise.
85337         * lib/unistr/u32-mbsnlen.c: Likewise.
85338         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85339         * lib/unistr/u32-mbtouc.c: Likewise.
85340         * lib/unistr/u32-mbtoucr.c: Likewise.
85341         * lib/unistr/u32-move.c: Likewise.
85342         * lib/unistr/u32-next.c: Likewise.
85343         * lib/unistr/u32-prev.c: Likewise.
85344         * lib/unistr/u32-set.c: Likewise.
85345         * lib/unistr/u32-startswith.c: Likewise.
85346         * lib/unistr/u32-stpcpy.c: Likewise.
85347         * lib/unistr/u32-stpncpy.c: Likewise.
85348         * lib/unistr/u32-strcat.c: Likewise.
85349         * lib/unistr/u32-strchr.c: Likewise.
85350         * lib/unistr/u32-strcmp.c: Likewise.
85351         * lib/unistr/u32-strcpy.c: Likewise.
85352         * lib/unistr/u32-strcspn.c: Likewise.
85353         * lib/unistr/u32-strdup.c: Likewise.
85354         * lib/unistr/u32-strlen.c: Likewise.
85355         * lib/unistr/u32-strmblen.c: Likewise.
85356         * lib/unistr/u32-strmbtouc.c: Likewise.
85357         * lib/unistr/u32-strncat.c: Likewise.
85358         * lib/unistr/u32-strncmp.c: Likewise.
85359         * lib/unistr/u32-strncpy.c: Likewise.
85360         * lib/unistr/u32-strnlen.c: Likewise.
85361         * lib/unistr/u32-strpbrk.c: Likewise.
85362         * lib/unistr/u32-strrchr.c: Likewise.
85363         * lib/unistr/u32-strspn.c: Likewise.
85364         * lib/unistr/u32-strstr.c: Likewise.
85365         * lib/unistr/u32-strtok.c: Likewise.
85366         * lib/unistr/u32-to-u16.c: Likewise.
85367         * lib/unistr/u32-to-u8.c: Likewise.
85368         * lib/unistr/u32-uctomb.c: Likewise.
85369         * lib/unistr/u8-check.c: Likewise.
85370         * lib/unistr/u8-chr.c: Likewise.
85371         * lib/unistr/u8-cmp.c: Likewise.
85372         * lib/unistr/u8-cpy-alloc.c: Likewise.
85373         * lib/unistr/u8-cpy.c: Likewise.
85374         * lib/unistr/u8-endswith.c: Likewise.
85375         * lib/unistr/u8-mblen.c: Likewise.
85376         * lib/unistr/u8-mbsnlen.c: Likewise.
85377         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85378         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85379         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85380         * lib/unistr/u8-mbtouc.c: Likewise.
85381         * lib/unistr/u8-mbtoucr.c: Likewise.
85382         * lib/unistr/u8-move.c: Likewise.
85383         * lib/unistr/u8-next.c: Likewise.
85384         * lib/unistr/u8-prev.c: Likewise.
85385         * lib/unistr/u8-set.c: Likewise.
85386         * lib/unistr/u8-startswith.c: Likewise.
85387         * lib/unistr/u8-stpcpy.c: Likewise.
85388         * lib/unistr/u8-stpncpy.c: Likewise.
85389         * lib/unistr/u8-strcat.c: Likewise.
85390         * lib/unistr/u8-strchr.c: Likewise.
85391         * lib/unistr/u8-strcmp.c: Likewise.
85392         * lib/unistr/u8-strcpy.c: Likewise.
85393         * lib/unistr/u8-strcspn.c: Likewise.
85394         * lib/unistr/u8-strdup.c: Likewise.
85395         * lib/unistr/u8-strlen.c: Likewise.
85396         * lib/unistr/u8-strmblen.c: Likewise.
85397         * lib/unistr/u8-strmbtouc.c: Likewise.
85398         * lib/unistr/u8-strncat.c: Likewise.
85399         * lib/unistr/u8-strncmp.c: Likewise.
85400         * lib/unistr/u8-strncpy.c: Likewise.
85401         * lib/unistr/u8-strnlen.c: Likewise.
85402         * lib/unistr/u8-strpbrk.c: Likewise.
85403         * lib/unistr/u8-strrchr.c: Likewise.
85404         * lib/unistr/u8-strspn.c: Likewise.
85405         * lib/unistr/u8-strstr.c: Likewise.
85406         * lib/unistr/u8-strtok.c: Likewise.
85407         * lib/unistr/u8-to-u16.c: Likewise.
85408         * lib/unistr/u8-to-u32.c: Likewise.
85409         * lib/unistr/u8-uctomb-aux.c: Likewise.
85410         * lib/unistr/u8-uctomb.c: Likewise.
85411         * lib/unitypes.h: Likewise.
85412         * lib/uniwidth.h: Likewise.
85413         * lib/uniwidth/cjk.h: Likewise.
85414         * lib/uniwidth/u16-strwidth.c: Likewise.
85415         * lib/uniwidth/u16-width.c: Likewise.
85416         * lib/uniwidth/u32-strwidth.c: Likewise.
85417         * lib/uniwidth/u32-width.c: Likewise.
85418         * lib/uniwidth/u8-strwidth.c: Likewise.
85419         * lib/uniwidth/u8-width.c: Likewise.
85420         * lib/uniwidth/width.c: Likewise.
85422 2007-10-07  Bruno Haible  <bruno@clisp.org>
85424         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85425         The file is still under LGPL (see modules/inttypes).
85427 2007-10-06  Bruno Haible  <bruno@clisp.org>
85429         * modules/trunc (Dependencies): Add 'extensions'.
85430         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85431         Reported by Ben Pfaff <blp@gnu.org>.
85433 2007-10-06  Bruno Haible  <bruno@clisp.org>
85435         * modules/freopen-tests: New file.
85436         * tests/test-freopen.c: New file.
85438         * modules/fopen-tests: New file.
85439         * tests/test-fopen.c: New file.
85441         * modules/fopen: New file.
85442         * lib/fopen.c: New file.
85443         * m4/fopen.m4: New file.
85444         * modules/freopen: New file.
85445         * lib/freopen.c: New file.
85446         * m4/freopen.m4: New file.
85447         * lib/stdio.in.h (fopen, freopen): New declarations.
85448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85449         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85450         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85451         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85452         * doc/functions/fopen.texi: Mention the 'fopen' module.
85453         * doc/functions/freopen.texi: Mention the 'freopen' module.
85455 2007-10-06  Bruno Haible  <bruno@clisp.org>
85457         * modules/open-tests: New file.
85458         * tests/test-open.c: New file.
85460         * modules/open: New file.
85461         * lib/open.c: New file.
85462         * m4/open.m4: New file.
85463         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85464         lib/open.c does.
85465         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85466         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85467         macros.
85468         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85469         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85470         REPLACE_OPEN.
85471         * doc/functions/open.texi: Mention the 'open' module.
85473 2007-10-04  Bruno Haible  <bruno@clisp.org>
85475         * modules/ceill-tests: New file.
85476         * tests/test-ceill.c: New file.
85478         * modules/ceill: New file.
85479         * lib/ceill.c: Replace entire file.
85480         * m4/ceill.m4: New file.
85481         * lib/math.in.h (ceill): Replace declaration.
85482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85483         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85484         * doc/functions/ceill.texi: Mention the 'ceill' module.
85485         * modules/mathl (Files): Remove lib/ceill.c.
85486         (Depends-on): Add ceill.
85488 2007-10-04  Bruno Haible  <bruno@clisp.org>
85490         * modules/ceilf-tests: New file.
85491         * tests/test-ceilf.c: New file.
85493         * modules/ceilf: New file.
85494         * lib/ceil.c: New file.
85495         * lib/ceilf.c: New file.
85496         * m4/ceilf.m4: New file.
85497         * lib/math.in.h (ceilf): New declaration.
85498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85499         HAVE_DECL_CEILF.
85500         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85501         HAVE_DECL_CEILF.
85502         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85504 2007-10-04  Bruno Haible  <bruno@clisp.org>
85506         * modules/floorl-tests: New file.
85507         * tests/test-floorl.c: New file.
85509         * modules/floorl: New file.
85510         * lib/floorl.c: Replace entire file.
85511         * m4/floorl.m4: New file.
85512         * lib/math.in.h (floorl): Replace declaration.
85513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85514         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85515         * doc/functions/floorl.texi: Mention the 'floorl' module.
85516         * modules/mathl (Files): Remove lib/floorl.c.
85517         (Depends-on): Add floorl.
85519 2007-10-04  Bruno Haible  <bruno@clisp.org>
85521         * modules/floorf-tests: New file.
85522         * tests/test-floorf.c: New file.
85524         * modules/floorf: New file.
85525         * lib/floor.c: New file.
85526         * lib/floorf.c: New file.
85527         * m4/floorf.m4: New file.
85528         * lib/math.in.h (floorf): New declaration.
85529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85530         HAVE_DECL_FLOORF.
85531         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85532         HAVE_DECL_FLOORF.
85533         * doc/functions/floorf.texi: Mention the 'floorf' module.
85535 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85536             Bruno Haible  <bruno@clisp.org>
85538         Advertise for the Git server instead of the CVS server.
85539         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85540         repository instead of the CVS one.
85541         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85542         about all VCS systems generically.
85543         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85545 2007-10-04  Bruno Haible  <bruno@clisp.org>
85547         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85548         means.
85549         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85551 2007-10-04  Bruno Haible  <bruno@clisp.org>
85553         * modules/truncl-tests: New file.
85554         * tests/test-truncl.c: New file.
85556         * modules/truncl: New file.
85557         * lib/truncl.c: New file.
85558         * m4/truncl.m4: New file.
85559         * lib/math.in.h (truncl): New declaration.
85560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85561         HAVE_DECL_TRUNCL.
85562         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85563         HAVE_DECL_TRUNCL.
85564         * doc/functions/truncl.texi: Mention the 'truncl' module.
85566 2007-10-04  Bruno Haible  <bruno@clisp.org>
85568         * modules/truncf-tests: New file.
85569         * tests/test-truncf.c: New file.
85571         * modules/truncf: New file.
85572         * lib/trunc.c: Make paramerizable through USE_* macros.
85573         * lib/truncf.c: New file.
85574         * m4/truncf.m4: New file.
85575         * lib/math.in.h (truncf): New declaration.
85576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85577         HAVE_DECL_TRUNCF.
85578         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85579         HAVE_DECL_TRUNCF.
85580         * doc/functions/truncf.texi: Mention the 'truncf' module.
85582 2007-10-03  Bruno Haible  <bruno@clisp.org>
85584         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85585         augmentation also for tests modules.
85586         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85587         * modules/atexit-tests (Makefile.am): Likewise.
85588         * modules/binary-io-tests (Makefile.am): Likewise.
85589         * modules/c-strcase-tests (Makefile.am): Likewise.
85590         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85591         * modules/canonicalize-tests (Makefile.am): Likewise.
85592         * modules/closein-tests (Makefile.am): Likewise.
85593         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85594         * modules/freadahead-tests (Makefile.am): Likewise.
85595         * modules/fseek-tests (Makefile.am): Likewise.
85596         * modules/fseeko-tests (Makefile.am): Likewise.
85597         * modules/ftell-tests (Makefile.am): Likewise.
85598         * modules/ftello-tests (Makefile.am): Likewise.
85599         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85600         * modules/isnanl-tests (Makefile.am): Likewise.
85601         * modules/lseek-tests (Makefile.am): Likewise.
85602         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85603         * modules/mbscasestr-tests (Makefile.am): Likewise.
85604         * modules/mbschr-tests (Makefile.am): Likewise.
85605         * modules/mbscspn-tests (Makefile.am): Likewise.
85606         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85607         * modules/mbspbrk-tests (Makefile.am): Likewise.
85608         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85609         * modules/mbsrchr-tests (Makefile.am): Likewise.
85610         * modules/mbsspn-tests (Makefile.am): Likewise.
85611         * modules/mbsstr-tests (Makefile.am): Likewise.
85612         * modules/printf-posix-tests (Makefile.am): Likewise.
85613         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85614         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85615         * modules/tsearch-tests (Makefile.am): Likewise.
85616         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85617         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85618         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85619         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85620         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85621         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85622         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85623         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85624         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85625         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85626         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85627         * modules/xstrtol-tests (Makefile.am): Likewise.
85628         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85629         * modules/yesno-tests (Makefile.am): Likewise.
85631 2007-10-03  Bruno Haible  <bruno@clisp.org>
85633         * modules/trunc-tests: New file.
85634         * tests/test-trunc.c: New file.
85636         * modules/trunc: New file.
85637         * lib/trunc.c: New file.
85638         * m4/trunc.m4: New file.
85639         * lib/math.in.h (trunc): New declaration.
85640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85641         HAVE_DECL_TRUNC.
85642         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85643         HAVE_DECL_TRUNC.
85644         * doc/functions/trunc.texi: Mention the 'trunc' module.
85646 2007-10-03  Bruno Haible  <bruno@clisp.org>
85648         * tests/test-fpending.c: New file, mostly copied
85649         from coreutils/lib/t-fpending.c.
85650         * modules/fpending-tests: New file.
85652 2007-10-03  Bruno Haible  <bruno@clisp.org>
85654         Port the stdio extensions to QNX (untested).
85655         * lib/fseterr.c (fseterr): Add support for QNX.
85656         * lib/fbufmode.c (fbufmode): Likewise.
85657         * lib/freadable.c (freadable): Likewise.
85658         * lib/fwritable.c (fwritable): Likewise.
85659         * lib/freading.c (freading): Likewise.
85660         * lib/fwriting.c (fwriting): Likewise.
85661         * lib/freadahead.c (freadahed): Likewise.
85662         * lib/fpurge.c (fpurge): Likewise.
85663         * lib/fseeko.c (rpl_fseeko): Likewise.
85665 2007-10-03  Bruno Haible  <bruno@clisp.org>
85666             Jim Meyering  <jim@meyering.net>
85667             Eric Blake  <ebb9@byu.net>
85669         * doc/relocatable.texi: Use @command instead of @program.
85671 2007-10-02  Jim Meyering  <jim@meyering.net>
85673         Perform one more "_.h" -> ".in.h" substitution.
85674         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85675         instead of unistd_.h here, too.
85677 2007-10-01  Bruno Haible  <bruno@clisp.org>
85679         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85680         Needed for the alloca-opt module.
85682 2007-09-30  Bruno Haible  <bruno@clisp.org>
85684         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85685         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85686         alloca_.h.
85687         * lib/argz.in.h: Renamed from lib/argz_.h.
85688         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85689         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85690         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85691         byteswap_.h.
85692         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85693         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85694         dirent_.h.
85695         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85696         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85697         fcntl_.h.
85698         * lib/float.in.h: Renamed from lib/float_.h.
85699         * modules/float (Files, Makefile.am): Use float.in.h instead of
85700         float_.h.
85701         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85702         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85703         fnmatch_.h.
85704         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85705         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85706         getopt_.h.
85707         * lib/glob.in.h: Renamed from lib/glob_.h.
85708         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85709         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85710         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85711         iconv_.h.
85712         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85713         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85714         inttypes_.h.
85715         * lib/locale.in.h: Renamed from lib/locale_.h.
85716         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85717         locale_.h.
85718         * lib/math.in.h: Renamed from lib/math_.h.
85719         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85720         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85721         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85722         of netinet_in_.h. Add dependency.
85723         * lib/poll.in.h: Renamed from lib/poll_.h.
85724         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85725         * lib/search.in.h: Renamed from lib/search_.h.
85726         * modules/search (Files, Makefile.am): Use search.in.h instead of
85727         search_.h.
85728         * lib/signal.in.h: Renamed from lib/signal_.h.
85729         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85730         _signal.h.
85731         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85732         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85733         stdbool_.h.
85734         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85735         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85736         stdint_.h.
85737         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85738         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85739         stdio_.h.
85740         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85741         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85742         stdlib_.h.
85743         * lib/string.in.h: Renamed from lib/string_.h.
85744         * modules/string (Files, Makefile.am): Use string.in.h instead of
85745         string_.h.
85746         * doc/gnulib-tool.texi (Initial import): Update.
85747         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85748         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85749         of sys_select_.h. Add dependency.
85750         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85751         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85752         of sys_socket_.h.
85753         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85754         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85755         sys_stat_.h.
85756         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85757         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85758         sys_time_.h.
85759         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85760         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85761         sysexits_.h.
85762         * lib/time.in.h: Renamed from lib/time_.h.
85763         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85764         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85765         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85766         unistd_.h.
85767         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85768         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85769         wchar_.h.
85770         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85771         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85772         wctype_.h.
85773         * build-aux/bootstrap (slurp): Update.
85774         * lib/.cppi-disable: Update.
85776 2007-09-30  Bruno Haible  <bruno@clisp.org>
85778         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85779         Needed on BeOS.
85781 2007-09-30  Bruno Haible  <bruno@clisp.org>
85783         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85785 2007-09-29  Bruno Haible  <bruno@clisp.org>
85787         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85789 2007-09-29  Bruno Haible  <bruno@clisp.org>
85791         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85792         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85793         * build-aux/install-reloc: Compile also areadlink.c.
85794         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85796 2007-09-29  Bruno Haible  <bruno@clisp.org>
85798         * gnulib-tool (func_emit_initmacro_done): Indentation.
85800 2007-09-29  Bruno Haible  <bruno@clisp.org>
85802         * README: Add CVS checkout update instructions.
85803         Info from Bob Proulx <bob@proulx.com>.
85805 2007-09-28  Eric Blake  <ebb9@byu.net>
85807         Provide move-if-change.
85808         * build-aux/move-if-change: New file, based on best practice
85809         rather than any canonical upstream location.
85811 2007-09-28  Jim Meyering  <jim@meyering.net>
85813         Fix canonicalize loop-detection corner case.
85814         Do not attempt to stat the symlink values stored via seen_triple.
85815         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85816         on linux-2.6.18, (but not 2.6.22).
85817         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85818         triple_compare.  The former compares dev,ino,filename, while the latter
85819         would actually stat dirname(filename) when dev and ino were equal.
85820         * lib/hash-triple.c: Install <string.h>.
85821         (STREQ): Define.
85822         (triple_compare_ino_str): New function.
85823         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85825 2007-09-28  Eric Blake  <ebb9@byu.net>
85827         Enforce that AC_REPLACE_FUNCS files exist.
85828         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85829         override check for typos.
85831         Fix test-closein on Solaris 10.
85832         * tests/test-closein.c (main): Don't assume stdin can be inherited
85833         closed on all systems.
85834         * tests/test-closein.sh: Likewise.
85835         Reported by Piotr Tarnowski.
85837 2007-09-28  Jim Meyering  <jim@meyering.net>
85839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85841 2007-09-27  Jim Meyering  <jim@meyering.net>
85843         canonicalize: Avoid a false-positive cycle failure.
85844         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85845         Sort.  Remove cycle-check.
85846         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85847         not cycle-check.h.
85848         (seen_triple): New function.
85849         (canonicalize_filename_mode): Use it instead of cycle-check.
85850         * tests/test-canonicalize.c: Add a test for this bug.
85851         * tests/test-canonicalize.sh: Set up and run the test.
85853         New module, file-set, from coreutils.
85854         * modules/file-set: Define it.
85855         * lib/file-set.c, lib/file-set.h: Implement.
85857         New module, hash-triple, from coreutils.
85858         * modules/hash-triple: Define it.
85859         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85861 2007-09-25  Eric Blake  <ebb9@byu.net>
85863         Fix strerror on Interix.
85864         * lib/string_.h (strerror): Declare replacement.
85865         * doc/functions/strerror.texi (strerror): Document the Interix
85866         shortcoming.
85867         * modules/string (Makefile.am): Support new hooks.
85868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85869         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85870         gl_FUNC_STRERROR_SEPARATE.
85871         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85872         * lib/strerror.c (rpl_strerror): Provide replacement.
85873         * modules/strerror (Depends-on): Add string.
85874         (configure.ac): Detect use of module.
85875         * tests/test-strerror.c: New file.
85876         * modules/strerror-tests: New test module.
85877         * modules/argp (Depends-on): Add strerror.
85878         * modules/error (Depends-on): Likewise.
85879         Reported by Martin Koeppe.
85881 2007-09-24  Bruno Haible  <bruno@clisp.org>
85883         * README: Update git instructions.
85885 2007-09-24  Eric Blake  <ebb9@byu.net>
85887         Revert fpending breakage from 2007-09-08.
85888         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85889         __fpending.c.
85891 2007-09-24  Jim Meyering  <jim@meyering.net>
85893         filenamecat.c: Add a test.
85894         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85895         showing how the function works when DIR is the empty string.
85897 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85899         * tests/test-canonicalize.sh: Turn on executable bit.
85901 2007-09-19  Eric Blake  <ebb9@byu.net>
85903         * README: Update CVS instructions.
85905 2007-09-18  Bruno Haible  <bruno@clisp.org>
85907         * modules/areadlink: New file.
85908         * lib/areadlink.h (areadlink): New declaration.
85909         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85911 2007-09-17  Jim Meyering  <jim@meyering.net>
85913         * lib/savewd.c (ESTALE) [!defined]: Define.
85914         Reported to be required on Interix by Martin Koeppe.
85916 2007-09-17  Bruno Haible  <bruno@clisp.org>
85918         * gnulib-tool (func_version): Use $version.
85920 2007-09-16  Bruno Haible  <bruno@clisp.org>
85922         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85923         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85924         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85925         Reported by Greg Schafer <gschafer@zip.com.au>.
85927 2007-09-15  Bruno Haible  <bruno@clisp.org>
85929         * gnulib-tool (sed): Try a little harder to make bash understand the
85930         alias.
85931         Reported by Bruce Korb <bruce.korb@gmail.com>.
85933 2007-09-13  Eric Blake  <ebb9@byu.net>
85935         * ChangeLog: Remove conflict markers.
85937 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85939         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85940         Reported by Bruno Haible <bruno@clisp.org>.
85942 2007-09-12  Bruno Haible  <bruno@clisp.org>
85944         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85945         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85946         is not defined.
85948 2007-09-12  Eric Blake  <ebb9@byu.net>
85950         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85951         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85952         Autoconf definition.
85953         * modules/euidaccess (Depends-on): Add extensions, for
85954         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85955         * modules/fnmatch (Depends-on): Likewise.
85956         * modules/getaddrinfo (Depends-on): Likewise.
85957         * modules/getdelim (Depends-on): Likewise.
85958         * modules/getline (Depends-on): Likewise.
85959         * modules/getsubopt (Depends-on): Likewise.
85960         * modules/gettext (Depends-on): Likewise.
85961         * modules/group-member (Depends-on): Likewise.
85962         * modules/mbchar (Depends-on): Likewise.
85963         * modules/memmem (Depends-on): Likewise.
85964         * modules/mempcpy (Depends-on): Likewise.
85965         * modules/memrchr (Depends-on): Likewise.
85966         * modules/pagealign_alloc (Depends-on): Likewise.
85967         * modules/readutmp (Depends-on): Likewise.
85968         * modules/stpcpy (Depends-on): Likewise.
85969         * modules/stpncpy (Depends-on): Likewise.
85970         * modules/strchrnul (Depends-on): Likewise.
85971         * modules/strndup (Depends-on): Likewise.
85972         * modules/strsep (Depends-on): Likewise.
85973         * modules/strverscmp (Depends-on): Likewise.
85974         * modules/vasprintf (Depends-on): Likewise.
85975         * modules/wcwidth (Depends-on): Likewise.
85976         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85977         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85978         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85981         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85982         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85983         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85984         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85985         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85987         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85988         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85989         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85990         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85991         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85992         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85993         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85995         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85997         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85998         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85999         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
86000         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
86001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86002         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
86003         so that lock.m4 can be used in gettext without extensions module.
86005 2007-09-11  Bruno Haible  <bruno@clisp.org>
86007         * m4/isc-posix.m4: Remove file.
86008         Suggested by Eric Blake.
86010 2007-09-11  Eric Blake  <ebb9@byu.net>
86012         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
86014 2007-09-10  Bruno Haible  <bruno@clisp.org>
86016         * posix-modules: Fix typo in error message.
86017         Reported by Matt <mkraai@beckman.com>.
86019 2007-09-09  Bruno Haible  <bruno@clisp.org>
86021         * doc/functions/getdelim.texi: Update list of platforms lacking the
86022         function.
86023         * doc/functions/getline.texi: Likewise.
86025 2007-09-09  Jim Meyering  <jim@meyering.net>
86027         * lib/hash.c (hash_initialize): Detect calloc failure.
86028         Reported by Bruno Haible.
86030 2007-09-09  Bruno Haible  <bruno@clisp.org>
86032         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
86033         malloc or realloc fails.
86035 2007-09-09  Bruno Haible  <bruno@clisp.org>
86037         * modules/getcwd (Depends-on): Add malloc-posix.
86038         * modules/glob (Depends-on): Likewise.
86039         * modules/putenv (Depends-on): Likewise.
86040         * modules/strdup (Depends-on): Likewise.
86041         * modules/getdelim (Depends-on): Add realloc-posix.
86042         * modules/read-file (Depends-on): Likewise.
86044 2007-09-09  Bruno Haible  <bruno@clisp.org>
86046         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
86047         (gl_FUNC_MALLOC_POSIX): Require it.
86048         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
86049         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
86050         * modules/realloc (Files): Add m4/malloc.m4.
86051         * modules/calloc (Files): Likewise.
86053 2007-09-09  Bruno Haible  <bruno@clisp.org>
86055         * modules/malloc-posix: New file.
86056         * modules/malloc (Depends-on): Add malloc-posix.
86057         * lib/malloc.c: Include errno.h.
86058         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
86059         and a POSIX-compatible malloc into a single function. Set ENOMEM
86060         when returning NULL.
86061         * m4/malloc.m4: New file.
86062         * doc/functions/malloc.texi: Mention the malloc-posix module.
86063         * lib/stdlib_.h (malloc): New declaration.
86064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86065         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
86066         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
86067         and HAVE_MALLOC_POSIX.
86069 2007-09-09  Bruno Haible  <bruno@clisp.org>
86071         * modules/realloc-posix: New file.
86072         * modules/realloc (Depends-on): Add realloc-posix.
86073         * lib/realloc.c: Include errno.h.
86074         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
86075         and a POSIX-compatible realloc into a single function. Set ENOMEM
86076         when returning NULL.
86077         * m4/realloc.m4: New file.
86078         * doc/functions/realloc.texi: Mention the realloc-posix module.
86079         * lib/stdlib_.h (realloc): New declaration.
86080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86081         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
86082         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
86083         and HAVE_REALLOC_POSIX.
86085 2007-09-09  Bruno Haible  <bruno@clisp.org>
86087         * modules/calloc-posix: New file.
86088         * modules/calloc (Depends-on): Add calloc-posix.
86089         * lib/calloc.c: Include errno.h.
86090         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
86091         and a POSIX-compatible calloc into a single function. Set ENOMEM
86092         when returning NULL.
86093         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
86094         * doc/functions/calloc.texi: Mention the calloc-posix module.
86095         * lib/stdlib_.h (calloc): New declaration.
86096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86097         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
86098         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
86099         and HAVE_CALLOC_POSIX.
86101 2007-09-09  Bruno Haible  <bruno@clisp.org>
86103         Allow for modules to show an arbitrary notice.
86104         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
86105         * gnulib-tool: New option --extract-notice.
86106         (func_usage): Document it.
86107         (sed_extract_prog): Update.
86108         (func_get_notice): New function.
86109         (func_modules_notice): New function.
86110         (func_import, func_create_testdir): Invoke it.
86111         Suggested by Jim Meyering.
86113 2007-09-09  Bruno Haible  <bruno@clisp.org>
86115         * gnulib-tool: New options --verbose, --quiet.
86116         (func_usage): Document them.
86117         (verbose): New variable.
86118         (func_execute_command): New function.
86119         (func_import): Don't show the module list and the file list if
86120         $verbose < 0.
86121         (func_create_testdir): Likewise. Use func_execute_command.
86122         (func_create_megatestdir): Use func_execute_command.
86124 2007-09-08  Bruno Haible  <bruno@clisp.org>
86126         * gnulib-tool (func_import): Prefer rsync over wget when available,
86127         for fetching the PO files.
86129 2007-09-08  Bruno Haible  <bruno@clisp.org>
86131         * posix-modules: New file. Portions copied from gnulib-tool.
86132         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86134 2007-09-08  Jim Meyering  <jim@meyering.net>
86136         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86137         * lib/fpending.h: Rename from __fpending.h.
86138         * lib/fpending.c: Rename from __fpending.c.
86139         Include "fpending.h", not "__fpending.h".
86140         * lib/__fpending.h, lib/__fpending.c: Remove files.
86141         * modules/fpending (Files): Reflect new file names.
86142         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86144 2007-09-08  Bruno Haible  <bruno@clisp.org>
86146         * m4/inttypes-h.m4: Remove stub file.
86148 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86150         * doc/headers/stdint.texi: Discuss #include_next issue.
86152 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86154         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86156 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86158         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86159         in variable name.
86161 2007-09-03  Jim Meyering  <jim@meyering.net>
86163         New module: git-version-gen.
86164         * modules/git-version-gen: New file.
86166         Import changes from coreutils for bootstrap script.
86168         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86170         bootstrap: uses rsync to download the .po files
86171         * build-aux/bootstrap (po_download_command_format): New global.
86172         (download_po_files): Use rsync.
86173         (update_po_files): Don't remove .po files after download,
86174         so future rsync runs can take advantage of the copies.
86176         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86178         Solve the unnecessary-.po-file-regeneration problem once and for all.
86179         * build-aux/bootstrap (download_po_files): New function, renamed from
86180         get_translations.  Now, downloads, but doesn't update LINGUAS.
86181         (update_po_files): New function.
86183         bootstrap: Ignore more.
86184         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86185         uniwidth to e.g., lib/.gitignore.
86186         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86188         * build-aux/bootstrap: New setting: vc_ignore.
86189         (insert_sorted_if_absent): Create $file if absent.
86190         Adapt to new, possibly empty, list: $vc_ignore.
86192         bootstrap: generate more ignorable names
86193         * build-aux/bootstrap (slurp): When generating ignorable names,
86194         also map .sin to .sed, .gperf to .c, and .y to .c.
86196 2007-09-03  Jim Meyering  <jim@meyering.net>
86198         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86199         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86201 2007-09-02  Bruno Haible  <bruno@clisp.org>
86203         Fix mis-recognition of 'mcs' on QNX 6.
86204         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86205         output contains the string "Mono".
86206         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86207         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86209 2007-09-01  Bruno Haible  <bruno@clisp.org>
86211         Fix collision between uniwidth/* and linebreak modules.
86212         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86213         u32_width): Remove declarations.
86214         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86215         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86216         streq3, streq2, streq1, streq0): Remove functions.
86217         (STREQ): Remove macro.
86218         (is_cjk_encoding): Remove function.
86219         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86220         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86221         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86222         * NEWS: Document the change.
86224 2007-09-01  Bruno Haible  <bruno@clisp.org>
86226         * lib/streq.h: Add double-inclusion guard.
86228 2007-09-01  Karl Berry  <karl@gnu.org>
86230         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86232 2007-08-28  Jim Meyering  <jim@meyering.net>
86234         Rename mreadlink_with_size to areadlink_with_size.
86235         * NEWS: Document the change.
86236         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86237         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86238         * lib/mreadlink.h: Rename this to...
86239         * lib/areadlink.h: ...this.
86240         * modules/mreadlink-with-size: Rename this to...
86241         * modules/areadlink-with-size: ...this.
86242         * lib/canonicalize.c: Reflect the renaming.
86243         * modules/canonicalize: Likewise.
86245 2007-08-26  Bruno Haible  <bruno@clisp.org>
86247         * gnulib-tool (func_import): When deciding which files to remove,
86248         consider also dangling symbolic links.
86249         Reported by Eric Blake.
86251 2007-08-26  Bruno Haible  <bruno@clisp.org>
86253         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86255 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86257         * lib/readline.c: Don't include getline.h, the prototype is now
86258         found in stdio.h.
86260 2007-08-23  Jim Meyering  <jim@meyering.net>
86262         Getdelim touchup.
86263         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86264         around the funlockfile call, since funlockfile never sets errno.
86265         Don't set errno upon failed realloc.
86267 2007-08-22  Eric Blake  <ebb9@byu.net>
86269         Getline touchups.
86270         * lib/getdelim.c (getdelim): Revert regression that required *n to
86271         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86273         getdelim, rather than whether implementation is missing.
86274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86275         * lib/stdio_.h (getline): Also declare if replacement is
86276         required.
86277         * doc/functions/getdelim.texi: New file.
86278         * doc/functions/getline.texi: Likewise.
86279         * doc/gnulib.texi (Function Substitutes): Add new files.
86280         Reported by Bruno Haible.
86282 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86284         * users.txt: Add Guile.
86286 2007-08-22  Eric Blake  <ebb9@byu.net>
86288         * tests/test-getdelim.c (main): Use remove, not unlink.
86289         * tests/test-getline.c (main): Likewise.
86291         Move getline and getdelim into stdio.h, per POSIX 200x.
86292         * modules/getline (Files): Remove getline.h.
86293         (Depends-on): Add stdio.
86294         (configure.ac): Add module indicator.
86295         * modules/getdelim (Files): Remove getdelim.h.
86296         (Depends-on): Add stdio.
86297         (configure.ac): Add module indicator.
86298         * modules/stdio (Makefile.am): Work with new indicators.
86299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86301         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86302         * lib/getdelim.h: Delete.
86303         * lib/getline.h: Delete.
86304         * lib/stdio_.h (getdelim, getline): Declare.
86305         * modules/getdelim-tests: New module.
86306         * modules/getline-tests: Likewise.
86307         * tests/test-getdelim.c: New file.
86308         * tests/test-getline.c: Likewise.
86309         * NEWS: Document the change.
86310         * lib/getline.c: Update choice of header.
86311         * lib/csharpcomp.c: Likewise.
86312         * lib/getpass.c: Likewise.
86313         * lib/javacomp.c: Likewise.
86314         * lib/javaversion.c: Likewise.
86315         * lib/yesno.c: Likewise.
86316         * lib/getdelim.c: Likewise.
86317         (getdelim): Set errno on failure, and avoid memory leak.
86319 2007-08-19  Bruno Haible  <bruno@clisp.org>
86321         * modules/closein (Depends-on): Add freadahead.
86322         * lib/closein.c: Include freadahead.h.
86323         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86324         is zero.
86326 2007-08-19  Bruno Haible  <bruno@clisp.org>
86328         * modules/freadahead-tests: New file.
86329         * tests/test-freadahead.sh: New file.
86330         * tests/test-freadahead.c: New file.
86332         * modules/freadahead: New file.
86333         * lib/freadahead.h: New file.
86334         * lib/freadahead.c: New file.
86335         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86336         fbufmode, fpurge, freadable, fwritable.
86338 2007-08-19  Eric Blake  <ebb9@byu.net>
86340         Test yesno in combination with closein.
86341         * lib/yesno.c (yesno): Document use of stdin.
86342         * modules/yesno-tests (Files): New module.
86343         * tests/test-yesno.c (main): New file.
86344         * tests/test-yesno.sh: Likewise.
86346 2007-08-19  Bruno Haible  <bruno@clisp.org>
86348         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86349         * lib/fseeko.c (rpl_fseeko): Likewise.
86350         * lib/fseterr.c (fseterr): Likewise.
86352 2007-08-19  Bruno Haible  <bruno@clisp.org>
86354         * tests/test-lseek.c (main): Disable a test for BeOS.
86355         * doc/functions/lseek.texi: Document the BeOS bug.
86357 2007-08-19  Bruno Haible  <bruno@clisp.org>
86358             Eric Blake  <ebb9@byu.net>
86360         * lib/lseek.c: Include <sys/stat.h>.
86361         (rpl_lseek): Add workaround code also for Unix platforms.
86362         Needed for BeOS.
86363         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86364         * doc/functions/lseek.texi: Document BeOS definiency.
86366 2007-08-18  Bruno Haible  <bruno@clisp.org>
86368         * modules/fstrcmp-tests: New file.
86369         * tests/test-fstrcmp.c: New file.
86371 2007-08-18  Bruno Haible  <bruno@clisp.org>
86373         * modules/fstrcmp: New file, from GNU gettext with modifications.
86374         * lib/fstrcmp.h: New file, from GNU gettext.
86375         * lib/fstrcmp.c: New file, from GNU gettext.
86376         * MODULES.html.sh (String handling): Add fstrcmp.
86378 2007-08-18  Bruno Haible  <bruno@clisp.org>
86380         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86381         'bool'.
86382         (diag, compareseq): Remove const from the ctxt argument.
86383         (USE_HEURISTIC): Undefine at the end.
86385 2007-08-18  Jim Meyering  <jim@meyering.net>
86387         New file: lib/idcache.h
86388         * NEWS: Mention the addition.
86389         * modules/idcache (Files): Add lib/idcache.h
86390         * lib/idcache.c: Include "idcache.h".
86391         Don't include <sys/types.h>.
86392         Add a FIXME comment.
86393         Move file-scoped "static" declarations to the top.
86394         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86396 2007-08-17  Bruno Haible  <bruno@clisp.org>
86397         and Paul Eggert  <eggert@cs.ucla.edu>
86399         * MODULES.html.sh: Add diffseq.
86400         * modules/diffseq: New file.
86401         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86402         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86404 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86406         Import changes from coreutils for bootstrap script.
86408         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86410         * build-aux/bootstrap (slurp): Work even in environments where
86411         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86412         current code does not slurp files whose names start with ".", and
86413         this looks like it might be a troublesome area.
86415         2007-07-11  Jim Meyering  <jim@meyering.net>
86417         If there's a GPL vN copyright comment, require that N == 3.
86419         2007-07-08  Jim Meyering  <jim@meyering.net>
86421         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86422         * build-aux/bootstrap (mam_template): Move definition out of loop.
86424         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86426         * build-aux/bootstrap (symlink_to_dir): Rename function from
86427         symlink_to_gnulib.  Add a directory parameter.  Update all
86428         callers.
86429         (cp_mark_as_generated): Also check for -- and link to -- files in
86430         gl/.
86432         2007-07-08  Jim Meyering  <jim@meyering.net>
86434         Adapt to deeper hierarchy in gnulib.
86435         * build-aux/bootstrap (symlink_to_dir): If the destination
86436         directory doesn't exist, create it. This is required at least for
86437         "lib/uniwidth/cjk.h".
86439         2007-05-15  Jim Meyering  <jim@meyering.net>
86441         * build-aux/bootstrap: Now that generated Makefile.am files
86442         are no longer under version control, they must be created at
86443         bootstrap time.
86445 2007-08-14  Ben Pfaff  <blp@gnu.org>
86447         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86449 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86451         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86452         given the changes below.
86453         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86454         even on hosts that have padding bits beyond the supported 64.
86456 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86458         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86459         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86460         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86461         depends on it.
86462         (xstrtol_error): Remove.
86463         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86464         but with a different signature.
86465         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86466         * lib/xstrtol-error.c: Include exitfail.h.
86467         (xstrtol_fatal): New function, with a different signature from the
86468         old xstrtol_error, so that the caller need not worry about passing
86469         in an exit status, or about storage management of the option argument.
86470         (xstrtol_error): Now a static function.  Redo signature to
86471         implement xstrtol_fatal.  Output the correct number of hyphens in
86472         front of the option so that the caller need not worry about
86473         storage management.
86474         (N_): New macro.
86475         (_): Remove; not used now.
86476         * modules/xstrtol: Depend on getopt.
86477         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86478         of old STRTOL_FATAL_ERROR macro.
86479         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86480         of test program.
86481         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86482         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86484 2007-08-08  Eric Blake  <ebb9@byu.net>
86486         * lib/xstrtol-error.c: Add missing include.
86488         Move xstrtol messages into gnulib domain, when --pobase is used.
86489         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86490         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86491         * modules/xstrtol (Files): Distribute new file.
86492         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86493         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86494         * tests/test-xstrtol.c: ...into new file.
86495         * tests/test-xstrtoul.c: Also test xstrtoul.
86496         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86497         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86498         * tests/test-xstrtol.sh: Drive the tests.
86499         * tests/test-xstrtoimax.sh: Likewise.
86500         * tests/test-xstrtoumax.sh: Likewise.
86501         * modules/xstrtol-tests: New module.
86502         * modules/xstrtoimax-tests: Likewise.
86503         * modules/xstrtoumax-tests: Likewise.
86505 2007-08-08  Jim Meyering  <jim@meyering.net>
86507         New function: mfile_name_concat.
86508         * lib/filenamecat.c (mfile_name_concat): New function, just like
86509         file_name_concat, but return NULL upon failure rather than exiting
86510         with a diagnostic.
86511         * lib/filenamecat.h: Declare it.
86513 2007-08-07  Bruno Haible  <bruno@clisp.org>
86515         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86516         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86517         warning from gcc.
86518         Reported by Eric Blake.
86520 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86522         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86523         * modules/crypto/arcfour (License): Likewise.
86524         * modules/crypto/des-tests (License): Likewise.
86525         * modules/crypto/gc-arctwo-tests (License): Likewise.
86526         * modules/crypto/gc-des-tests (License): Likewise.
86527         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86528         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86529         * modules/crypto/gc-md2-tests (License): Likewise.
86530         * modules/crypto/gc-md4-tests (License): Likewise.
86531         * modules/crypto/gc-md5-tests (License): Likewise.
86532         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86533         * modules/crypto/gc-rijndael-tests (License): Likewise.
86534         * modules/crypto/gc-sha1-tests (License): Likewise.
86535         * modules/crypto/gc-tests (License): Likewise.
86536         * modules/crypto/hmac-md5 (License): Likewise.
86537         * modules/crypto/hmac-sha1 (License): Likewise.
86538         * modules/crypto/md2-tests (License): Likewise.
86539         * modules/crypto/md4-tests (License): Likewise.
86540         * modules/crypto/md5 (License): Likewise.
86541         * modules/crypto/rijndael (License): Likewise.
86542         * modules/crypto/sha1 (License): Likewise.
86543         * modules/memxor (License): Likewise.
86545 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86546         and Bruno Haible  <bruno@clisp.org>
86548         * NEWS: Describe interface changes to human, xstrtol.
86549         * lib/human.h: Include <xstrtol.h>.
86550         (human_options): Return enum strtol_error, not int.  Remove
86551         bool arg; take int * instead.
86552         * lib/human.c: Don't include "gettext.h".
86553         (_): Remove; no longer used.
86554         Don't include <xstrtol.h>, since human.h does it.
86555         (human_options): Adjust to abovementioned interface changes.
86556         Do not report error to stderr; that's now the caller's
86557         responsibility.
86558         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86559         interface change.
86560         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86561         Str, Argument_type_string.  All uses changed.  Put " argument"
86562         in diagnostics to make them clearer.  Change wording of suffix
86563         message for clarity.
86564         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86565         Argument_type_string.
86566         (STRTOL_FATAL_WARN): Remove; no longer used.
86567         * modules/human (Depends-on): Remove gettext-h.
86569 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86571         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86573 2007-07-31  Bruno Haible  <bruno@clisp.org>
86575         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86576         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86577         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86579 2007-07-31  Bruno Haible  <bruno@clisp.org>
86581         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86582         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86584 2007-07-30  Bruno Haible  <bruno@clisp.org>
86586         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86587         * modules/c-ctype (License): Likewise.
86588         * modules/c-strcase (License): Likewise.
86589         * modules/check-version (License): Likewise.
86590         * modules/iconv (License): Likewise.
86591         * modules/iconv_open (License): Likewise.
86592         * modules/read-file (License): Likewise.
86593         * modules/striconv (License): Likewise.
86594         * modules/strverscmp (License): Likewise.
86595         * modules/vasprintf (License): Likewise.
86596         * modules/crypto/des (License): Likewise.
86597         * modules/crypto/gc (License): Likewise.
86598         * modules/crypto/gc-arcfour (License): Likewise.
86599         * modules/crypto/gc-arctwo (License): Likewise.
86600         * modules/crypto/gc-des (License): Likewise.
86601         * modules/crypto/gc-hmac-md5 (License): Likewise.
86602         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86603         * modules/crypto/gc-md2 (License): Likewise.
86604         * modules/crypto/gc-md4 (License): Likewise.
86605         * modules/crypto/gc-md5 (License): Likewise.
86606         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86607         * modules/crypto/gc-random (License): Likewise.
86608         * modules/crypto/gc-rijndael (License): Likewise.
86609         * modules/crypto/gc-sha1 (License): Likewise.
86610         * modules/crypto/md2 (License): Likewise.
86611         * modules/crypto/md4 (License): Likewise.
86613 2007-07-30  Jim Meyering  <jim@meyering.net>
86615         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86616         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86617         it has valid stat data.  This bug would cause du not to count the
86618         sizes of inaccessible directories.
86619         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86620         in <http://bugzilla.redhat.com/250077>.
86622 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86623             Bruno Haible  <bruno@clisp.org>
86625         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86626         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86627         #include_next, gives a diagnostic about it, but reports no error in
86628         the exit code.
86629         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86631 2007-07-24  Ben Pfaff  <blp@gnu.org>
86633         Improve name: "count-one-bits" is better than "popcount".
86634         * MODULES.html.sh: Update name.
86635         * lib/popcount.h: Renamed lib/count-one-bits.h.
86636         (popcount): Renamed count_one_bits.
86637         (popcountl): Renamed count_one_bits_l.
86638         (popcountll): Renamed count_one_bits_ll.
86639         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86640         * modules/popcount: Renamed module/count-one-bits.
86641         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86642         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86644 2007-07-23  Ben Pfaff  <blp@gnu.org>
86646         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86647         better code generation, and add U to large constants to avoid
86648         warnings, in non-GCC case.
86649         Suggested by Bruno Haible.
86651 2007-07-23  Ben Pfaff  <blp@gnu.org>
86653         * lib/popcount.h: Use verify_true instead of if...abort.
86654         * modules/popcount: Depend on verify module.
86655         Suggested by Jim Meyering.
86657 2007-07-23  Bruno Haible  <bruno@clisp.org>
86659         * gnulib-tool (func_import): Create a .cvsignore file also when the
86660         directory is not yet in CVS but the toplevel directory is. When
86661         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86662         Reported by Karl Berry.
86664 2007-07-22  Ben Pfaff  <blp@gnu.org>
86666         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86667         case.
86668         Suggested by Eric Blake.
86670 2007-07-22  Ben Pfaff  <blp@gnu.org>
86672         New module: popcount.
86673         * MODULES.html.sh: Add popcount.
86674         * modules/popcount: New file.
86675         * modules/popcount-tests: New file.
86676         * tests/test-popcount.c: New file.
86677         * lib/popcount.h: New file.
86678         * m4/popcount.m4: New file.
86680 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86682         * build-aux/announce-gen: Update to GPLv3.
86684         * build-aux/config.guess: Update from config.
86686 2007-07-21  Bruno Haible  <bruno@clisp.org>
86688         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86689         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86691 2007-07-20  Jim Meyering  <jim@meyering.net>
86693         * check-module: Diagnose a self-dependency.
86695 2007-07-19  Bruno Haible  <bruno@clisp.org>
86697         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86698         empty.
86699         Reported by Eric Blake.
86701 2007-07-18  Bruno Haible  <bruno@clisp.org>
86703         * gnulib-tool: New options --po-base, --po-domain.
86704         (func_usage): Document them.
86705         (pobase, po_domain): New variables.
86706         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86707         DEFAULT_TEXT_DOMAIN.
86708         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86709         (func_import): Consider pobase and po_domain. Create a po/ directory.
86710         (func_create_testdir): Set pobase and po_domain to empty.
86711         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86712         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86714 2007-07-18  Bruno Haible  <bruno@clisp.org>
86716         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86717         EXTRA_DIST augmentation for files in build-aux/.
86719 2007-07-16  Bruno Haible  <bruno@clisp.org>
86721         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86722         * modules/getdelim (License): Likewise.
86724 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86726         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86727         * modules/d-type (License): Likewise.
86728         * modules/extensions (License): Likewise.
86729         * modules/fnmatch (License): Likewise.
86730         * modules/fseeko (License): Likewise.
86731         * modules/getaddrinfo (License): Likewise.
86732         * modules/getline (License): Likewise.
86733         * modules/getlogin_r (License): Likewise.
86734         * modules/getpass (License): Likewise.
86735         * modules/gettimeofday (License): Likewise.
86736         * modules/glob (License): Likewise.
86737         * modules/inet_ntop (License): Likewise.
86738         * modules/malloc (License): Likewise.
86739         * modules/malloca (License): Likewise.
86740         * modules/memmem (License): Likewise.
86741         * modules/mempcpy (License): Likewise.
86742         * modules/memset (License): Likewise.
86743         * modules/minmax (License): Likewise.
86744         * modules/mktime (License): Likewise.
86745         * modules/netinet_in (License): Likewise.
86746         * modules/pathmax (License): Likewise.
86747         * modules/poll (License): Likewise.
86748         * modules/regex (License): Likewise.
86749         * modules/snprintf (License): Likewise.
86750         * modules/stdbool (License): Likewise.
86751         * modules/stdint (License): Likewise.
86752         * modules/stdio (License): Likewise.
86753         * modules/strcase (License): Likewise.
86754         * modules/strcasestr (License): Likewise.
86755         * modules/strdup (License): Likewise.
86756         * modules/string (License): Likewise.
86757         * modules/strndup (License): Likewise.
86758         * modules/strnlen (License): Likewise.
86759         * modules/strpbrk (License): Likewise.
86760         * modules/strptime (License): Likewise.
86761         * modules/strsep (License): Likewise.
86762         * modules/sys_select (License): Likewise.
86763         * modules/sys_socket (License): Likewise.
86764         * modules/sys_stat (License): Likewise.
86765         * modules/sys_time (License): Likewise.
86766         * modules/time (License): Likewise.
86767         * modules/time_r (License): Likewise.
86768         * modules/timegm (License): Likewise.
86769         * modules/unistd (License): Likewise.
86770         * modules/vsnprintf (License): Likewise.
86771         * modules/wctype (License): Likewise.
86773 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86775         * modules/argz (License): LGPLv2+.
86777 2007-07-15  Karl Berry  <karl@gnu.org>
86779         * doc/gnulib.texi: revise node structure per new fdl.texi.
86781 2007-07-14  Bruno Haible  <bruno@clisp.org>
86783         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86784         the output file.
86785         * lib/uniname/uninames.h: Regenerated.
86787 2007-07-14  Karl Berry  <karl@gnu.org>
86789         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86790         omitting sectioning and index commands.
86792 2007-07-13  Bruno Haible  <bruno@clisp.org>
86794         New gnulib-tool option --more-symlinks.
86795         * gnulib-tool (func_usage): Document --more-symlinks.
86796         (do_copyrights): New variable.
86797         Recognize option --more-symlinks.
86798         (func_import): Don't add a copyright notice transform to
86799         sed_transform_lib_file if do_copyrights is empty.
86801 2007-07-13  Bruno Haible  <bruno@clisp.org>
86803         * lib/vasnprintf.c (decimal_point_char): Define also if
86804         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86805         && !NEED_PRINTF_DIRECTIVE_A.
86806         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86807         Gary V. Vaughan <gary@gnu.org>.
86809 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86811         * lib/inttypes_.h: Undo previous change, since it was fixed
86812         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86814 2007-07-13  Bruno Haible  <bruno@clisp.org>
86816         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86817         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86819 2007-07-13  Jim Meyering  <jim@meyering.net>
86821         df: Don't fail for Tru64's "file-on-file mount".
86822         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86823         so we fall through and use statfs instead.  Details here:
86824         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86825         Reported by Albert Chin.
86827 2007-07-13  Bruno Haible  <bruno@clisp.org>
86829         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86830         * modules/configmake (License): Likewise.
86831         * modules/gettext (License): Likewise.
86832         * modules/gettext-h (License): Likewise.
86833         * modules/include_next (License): Likewise.
86834         * modules/link-warning (License): Likewise.
86835         * modules/localcharset (License): Likewise.
86836         * modules/localename (License): Likewise.
86837         * modules/lock (License): Likewise.
86838         * modules/relocatable-lib-lgpl (License): Likewise.
86839         * modules/size_max (License): Likewise.
86840         * modules/vasnprintf (License): Likewise.
86841         * modules/wchar (License): Likewise.
86842         * modules/xsize (License): Likewise.
86844 2007-07-13  Bruno Haible  <bruno@clisp.org>
86846         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86847         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86849 2007-07-12  Bruno Haible  <bruno@clisp.org>
86851         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86852         in the modules files.
86854 2007-07-11  Karl Berry  <karl@gnu.org>
86856         * MODULES.html.sh (func_module): use
86857          sed -e '\|^'"${includefile}"'$|d'
86858          instead of /.../d, to avoid errors on $includefile's containing /.
86860 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86862         * gnulib-tool (func_import): Avoid duplication of --avoid
86863         statements
86864         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86865         names to `_' in variable names.
86867 2007-07-10  Eric Blake  <ebb9@byu.net>
86869         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86870         * NEWS: Document this change.
86872 2007-07-08  Bruno Haible  <bruno@clisp.org>
86874         Update to Unicode 5.0.
86875         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86876         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86877         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86878         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86879         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86880         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86881         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86882         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86883         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86884         U+10A3F, U+1D242..U+1D244.
86885         (nonspacing_table_ind): Update.
86886         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86887         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86889 2007-07-08  Bruno Haible  <bruno@clisp.org>
86891         Update to Unicode 5.0.
86892         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86893         code transform. Extend the name index field of unicode_name_to_code and
86894         unicode_code_to_name from 16 to 24 bits.
86895         * lib/uniname/uniname.c (unicode_character_name,
86896         unicode_name_character): Add the range 0x12xxx to the code transform.
86897         * lib/uniname/uninames.h: Regenerated.
86898         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86900 2007-07-07  Bruno Haible  <bruno@clisp.org>
86902         * modules/wcwidth-tests: New file.
86903         * tests/test-wcwidth.c: New file.
86905         Work around MacOS X wcwidth() bug.
86906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86907         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86908         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86909         original wcwidth in non-UTF-8 locales.
86910         * modules/wcwidth (Depends-on): Add localcharset, streq,
86911         uniwidth/width.
86912         * doc/functions/wcwidth.texi: Update.
86914 2007-07-07  Bruno Haible  <bruno@clisp.org>
86916         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86917         (wcwidth): New declaration.
86918         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86919         macros.
86920         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86921         here. Prepare for creating <wchar.h> unconditionally.
86922         * modules/wchar (Depends-on): Add link-warning.
86923         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86924         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86925         * lib/wcwidth.h: Remove file.
86926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86927         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86928         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86929         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86930         (Include): Replace wcwidth.h with <wchar.h>.
86931         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86932         * lib/mbchar.h: Don't include wcwidth.h.
86933         * lib/mbswidth.c: Likewise.
86934         * NEWS: Mention the change.
86936 2007-07-07  Bruno Haible  <bruno@clisp.org>
86938         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86939         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86940         definition with an external declaration.
86941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86942         defined as a function. Remove AC_C_INLINE requirement.
86943         * modules/wcwidth (Files): Add lib/wcwidth.c.
86944         (Makefile.am): Remove redundant statement.
86946 2007-07-07  Bruno Haible  <bruno@clisp.org>
86948         * MODULES.html.sh (Unicode string functions): Add the new modules.
86950         * tests/uniwidth/test-u32-strwidth.c: New file.
86951         * modules/uniwidth/u32-strwidth-tests: New file.
86953         * lib/uniwidth/u32-strwidth.c: New file.
86954         * modules/uniwidth/u32-strwidth: New file.
86956         * tests/uniwidth/test-u16-strwidth.c: New file.
86957         * modules/uniwidth/u16-strwidth-tests: New file.
86959         * lib/uniwidth/u16-strwidth.c: New file.
86960         * modules/uniwidth/u16-strwidth: New file.
86962         * tests/uniwidth/test-u8-strwidth.c: New file.
86963         * modules/uniwidth/u8-strwidth-tests: New file.
86965         * lib/uniwidth/u8-strwidth.c: New file.
86966         * modules/uniwidth/u8-strwidth: New file.
86968         * tests/uniwidth/test-u32-width.c: New file.
86969         * modules/uniwidth/u32-width-tests: New file.
86971         * lib/uniwidth/u32-width.c: New file.
86972         * modules/uniwidth/u32-width: New file.
86974         * tests/uniwidth/test-u16-width.c: New file.
86975         * modules/uniwidth/u16-width-tests: New file.
86977         * lib/uniwidth/u16-width.c: New file.
86978         * modules/uniwidth/u16-width: New file.
86980         * tests/uniwidth/test-u8-width.c: New file.
86981         * modules/uniwidth/u8-width-tests: New file.
86983         * lib/uniwidth/u8-width.c: New file.
86984         * modules/uniwidth/u8-width: New file.
86986         * tests/uniwidth/test-uc_width.c: New file.
86987         * modules/uniwidth/width-tests: New file.
86989         * lib/uniwidth/width.c: New file, from GNU libiconv.
86990         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86991         * modules/uniwidth/width: New file.
86993         * lib/uniwidth.h: New file, from GNU libiconv.
86994         * modules/uniwidth/base: New file.
86996 2007-07-07  Bruno Haible  <bruno@clisp.org>
86998         * lib/uniname.h: New file, from GNU gettext.
86999         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
87000         * lib/uniname/uninames.h: New file, from GNU gettext.
87001         * lib/uniname/uniname.c: New file, from GNU gettext.
87002         * tests/uniname/test-uninames.sh: New file.
87003         * tests/uniname/test-uninames.c: New file, from GNU gettext.
87004         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
87005         * modules/uniname/base: New file.
87006         * modules/uniname/uniname: New file.
87007         * modules/uniname/uniname-tests: New file.
87008         * MODULES.html.sh (Unicode string functions): Add the new modules.
87010 2007-07-06  Bruno Haible  <bruno@clisp.org>
87012         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
87014 2007-07-06  Bruno Haible  <bruno@clisp.org>
87016         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
87017         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
87018         includes <cygwin/sys_time.h> which includes <sys/select.h> which
87019         include <sys/time.h>.
87020         Reported by Eric Blake.
87022 2007-07-06  Eric Blake  <ebb9@byu.net>
87024         Fix testing canonicalize on cygwin.
87025         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87026         Revert patch from 2007-06-19.
87027         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
87028         canonicalize module is also in use.
87029         * tests/test-canonicalize.c: New file.
87030         * tests/test-canonicalize.sh: Likewise.
87031         * modules/canonicalize-tests: Likewise.
87033 2007-07-06  Jim Meyering  <jim@meyering.net>
87035         * lib/getugroups.c (getugroups): Detect getgrent failure.
87036         Adjust comment to reflect reality: this function may return -1.
87038 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
87040         * build-aux/bootstrap (TP_URL,get_translations): Update to use
87041         the new TP address.
87042         (usage): Fix typo
87043         (gnulib_mk): New variable.
87045 2007-07-05  Jim Meyering  <jim@meyering.net>
87047         Don't let endgrent clobber errno, no matter how improbable.
87048         * lib/getugroups.c (getugroups): Save and restore errno around
87049         endgrent call.
87051         Close the group DB even when failing with 2^31 or more members.
87052         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
87054 2007-07-04  Jim Meyering  <jim@meyering.net>
87056         * lib/getugroups.h: New file.
87057         * lib/getugroups.c: Include "getugroups.h".
87058         Remove uses of "register" keyword.
87059         Move local variable, "cp", down into scope where used.
87060         Give "username" parameter the "const" attribute.
87061         * modules/getugroups (Files): Add lib/getugroups.h
87063 2007-07-04  Karl Berry  <karl@gnu.org>
87065         * MODULES.html.sh (func_all_modules): Complete rename of
87066         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
87068 2007-07-02  Bruno Haible  <bruno@clisp.org>
87070         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
87071         mode, when inttypes.h comes from gnulib.
87072         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87074 2007-07-02  Simon Josefsson  <simon@josefsson.org>
87076         * NEWS: Mention lgpl module name change.
87078         * modules/lgpl-2.1: Renamed from lgpl.
87080         * NEWS: Mention gpl module name change.
87082         * modules/gpl-3.0: New file, based on gpl-2.0.
87084         * modules/gpl-2.0: Renamed from gpl.
87086         * modules/gpl: Fix filename, doc/gpl.texi is now found at
87087         doc/gpl-2.0.texi.
87089 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
87091         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
87092         #define __STDC_LIMIT_MACROS temporarily while including
87093         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
87094         Problem reported by Joel E. Denny in
87095         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
87097 2007-07-01  Bruno Haible  <bruno@clisp.org>
87099         * lib/unistdio.h: New file.
87100         * lib/unistdio/u-asnprintf.h: New file.
87101         * lib/unistdio/u-asprintf.h: New file.
87102         * lib/unistdio/u-printf-args.c: New file.
87103         * lib/unistdio/u-printf-args.h: New file.
87104         * lib/unistdio/u-printf-parse.h: New file.
87105         * lib/unistdio/u-snprintf.h: New file.
87106         * lib/unistdio/u-sprintf.h: New file.
87107         * lib/unistdio/u-vasprintf.h: New file.
87108         * lib/unistdio/u-vsnprintf.h: New file.
87109         * lib/unistdio/u-vsprintf.h: New file.
87110         * lib/unistdio/ulc-asnprintf.c: New file.
87111         * lib/unistdio/ulc-asprintf.c: New file.
87112         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87113         * lib/unistdio/ulc-printf-parse.c: New file.
87114         * lib/unistdio/ulc-snprintf.c: New file.
87115         * lib/unistdio/ulc-sprintf.c: New file.
87116         * lib/unistdio/ulc-vasnprintf.c: New file.
87117         * lib/unistdio/ulc-vasprintf.c: New file.
87118         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87119         * lib/unistdio/ulc-vsnprintf.c: New file.
87120         * lib/unistdio/ulc-vsprintf.c: New file.
87121         * lib/unistdio/u8-asnprintf.c: New file.
87122         * lib/unistdio/u8-asprintf.c: New file.
87123         * lib/unistdio/u8-printf-parse.c: New file.
87124         * lib/unistdio/u8-snprintf.c: New file.
87125         * lib/unistdio/u8-sprintf.c: New file.
87126         * lib/unistdio/u8-vasnprintf.c: New file.
87127         * lib/unistdio/u8-vasprintf.c: New file.
87128         * lib/unistdio/u8-vsnprintf.c: New file.
87129         * lib/unistdio/u8-vsprintf.c: New file.
87130         * lib/unistdio/u8-u8-asnprintf.c: New file.
87131         * lib/unistdio/u8-u8-asprintf.c: New file.
87132         * lib/unistdio/u8-u8-snprintf.c: New file.
87133         * lib/unistdio/u8-u8-sprintf.c: New file.
87134         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87135         * lib/unistdio/u8-u8-vasprintf.c: New file.
87136         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87137         * lib/unistdio/u8-u8-vsprintf.c: New file.
87138         * lib/unistdio/u16-asnprintf.c: New file.
87139         * lib/unistdio/u16-asprintf.c: New file.
87140         * lib/unistdio/u16-printf-parse.c: New file.
87141         * lib/unistdio/u16-snprintf.c: New file.
87142         * lib/unistdio/u16-sprintf.c: New file.
87143         * lib/unistdio/u16-vasnprintf.c: New file.
87144         * lib/unistdio/u16-vasprintf.c: New file.
87145         * lib/unistdio/u16-vsnprintf.c: New file.
87146         * lib/unistdio/u16-vsprintf.c: New file.
87147         * lib/unistdio/u16-u16-asnprintf.c: New file.
87148         * lib/unistdio/u16-u16-asprintf.c: New file.
87149         * lib/unistdio/u16-u16-snprintf.c: New file.
87150         * lib/unistdio/u16-u16-sprintf.c: New file.
87151         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87152         * lib/unistdio/u16-u16-vasprintf.c: New file.
87153         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87154         * lib/unistdio/u16-u16-vsprintf.c: New file.
87155         * lib/unistdio/u32-asnprintf.c: New file.
87156         * lib/unistdio/u32-asprintf.c: New file.
87157         * lib/unistdio/u32-printf-parse.c: New file.
87158         * lib/unistdio/u32-snprintf.c: New file.
87159         * lib/unistdio/u32-sprintf.c: New file.
87160         * lib/unistdio/u32-vasnprintf.c: New file.
87161         * lib/unistdio/u32-vasprintf.c: New file.
87162         * lib/unistdio/u32-vsnprintf.c: New file.
87163         * lib/unistdio/u32-vsprintf.c: New file.
87164         * lib/unistdio/u32-u32-asnprintf.c: New file.
87165         * lib/unistdio/u32-u32-asprintf.c: New file.
87166         * lib/unistdio/u32-u32-snprintf.c: New file.
87167         * lib/unistdio/u32-u32-sprintf.c: New file.
87168         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87169         * lib/unistdio/u32-u32-vasprintf.c: New file.
87170         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87171         * lib/unistdio/u32-u32-vsprintf.c: New file.
87172         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87173         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87174         * tests/unistdio/test-ulc-printf1.h: New file.
87175         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87176         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87177         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87178         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87179         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87180         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87181         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87182         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87183         * tests/unistdio/test-u8-asnprintf1.c: New file.
87184         * tests/unistdio/test-u8-asnprintf1.h: New file.
87185         * tests/unistdio/test-u8-printf1.h: New file.
87186         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87187         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87188         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87189         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87190         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87191         * tests/unistdio/test-u8-vasprintf1.c: New file.
87192         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87193         * tests/unistdio/test-u8-vsprintf1.c: New file.
87194         * tests/unistdio/test-u16-asnprintf1.c: New file.
87195         * tests/unistdio/test-u16-asnprintf1.h: New file.
87196         * tests/unistdio/test-u16-printf1.h: New file.
87197         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87198         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87199         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87200         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87201         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87202         * tests/unistdio/test-u16-vasprintf1.c: New file.
87203         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87204         * tests/unistdio/test-u16-vsprintf1.c: New file.
87205         * tests/unistdio/test-u32-asnprintf1.c: New file.
87206         * tests/unistdio/test-u32-asnprintf1.h: New file.
87207         * tests/unistdio/test-u32-printf1.h: New file.
87208         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87209         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87210         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87211         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87212         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87213         * tests/unistdio/test-u32-vasprintf1.c: New file.
87214         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87215         * tests/unistdio/test-u32-vsprintf1.c: New file.
87216         * modules/unistdio/base: New file.
87217         * modules/unistdio/u-printf-args: New file.
87218         * modules/unistdio/ulc-asnprintf: New file.
87219         * modules/unistdio/ulc-asprintf: New file.
87220         * modules/unistdio/ulc-fprintf: New file.
87221         * modules/unistdio/ulc-printf-parse: New file.
87222         * modules/unistdio/ulc-snprintf: New file.
87223         * modules/unistdio/ulc-sprintf: New file.
87224         * modules/unistdio/ulc-vasnprintf: New file.
87225         * modules/unistdio/ulc-vasprintf: New file.
87226         * modules/unistdio/ulc-vfprintf: New file.
87227         * modules/unistdio/ulc-vsnprintf: New file.
87228         * modules/unistdio/ulc-vsprintf: New file.
87229         * modules/unistdio/u8-asnprintf: New file.
87230         * modules/unistdio/u8-asprintf: New file.
87231         * modules/unistdio/u8-printf-parse: New file.
87232         * modules/unistdio/u8-snprintf: New file.
87233         * modules/unistdio/u8-sprintf: New file.
87234         * modules/unistdio/u8-vasnprintf: New file.
87235         * modules/unistdio/u8-vasprintf: New file.
87236         * modules/unistdio/u8-vsnprintf: New file.
87237         * modules/unistdio/u8-vsprintf: New file.
87238         * modules/unistdio/u8-u8-asnprintf: New file.
87239         * modules/unistdio/u8-u8-asprintf: New file.
87240         * modules/unistdio/u8-u8-snprintf: New file.
87241         * modules/unistdio/u8-u8-sprintf: New file.
87242         * modules/unistdio/u8-u8-vasnprintf: New file.
87243         * modules/unistdio/u8-u8-vasprintf: New file.
87244         * modules/unistdio/u8-u8-vsnprintf: New file.
87245         * modules/unistdio/u8-u8-vsprintf: New file.
87246         * modules/unistdio/u16-asnprintf: New file.
87247         * modules/unistdio/u16-asprintf: New file.
87248         * modules/unistdio/u16-printf-parse: New file.
87249         * modules/unistdio/u16-snprintf: New file.
87250         * modules/unistdio/u16-sprintf: New file.
87251         * modules/unistdio/u16-vasnprintf: New file.
87252         * modules/unistdio/u16-vasprintf: New file.
87253         * modules/unistdio/u16-vsnprintf: New file.
87254         * modules/unistdio/u16-vsprintf: New file.
87255         * modules/unistdio/u16-u16-asnprintf: New file.
87256         * modules/unistdio/u16-u16-asprintf: New file.
87257         * modules/unistdio/u16-u16-snprintf: New file.
87258         * modules/unistdio/u16-u16-sprintf: New file.
87259         * modules/unistdio/u16-u16-vasnprintf: New file.
87260         * modules/unistdio/u16-u16-vasprintf: New file.
87261         * modules/unistdio/u16-u16-vsnprintf: New file.
87262         * modules/unistdio/u16-u16-vsprintf: New file.
87263         * modules/unistdio/u32-asnprintf: New file.
87264         * modules/unistdio/u32-asprintf: New file.
87265         * modules/unistdio/u32-printf-parse: New file.
87266         * modules/unistdio/u32-snprintf: New file.
87267         * modules/unistdio/u32-sprintf: New file.
87268         * modules/unistdio/u32-vasnprintf: New file.
87269         * modules/unistdio/u32-vasprintf: New file.
87270         * modules/unistdio/u32-vsnprintf: New file.
87271         * modules/unistdio/u32-vsprintf: New file.
87272         * modules/unistdio/u32-u32-asnprintf: New file.
87273         * modules/unistdio/u32-u32-asprintf: New file.
87274         * modules/unistdio/u32-u32-snprintf: New file.
87275         * modules/unistdio/u32-u32-sprintf: New file.
87276         * modules/unistdio/u32-u32-vasnprintf: New file.
87277         * modules/unistdio/u32-u32-vasprintf: New file.
87278         * modules/unistdio/u32-u32-vsnprintf: New file.
87279         * modules/unistdio/u32-u32-vsprintf: New file.
87280         * modules/unistdio/ulc-asnprintf-tests: New file.
87281         * modules/unistdio/ulc-vasnprintf-tests: New file.
87282         * modules/unistdio/ulc-vasprintf-tests: New file.
87283         * modules/unistdio/ulc-vsnprintf-tests: New file.
87284         * modules/unistdio/ulc-vsprintf-tests: New file.
87285         * modules/unistdio/u8-asnprintf-tests: New file.
87286         * modules/unistdio/u8-vasnprintf-tests: New file.
87287         * modules/unistdio/u8-vasprintf-tests: New file.
87288         * modules/unistdio/u8-vsnprintf-tests: New file.
87289         * modules/unistdio/u8-vsprintf-tests: New file.
87290         * modules/unistdio/u16-asnprintf-tests: New file.
87291         * modules/unistdio/u16-vasnprintf-tests: New file.
87292         * modules/unistdio/u16-vasprintf-tests: New file.
87293         * modules/unistdio/u16-vsnprintf-tests: New file.
87294         * modules/unistdio/u16-vsprintf-tests: New file.
87295         * modules/unistdio/u32-asnprintf-tests: New file.
87296         * modules/unistdio/u32-vasnprintf-tests: New file.
87297         * modules/unistdio/u32-vasprintf-tests: New file.
87298         * modules/unistdio/u32-vsnprintf-tests: New file.
87299         * modules/unistdio/u32-vsprintf-tests: New file.
87300         * MODULES.html.sh (Unicode string functions): Add the new modules.
87302 2007-07-01  Bruno Haible  <bruno@clisp.org>
87304         * lib/sprintf.c (sprintf): Limit the available length estimation,
87305         to avoid address wraparound.
87306         * lib/vsprintf.c (vsprintf): Likewise.
87307         * modules/sprintf-posix (Dependencies): Add stdint.
87308         * modules/vsprintf-posix (Dependencies): Likewise.
87310 2007-07-01  Bruno Haible  <bruno@clisp.org>
87312         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87313         Windows PATH as well. Conservative double-quoting. Comments.
87315 2007-07-01  Bruno Haible  <bruno@clisp.org>
87316             Eric Blake  <ebb9@byu.net>
87317             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87319         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87320         empty components in $PATH, denoting '.'.
87322 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87324         * gnulib-tool: Fix indentation.
87325         (func_create_megatestdir): Likewise.
87326         Report by Bruno Haible.
87328 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87330         Sync from Automake.
87331         * build-aux/gnupload: Fix shell portability issues with for loops.
87332         Report by Karl Berry.
87334 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87336         * build-aux/maint.mk (POURL): Use translationproject.org.
87338 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87339             Bruno Haible  <bruno@clisp.org>
87341         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87342         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87343         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87344         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87345         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87347 2007-06-27  Bruno Haible  <bruno@clisp.org>
87349         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87350         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87352 2007-06-26  Karl Berry  <karl@gnu.org>
87354         * MODULES.html.sh: remove xreadlink-with-size.
87356 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87358         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87359         method that I hope also handles the double-include problem noted
87360         by Bruno Haible in
87361         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87363 2007-06-23  Bruno Haible  <bruno@clisp.org>
87365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87366         Don't let the 'mostlyclean' target fail if the last subdirectory could
87367         not be removed.
87368         Reported by Karl Berry.
87370 2007-06-23  Bruno Haible  <bruno@clisp.org>
87372         * gnulib-tool (echo): Add a speedier workaround for ksh.
87373         * tests/test-echo.sh: Likewise.
87375 2007-06-23  Bruno Haible  <bruno@clisp.org>
87377         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87378         * tests/test-echo.sh: Likewise.
87380 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87382         * gnulib-tool (IFS): Initialize early, so we don't set it to
87383         empty later.
87384         (self_abspathname): Rewrite algorithm to set it, reindent.
87385         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87386         (func_create_megatestdir): Merge some sed scripts.
87388 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87390         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87391         exposed by Sun Studio 11 cc on Solaris 8.
87393 2007-06-22  Bruno Haible  <bruno@clisp.org>
87395         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87396         backslashes.
87397         * tests/test-echo.sh: New file.
87399 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87401         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87402         simplify `sed_replace_build_aux' scripts, they are portable but
87403         echoing them with `echo' is not.
87404         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87406 2007-06-21  Karl Berry  <karl@gnu.org>
87408         * config/srclist.txt: guess we can't handle the licenses via
87409         srclist at the moment.
87411 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87413         * MODULES.html.sh: Add include_next.
87414         * modules/include_next: New file.
87416 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87419         INCLUDE_NEXT.
87420         (gl_CHECK_NEXT_HEADERS): New macro.
87421         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87422         the obsolescent gl_ABSOLUTE_HEADER.
87423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87424         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87425         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87426         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87427         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87428         * m4/math_h.m4 (gl_MATH_H): Likewise.
87429         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87430         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87431         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87432         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87433         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87434         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87435         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87439         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87440         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87441         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87442         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87443         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87444         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87445         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87446         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87447         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87448         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87449         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87450         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87451         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87452         * lib/float_.h: Likewise.
87453         * lib/inttypes_.h: Likewise.
87454         * lib/math_.h: Likewise.
87455         * lib/search_.h: Likewise.
87456         * lib/signal_.h: Likewise.
87457         * lib/stdint_.h: Likewise.
87458         * lib/stdio_.h: Likewise.
87459         * lib/stdlib_.h: Likewise.
87460         * lib/string_.h: Likewise.
87461         * lib/sys_stat_.h: Likewise.
87462         * lib/sys_time_.h: Likewise.
87463         * lib/time_.h: Likewise.
87464         * lib/unistd_.h: Likewise.
87465         * lib/wchar_.h: Likewise.
87466         * lib/wctype_.h: Likewise.
87467         * lib/dirent_.h: Likewise.
87468         * lib/iconv_.h: Likewise.
87469         * lib/locale_.h: Likewise.
87470         * lib/netinet_in_.h: Likewise.
87471         * lib/sys_select_.h: Likewise.
87472         * lib/sys_socket_.h: Likewise.
87473         * lib/sysexits_.h: Likewise.
87474         * modules/fcntl (Depends-on): Depend on include_next, not
87475         absolute_header.
87476         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87477         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87478         * modules/fchdir: Likewise.
87479         * modules/float: Likewise.
87480         * modules/iconv_open: Likewise.
87481         * modules/inttypes: Likewise.
87482         * modules/locale: Likewise.
87483         * modules/math: Likewise.
87484         * modules/netinet_in: Likewise.
87485         * modules/search: Likewise.
87486         * modules/signal: Likewise.
87487         * modules/stdint: Likewise.
87488         * modules/stdio: Likewise.
87489         * modules/stdlib: Likewise.
87490         * modules/string: Likewise.
87491         * modules/sys_select: Likewise.
87492         * modules/sys_socket: Likewise.
87493         * modules/sys_stat: Likewise.
87494         * modules/sys_time: Likewise.
87495         * modules/sysexits: Likewise.
87496         * modules/time: Likewise.
87497         * modules/unistd: Likewise.
87498         * modules/wchar: Likewise.
87499         * modules/wctype: Likewise.
87500         * modules/sys_stat: Change maintainer to "all".
87501         * modules/unistd: Likewise.
87503 2007-06-20  Karl Berry  <karl@gnu.org>
87505         * config/srclist.txt: track www changes in license files.
87507 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87509         * build-aux/bootstrap: Remove stray dot.
87510         Make sure build_aux settings are honored when linking
87511         gnulib_extra_files.
87513 2007-06-19  Eric Blake  <ebb9@byu.net>
87515         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87516         Allow compilation on cygwin.
87518 2007-06-19  Jim Meyering  <jim@meyering.net>
87520         xreadlink-with-size: Remove module.  No longer used.
87521         Ex-callers now use xreadlink or mreadlink-with-size.
87522         * modules/xreadlink-with-size: Remove module.
87523         * lib/xreadlink-with-size.c: Remove file.
87524         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87525         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87526         just before the function definition *is* accurate.
87528         Eliminate one way canonicalize_filename_mode could exit.
87529         * lib/canonicalize.c (canonicalize_filename_mode):
87530         Use mreadlink_with_size, not xreadlink_with_size.
87532 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87534         Detect porting problems to FreeBSD/arm, which has time_t wider than
87535         long int.  Original problem reported for GNU diff by Xin Li in
87536         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87537         * modules/getdate (Depends-on): Add intprops, verify.
87538         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87539         is an integer type no wider than long int.
87541 2007-06-18  Jim Meyering  <jim@meyering.net>
87543         New module: mreadlink-with-size.
87544         * MODULES.html.sh: Add mreadlink-with-size.
87545         * modules/mreadlink-with-size: New module
87546         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87547         not xreadlink-with-size.
87548         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87550 2007-06-16  Bruno Haible  <bruno@clisp.org>
87552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87553         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87554         Reported by Gary V. Vaughan <gary@gnu.org>.
87556 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87558         Revamp lchown so that it lives in unistd.h where it belongs.
87559         * lib/lchown.h: Remove.
87560         * lib/dirchownmod.c: Don't include lib/lchown.h.
87561         * lib/fchownat.c: Likewise.
87562         * lib/openat.c: Likewise.
87563         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87564         does not follow symlinks.
87565         (EOPNOTSUPP): Define if not defined.
87566         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87567         is defined to 0.
87568         (lchown): New decl.
87569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87570         Do not check for lchown decl.
87571         Set REPLACE_LCHOWN.
87572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87573         REPLACE_LCHOWN.
87574         * modules/chown: Make it clear it follows symlinks.
87575         * modules/lchown: Make it clear it doesn't follow symlinks.
87576         (Files): Remove lib/lchown.h
87577         (Depends-on): Add unistd.
87578         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87579         (Include): Include <unistd.h>, not "lchown.h".
87580         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87581         REPLACE_LCHOWN.
87583 2007-06-15  Jim Meyering  <jim@meyering.net>
87585         Change license (GPL to LGPL) of fsusage and dependents.
87586         * modules/fsusage (License): Change to LGPL.
87587         * modules/full-read (License): Likewise.
87588         * modules/full-write (License): Likewise.
87589         * modules/safe-read (License): Likewise.
87590         * modules/safe-write (License): Likewise.
87592 2007-06-14  Ben Pfaff  <blp@gnu.org>
87594         Missing part of allocsa -> malloca transition.
87595         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87596         gl_MALLOCA.
87598 2007-06-12  Bruno Haible  <bruno@clisp.org>
87600         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87601         to ia64, x86_64, i386.
87602         Reported by Eric Blake.
87604 2007-06-12  Bruno Haible  <bruno@clisp.org>
87606         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87607         cross-compiling to x86_64.
87609 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87611         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87612         glitch reported by Ralf Wildenhues in
87613         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87615         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87616         Vin Shelton.
87618 2007-06-11  Bruno Haible  <bruno@clisp.org>
87620         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87621         replacement string.
87622         Reported by Eric Blake.
87624 2007-06-10  Bruno Haible  <bruno@clisp.org>
87626         Prepare vasnprintf code for use with Unicode strings.
87627         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87628         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87629         TYPE_U32_STRING.
87630         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87631         a_u32_string variants.
87632         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87633         * lib/printf-args.c: Don't include config.h and the specification
87634         header if PRINTF_FETCHARGS is already defined.
87635         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87636         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87637         TYPE_U16_STRING, TYPE_U32_STRING.
87638         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87639         u16_directive, u16_directives, u32_directive, u32_directives): New
87640         types.
87641         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87642         New declarations.
87643         * lib/printf-parse.c: Don't include config.h and the specification
87644         header if PRINTF_PARSE is already defined. Eliminate the set of
87645         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87646         them now. Include c-ctype.h.
87647         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87648         directive and CHAR_T_ONLY_ASCII.
87649         * lib/vasnprintf.c: Don't include config.h and the specification header
87650         if VASNPRINTF is already defined.
87651         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87652         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87653         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87654         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87655         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87656         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87657         code accordingly.
87658         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87659         pad_ourselves also in this case, with the 'c' and 's' directives, and
87660         with a different notion of "width".
87661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87663 2007-06-10  Bruno Haible  <bruno@clisp.org>
87665         * modules/unistr/u32-mbsnlen: New file.
87666         * lib/unistr/u32-mbsnlen.c: New file.
87668         * modules/unistr/u16-mbsnlen: New file.
87669         * lib/unistr/u16-mbsnlen.c: New file.
87671         * modules/unistr/u8-mbsnlen: New file.
87672         * lib/unistr/u8-mbsnlen.c: New file.
87674         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87675         declarations.
87677 2007-06-10  Bruno Haible  <bruno@clisp.org>
87679         * lib/string_.h (mbsnlen): New declaration.
87680         * lib/mbsnlen.c: New file.
87681         * m4/mbsnlen.m4: New file.
87682         * modules/mbsnlen: New file.
87683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87684         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87685         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87687 2007-06-10  Bruno Haible  <bruno@clisp.org>
87689         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87691 2007-06-10  Bruno Haible  <bruno@clisp.org>
87693         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87694         * lib/mbuiter.h: Likewise.
87696 2007-06-10  Bruno Haible  <bruno@clisp.org>
87698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87699         declaration.
87701 2007-06-10  Karl Berry  <karl@gnu.org>
87703         * config/srclist.txt: remove gettext entries, Bruno prefers
87704         to update individually.
87706 2007-06-10  Bruno Haible  <bruno@clisp.org>
87708         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87709         'maxlen'. Ensure only length + width bytes are allocated, not
87710         length + 1 + width.
87712 2007-06-09  Bruno Haible  <bruno@clisp.org>
87714         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87715         (CHAR_T): Remove macro.
87716         (VASNPRINTF): Update.
87718 2007-06-09  Bruno Haible  <bruno@clisp.org>
87720         * MODULES.html.sh (Unicode string functions): Add the new modules.
87722         * modules/uniconv/u32-conv-to-enc: New file.
87723         * lib/uniconv/u32-conv-to-enc.c: New file.
87724         * modules/uniconv/u32-conv-to-enc-tests: New file.
87725         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87727         * modules/uniconv/u16-conv-to-enc: New file.
87728         * lib/uniconv/u16-conv-to-enc.c: New file.
87729         * lib/uniconv/u-conv-to-enc.h: New file.
87730         * modules/uniconv/u16-conv-to-enc-tests: New file.
87731         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87733         * modules/uniconv/u8-conv-to-enc: New file.
87734         * lib/uniconv/u8-conv-to-enc.c: New file.
87735         * modules/uniconv/u8-conv-to-enc-tests: New file.
87736         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87738         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87739         u32_conv_to_encoding): New declarations.
87741 2007-06-09  Bruno Haible  <bruno@clisp.org>
87743         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87745 2007-06-09  Bruno Haible  <bruno@clisp.org>
87747         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87748         * modules/malloca: Renamed from modules/allocsa, updated.
87749         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87750         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87751         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87752         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87753         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87754         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87755         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87756         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87757         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87758         * modules/c-strcasestr (Depends-on): Update.
87759         * lib/c-strcasestr.c: Update.
87760         * modules/c-strstr (Depends-on): Update.
87761         * lib/c-strstr.c: Update.
87762         * modules/canonicalize-lgpl (Depends-on): Update.
87763         * lib/canonicalize-lgpl.c: Update.
87764         * modules/clean-temp (Depends-on): Update.
87765         * lib/clean-temp.c: Update.
87766         * modules/csharpcomp (Depends-on): Update.
87767         * lib/csharpcomp.c: Update.
87768         * modules/csharpexec (Depends-on): Update.
87769         * lib/csharpexec.c: Update.
87770         * modules/javacomp (Depends-on): Update.
87771         * lib/javacomp.c: Update.
87772         * modules/javaexec (Depends-on): Update.
87773         * lib/javaexec.c: Update.
87774         * modules/mbscasestr (Depends-on): Update.
87775         * lib/mbscasestr.c: Update.
87776         * modules/mbsstr (Depends-on): Update.
87777         * lib/mbsstr.c: Update.
87778         * modules/setenv (Depends-on): Update.
87779         * lib/setenv.c: Update.
87780         * modules/strcasestr (Depends-on): Update.
87781         * lib/strcasestr.c: Update.
87782         * modules/striconveha (Depends-on): Update.
87783         * lib/striconveha.c: Update.
87784         * modules/relocatable-prog-wrapper (Files): Update.
87785         * lib/relocwrapper.c: Update.
87786         * build-aux/install-reloc: Update.
87787         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87789 2007-06-08  Bruno Haible  <bruno@clisp.org>
87791         Port to uClibc.
87792         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87793         * lib/fpurge.c (fpurge): Likewise.
87794         * lib/freading.c (freading): Likewise.
87795         * lib/fseeko.c (rpl_fseeko): Likewise.
87796         * lib/fseterr.c (fseterr): Likewise.
87797         * lib/fwriting.c (fwriting): Likewise.
87798         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87800 2007-06-08  Bruno Haible  <bruno@clisp.org>
87802         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87803         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87804         * modules/gettext (Files): Add m4/intlmacosx.m4.
87806 2007-06-07  Bruno Haible  <bruno@clisp.org>
87808         * modules/localename-tests: New file.
87809         * tests/test-localename.c: New file.
87811         New module 'localename'.
87812         * lib/localename.h: New file.
87813         * lib/localename.c: New file, from GNU gettext.
87814         * m4/localename.m4: New file.
87815         * modules/localename: New file.
87817 2007-06-07  Bruno Haible  <bruno@clisp.org>
87819         Work around the lack of <wchar.h> on some builds of uClibc.
87820         * doc/headers/wchar.texi: Update.
87821         * lib/wchar_.h: Include <wchar.h> only if it exists.
87822         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87823         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87824         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87825         doesn't exist.
87826         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87827         * modules/mbfile (Depends-on): Add wchar.
87828         * modules/mbiter (Depends-on): Likewise.
87829         * modules/mbuiter (Depends-on): Likewise.
87830         Reported by Simon Josefsson.
87832 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87834         Work around problem reported by Steven M. Schweda in
87835         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87836         Tru64 5.1B with the Compaq compiler environment installed declares
87837         an 'isblank' function but does not define it in the C library.
87838         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87839         * lib/regex_internal.h (isblank): Likewise.
87840         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87841         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87843 2007-06-05  Bruno Haible  <bruno@clisp.org>
87845         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87846         ia64.
87847         * modules/printf-safe: New file.
87848         * modules/fprintf-posix (Depends-on): Add printf-safe.
87849         * modules/printf-posix (Depends-on): Likewise.
87850         * modules/snprintf-posix (Depends-on): Likewise.
87851         * modules/sprintf-posix (Depends-on): Likewise.
87852         * modules/vasnprintf-posix (Depends-on): Likewise.
87853         * modules/vasprintf-posix (Depends-on): Likewise.
87854         * modules/vfprintf-posix (Depends-on): Likewise.
87855         * modules/vprintf-posix (Depends-on): Likewise.
87856         * modules/vsnprintf-posix (Depends-on): Likewise.
87857         * modules/vsprintf-posix (Depends-on): Likewise.
87858         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87859         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87860         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87861         "no" on i386, x86_64, ia64.
87862         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87863         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87864         on i386, x86_64, ia64.
87865         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87866         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87867         on i386, x86_64, ia64.
87868         * tests/test-vasnprintf-posix.c: Include float.h.
87869         (LDBL80_WORDS): New macro.
87870         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87871         on i386, x86_64, ia64.
87872         * tests/test-vasprintf-posix.c: Include float.h.
87873         (LDBL80_WORDS): New macro.
87874         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87875         on i386, x86_64, ia64.
87876         * tests/test-snprintf-posix.c: Include float.h.
87877         * tests/test-sprintf-posix.c: Likewise.
87878         * tests/test-vsnprintf-posix.c: Likewise.
87879         * tests/test-vsprintf-posix.c: Likewise.
87881 2007-06-05  Bruno Haible  <bruno@clisp.org>
87883         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87884         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87885         non-IEEE numbers on i386, x86_64, ia64.
87886         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87887         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87888         * tests/test-isnanl.h: Include float.h.
87889         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87891 2007-06-05  Bruno Haible  <bruno@clisp.org>
87893         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87894         also the %a / %A. Handle the %a / %A code before this extra handling.
87896 2007-06-05  Bruno Haible  <bruno@clisp.org>
87898         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87899         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87901 2007-06-05  Bruno Haible  <bruno@clisp.org>
87903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87904         typo in variable name.
87906 2007-06-05  Eric Blake  <ebb9@byu.net>
87908         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87909         Reported by Simon Josefsson.
87911 2007-06-04  Bruno Haible  <bruno@clisp.org>
87913         Avoid test failures on some PowerPC platforms.
87914         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87915         Define differently for PowerPC.
87916         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87917         Reported by Gary V. Vaughan <gary@gnu.org>.
87919 2007-06-02  Bruno Haible  <bruno@clisp.org>
87921         Fix test-stdint failure on FreeBSD/ia64.
87922         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87923         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87924         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87925         * doc/headers/stdint.texi: Update.
87927 2007-06-01  Bruno Haible  <bruno@clisp.org>
87929         * tests/test-binary-io.c (main): Pass a third argument to open().
87930         Reported by Gary V. Vaughan <gary@gnu.org>.
87932 2007-06-01  Bruno Haible  <bruno@clisp.org>
87934         * doc/functions/frexpl.texi: Update for mingw.
87936 2007-06-01  Bruno Haible  <bruno@clisp.org>
87938         * tests/test-lseek.c (main): Disable test of errno for invalid third
87939         argument.
87940         * doc/functions/lseek.texi: Update.
87941         Reported by Gary V. Vaughan <gary@gnu.org>.
87943 2007-05-28  Bruno Haible  <bruno@clisp.org>
87945         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87947 2007-05-31  Eric Blake  <ebb9@byu.net>
87949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87950         cross compiling.
87952 2007-05-30  Eric Blake  <ebb9@byu.net>
87953         and Bruno Haible  <bruno@clisp.org>
87955         Work around mingw test failures exposed by m4-1.4.9b.
87956         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87957         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87958         moment.
87960 2007-05-30  Bruno Haible  <bruno@clisp.org>
87962         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87963         assuming that they are closed. Needed on HP-UX 11.
87965 2007-05-29  Bruno Haible  <bruno@clisp.org>
87967         Fix a problem with #include_next.
87968         * lib/dirent_.h: Split the double-inclusion guard.
87969         * lib/fcntl_.h: Likewise.
87970         * lib/float_.h: Likewise.
87971         * lib/iconv_.h: Likewise.
87972         * lib/inttypes_.h: Likewise.
87973         * lib/locale_.h: Likewise.
87974         * lib/math_.h: Likewise.
87975         * lib/netinet_in_.h: Likewise.
87976         * lib/search_.h: Likewise.
87977         * lib/signal_.h: Likewise.
87978         * lib/stdint_.h: Likewise.
87979         * lib/stdio_.h: Likewise.
87980         * lib/stdlib_.h: Likewise.
87981         * lib/string_.h: Likewise.
87982         * lib/sys_select_.h: Likewise.
87983         * lib/sys_socket_.h: Likewise.
87984         * lib/sys_stat_.h: Likewise.
87985         * lib/sys_time_.h: Likewise.
87986         * lib/sysexits_.h: Likewise.
87987         * lib/time_.h: Likewise.
87988         * lib/unistd_.h: Likewise.
87989         * lib/wchar_.h: Likewise.
87990         * lib/wctype_.h: Likewise.
87992 2007-05-29  Bruno Haible  <bruno@clisp.org>
87994         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87995         for the moment.
87997 2007-05-29  Bruno Haible  <bruno@clisp.org>
87999         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
88000         invocation.
88001         Reported by Eric Blake.
88003 2007-05-29  Bruno Haible  <bruno@clisp.org>
88005         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
88006         compiling case.
88008 2007-05-29  Eric Blake  <ebb9@byu.net>
88009             Bruno Haible  <bruno@clisp.org>
88011         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
88012         cross compiles.
88014 2007-05-28  Eric Blake  <ebb9@byu.net>
88016         * modules/closein-tests (test_closein_LDADD): Support test on
88017         cygwin with libtool.
88019 2007-05-28  Bruno Haible  <bruno@clisp.org>
88021         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
88022         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
88023         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
88024         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
88025         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
88026         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
88027         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
88028         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
88029         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
88031 2007-05-28  Eric Blake  <ebb9@byu.net>
88033         Unconditionally include <config.h> in unit tests.
88034         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
88035         * tests/test-allocsa.c, tests/test-arcfour.c,
88036         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
88037         tests/test-array_list.c, tests/test-array_oset.c,
88038         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
88039         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
88040         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
88041         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
88042         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
88043         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
88044         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
88045         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
88046         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
88047         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
88048         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
88049         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
88050         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
88051         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
88052         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
88053         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
88054         test-md5.c, test-memmem.c, test-printf-posix.c,
88055         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
88056         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
88057         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
88058         test-strcasestr.c, test-striconv.c, test-striconveh.c,
88059         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
88060         test-vasnprintf-posix2.c, test-vasnprintf.c,
88061         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
88062         test-vfprintf-posix.c, test-vprintf-posix.c,
88063         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
88064         test-xvasprintf.c: Likewise.
88066 2007-05-28  Bruno Haible  <bruno@clisp.org>
88068         * gnulib-tool (func_import): Remember the --with-tests command-line
88069         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
88070         Reported by Eric Blake.
88072 2007-05-28  Bruno Haible  <bruno@clisp.org>
88074         * modules/ftell-tests: New file.
88075         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
88076         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
88078         * lib/ftell.c: New file.
88079         * modules/ftell: New file.
88080         * m4/ftell.m4: New file.
88081         * doc/functions/ftell.texi: Update.
88082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
88083         REPLACE_FTELL.
88084         * lib/stdio_.h (rpl_ftell): New declaration.
88085         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
88086         REPLACE_FTELL.
88088 2007-05-28  Eric Blake  <ebb9@byu.net>
88090         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
88092 2007-05-28  Bruno Haible  <bruno@clisp.org>
88094         * modules/fseek-tests: New file.
88095         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
88096         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
88098         * lib/fseek.c: New file.
88099         * modules/fseek: New file.
88100         * m4/fseek.m4: New file.
88101         * doc/functions/fseek.texi: Update.
88102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
88103         REPLACE_FSEEK.
88104         * lib/stdio_.h (rpl_fseek): New declaration.
88105         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88106         REPLACE_FSEEK.
88108 2007-05-28  Bruno Haible  <bruno@clisp.org>
88110         * lib/stdio_.h (fflush): More comments.
88112 2007-05-28  Bruno Haible  <bruno@clisp.org>
88114         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88115         runtime test.
88117 2007-05-28  Eric Blake  <ebb9@byu.net>
88119         Improve lseek module.
88120         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88121         * lib/unistd_.h (lseek): Scale back link warning message.
88122         * tests/test-lseek.c: Beef up test.
88123         * tests/test-lseek.sh: Exercise more facets of lseek.
88124         Reported by Bruno Haible.
88126 2007-05-28  Bruno Haible  <bruno@clisp.org>
88128         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88129         to define.
88131 2007-05-27  Bruno Haible  <bruno@clisp.org>
88133         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88135 2007-05-27  Bruno Haible  <bruno@clisp.org>
88137         * modules/openmp: New file.
88138         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88139         Noah Misch.
88141 2007-05-26  Bruno Haible  <bruno@clisp.org>
88143         * modules/chdir-long (Depends-on): Add fchdir.
88144         * modules/chdir-safer (Depends-on): Likewise.
88145         * modules/fts (Depends-on): Likewise.
88146         * modules/fts-lgpl (Depends-on): Likewise.
88147         * modules/openat (Depends-on): Likewise.
88148         * modules/savewd (Depends-on): Likewise.
88150 2007-05-24  Eric Blake  <ebb9@byu.net>
88152         Fix lseek on mingw.
88153         * modules/lseek: New module.
88154         * m4/lseek.m4: New file.
88155         * lib/lseek.c: New file.
88156         * modules/lseek-tests: New file.
88157         * tests/test-lseek.c: New file.
88158         * tests/test-lseek.sh: New file.
88159         * MODULES.html.sh: Document lseek module.
88160         * modules/fflush (Depends-on): Add lseek, fseeko.
88161         * modules/fseeko (Depends-on): Likewise.
88162         * modules/ftello (Depends-on): Likewise.
88163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88164         broken.
88165         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88166         broken.
88167         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88168         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88169         * lib/ftello.c (rpl_ftello): Likewise.
88170         * tests/test-fseeko.c (main): Test this.
88171         * tests/test-fseeko.sh: Likewise.
88172         * tests/test-ftello.c (main): Likewise.
88173         * tests/test-ftello.sh: Likewise.
88174         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88175         implies replacing fseek.
88176         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88177         HAVE_FTELLO.
88178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88179         * modules/unistd (Makefile.am): Likewise.
88180         * lib/unistd_.h (lseek): Declare a replacement.
88181         * doc/functions/lseek.texi (lseek): Document this fix.
88182         * doc/functions/fseek.texi (fseek): Likewise.
88183         * doc/functions/ftell.texi (ftell): Likewise.
88185 2007-05-24  Bruno Haible  <bruno@clisp.org>
88187         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88188         in the printed representation of a NaN.
88189         * tests/test-vasprintf-posix.c (test_function): Likewise.
88190         * tests/test-snprintf-posix.h (test_function): Likewise.
88191         * tests/test-sprintf-posix.h (test_function): Likewise.
88192         Reported by Eric Blake.
88194 2007-05-23  Eric Blake  <ebb9@byu.net>
88196         Fix fseeko/ftello on cygwin 1.5.24.
88197         * doc/functions/fseeko.texi (fseeko): Document the fix.
88198         * doc/functions/ftello.texi (ftello): Document the fix.
88199         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88200         * doc/functions/stdout.text (stdout): New file.
88201         * doc/functions/stderr.text (stderr): New file.
88202         * doc/gnulib.texi (Function Substitutes): Use new files.
88203         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88204         prior to 1.7.0.
88205         * tests/test-ftello.c (main): Likewise for ftello.
88206         * tests/test-fseeko.sh: New file.
88207         * tests/test-ftello.sh: New file.
88208         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88209         with seekable stdin.
88210         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88211         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88212         (gl_REPLACE_FSEEKO): New macro.
88213         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88214         * modules/fseeko (Files): Distribute fseeko.c.
88215         * modules/ftello (Files): Distribute ftello.c.
88216         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88217         mode.
88218         * lib/ftello.c (rpl_ftello): New file.
88219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88220         fseeko, ftello.
88221         (gl_STDIN_LARGE_OFFSET): New macro.
88222         * modules/stdio (Makefile.am): Perform the replacement.
88223         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88225 2007-05-23  Bruno Haible  <bruno@clisp.org>
88227         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88228         GNULIB_POSIXCHECK is defined.
88230 2007-05-21  Bruno Haible  <bruno@clisp.org>
88232         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88233         Check also the output for NaN arguments. When cross-compiling, guess
88234         no on IRIX.
88235         * lib/vasnprintf.c: Update comments.
88236         * tests/test-vasnprintf-posix.c (strisnan): New function.
88237         (test_function): Use it.
88238         * tests/test-vasprintf-posix.c (strisnan): New function.
88239         (test_function): Use it.
88240         * tests/test-snprintf-posix.h (strisnan): New function.
88241         (test_function): Use it.
88242         * tests/test-sprintf-posix.h (strisnan): New function.
88243         (test_function): Use it.
88244         Reported by Eric Blake.
88246 2007-05-20  Bruno Haible  <bruno@clisp.org>
88248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88249         numbers that fails on BeOS.
88250         * doc/functions/frexpl.texi: Update.
88252 2007-05-20  Jim Meyering  <jim@meyering.net>
88254         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88255         forced upon us by glibc-2.6.
88257 2007-05-20  Bruno Haible  <bruno@clisp.org>
88259         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88260         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88261         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88262         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88263         NEED_PRINTF_INFINITE.
88264         (is_infinitel): New function.
88265         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88267         gl_PREREQ_VASNPRINTF_INFINITE.
88268         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88270         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88271         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88272         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88273         gl_PREREQ_VASNPRINTF_INFINITE.
88274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88275         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88281         * doc/functions/fprintf.texi: Update.
88282         * doc/functions/printf.texi: Update.
88283         * doc/functions/snprintf.texi: Update.
88284         * doc/functions/sprintf.texi: Update.
88285         * doc/functions/vfprintf.texi: Update.
88286         * doc/functions/vprintf.texi: Update.
88287         * doc/functions/vsnprintf.texi: Update.
88288         * doc/functions/vsprintf.texi: Update.
88290 2007-05-20  Bruno Haible  <bruno@clisp.org>
88292         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88293         was not found in libc.
88294         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88296 2007-05-20  Bruno Haible  <bruno@clisp.org>
88298         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88299         printed as "-nan" instead of "nan".
88300         * tests/test-vasprintf-posix.c (test_function): Likewise.
88301         * tests/test-snprintf-posix.h (test_function): Likewise.
88302         * tests/test-sprintf-posix.h (test_function): Likewise.
88303         Needed for HP-UX 11.
88305 2007-05-20  Jim Meyering  <jim@meyering.net>
88307         Fix buggy test for the fchownat-deref bug.
88308         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88309         symlink required for the run-test.  Without it, this test would
88310         always declare that fchownat doesn't work, and client code would
88311         unnecessarily use the replacement function with fixed libc.
88312         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88313         Reported by Greg Schafer.
88315 2007-05-19  Bruno Haible  <bruno@clisp.org>
88317         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88318         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88319         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88320         Needed for IRIX 6.5 and Solaris 2.5.1.
88322 2007-05-19  Bruno Haible  <bruno@clisp.org>
88324         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88325         (test_function): Skip tests involving -0.0 on platforms where
88326         -0.0 = 0.0.
88327         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88328         (test_function): Skip tests involving -0.0 on platforms where
88329         -0.0 = 0.0.
88330         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88331         (test_function): Skip tests involving -0.0 on platforms where
88332         -0.0 = 0.0.
88333         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88334         (test_function): Skip tests involving -0.0 on platforms where
88335         -0.0 = 0.0.
88336         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88337         tests.
88338         * tests/test-printf-posix.h (test_function): Likewise.
88339         * tests/test-printf-posix.output: Remove all -0.0 related results.
88340         Needed for IRIX 6.5.
88342 2007-05-19  Bruno Haible  <bruno@clisp.org>
88344         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88345         printed as "nan0x7fffffff" instead of "nan".
88346         * tests/test-vasprintf-posix.c (test_function): Likewise.
88347         * tests/test-snprintf-posix.h (test_function): Likewise.
88348         * tests/test-sprintf-posix.h (test_function): Likewise.
88349         * tests/test-fprintf-posix.h (NaN): Remove macro.
88350         (test_function): Remove all NaN related tests.
88351         * tests/test-printf-posix.h (NaN): Remove macro.
88352         (test_function): Remove all NaN related tests.
88353         * tests/test-printf-posix.output: Remove all NaN related results.
88354         Needed for IRIX 6.5.
88356 2007-05-19  Bruno Haible  <bruno@clisp.org>
88358         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88361 2007-05-19  Bruno Haible  <bruno@clisp.org>
88363         * lib/float_.h: New file.
88364         * m4/float_h.m4: New file.
88365         * modules/float: New file.
88366         * modules/isnanl (Dependencies): Add float.
88367         * modules/isnanl-nolibm (Dependencies): Likewise.
88368         * modules/mathl (Dependencies): Likewise.
88369         * modules/printf-frexpl (Dependencies): Likewise.
88370         * modules/signbit (Dependencies): Likewise.
88371         * modules/vasnprintf (Dependencies): Likewise.
88372         * doc/headers/float.texi: Update.
88374 2007-05-19  Jim Meyering  <jim@meyering.net>
88376         * lib/utimens.c (gl_futimens): Rename from futimens,
88377         now that glibc-2.6 declares futimens.
88378         * lib/utimens.h: Likewise.
88380 2007-05-19  Bruno Haible  <bruno@clisp.org>
88382         Avoid test failures on mingw.
88383         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88384         * tests/test-printf-posix.sh: Likewise.
88385         * tests/test-vfprintf-posix.sh: Likewise.
88386         * tests/test-vprintf-posix.sh: Likewise.
88388 2007-05-19  Bruno Haible  <bruno@clisp.org>
88390         Fix *printf result for NaN, Inf, -0.0 on mingw.
88391         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88392         * lib/vasnprintf.c: Include math.h and isnan.h.
88393         (is_infinite_or_zero): New function.
88394         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88395         values in the %f, %F, %e, %E, %g, %G directives.
88396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88398         gl_PRINTF_INFINITE and test its result. Invoke
88399         gl_PREREQ_VASNPRINTF_INFINITE.
88400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88407         * doc/functions/fprintf.texi: Update.
88408         * doc/functions/printf.texi: Update.
88409         * doc/functions/snprintf.texi: Update.
88410         * doc/functions/sprintf.texi: Update.
88411         * doc/functions/vfprintf.texi: Update.
88412         * doc/functions/vprintf.texi: Update.
88413         * doc/functions/vsnprintf.texi: Update.
88414         * doc/functions/vsprintf.texi: Update.
88416 2007-05-19  Bruno Haible  <bruno@clisp.org>
88418         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88419         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88420         Instead of multiplying with 10^k, set extra_zeroes to k.
88421         (scale10_round_long_double): Remove function.
88423 2007-05-18  Bruno Haible  <bruno@clisp.org>
88425         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88426         introduced on 2007-05-06.
88428 2007-05-18  Bruno Haible  <bruno@clisp.org>
88430         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88431         %g directives.
88432         * tests/test-vasprintf-posix.c (test_function): Likewise.
88433         * tests/test-snprintf-posix.h (test_function): Likewise.
88434         * tests/test-sprintf-posix.h (test_function): Likewise.
88436 2007-05-18  Bruno Haible  <bruno@clisp.org>
88438         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88439         (strmatch): New function.
88440         (test_function): Test the %f directive on numbers of various exponents.
88441         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88442         (strmatch): New function.
88443         (test_function): Test the %f directive on numbers of various exponents.
88444         * tests/test-snprintf-posix.h (strmatch): New function.
88445         (test_function): Test the %f directive on numbers of various exponents.
88446         * tests/test-sprintf-posix.h (strmatch): New function.
88447         (test_function): Test the %f directive on numbers of various exponents.
88448         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88449         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88450         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88451         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88453 2007-05-18  Bruno Haible  <bruno@clisp.org>
88455         Add support for 'long double' number output.
88456         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88457         * lib/vasnprintf.c: Include math.h and float+.h.
88458         (mp_limb_t): New type.
88459         (GMP_LIMB_BITS): New macro.
88460         (mp_twolimb_t): New type.
88461         (GMP_TWOLIMB_BITS): New macro.
88462         (mpn_t): New type.
88463         (multiply, divide, convert_to_decimal, decode_long_double,
88464         scale10_round_long_double, scale10_round_decimal_long_double,
88465         floorlog10l): New functions.
88466         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88467         for the %f, %F, %e, %E, %g, %G directives.
88468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88469         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88470         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88471         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88476         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88478         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88479         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88480         * modules/snprintf-posix (Depends-on): Likewise.
88481         * modules/sprintf-posix (Depends-on): Likewise.
88482         * modules/vasnprintf-posix (Depends-on): Likewise.
88483         * modules/vasprintf-posix (Depends-on): Likewise.
88484         * modules/vfprintf-posix (Depends-on): Likewise.
88485         * modules/vsnprintf-posix (Depends-on): Likewise.
88486         * modules/vsprintf-posix (Depends-on): Likewise.
88487         * modules/vasnprintf (Files): Add lib/float+.h.
88488         * doc/functions/fprintf.texi: Update.
88489         * doc/functions/printf.texi: Update.
88490         * doc/functions/snprintf.texi: Update.
88491         * doc/functions/sprintf.texi: Update.
88492         * doc/functions/vfprintf.texi: Update.
88493         * doc/functions/vprintf.texi: Update.
88494         * doc/functions/vsnprintf.texi: Update.
88495         * doc/functions/vsprintf.texi: Update.
88497 2007-05-18  Bruno Haible  <bruno@clisp.org>
88499         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88501 2007-05-18  Bruno Haible  <bruno@clisp.org>
88503         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88504         for printing 64-bit integers. Needed for mingw.
88506 2007-05-18  Bruno Haible  <bruno@clisp.org>
88508         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88509         gl_FUNC_FREXPL_WORKS.
88510         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88512 2007-05-18  Bruno Haible  <bruno@clisp.org>
88514         * modules/frexpl-nolibm-tests: New file.
88516         * modules/frexpl-nolibm: New file.
88517         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88519 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88521         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88522         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88523         GCC 4.2, which otherwise issues a lot of warnings.
88524         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88525         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88526         Likewise.
88527         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88528         * modules/iconv_open (iconv.h): Likewise.
88529         * modules/locale (locale.h): Likewise.
88530         * modules/netinet_in (netinet/in.h): Likewise.
88531         * modules/sys_select (sys_select.h): Likewise.
88532         * modules/sys_socket (sys/socket.h): Likewise.
88533         * modules/sys_stat (sys/stat.h): Likewise.
88534         * modules/sysexits (sysexits.h): Likewise.
88535         * modules/unistd (unistd.h): Likewise.
88537 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88539         * modules/closein-tests (Makefile.am): Distribute
88540         `test-closein.sh'.
88542 2007-05-17  Bruno Haible  <bruno@clisp.org>
88544         * tests/test-printf-posix.output: Renamed from
88545         tests/test-fprintf-posix.out.
88546         * modules/fprintf-posix-tests: Update.
88547         * modules/printf-posix-tests: Update.
88548         * modules/vfprintf-posix-tests: Update.
88549         * modules/vprintf-posix-tests: Update.
88550         * tests/test-fprintf-posix.sh: Update.
88551         * tests/test-printf-posix.sh: Update.
88552         * tests/test-vfprintf-posix.sh: Update.
88553         * tests/test-vprintf-posix.sh: Update.
88554         Reported by Ralf Wildenhues.
88556 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88558         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88559         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88560         GCC 4.2, which otherwise issues a lot of warnings.
88561         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88562         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88563         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88564         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88565         it should no longer be needed.
88566         * lib/string_.h: Likewise.
88567         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88568         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88569         * modules/inttypes (inttypes.h): Likewise.
88570         * modules/math (math.h): Likewise.
88571         * modules/search (search.h): Likewise.
88572         * modules/signal (signal.h): Likewise.
88573         * modules/stdint (stdint.h): Likewise.
88574         * modules/stdio (stdio.h): Likewise.
88575         * modules/stdlib (stdlib.h): Likewise.
88576         * modules/string (string.h): Likewise.
88577         * modules/sys_time (sys/time.h): Likewise.
88578         * modules/time (time.h): Likewise.
88579         * modules/wchar (wchar.h): Likewise.
88580         * modules/wctype (wtype.h): Likewise.
88582 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88584         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88586 2007-05-13  Bruno Haible  <bruno@clisp.org>
88588         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88589         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88590         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88591         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88592         (gl_PREREQ_STRTOK_R): Don't require it here.
88594 2007-05-13  Bruno Haible  <bruno@clisp.org>
88596         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88597         when used in C++ mode.
88599 2007-05-12  Bruno Haible  <bruno@clisp.org>
88601         * lib/linebuffer.h: Tweak doc.
88602         * lib/linebuffer.c: Likewise.
88604 2007-05-12  James Youngman  <jay@gnu.org>
88606         * lib/linebuffer.c (readlinebuffer_delim): New function,
88607         like readlinebuffer, but use a caller-specified delimiter.
88608         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88609         as the delimiter.
88610         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88612 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88614         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88615         * modules/openat (Files): Remove openat-die.c.
88616         (Depends-on): Add openat-die.
88617         * modules/openat-die: New module.
88619 2007-05-06  Bruno Haible  <bruno@clisp.org>
88621         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88622         Update with info about Cygwin.
88623         * doc/functions/fprintf.texi: Update.
88624         * doc/functions/printf.texi: Update.
88625         * doc/functions/snprintf.texi: Update.
88626         * doc/functions/sprintf.texi: Update.
88627         * doc/functions/vfprintf.texi: Update.
88628         * doc/functions/vprintf.texi: Update.
88629         * doc/functions/vsnprintf.texi: Update.
88630         * doc/functions/vsprintf.texi: Update.
88631         Reported by Eric Blake.
88633 2007-05-06  Bruno Haible  <bruno@clisp.org>
88635         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88636         padding ourselves for the floating-point directives.
88637         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88640         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88641         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88649         * tests/test-snprintf-posix.h (test_function): Also check the width
88650         and some flags in the %f directive.
88651         * tests/test-sprintf-posix.h (test_function): Likewise.
88652         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88653         * tests/test-vasprintf-posix.c (test_function): Likewise.
88654         * doc/functions/fprintf.texi: Update.
88655         * doc/functions/printf.texi: Update.
88656         * doc/functions/snprintf.texi: Update.
88657         * doc/functions/sprintf.texi: Update.
88658         * doc/functions/vfprintf.texi: Update.
88659         * doc/functions/vprintf.texi: Update.
88660         * doc/functions/vsnprintf.texi: Update.
88661         * doc/functions/vsprintf.texi: Update.
88663 2007-05-06  Bruno Haible  <bruno@clisp.org>
88665         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88666         pass the ' flag character to sprintf or snprintf.
88667         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88670         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88671         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88673         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88679         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88680         flag.
88681         * tests/test-sprintf-posix.h (test_function): Likewise.
88682         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88683         * tests/test-vasprintf-posix.c (test_function): Likewise.
88684         * doc/functions/fprintf.texi: Update.
88685         * doc/functions/printf.texi: Update.
88686         * doc/functions/snprintf.texi: Update.
88687         * doc/functions/sprintf.texi: Update.
88688         * doc/functions/vfprintf.texi: Update.
88689         * doc/functions/vprintf.texi: Update.
88690         * doc/functions/vsnprintf.texi: Update.
88691         * doc/functions/vsprintf.texi: Update.
88693 2007-05-01  Bruno Haible  <bruno@clisp.org>
88695         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88697 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88699         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88700         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88702 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88704         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88705         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88706         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88708 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88710         * lib/argp-help.c (struct hol_entry): New member `ord'.
88711         (HOL_ENTRY_PTRCMP): Use ord for comparison
88712         (hol_sort): Initialize ord.
88714 2007-05-01  Bruno Haible  <bruno@clisp.org>
88716         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88717         Reported by Eric Blake.
88718         * doc/gnulib.texi (Function Substitutes): Update.
88720 2007-05-01  Bruno Haible  <bruno@clisp.org>
88722         * doc/functions.texi: Remove file, now redundant through
88723         doc/functions/*.texi.
88725 2007-05-01  Bruno Haible  <bruno@clisp.org>
88727         * modules/argp (Depends-on): Add sleep.
88729 2007-05-01  Bruno Haible  <bruno@clisp.org>
88731         * modules/sleep-tests: New file.
88732         * tests/test-sleep.c: New file.
88734         * modules/sleep: New file.
88735         * lib/sleep.c: New file.
88736         * m4/sleep.m4: New file.
88737         * lib/unistd_.h (sleep): New declaration.
88738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88739         HAVE_SLEEP.
88740         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88741         * doc/functions/sleep.texi: Document the sleep module.
88743 2007-05-01  Bruno Haible  <bruno@clisp.org>
88745         * lib/sigprocmask.h: Remove file.
88746         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88747         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88748         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88749         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88750         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88751         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88752         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88753         HAVE_SIGSET_T as a shell variable.
88754         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88755         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88756         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88757         (Depends-on): Add signal. Remove verify.
88758         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88759         (Include): Mention <signal.h> instead of sigprocmask.h.
88760         * NEWS: Mention the change.
88761         * lib/fatal-signal.c: Don't include sigprocmask.h.
88763 2007-05-01  Bruno Haible  <bruno@clisp.org>
88765         * modules/signal: New file.
88766         * lib/signal_.h: New file.
88767         * m4/signal_h.m4: New file.
88769 2007-05-01  Bruno Haible  <bruno@clisp.org>
88771         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88772         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88773         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88774         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88776 2007-05-01  Bruno Haible  <bruno@clisp.org>
88778         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88779         configure time.
88780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88781         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88782         * modules/sys_stat (Makefile.am): Substitute their values into
88783         sys/stat.h.
88785 2007-05-01  Bruno Haible  <bruno@clisp.org>
88787         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88788         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88789         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88791 2007-05-01  Bruno Haible  <bruno@clisp.org>
88793         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88794         'assert' module here.
88796 2007-05-01  Bruno Haible  <bruno@clisp.org>
88798         * doc/functions/*.texi: New files.
88799         * doc/functions/google-ranking.txt: New file.
88800         * doc/gnulib.texi (Function Substitutes): New chapter.
88801         (ctime, inet_ntoa): Remove sections.
88802         * doc/ctime.texi: Remove file.
88803         * doc/inet_ntoa.texi: Remove file.
88804         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88805         dependencies.
88806         (%.info): New rule, specifying a --reference-limit.
88808 2007-05-01  Bruno Haible  <bruno@clisp.org>
88810         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88812 2007-05-01  Bruno Haible  <bruno@clisp.org>
88814         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88815         the portability of 'mkdir' to mingw systems.
88817 2007-05-01  Bruno Haible  <bruno@clisp.org>
88819         * doc/headers/google-ranking.txt: New file.
88821 2007-04-30  Eric Blake  <ebb9@byu.net>
88823         Prefer fseeko to fseek.
88824         * modules/getpass (Depends-on): Add fseeko.
88825         * lib/getpass.c (getpass): Use fseeko, not fseek.
88827 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88829         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88830         assumes the sorting is stable, while most qsort implementations
88831         are not.  Use argument addresses to ensure they never compare as
88832         equal.
88834         * tests/test-argp-2.sh (usage-indent test): Fix output
88835         (func_compare): Restore diff options
88836         * tests/test-argp.c: Restore #include "progname.h"
88838 2007-04-29  Bruno Haible  <bruno@clisp.org>
88840         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88842         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88844         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88845         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88846         (TESTS, check_PROGRAMS): Add test-snprintf.
88847         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88848         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88849         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88850         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88851         assertions that fail on HP-UX, OSF/1, or IRIX.
88852         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88854 2007-04-29  Bruno Haible  <bruno@clisp.org>
88856         * MODULES.html.sh (posix_functions): Remove 'contents'.
88858 2007-04-29  Karl Berry  <karl@gnu.org>
88860         * config/srclist.txt (gendocs_template_min): new entry.
88862 2007-04-29  Bruno Haible  <bruno@clisp.org>
88864         Work around fpurge bug on BSD systems.
88865         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88866         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88867         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88868         fpurge to rpl_fpurge if the system already has this function.
88869         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88870         the case where the system already has this function. Correct invariants
88871         on BSD systems.
88872         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88873         BSD systems.
88875 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88877         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88878         proposed by Sven Verdoolaege.
88880         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88881         options.
88882         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88883         (usage and help tests): Update
88885 2007-04-29  Bruno Haible  <bruno@clisp.org>
88887         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88888         Print more information in case of failure. Disable a test on BeOS.
88890 2007-04-29  Bruno Haible  <bruno@clisp.org>
88892         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88893         This helps debugging on systems on which no gdb is available.
88895 2007-04-29  Bruno Haible  <bruno@clisp.org>
88897         * lib/freading.h: Improve comments.
88898         * lib/fwriting.h: Likewise.
88899         * tests/test-freading.c (main): Don't check freading immediately after
88900         repositioning. Needed for glibc.
88902 2007-04-29  Bruno Haible  <bruno@clisp.org>
88904         * lib/freading.c (freading): Trivial simplification.
88906 2007-04-28  Bruno Haible  <bruno@clisp.org>
88908         * tests/test-fwriting.c (main): Also test the interaction between
88909         fflush and fwriting.
88910         * modules/fwriting-tests (Depends-on): Add fflush.
88912         * tests/test-freading.c (main): Also test the interaction between
88913         fflush and freading.
88914         * modules/freading-tests (Depends-on): Add fflush.
88916 2007-04-28  Bruno Haible  <bruno@clisp.org>
88918         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88919         fseeko and ftello.
88920         Suggested by Eric Blake.
88922 2007-04-28  Jim Meyering  <jim@meyering.net>
88924         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88925         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88926         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88928 2007-04-27  Eric Blake  <ebb9@byu.net>
88930         * doc/headers/assert.texi (assert.h): Document assert module use.
88932 2007-04-27  Bruno Haible  <bruno@clisp.org>
88934         * doc/headers/*.texi: New files.
88935         * doc/gnulib.texi (Header File Substitutes): New chapter.
88936         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88937         dependencies.
88938         (standards.info ,standards.html, standards.dvi): Update dependencies.
88939         (mostlyclean, clean): New targets.
88941 2007-04-27  Bruno Haible  <bruno@clisp.org>
88943         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88944         * modules/sysexits (Files, Makefile.am): Update.
88946         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88947         * modules/sys_socket (Files, Makefile.am): Update.
88949         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88950         * modules/sys_stat (Files, Makefile.am): Update.
88952 2007-04-27  Eric Blake  <ebb9@byu.net>
88954         * lib/freading.h: Improve comments.
88955         * lib/fwriting.h: Likewise.
88956         * lib/fflush.c: Likewise.
88958         Fix closein for mingw.
88959         * modules/closein-tests: Add tests for closein.
88960         * tests/test-closein.c: New file.
88961         * tests/test-closein.sh: Likewise.
88962         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88963         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88965 2007-04-27  Bruno Haible  <bruno@clisp.org>
88967         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88968         version is < 6.
88969         * lib/math_.h [__DECC]: Likewise.
88970         * lib/stdio_.h [__DECC]: Likewise.
88971         * lib/stdlib_.h [__DECC]: Likewise.
88972         * lib/string_.h [__DECC]: Likewise.
88973         * lib/time_.h [__DECC]: Likewise.
88974         * lib/wchar_.h [__DECC]: Likewise.
88975         * lib/wctype_.h [__DECC]: Likewise.
88977 2007-04-27  Bruno Haible  <bruno@clisp.org>
88979         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88981 2007-04-27  Bruno Haible  <bruno@clisp.org>
88983         * lib/fflush.c: Add comments.
88984         * modules/fpurge-tests (Depends-on): Add fflush.
88985         * modules/freadable-tests (Depends-on): Likewise.
88986         * modules/fwritable-tests (Depends-on): Likewise.
88988 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88990         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88991         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88992         Report by Bruno Haible <bruno@clisp.org>.
88994 2007-04-26  Eric Blake  <ebb9@byu.net>
88996         Fix fflush on mingw.
88997         * modules/fflush (Depends-on): Add freading.
88998         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88999         but unread data.
89001 2007-04-26  Eric Blake  <ebb9@byu.net>
89002         and Bruno Haible  <bruno@clisp.org>
89004         Implement freading and fwriting.
89005         * lib/freading.c: New file.
89006         * lib/freading.h: Likewise.
89007         * m4/freading.m4: Likewise.
89008         * modules/freading: Likewise.
89009         * modules/freading-tests: Likewise.
89010         * tests/test-freading.c: Likewise.
89011         * lib/fwriting.c: New file.
89012         * lib/fwriting.h: Likewise.
89013         * m4/fwriting.m4: Likewise.
89014         * modules/fwriting: Likewise.
89015         * modules/fwriting-tests: Likewise.
89016         * tests/test-fwriting.c: Likewise.
89017         * MODULES.html.sh (File stream based Input/Output): Mention them.
89019 2007-04-26  Bruno Haible  <bruno@clisp.org>
89021         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
89022         'long' when we assume it.
89023         Suggested by Eric Blake.
89025 2007-04-26  Bruno Haible  <bruno@clisp.org>
89027         Ensure fseeko, ftello are declared on glibc systems.
89028         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
89029         * modules/fseeko (configure.ac-early): Likewise.
89030         * modules/ftello (configure.ac-early): Likewise.
89031         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
89032         AC_FUNC_FSEEKO for this.
89033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
89034         (gl_CHECK_FSEEKO): Remove macro.
89036 2007-04-26  Bruno Haible  <bruno@clisp.org>
89038         * tests/test-fflush.c (main): Also check the ftell result after
89039         fflush and fseek/fseeko.
89040         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
89041         file descriptor position cache in the stream.
89042         * lib/fseeko.c (rpl_fseeko): Likewise.
89044 2007-04-26  Bruno Haible  <bruno@clisp.org>
89046         * modules/fflush-tests (Depends-on): Add fseeko.
89048 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
89049             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89051         * lib/argz_.h: ensure error_t definition is obtained in same
89052         mechanism system argz.h would have.
89053         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
89054         argz facilities are known bad.  Err on the side of caution if
89055         cross-compiling.
89057 2007-04-25  Eric Blake  <ebb9@byu.net>
89059         * lib/fpurge.c (includes): Use stdlib.h for free.
89060         * tests/test-fflush.c (main): Also test fflush-fseeko.
89062 2007-04-25  Bruno Haible  <bruno@clisp.org>
89064         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
89065         * lib/fseeko.c: New file.
89066         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
89067         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
89068         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
89069         gl_FUNC_FSEEKO.
89070         (gl_FUNC_FSEEKO): Invoke it.
89071         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
89072         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
89073         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
89075 2007-04-25  Bruno Haible  <bruno@clisp.org>
89077         * modules/fflush (Depends-on): Add ftello.
89079 2007-04-25  Bruno Haible  <bruno@clisp.org>
89081         * modules/ftello-tests: New file.
89082         * tests/test-ftello.c: New file.
89084         * modules/ftello: New file.
89085         * m4/ftello.m4: New file.
89086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
89087         HAVE_FTELLO.
89088         * lib/stdio_.h (ftello): New declaration.
89089         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
89090         HAVE_FTELLO.
89092 2007-04-25  Bruno Haible  <bruno@clisp.org>
89094         * modules/fseeko-tests: New file.
89095         * tests/test-fseeko.c: New file.
89097         * modules/fseeko: New file.
89098         * m4/fseeko.m4: New file.
89099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
89100         HAVE_FSEEKO.
89101         * lib/stdio_.h (fseeko): New declaration.
89102         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
89103         HAVE_FSEEKO.
89105 2007-04-25  Bruno Haible  <bruno@clisp.org>
89107         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89109 2007-04-25  Bruno Haible  <bruno@clisp.org>
89111         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89112         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89113         * tests/test-unistd.c: Likewise.
89114         * tests/test-fcntl.c: Likewise.
89116 2007-04-23  Eric Blake  <ebb9@byu.net>
89118         * lib/fflush.c: Fix missing include.
89119         Reported by Bruno Haible.
89121 2007-04-23  Bruno Haible  <bruno@clisp.org>
89123         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89124         Reported by Eric Blake.
89126 2007-04-23  Bruno Haible  <bruno@clisp.org>
89128         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89130 2007-04-23  Bruno Haible  <bruno@clisp.org>
89132         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89134 2007-04-23  Bruno Haible  <bruno@clisp.org>
89136         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89137         Needed on HP-UX 11.
89139 2007-04-16  Eric Blake  <ebb9@byu.net>
89141         Make fflush rely on fpurge.
89142         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89143         open coding all variants.
89144         * modules/fflush (Depends-on): Add fpurge and unistd.
89145         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89146         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89148         Fix --with-tests compilation on cygwin.
89149         * modules/argmatch-tests (Makefile.am): List gnulib library first
89150         in LDADD.
89151         * modules/argp-tests (Makefile.am): Likewise.
89152         * modules/array-list-tests (Makefile.am): Likewise.
89153         * modules/array-oset-tests (Makefile.am): Likewise.
89154         * modules/avltree-list-tests (Makefile.am): Likewise.
89155         * modules/avltree-oset-tests (Makefile.am): Likewise.
89156         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89157         * modules/carray-list-tests (Makefile.am): Likewise.
89158         * modules/dirname-tests (Makefile.am): Likewise.
89159         * modules/frexp-tests (Makefile.am): Likewise.
89160         * modules/isnanl-tests (Makefile.am): Likewise.
89161         * modules/linked-list-tests (Makefile.am): Likewise.
89162         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89163         * modules/lock-tests (Makefile.am): Likewise.
89164         * modules/rbtree-list-tests (Makefile.am): Likewise.
89165         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89166         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89167         * modules/tls-tests (Makefile.am): Likewise.
89168         * modules/tsearch-tests (Makefile.am): Likewise.
89169         * modules/xvasprintf-tests (Makefile.am): Likewise.
89171         Fix fpurge for cygwin.
89172         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89173         value.
89174         * modules/fpurge-tests (Depends-on): Clean up trash.
89176 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89178         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89180         * m4/autobuild.m4: Re-indent.
89182 2007-04-13  Bruno Haible  <bruno@clisp.org>
89184         * modules/fpurge-tests: New file.
89185         * tests/test-fpurge.c: New file.
89187         * modules/fpurge: New file.
89188         * lib/fpurge.h: New file.
89189         * lib/fpurge.c: New file.
89190         * m4/fpurge.m4: New file.
89192 2007-04-13  Bruno Haible  <bruno@clisp.org>
89194         * modules/fbufmode-tests: New file.
89195         * tests/test-fbufmode.c: New file.
89197         * modules/fbufmode: New file.
89198         * lib/fbufmode.h: New file.
89199         * lib/fbufmode.c: New file.
89200         * m4/fbufmode.m4: New file.
89202 2007-04-13  Bruno Haible  <bruno@clisp.org>
89204         * modules/fwritable-tests: New file.
89205         * tests/test-fwritable.c: New file.
89207         * modules/fwritable: New file.
89208         * lib/fwritable.h: New file.
89209         * lib/fwritable.c: New file.
89210         * m4/fwritable.m4: New file.
89212 2007-04-13  Bruno Haible  <bruno@clisp.org>
89214         * modules/freadable-tests: New file.
89215         * tests/test-freadable.c: New file.
89217         * modules/freadable: New file.
89218         * lib/freadable.h: New file.
89219         * lib/freadable.c: New file.
89220         * m4/freadable.m4: New file.
89222 2007-04-13  Bruno Haible  <bruno@clisp.org>
89224         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89225         MOSTLYCLEANFILES.
89227 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89229         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89230         gzip bootstrap.conf to avoid dragging in i18n machinery.
89231         (gnulib_tool_option): Use it.
89233 2007-04-13  Bruno Haible  <bruno@clisp.org>
89235         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89236         %F directives.
89237         * tests/test-vasprintf-posix.c (test_function): Likewise.
89238         * tests/test-snprintf-posix.h (test_function): Likewise.
89239         * tests/test-sprintf-posix.h (test_function): Likewise.
89240         * tests/test-fprintf-posix.h (test_function): Likewise.
89241         * tests/test-printf-posix.h (test_function): Likewise.
89242         * tests/test-fprintf-posix.out: Likewise.
89244 2007-04-13  Bruno Haible  <bruno@clisp.org>
89246         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89247         * modules/tls-tests (configure.ac): Likewise.
89248         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89250 2007-04-13  Bruno Haible  <bruno@clisp.org>
89252         * lib/tls.c (glthread_tls_get): Fix return type.
89253         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89255 2007-04-12  Eric Blake  <ebb9@byu.net>
89257         * modules/gettime (Depends-on): Remove gettime.
89258         Reported by Dmitry V. Levin.
89260 2007-04-12  Bruno Haible  <bruno@clisp.org>
89262         * modules/fflush (Include): Mention <stdio.h>.
89263         * modules/strtoimax (Include): Mention <inttypes.h>.
89264         * modules/strtoumax (Include): Likewise.
89266 2007-04-12  Eric Blake  <ebb9@byu.net>
89268         * .cvsignore: New file.
89269         * .gitignore: Likewise.
89271 2007-04-12  Bruno Haible  <bruno@clisp.org>
89273         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89274         not before, since $(LDADD) often contains libgnu.a.
89275         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89276         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89277         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89278         Needed on Cygwin.
89280 2007-04-12  Eric Blake  <ebb9@byu.net>
89282         Work around glibc's failure to flush stdin on fclose.
89283         * lib/closein.c (close_stdin): Flush stdin before closing.
89285         Work around glibc's failure to reset seekable stdin on exit.
89286         * modules/closein: New module.
89287         * lib/closein.c: New file.
89288         * lib/closein.h: Likewise.
89289         * m4/closein.m4: Likewise.
89290         * MODULES.html.sh (File stream based Input/Output): Document it.
89292 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89294         * gnulib-tool: Rename generated 'autobuild' script to
89295         'do-autobuild' in --create-megatestdir output.
89297         * doc/gnulib.texi (Build robot for gnulib): Fix.
89299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89301         * modules/sysexits (Depends-on): Add absolute-header.
89303 2007-04-12  Eric Blake  <ebb9@byu.net>
89305         No need to preserve errno on success.
89306         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89307         Reported by Bruno Haible.
89309 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89311         * MODULES.html.sh (Support for maintaining and releasing
89312         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89314 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89316         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89318 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89320         * modules/autobuild: New module.
89322         * m4/autobuild.m4: New file.
89324 2007-04-11  Bruno Haible  <bruno@clisp.org>
89326         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89327         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89340         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89341         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89343         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89344         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89349         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89350         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89352         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89353         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89354         Reported by Eric Blake.
89356 2007-04-11  Bruno Haible  <bruno@clisp.org>
89358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89360 2007-04-10  Bruno Haible  <bruno@clisp.org>
89362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89363         for NaN and Infinity. Needed on FreeBSD 6.1.
89364         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89365         regarding results for "%010a" of Infinity and NaN.
89366         * tests/test-vasprintf-posix.c (test_function): Likewise.
89367         * tests/test-snprintf-posix.h (test_function): Likewise.
89368         * tests/test-sprintf-posix.h (test_function): Likewise.
89369         * tests/test-fprintf-posix.h (test_function): Likewise.
89370         * tests/test-printf-posix.h (test_function): Likewise.
89371         * tests/test-fprintf-posix.out: Likewise.
89373 2007-04-10  Bruno Haible  <bruno@clisp.org>
89375         * modules/locale-tests: New file.
89376         * tests/test-locale.c: New file.
89378         * modules/locale: New file.
89379         * lib/locale_.h: New file.
89380         * m4/locale_h.m4: New file.
89382 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89383             Bruno Haible  <bruno@clisp.org>
89385         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89386         be determined, test for availability of the copysignf, copysign,
89387         copysignl functions.
89388         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89389         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89390         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89392 2007-04-09  Eric Blake  <ebb9@byu.net>
89394         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89395         * modules/stdio (Makefile.am): Support fflush.
89396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89397         * modules/fflush: New file.
89398         * lib/fflush.c: Likewise.
89399         * m4/fflush.m4: Likewise.
89400         * modules/fflush-tests: New test.
89401         * tests/test-fflush.c: Likewise.
89402         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89404 2007-04-06  Bruno Haible  <bruno@clisp.org>
89406         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89407         (VASNPRINTF): Use signbit for faster determination whether to print a
89408         minus sign.
89409         * modules/vasnprintf (Files): Remove lib/float+.h.
89410         * modules/fprintf-posix (Depends-on): Add signbit.
89411         * modules/snprintf-posix (Depends-on): Likewise.
89412         * modules/sprintf-posix (Depends-on): Likewise.
89413         * modules/vasnprintf-posix (Depends-on): Likewise.
89414         * modules/vasprintf-posix (Depends-on): Likewise.
89415         * modules/vfprintf-posix (Depends-on): Likewise.
89416         * modules/vsnprintf-posix (Depends-on): Likewise.
89417         * modules/vsprintf-posix (Depends-on): Likewise.
89419 2007-04-06  Bruno Haible  <bruno@clisp.org>
89421         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89422         * tests/test-frexpl.c (main): Likewise.
89423         * tests/test-ldexpl.c (main): Likewise.
89424         * modules/frexp-tests (Depends-on): Add signbit.
89425         * modules/frexpl-tests (Depdends-on): Likewise.
89426         * modules/ldexpl-tests (Depdends-on): Likewise.
89428 2007-04-06  Bruno Haible  <bruno@clisp.org>
89430         * modules/signbit-tests: New file.
89431         * tests/test-signbit.c: New file.
89433         * modules/signbit: New file.
89434         * lib/signbitf.c: New file.
89435         * lib/signbitd.c: New file.
89436         * lib/signbitl.c: New file.
89437         * m4/signbit.m4: New file.
89438         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89439         (signbit): New macro.
89440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89441         REPLACE_SIGNBIT.
89442         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89443         REPLACE_FREXPL into math.h.
89445 2007-04-06  Bruno Haible  <bruno@clisp.org>
89447         * modules/isnanf-nolibm-tests: New file.
89448         * tests/test-isnanf.c: New file.
89450         * modules/isnanf-nolibm: New file.
89451         * lib/isnanf.h: New file.
89452         * lib/isnanf.c: New file.
89453         * lib/isnan.c: Consider the USE_FLOAT macro.
89454         * m4/isnanf.m4: New file.
89456 2007-04-06  Bruno Haible  <bruno@clisp.org>
89458         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89459         (Link): New section.
89461         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89463 2007-04-06  Bruno Haible  <bruno@clisp.org>
89465         Assume the 'long double' type.
89466         * m4/longdouble.m4: Remove file.
89467         * config/srclist.txt: Don't mention longdouble.m4.
89468         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89469         * lib/float+.h: Likewise.
89470         * lib/frexp.c: Likewise.
89471         * lib/printf-args.h: Likewise.
89472         * lib/printf-args.c: Likewise.
89473         * lib/printf-frexp.c: Likewise.
89474         * lib/printf-parse.c: Likewise.
89475         * lib/vasnprintf.c: Likewise.
89476         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89477         * m4/intl.m4: Likewise.
89478         * m4/isnanl.m4: Likewise.
89479         * m4/printf.m4: Likewise.
89480         * m4/printf-frexpl.m4: Likewise.
89481         * m4/vasnprintf.m4: Likewise.
89482         * modules/allocsa (Files): Remove m4/longdouble.m4.
89483         * modules/gettext (Files): Likewise.
89484         * modules/relocatable-prog-wrapper (Files): Likewise.
89485         * modules/vasnprintf (Files): Likewise.
89486         * modules/isnanl (Files): Likewise.
89487         (Include): Simplify.
89488         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89489         (Include): Simplify.
89490         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89491         (Include): Simplify.
89492         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89493         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89494         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89495         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89496         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89497         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89498         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89499         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89500         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89501         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89502         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89503         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89504         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89505         * tests/test-isnanl.c: Likewise.
89506         * tests/test-snprintf-posix.h: Likewise.
89507         * tests/test-sprintf-posix.h: Likewise.
89508         * tests/test-vasnprintf-posix.c: Likewise.
89509         * tests/test-vasnprintf-posix2.c: Likewise.
89510         * tests/test-vasprintf-posix.c: Likewise.
89512 2007-04-06  Bruno Haible  <bruno@clisp.org>
89514         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89515         * lib/math_.h [__DECC]: Include the overridden include file through
89516         #include_next, outside the double-inclusion guard.
89517         * lib/stdio_.h [__DECC]: Likewise.
89518         * lib/stdlib_.h [__DECC]: Likewise.
89519         * lib/string_.h [__DECC]: Likewise.
89520         * lib/time_.h [__DECC]: Likewise.
89521         * lib/wchar_.h [__DECC]: Likewise.
89522         * lib/wctype_.h [__DECC]: Likewise.
89523         * lib/inttypes_.h [__DECC]: Likewise.
89524         Reported by Albert Chin <china@thewrittenword.com> in
89525         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89527 2007-04-04  Eric Blake  <ebb9@byu.net>
89529         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89530         1.5.x.
89532 2007-04-04  Bruno Haible  <bruno@clisp.org>
89534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89535         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89537 2007-04-04  Bruno Haible  <bruno@clisp.org>
89539         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89540         results for "%010a" of Infinity and NaN.
89541         * tests/test-vasprintf-posix.c (test_function): Likewise.
89542         * tests/test-snprintf-posix.h (test_function): Likewise.
89543         * tests/test-sprintf-posix.h (test_function): Likewise.
89544         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89545         * tests/test-printf-posix.h (test_function): Likewise.
89546         * tests/test-fprintf-posix.out: Update.
89547         Needed for FreeBSD 6.1.
89549 2007-04-04  Bruno Haible  <bruno@clisp.org>
89551         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89552         directly used by the gnulib modules nor by gnulib-tool.
89554 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89556         * DEPENDENCIES: Give overall description of version dependency
89557         desirability.  Use more-typical names for apps.
89558         Add shell, coreutils, diffutils, grep, tar, gzip.
89560 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89562         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89564 2007-04-04  Karl Berry  <karl@gnu.org>
89566         * MODULES.html.sh (func_module): missing '.
89568 2007-04-03  Bruno Haible  <bruno@clisp.org>
89570         * modules/argmatch-tests (Makefile.am): New variable
89571         test_argmatch_LDADD.
89572         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89573         * modules/array-list-tests (Makefile.am): New variable
89574         test_array_list_LDADD.
89575         * modules/array-oset-tests (Makefile.am): New variable
89576         test_array_oset_LDADD.
89577         * modules/avltree-list-tests (Makefile.am): New variable
89578         test_avltree_list_LDADD.
89579         * modules/avltree-oset-tests (Makefile.am): New variable
89580         test_avltree_oset_LDADD.
89581         * modules/avltreehash-list-tests (Makefile.am): New variable
89582         test_avltreehash_list_LDADD.
89583         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89584         test_canonicalize_lgpl_LDADD.
89585         * modules/carray-list-tests (Makefile.am): New variable
89586         test_carray_list_LDADD.
89587         * modules/dirname-tests (Makefile.am): New variable
89588         test_dirname_LDADD.
89589         * modules/linked-list-tests (Makefile.am): New variable
89590         test_linked_list_LDADD.
89591         * modules/linkedhash-list-tests (Makefile.am): New variable
89592         test_linkedhash_list_LDADD.
89593         * modules/rbtree-list-tests (Makefile.am): New variable
89594         test_rbtree_list_LDADD.
89595         * modules/rbtree-oset-tests (Makefile.am): New variable
89596         test_rbtree_oset_LDADD.
89597         * modules/rbtreehash-list-tests (Makefile.am): New variable
89598         test_rbtreehash_list_LDADD.
89599         * modules/xvasprintf-tests (Makefile.am): New variable
89600         test_xvasprintf_LDADD.
89601         Reported by Eric Blake.
89603 2007-04-03  Eric Blake  <ebb9@byu.net>
89605         * DEPENDENCIES: Weaken m4 requirements.
89607 2007-04-03  Bruno Haible  <bruno@clisp.org>
89609         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89610         * modules/isnanl-tests (configure.ac): Likewise.
89612 2007-04-03  Ben Pfaff  <blp@gnu.org>
89614         * modules/iconv_open: Add $(srcdir)/ to source directory
89615         references in Makefile fragments that call gperf, to fix VPATH
89616         builds.
89618 2007-04-03  Bruno Haible  <bruno@clisp.org>
89620         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89621         * lib/ldexpl.c: Undo last change.
89623 2007-04-03  Bruno Haible  <bruno@clisp.org>
89625         * modules/printf-frexpl (Depends-on): Undo last change.
89626         (Files): Add m4/ldexpl.m4.
89628 2007-04-03  Bruno Haible  <bruno@clisp.org>
89630         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89631         * modules/isnanl (Link): New section.
89633         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89634         * modules/frexp (Link): New section.
89636         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89637         * modules/frexpl (Link): New section.
89639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89640         * modules/ldexpl (Link): New section.
89642 2007-04-03  Bruno Haible  <bruno@clisp.org>
89644         * modules/TEMPLATE-EXTENDED: New file.
89645         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89647 2007-04-03  Bruno Haible  <bruno@clisp.org>
89649         * DEPENDENCIES: New file.
89650         Suggested by Simon Josefsson.
89652 2007-04-03  Bruno Haible  <bruno@clisp.org>
89654         * doc/gnulib.texi: Escape @.
89656 2007-04-03  James Youngman  <jay@gnu.org>
89657         and Paul Eggert  <eggert@cs.ucla.edu>
89659         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89660         birthtime on all systems that have birthtime, not just those which
89661         use st_birthtimensec rather than st_birthtim.  Putting zero in
89662         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89663         that the birth time is not available for files on an NFS mount.
89665 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89667         * modules/memxor: Move back from crypto/, suggested by Bruno.
89668         * modules/crypto/hmac-sha1: Fix memxor dependency.
89670         * modules/crypto/gc: Moved from ../.
89672 2007-04-02  Eric Blake  <ebb9@byu.net>
89674         * lib/ldexpl.c (includes): Avoid libm.
89676         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89678 2007-04-02  Bruno Haible  <bruno@clisp.org>
89680         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89681         on IRIX.
89683 2007-04-02  Bruno Haible  <bruno@clisp.org>
89685         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89686         x86 or x86_64 platforms running MacOS X.
89687         Reported by Ryan Schmidt <@ryandesign.com>.
89689 2007-04-02  Bruno Haible  <bruno@clisp.org>
89691         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89692         i386.
89694 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89696         * modules/crypto/arcfour: Moved from ../.
89697         * modules/crypto/arcfour-tests: Moved from ../.
89698         * modules/crypto/arctwo: Moved from ../.
89699         * modules/crypto/arctwo-tests: Moved from ../.
89700         * modules/crypto/des: Moved from ../.
89701         * modules/crypto/des-tests: Moved from ../.
89702         * modules/crypto/gc-arcfour: Moved from ../.
89703         * modules/crypto/gc-arcfour-tests: Moved from ../.
89704         * modules/crypto/gc-arctwo: Moved from ../.
89705         * modules/crypto/gc-arctwo-tests: Moved from ../.
89706         * modules/crypto/gc-des: Moved from ../.
89707         * modules/crypto/gc-des-tests: Moved from ../.
89708         * modules/crypto/gc-hmac-md5: Moved from ../.
89709         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89710         * modules/crypto/gc-hmac-sha1: Moved from ../.
89711         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89712         * modules/crypto/gc-md2: Moved from ../.
89713         * modules/crypto/gc-md2-tests: Moved from ../.
89714         * modules/crypto/gc-md4: Moved from ../.
89715         * modules/crypto/gc-md4-tests: Moved from ../.
89716         * modules/crypto/gc-md5: Moved from ../.
89717         * modules/crypto/gc-md5-tests: Moved from ../.
89718         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89719         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89720         * modules/crypto/gc-random: Moved from ../.
89721         * modules/crypto/gc-rijndael: Moved from ../.
89722         * modules/crypto/gc-rijndael-tests: Moved from ../.
89723         * modules/crypto/gc-sha1: Moved from ../.
89724         * modules/crypto/gc-sha1-tests: Moved from ../.
89725         * modules/crypto/gc-tests: Moved from ../.
89726         * modules/crypto/hmac-md5: Moved from ../.
89727         * modules/crypto/hmac-md5-tests: Moved from ../.
89728         * modules/crypto/hmac-sha1: Moved from ../.
89729         * modules/crypto/hmac-sha1-tests: Moved from ../.
89730         * modules/crypto/md2: Moved from ../.
89731         * modules/crypto/md2-tests: Moved from ../.
89732         * modules/crypto/md4: Moved from ../.
89733         * modules/crypto/md4-tests: Moved from ../.
89734         * modules/crypto/md5: Moved from ../.
89735         * modules/crypto/md5-tests: Moved from ../.
89736         * modules/crypto/memxor: Moved from ../.
89737         * modules/crypto/rijndael: Moved from ../.
89738         * modules/crypto/rijndael-tests: Moved from ../.
89739         * modules/crypto/sha1: Moved from ../.
89741 2007-03-30  James Youngman  <jay@gnu.org>
89743         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89744         rename() to change the ctime of a file (because ctime is unaffected
89745         by rename on jfs2 on AIX 5.1).
89746         (main): Start by doing cleanup, in case a previous run failed leaving
89747         test files behind.
89749 2007-03-31  Bruno Haible  <bruno@clisp.org>
89751         Support old proprietary implementations of iconv.
89752         * modules/iconv_open: New file.
89753         * lib/iconv_.h: New file.
89754         * m4/iconv_h.m4: New file.
89755         * lib/iconv_open.c: New file.
89756         * lib/iconv_open-aix.gperf: New file.
89757         * lib/iconv_open-hpux.gperf: New file.
89758         * lib/iconv_open-irix.gperf: New file.
89759         * lib/iconv_open-osf.gperf: New file.
89760         * m4/iconv_open.m4: New file.
89761         * modules/linebreak (Depends-on): Add iconv_open.
89762         * modules/striconv (Depends-on): Likewise.
89763         * modules/striconveh (Depends-on): Likewise.
89764         * modules/unicodeio (Depends-on): Likewise.
89765         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89766         (iconv_t)(-1).
89767         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89768         conversion if cd is (iconv_t)(-1).
89769         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89770         is not possible.
89772 2007-03-31  Bruno Haible  <bruno@clisp.org>
89774         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89775         work on Solaris either. Protect also second use of "autodetect_jp".
89777 2007-03-31  Bruno Haible  <bruno@clisp.org>
89779         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89780         the function is not present.
89782 2007-03-31  Bruno Haible  <bruno@clisp.org>
89784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89785         the function is not present.
89787 2007-03-31  Bruno Haible  <bruno@clisp.org>
89789         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89790         a bug in HP-UX iconv_open().
89792 2007-03-31  Bruno Haible  <bruno@clisp.org>
89794         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89795         (Mathematics <math.h>): New section, add fpieee.
89796         (Input/output <stdio.h>): Add fseterr.
89797         (Mathematics <math.h>): New section, add printf-frexp.
89798         (Container data structures): Add sublist.
89799         (Core language properties): Add fpucw, inline.
89800         (Functions for greatest-width integer types <inttypes.h>): Add
89801         imaxabs, imaxdiv, inttypes.
89802         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89803         isnanl-nolibm, ldexp.
89804         (Mathematics <math.h>): New section, add printf-frexpl.
89805         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89806         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89807         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89808         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89809         (Unicode string functions): Add unistr/u*-mbtoucr.
89810         (Java): Add javacomp-script, javaexec-script.
89811         (C#): Add csharpcomp-script, csharpexec-script.
89812         (Support for building libraries and executables): Add havelib,
89813         relocatable-*.
89814         (Support for maintaining and releasing projects): Renamed from
89815         'Support for maintaining and release projects'. Add announce-gen.
89817 2007-03-31  Bruno Haible  <bruno@clisp.org>
89819         * README: Talk primarily about git.
89820         (git and CVS): Renamed from CVS.
89821         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89822         gnulib is available through git.
89823         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89825 2007-03-30  Bruno Haible  <bruno@clisp.org>
89827         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89828         * lib/poll_.h: Likewise.
89829         * lib/stat_.h: Likewise.
89830         * lib/sys_time_.h: Likewise.
89831         * lib/sysexit_.h: Likewise.
89832         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89833         * lib/stdbool_.h: Likewise.
89834         * lib/byteswap_.h: Add double-inclusion guard.
89836 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89838         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89840 2007-03-30  Karl Berry  <karl@gnu.org>
89842         * config/srclist-update: double space after USA in the license
89843         substitution, since that's how it's usually (?) written.
89845 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89847         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89848         reported by Bruno Haible.
89850 2007-03-29  Bruno Haible  <bruno@clisp.org>
89852         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89853         a bug in AIX iconv().
89855 2007-03-29  Bruno Haible  <bruno@clisp.org>
89857         * modules/ldexpl-tests: New file.
89858         * tests/test-ldexpl.c: New file.
89860 2007-03-29  Bruno Haible  <bruno@clisp.org>
89862         * lib/ldexpl.c: Include fpucw.h.
89863         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89864         multiplication.
89865         * modules/ldexpl (Depends-on): Add fpucw.
89867 2007-03-29  Bruno Haible  <bruno@clisp.org>
89869         * modules/ldexpl: New file.
89870         * m4/ldexpl.m4: New file.
89871         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89872         set.
89873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89874         REPLACE_LDEXPL.
89875         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89876         REPLACE_LDEXPL.
89877         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89878         gl_FUNC_LDEXPL_WORKS.
89879         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89880         * modules/mathl (Files): Remove lib/ldexpl.c.
89881         (Depends-on): Add ldexpl.
89883 2007-03-29  Bruno Haible  <bruno@clisp.org>
89885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89887 2007-03-29  Bruno Haible  <bruno@clisp.org>
89889         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89890         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89891         and possibly also HP-UX.
89892         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89893         work on AIX, IRIX, HP-UX, OSF/1.
89894         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89895         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89896         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89897         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89898         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89899         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89901 2007-03-29  Bruno Haible  <bruno@clisp.org>
89903         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89905 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89907         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89908         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89910 2007-03-29  Eric Blake  <ebb9@byu.net>
89912         * lib/acl-internal.h: Remove redundant include.
89913         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89914         Cygwin when a file is locked.
89916 2007-03-29  Bruno Haible  <bruno@clisp.org>
89918         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89919         file.
89920         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89922 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89924         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89925         try to remove a parent directory if the child couldn't be removed
89926         (except for the first rmdir, which could fail because the child
89927         doesn't exist).  Problem reported by Jeff Blaine in
89928         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89930 2007-03-28  Bruno Haible  <bruno@clisp.org>
89932         * lib/striconveh.c (utf8conv_carefully): New function.
89933         (mem_cd_iconveh_internal): Invoke it.
89935 2007-03-28  Bruno Haible  <bruno@clisp.org>
89937         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89938         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89939         input.
89940         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89941         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89942         unistr/u8-uctomb.
89944 2007-03-28  Bruno Haible  <bruno@clisp.org>
89946         * modules/unistr/u8-mbtoucr: New file.
89947         * lib/unistr/u8-mbtoucr.c: New file.
89948         * modules/unistr/u16-mbtoucr: New file.
89949         * lib/unistr/u16-mbtoucr.c: New file.
89950         * modules/unistr/u16-mbtoucr: New file.
89951         * lib/unistr/u16-mbtoucr.c: New file.
89952         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89954 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89955             Bruno Haible  <bruno@clisp.org>
89957         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89958         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89959         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89961         * m4/stdio_h.m4: Add stubs for vasprintf too.
89963         * modules/stdio: Support vasprintf in sed command.
89965         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89966         vasprintf.h.  Add stdio module indicator.
89968         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89969         vasprintf.h.
89971         * lib/vasprintf.h: File removed.
89973         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89974         * lib/vasprintf.c: Ditto.
89975         * lib/xvasprintf.c: Ditto.
89976         * tests/test-vasprintf-posix.c: Ditto.
89977         * tests/test-vasprintf.c: Ditto.
89979 2007-03-27  Bruno Haible  <bruno@clisp.org>
89981         Make vasnprintf multithread-safe.
89982         * lib/vasnprintf.c (decimal_point_char): New function.
89983         (VASNPRINTF): Use it.
89984         Suggested by Simon Josefsson.
89986 2007-03-27  Eric Blake  <ebb9@byu.net>
89988         Support sub-second birthtime on cygwin.
89989         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89990         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89991         (get_stat_birthtime): Also work with st_birthtim.
89993 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89995         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89996         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89997         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89998         (get_stat_birthtime_ns): Simplify compile-time tests.
89999         (get_stat_birthtime): Change the API to look like
90000         get_stat_mtime etc., except return a negative tv_nsec on error.
90001         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
90002         Don't check for "spare" fields.
90003         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
90004         or for struct stat.st_birthtime, as these tests aren't used.
90005         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
90007 2007-03-27  Bruno Haible  <bruno@clisp.org>
90009         * lib/stat-time.h: Include <sys/stat.h>.
90011 2007-03-27  James Youngman  <jay@gnu.org>
90013         * lib/stat-time.h (get_stat_birthtime): New function for
90014           retrieving st_birthtime as provided by UFS2 (hence *BSD).
90015         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
90016           and its variants.
90017         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
90018         * modules/stat-time-test: New file.
90019         * tests/test-stat-time.c: New test, devised by Bruno Haible.
90021 2007-03-26  Bruno Haible  <bruno@clisp.org>
90023         Better support of signalling NaNs.
90024         * lib/atanl.c: Include isnanl.h.
90025         (atanl): Perform test for NaN at the beginning of the function and
90026         through a call to isnanl.
90027         * lib/cosl.c: Include isnanl.h.
90028         (cosl): Perform test for NaN at the beginning of the function and
90029         through a call to isnanl.
90030         * lib/ldexpl.c: Include isnanl.h.
90031         (ldexpl): Perform test for NaN through a call to isnanl.
90032         * lib/logl.c: Include isnanl.h.
90033         (logl): Perform test for NaN at the beginning of the function and
90034         through a call to isnanl.
90035         * lib/sinl.c: Include isnanl.h.
90036         (sinl): Perform test for NaN at the beginning of the function and
90037         through a call to isnanl.
90038         * lib/sqrtl.c: Include isnanl.h.
90039         (sqrtl): Perform test for NaN at the beginning of the function and
90040         through a call to isnanl.
90041         * lib/tanl.c: Include isnanl.h.
90042         (tanl): Perform test for NaN at the beginning of the function and
90043         through a call to isnanl.
90044         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
90045         * modules/mathl (Depends-on): Add isnanl.
90047 2007-03-26  Eric Blake  <ebb9@byu.net>
90049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
90050         regression in logic sense of previous patch.
90052 2007-03-26  Bruno Haible  <bruno@clisp.org>
90054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
90055         unportable shell command "if ! ...".
90056         Reported by Ralf Wildenhues.
90058 2007-03-25  Bruno Haible  <bruno@clisp.org>
90060         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
90061         <sysexits.h> file, and only add EX_CONFIG.
90062         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
90063         absolute file name and whether it is sufficient. Substitute also
90064         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
90065         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
90066         ABSOLUTE_SYSEXITS_H into sysexits.h.
90068 2007-03-25  Bruno Haible  <bruno@clisp.org>
90070         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
90071         hints is NULL.
90073 2007-03-25  Bruno Haible  <bruno@clisp.org>
90075         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
90076         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
90078 2007-03-25  Bruno Haible  <bruno@clisp.org>
90080         * lib/vasnprintf.c: Include langinfo.h.
90081         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
90082         multithread-safe.
90083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
90084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
90085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90089         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
90091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90092         Reported by Simon Josefsson.
90094 2007-03-25  Bruno Haible  <bruno@clisp.org>
90096         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
90097         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
90098         * modules/vasnprintf (Depends-on): Add stdint.
90100 2007-03-25  Bruno Haible  <bruno@clisp.org>
90102         * modules/fpieee: New file.
90103         * m4/fpieee.m4: New file.
90104         * modules/isnan-nolibm (Depends-on): Add fpieee.
90105         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90106         * modules/isnanl (Depends-on): Add fpieee.
90108 2007-03-25  Bruno Haible  <bruno@clisp.org>
90110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90112 2007-03-25  Bruno Haible  <bruno@clisp.org>
90114         Avoid test failures on IRIX 6.5.
90115         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90116         (main): Use it.
90117         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90118         macros.
90119         (main): Use them.
90121 2007-03-25  Bruno Haible  <bruno@clisp.org>
90123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90124         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90125         exists but doesn't work.
90126         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90127         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90129         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90130         math.h.
90132 2007-03-25  Bruno Haible  <bruno@clisp.org>
90134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90135         returns inf. Needed on IRIX 6.5.
90137 2007-03-25  Bruno Haible  <bruno@clisp.org>
90139         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90140         (main): Use isnanl instead of x != x idiom.
90141         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90143         * tests/test-frexp.c: Include isnan.h.
90144         (main): Use isnan instead of x != x idiom.
90145         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90147 2007-03-25  Bruno Haible  <bruno@clisp.org>
90149         * tests/test-frexp.c (NaN): New function/macro.
90150         (main): Use it instead of 0.0 / 0.0.
90151         * tests/test-isnan.c (NaN): New function/macro.
90152         (main): Use it instead of 0.0 / 0.0.
90153         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90154         (test_function): Use it instead of 0.0 / 0.0.
90155         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90156         (test_function): Use it instead of 0.0 / 0.0.
90157         * tests/test-snprintf-posix.h (NaN): New function/macro.
90158         (test_function): Use it instead of 0.0 / 0.0.
90159         * tests/test-sprintf-posix.h (NaN): New function/macro.
90160         (test_function): Use it instead of 0.0 / 0.0.
90161         * tests/test-fprintf-posix.h (NaN): New function/macro.
90162         (test_function): Use it instead of 0.0 / 0.0.
90163         * tests/test-printf-posix.h (NaN): New function/macro.
90164         (test_function): Use it instead of 0.0 / 0.0.
90166         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90168 2007-03-25  Bruno Haible  <bruno@clisp.org>
90170         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90172 2007-03-25  Bruno Haible  <bruno@clisp.org>
90174         * lib/regexec.c (merge_state_with_log): Make static.
90176 2007-03-25  Bruno Haible  <bruno@clisp.org>
90178         * lib/trigl.c (kernel_rem_pio2): Make static.
90180 2007-03-25  Bruno Haible  <bruno@clisp.org>
90182         * lib/sincosl.c (sincosl_table): Make static.
90184 2007-03-25  Bruno Haible  <bruno@clisp.org>
90186         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90187         if the compiler does not support C99.
90189 2007-03-25  Bruno Haible  <bruno@clisp.org>
90191         * modules/time (Makefile.am): Ensure all rule action lines start with a
90192         tab.
90194 2007-03-24  Bruno Haible  <bruno@clisp.org>
90196         * modules/tsearch-tests: New file.
90197         * tests/test-tsearch.sh: New file.
90198         * tests/test-tsearch.c: New file, mostly copied from glibc.
90200         * modules/search-tests: New file.
90201         * tests/test-search.c: New file.
90203         * modules/search: New file.
90204         * lib/search_.h: New file, incorporating lib/tsearch.h.
90205         * m4/search_h.m4: New file.
90206         * lib/tsearch.h: Remove file.
90207         * lib/tsearch.c: Include search.h instead of tsearch.h.
90208         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90209         HAVE_TSEARCH.
90210         * modules/tsearch (Files): Remove lib/tsearch.h.
90211         (Depends-on): Add search.
90212         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90213         (Include): Change tsearch.h into search.h.
90215 2007-03-24  Bruno Haible  <bruno@clisp.org>
90217         * modules/fpucw: New file.
90218         * lib/fpucw.h: New file.
90219         * lib/frexp.c: Include fpucw.h.
90220         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90221         (FUNC): Use them.
90222         * lib/printf-frexp.c: Include fpucw.h.
90223         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90224         (FUNC): Use them.
90225         * lib/vasnprintf.c: Include fpucw.h.
90226         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90227         'long double' calculations.
90228         * tests/test-frexpl.c: Include fpucw.h.
90229         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90230         * tests/test-printf-frexpl.c: Include fpucw.h.
90231         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90232         * modules/frexpl (Depends-on): Add fpucw.
90233         * modules/printf-frexpl (Depends-on): Likewise.
90234         * modules/fprintf-posix (Depends-on): Likewise.
90235         * modules/snprintf-posix (Depends-on): Likewise.
90236         * modules/sprintf-posix (Depends-on): Likewise.
90237         * modules/vasnprintf-posix (Depends-on): Likewise.
90238         * modules/vasprintf-posix (Depends-on): Likewise.
90239         * modules/vfprintf-posix (Depends-on): Likewise.
90240         * modules/vsnprintf-posix (Depends-on): Likewise.
90241         * modules/vsprintf-posix (Depends-on): Likewise.
90242         * modules/frexpl-tests (Depends-on): Likewise.
90243         * modules/printf-frexpl-tests (Depends-on): Likewise.
90245 2007-03-24  Bruno Haible  <bruno@clisp.org>
90247         * lib/float+.h: New file.
90248         * lib/isnan.c: Include float+.h.
90249         (SIZE): New macro.
90250         (FUNC): Compare only SIZE bytes of the value.
90251         * lib/vasnprintf.c: Include float+.h.
90252         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90253         SIZEOF_LDBL or SIZEOF_DBL bytes.
90254         * modules/isnan-nolibm (Files): Add lib/float+.h.
90255         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90256         * modules/isnanl (Files): Add lib/float+.h.
90257         * modules/vasnprintf (Files): Add lib/float+.h.
90259 2007-03-24  Bruno Haible  <bruno@clisp.org>
90261         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90262         include isnanl-nolibm.h.
90264 2007-03-24  Bruno Haible  <bruno@clisp.org>
90266         * tests/test-read-file.c (main): Don't produce spurious output for
90267         expected situations. Make the test fail if it encountered unexpected
90268         results.
90270 2007-03-24  Bruno Haible  <bruno@clisp.org>
90272         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90273         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90275 2007-03-24  Bruno Haible  <bruno@clisp.org>
90277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90279 2007-03-24  Bruno Haible  <bruno@clisp.org>
90281         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90282         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90284         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90285         * modules/utf8-ucs4: Turn into a symbolic link to module
90286         unistr/u8-mbtouc.
90288         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90289         utf8-ucs4-unsafe.
90290         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90291         unistr/u8-mbtouc-unsafe.
90293         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90294         * modules/utf16-ucs4: Turn into a symbolic link to module
90295         unistr/u16-mbtouc.
90297         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90298         utf16-ucs4-unsafe.
90299         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90300         unistr/u16-mbtouc-unsafe.
90302         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90303         * modules/ucs4-utf8: Turn into a symbolic link to module
90304         unistr/u8-ubtomb.
90306         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90307         * modules/ucs4-utf16: Turn into a symbolic link to module
90308         unistr/u16-ubtomb.
90310 2007-03-24  Bruno Haible  <bruno@clisp.org>
90312         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90313         Enable the function only if HAVE_INLINE.
90314         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90315         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90316         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90317         Enable the function only if HAVE_INLINE.
90318         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90319         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90320         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90321         Enable the function only if HAVE_INLINE.
90322         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90323         Enable the function only if HAVE_INLINE.
90324         * modules/utf8-ucs4: Update.
90325         * modules/utf8-ucs4-unsafe: Update.
90326         * modules/utf16-ucs4: Update.
90327         * modules/utf16-ucs4-unsafe: Update.
90328         * modules/ucs4-utf8: Update.
90329         * modules/ucs4-utf16: Update.
90331 2007-03-24  Bruno Haible  <bruno@clisp.org>
90333         * lib/utf8-ucs4.h: Remove file.
90334         * lib/utf8-ucs4-unsafe.h: Remove file.
90335         * lib/utf16-ucs4.h: Remove file.
90336         * lib/utf16-ucs4-unsafe.h: Remove file.
90337         * lib/ucs4-utf8.h: Remove file.
90338         * lib/ucs4-utf16.h: Remove file.
90339         * lib/unistr.h: Include their previous contents.
90340         * m4/utf-ucs4.m4: Remove file.
90341         * m4/ucs4-utf.m4: Remove file.
90342         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90343         (Depends-on): Add unistr/base.
90344         (configure.ac): Remove gl_UTF_UCS4.
90345         (Makefile.am): Update.
90346         (Include): Change to unistr.h.
90347         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90348         (Depends-on): Add unistr/base.
90349         (configure.ac): Remove gl_UTF_UCS4.
90350         (Makefile.am): Update.
90351         (Include): Change to unistr.h.
90352         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90353         (Depends-on): Add unistr/base.
90354         (configure.ac): Remove gl_UTF_UCS4.
90355         (Makefile.am): Update.
90356         (Include): Change to unistr.h.
90357         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90358         (Depends-on): Add unistr/base.
90359         (configure.ac): Remove gl_UTF_UCS4.
90360         (Makefile.am): Update.
90361         (Include): Change to unistr.h.
90362         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90363         (Depends-on): Add unistr/base.
90364         (configure.ac): Remove gl_UCS4_UTF.
90365         (Makefile.am): Update.
90366         (Include): Change to unistr.h.
90367         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90368         (Depends-on): Add unistr/base.
90369         (configure.ac): Remove gl_UCS4_UTF.
90370         (Makefile.am): Update.
90371         (Include): Change to unistr.h.
90372         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90373         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90374         utf8-ucs4-unsafe.h.
90375         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90376         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90377         utf16-ucs4-unsafe.h.
90378         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90379         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90380         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90381         * lib/unistr/u8-strchr.c: Likewise.
90382         * lib/unistr/u8-strrchr.c: Likewise.
90383         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90384         * lib/unistr/u16-strchr.c: Likewise.
90385         * lib/unistr/u16-strrchr.c: Likewise.
90386         * lib/striconveh.c: Update.
90387         * lib/linebreak.c: Update.
90389 2007-03-24  Bruno Haible  <bruno@clisp.org>
90391         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90392         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90394 2007-03-22  Bruno Haible  <bruno@clisp.org>
90396         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90398 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90400         * MODULES.html.sh (File system functions): New module write-any-file.
90401         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90402         * m4/write-any-file.m4: New files.
90404 2007-03-23  Eric Blake  <ebb9@byu.net>
90406         * gnulib-tool: Rearrange space-tab sequences, since some editors
90407         like to eat them.
90409 2007-03-23  Eric Blake  <ebb9@byu.net>
90411         * lib/version-etc.c (version_etc_va): Update license wording to
90412         be more concise.  Recommended by Richard Stallman.
90414 2007-03-22  Bruno Haible  <bruno@clisp.org>
90416         * lib/poll.c (MSG_PEEK): New fallback definition.
90418 2007-03-22  Bruno Haible  <bruno@clisp.org>
90420         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90421         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90422         (main): Update.
90423         Fixes a compilation error on BeOS.
90425 2007-03-22  Bruno Haible  <bruno@clisp.org>
90427         * modules/frexpl-tests: New file.
90428         * tests/test-frexpl.c: New file.
90430         * modules/frexpl: New file.
90431         * m4/frexpl.m4: New file.
90432         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90433         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90435         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90436         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90437         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90439 2007-03-22  Bruno Haible  <bruno@clisp.org>
90441         * lib/frexpl.c: Share code with lib/frexp.c.
90442         * modules/mathl (Files): Add lib/frexp.c.
90443         (Depends-on): Add isnanl-nolibm.
90445 2007-03-22  Bruno Haible  <bruno@clisp.org>
90447         * modules/printf-frexp (Files): Add m4/frexp.m4.
90448         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90449         only if the found frexp function actually works.
90451 2007-03-22  Bruno Haible  <bruno@clisp.org>
90453         * lib/frexp.c: Remove older implementation that uses divisions.
90455 2007-03-21  Bruno Haible  <bruno@clisp.org>
90457         * modules/frexp-tests: New file.
90458         * tests/test-frexp.c: New file.
90460         * modules/frexp: New file.
90461         * lib/frexp.c: New file.
90462         * m4/frexp.m4: New file.
90463         * lib/math_.h (frexp): New declaration.
90464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90465         REPLACE_FREXP.
90466         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90468 2007-03-21  Bruno Haible  <bruno@clisp.org>
90470         * modules/isnanl-tests: New file.
90471         * tests/test-isnanl.c: New file.
90473         * modules/isnanl: New file.
90474         * lib/isnanl.h: New file.
90475         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90476         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90477         gl_FUNC_ISNANL_WORKS.
90478         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90479         New macros.
90481 2007-03-21  Bruno Haible  <bruno@clisp.org>
90483         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90484         lib/isnanl.h.
90485         (Include): Update.
90486         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90487         * lib/vasnprintf.c: Update.
90488         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90489         tests/test-isnanl.h, remove tests/test-isnanl.c.
90490         (Makefile.am): Update.
90491         * tests/test-isnanl-nolibm.c: New file.
90492         * tests/test-isnanl.h: New file.
90493         * tests/test-isnanl.c: Remove file.
90495 2007-03-21  Jim Meyering  <jim@meyering.net>
90497         When trying to open ".", treat ESTALE like EACCES.
90498         * lib/savewd.c (savewd_save): Resort to forking not just upon
90499         failure with EACCES, but also when errno is ESTALE.
90501 2007-03-20  Bruno Haible  <bruno@clisp.org>
90503         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90504         Needed on AIX 5.1. Reported by Matthew Woehlke.
90506 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90508         Suggestions by Bruno Haible:
90509         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90510         our own.
90511         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90512         * modules/acl (Depends-on): Add gettext.
90514 2007-03-19  Bruno Haible  <bruno@clisp.org>
90516         * modules/iconvme: Remove file.
90517         * lib/iconvme.h: Remove file.
90518         * lib/iconvme.c: Remove file.
90519         * m4/iconvme.m4: Remove file.
90521 2007-03-19  Bruno Haible  <bruno@clisp.org>
90523         * doc/relocatable-maint.texi: Break long shell script line.
90524         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90526 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90528         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90529         handle file_has_acl.
90530         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90531         * lib/acl.c: Move header inclusions and related macro defns into
90532         lib/acl-internal.h.
90533         (S_ISLNK): Remove defn, since that's now done for us.
90534         (file_has_acl): Move to lib/file-has-acl.c.
90535         Call acl_trivial if available.  This is the crucial part of the fix.
90536         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90537         shared within the library.  Rewrite a bit, partly to make it compatible
90538         with the GNU coding style.
90539         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90540         Remove unnecessary double-quotes.
90541         Don't test for acl_to_text; the build will catch that.
90542         Replace acl_entries if it doesn't exist and it is needed.
90543         Check for -lsec and acl_trivial (as used on Solaris 10).
90544         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90545         lib/file-has-acl.c.
90546         (Depends-on): Add sys_stat, for S_ISLNK.
90548 2007-03-19  Ben Pfaff  <blp@gnu.org>
90550         * doc/gnulib.texi: Fix typos.
90551         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90553 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90555         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90556         If size is zero here, buf must be zero.
90558 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90560         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90561         <bruno@clisp.org>.
90563 2007-03-18  Bruno Haible  <bruno@clisp.org>
90565         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90566         Suggested by Eric Blake.
90568 2007-03-18  Ben Pfaff  <blp@gnu.org>
90570         * doc/relocatable.texi: Recommend using as prefix a directory
90571         that does not exist and will never be created.  Based on
90572         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90573         and others.
90575 2007-03-17  Bruno Haible  <bruno@clisp.org>
90577         * lib/fchownat.c: Include lchown.h.
90579 2007-03-17  Bruno Haible  <bruno@clisp.org>
90581         Fix endless loop when the given allocated size was > INT_MAX.
90582         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90583         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90584         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90585         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90586         * lib/sprintf.c (sprintf): Likewise.
90588 2007-03-17  Bruno Haible  <bruno@clisp.org>
90590         * tests/test-argp-2.sh (func_compare): Output a context diff.
90592 2007-03-17  Bruno Haible  <bruno@clisp.org>
90594         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90595         locale's decimal-point character.
90597 2007-03-17  Bruno Haible  <bruno@clisp.org>
90599         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90600         before comparing it. Needed because on some platforms (e.g. x86) a
90601         'long double' occupies less bytes than sizeof (long double).
90603 2007-03-17  Bruno Haible  <bruno@clisp.org>
90605         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90606         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90607         * tests/test-getaddrinfo.c (simple): Likewise.
90608         * tests/test-read-file.c (main): Likewise.
90610 2007-03-17  Bruno Haible  <bruno@clisp.org>
90612         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90614 2007-03-17  Bruno Haible  <bruno@clisp.org>
90616         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90617         unused variable.
90619 2007-03-17  Bruno Haible  <bruno@clisp.org>
90621         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90622         * tests/test-c-strncasecmp.c: Likewise.
90624 2007-03-17  Bruno Haible  <bruno@clisp.org>
90626         * modules/stdlib (Depends-on): Add unistd.
90627         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90628         Needed for MacOS X 10.3.
90630 2007-03-17  Bruno Haible  <bruno@clisp.org>
90632         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90634 2007-03-17  Bruno Haible  <bruno@clisp.org>
90636         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90638 2007-03-17  Bruno Haible  <bruno@clisp.org>
90640         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90641         to reflect files copied from gnulib (with or without modifications).
90642         Suggested by Jim Meyering.
90644 2007-03-17  Eric Blake  <ebb9@byu.net>
90646         * NEWS: Document stdlib change from 2007-02-18.
90648 2007-03-17  Jim Meyering  <jim@meyering.net>
90650         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90651         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90652         someone uses a name containing shell meta-characters.
90653         Reported by Alfred M. Szmidt.
90655         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90657 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90659         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90660         and copy gettext configuration files only if configure.ac contains
90661         a use of AM_GNU_GETTEXT_VERSION.
90663 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90665         * build-aux/bootstrap (gnulib_name): New variable.
90666         (gnulib_tool_options): Use it.
90668 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90670         * tests/test-des.c: Use new namespace.
90672 2007-03-15  Bruno Haible  <bruno@clisp.org>
90674         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90675         Reported by James Youngman <jay@gnu.org>.
90677 2007-03-15  Bruno Haible  <bruno@clisp.org>
90679         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90680         declared prototype. Needed with cc on OSF/1 5.1.
90682 2007-03-15  Bruno Haible  <bruno@clisp.org>
90684         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90685         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90686         (struct gl_list_implementation): Add dispose_fn argument to the
90687         'create_empty', 'create' methods.
90688         (struct gl_list_impl_base): Add field 'dispose_fn'.
90689         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90690         argument.
90691         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90692         dispose_fn argument.
90693         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90694         dispose_fn on the dropped values.
90695         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90696         dispose_fn argument.
90697         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90698         dropped values.
90699         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90700         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90701         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90702         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90703         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90704         argument.
90705         (gl_tree_list_free): Call dispose_fn on the dropped values.
90706         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90707         the dropped values.
90708         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90709         Add dispose_fn argument.
90710         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90711         Call dispose_fn on the dropped values.
90712         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90713         Add dispose_fn argument.
90714         (gl_sublist_create): Initialize the 'dispose_fn' field.
90715         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90716         * tests/test-array_list.c (main): Update.
90717         * tests/test-carray_list.c (main): Update.
90718         * tests/test-avltree_list.c (main): Update.
90719         * tests/test-rbtree_list.c (main): Update.
90720         * tests/test-avltreehash_list.c (main): Update.
90721         * tests/test-rbtreehash_list.c (main): Update.
90722         * tests/test-linked_list.c (main): Update.
90723         * tests/test-linkedhash_list.c (main): Update.
90724         * tests/test-array_oset.c (main): Update.
90726 2007-03-15  Bruno Haible  <bruno@clisp.org>
90728         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90729         (gl_oset_create_empty): Add dispose_fn argument.
90730         (struct gl_oset_implementation): Add dispose_fn argument to
90731         'create_empty' method.
90732         (struct gl_oset_impl_base): Add dispose_fn field.
90733         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90734         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90735         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90736         values.
90737         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90738         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90739         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90740         dropped value.
90741         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90742         dropped value.
90743         * tests/test-array_oset.c (main): Update.
90744         * tests/test-avltree_oset.c (main): Update.
90745         * tests/test-rbtree_oset.c (main): Update.
90746         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90748 2007-03-13  Bruno Haible  <bruno@clisp.org>
90750         * tests/test-stdbool.c (i): Update after last patch.
90752 2007-03-12  Bruno Haible  <bruno@clisp.org>
90754         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90755         the iswprint macro. Needed on Solaris 2.5.1.
90757 2007-03-12  Bruno Haible  <bruno@clisp.org>
90759         * tests/test-printf-frexp.c (main): Declare x as volatile.
90761 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90763         * doc/gnulib.texi (Build robot for gnulib): New section.
90765 2007-03-12  Jim Meyering  <jim@meyering.net>
90767         * build-aux/bootstrap: New file.
90768         * build-aux/bootstrap.conf: New file, from coreutils.
90770 2007-03-11  Bruno Haible  <bruno@clisp.org>
90772         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90774 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90776         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90777         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90778         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90780 2007-03-11  Bruno Haible  <bruno@clisp.org>
90782         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90783         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90785 2007-03-11  Bruno Haible  <bruno@clisp.org>
90787         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90788         formula. Needed for SunPRO C 5.0.
90790 2007-03-11  Bruno Haible  <bruno@clisp.org>
90792         * modules/long-options (Depends-on): Add getopt.
90794 2007-03-11  Bruno Haible  <bruno@clisp.org>
90796         * modules/modechange (Depends-on): Add stdbool.
90798 2007-03-11  Bruno Haible  <bruno@clisp.org>
90800         * modules/i-ring (Depends-on): Add stdbool.
90802 2007-03-11  Bruno Haible  <bruno@clisp.org>
90804         * modules/gc-des (Depends-on): Add stdbool.
90806 2007-03-11  Bruno Haible  <bruno@clisp.org>
90808         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90810 2007-03-11  Bruno Haible  <bruno@clisp.org>
90812         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90814 2007-03-11  Bruno Haible  <bruno@clisp.org>
90816         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90818 2007-03-11  Bruno Haible  <bruno@clisp.org>
90820         * lib/vasnprintf.c (sprintf): Undefine.
90822 2007-03-11  Bruno Haible  <bruno@clisp.org>
90824         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90825         initializers in SunPRO C and Compaq C compilers.
90827 2007-03-11  Bruno Haible  <bruno@clisp.org>
90829         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90830         decrementing code ANSI C compliant.
90832 2007-03-11  Bruno Haible  <bruno@clisp.org>
90834         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90835         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90837 2007-03-11  Bruno Haible  <bruno@clisp.org>
90839         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90840         <stdbool.h> substitute doesn't pass.
90842 2007-03-11  Bruno Haible  <bruno@clisp.org>
90844         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90846 2007-03-11  Bruno Haible  <bruno@clisp.org>
90848         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90849         script, for submission to autobuild.josefsson.org.
90851 2007-03-10  Bruno Haible  <bruno@clisp.org>
90853         * modules/canonicalize-lgpl-tests: New file.
90854         * tests/test-canonicalize-lgpl.sh: New file.
90855         * tests/test-canonicalize-lgpl.c: New file.
90857         * modules/c-strcase-tests: New file.
90858         * tests/test-c-strcase.sh: New file.
90859         * tests/test-c-strcasecmp.c: New file.
90860         * tests/test-c-strncasecmp.c: New file.
90862         * modules/atexit-tests: New file.
90863         * tests/test-atexit.sh: New file.
90864         * tests/test-atexit.c: New file.
90866 2007-03-10  Bruno Haible  <bruno@clisp.org>
90868         * tests/test-binary-io.sh: Use temporary filenames that are not so
90869         likely to clash with those of other tests (in a parallel make).
90870         * tests/test-binary-io.c: Likewise.
90872 2007-03-10  Bruno Haible  <bruno@clisp.org>
90874         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90875         fallback; use #error instead.
90876         Suggested by Simon Josefsson.
90878 2007-03-10  Bruno Haible  <bruno@clisp.org>
90880         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90881         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90882         first and the last.
90884 2007-03-10  Bruno Haible  <bruno@clisp.org>
90886         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90888 2007-03-10  Bruno Haible  <bruno@clisp.org>
90890         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90891         "make distcheck".
90892         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90893         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90894         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90896 2007-03-10  Bruno Haible  <bruno@clisp.org>
90898         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90899         variable.
90900         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90901         variable.
90903 2007-03-09  Eric Blake  <ebb9@byu.net>
90904         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90906         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90907         types are not being provided by gnulib.
90908         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90909         types are supported.
90911 2007-03-10  Bruno Haible  <bruno@clisp.org>
90913         * lib/stdio_.h (__attribute__): New macro.
90914         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90915         vsprintf): Specify __attribute__ __format__ for GCC.
90916         Suggested by Eric Blake.
90918 2007-03-09  Bruno Haible  <bruno@clisp.org>
90920         * modules/printf-posix-tests: New file.
90921         * tests/test-printf-posix.sh: New file.
90922         * tests/test-printf-posix.c: New file.
90924         * modules/printf-posix: New file.
90925         * lib/printf.c: New file.
90926         * m4/printf-posix-rpl.m4: New file.
90927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90928         REPLACE_PRINTF.
90929         * lib/stdio_.h (printf): New declaration.
90930         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90931         ____strfmon____): New macros.
90932         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90933         REPLACE_PRINTF.
90935 2007-03-09  Bruno Haible  <bruno@clisp.org>
90937         * tests/test-vasnprintf-posix2.sh: New file.
90938         * tests/test-vasnprintf-posix2.c: New file.
90939         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90940         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90941         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90943         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90944         a locale dependent decimal point, rather than always '.'.
90946 2007-03-09  Eric Blake  <ebb9@byu.net>
90948         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90949         spite of platforms like Tandem/NSK that define it to -1.
90951 2007-03-08  Bruno Haible  <bruno@clisp.org>
90953         * modules/vprintf-posix-tests: New file.
90954         * tests/test-vprintf-posix.sh: New file.
90955         * tests/test-vprintf-posix.c: New file.
90956         * tests/test-printf-posix.h: New file.
90958         * modules/vprintf-posix: New file.
90959         * lib/vprintf.c: New file.
90960         * m4/vprintf-posix.m4: New file.
90961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90962         REPLACE_VPRINTF.
90963         * lib/stdio_.h (vprintf): New declaration.
90964         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90965         REPLACE_VPRINTF.
90967 2007-03-08  Bruno Haible  <bruno@clisp.org>
90969         * modules/fprintf-posix-tests: New file.
90970         * tests/test-fprintf-posix.sh: New file.
90971         * tests/test-fprintf-posix.c: New file.
90973         * modules/fprintf-posix: New file.
90974         * lib/fprintf.c: New file.
90975         * m4/fprintf-posix.m4: New file.
90976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90977         REPLACE_FPRINTF.
90978         * lib/stdio_.h (fprintf): New declaration.
90979         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90980         REPLACE_FPRINTF.
90982 2007-03-08  Bruno Haible  <bruno@clisp.org>
90984         * modules/vfprintf-posix-tests: New file.
90985         * tests/test-vfprintf-posix.sh: New file.
90986         * tests/test-vfprintf-posix.c: New file.
90987         * tests/test-fprintf-posix.h: New file.
90988         * tests/test-fprintf-posix.out: New file.
90990         * modules/vfprintf-posix: New file.
90991         * lib/vfprintf.c: New file.
90992         * m4/vfprintf-posix.m4: New file.
90993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90994         REPLACE_VFPRINTF.
90995         * lib/stdio_.h (vfprintf): New declaration.
90996         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90997         REPLACE_VFPRINTF.
90999 2007-03-08  Bruno Haible  <bruno@clisp.org>
91001         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
91003 2007-03-08  Bruno Haible  <bruno@clisp.org>
91005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
91006         instead of 'expr' invocations.
91007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91011         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91012         Suggested by Paul Eggert.
91014 2007-03-08  Bruno Haible  <bruno@clisp.org>
91016         * modules/fseterr-tests: New file.
91017         * tests/test-fseterr.c: New file.
91019         * modules/fseterr: New file.
91020         * lib/fseterr.h: New file.
91021         * lib/fseterr.c: New file.
91023 2007-03-08  Bruno Haible  <bruno@clisp.org>
91025         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
91026         * lib/getopt_.h: Likewise.
91027         * lib/mbswidth.h: Likewise.
91028         * lib/setenv.h: Likewise.
91029         * lib/vasnprintf.h: Likewise.
91030         * lib/vasprintf.h: Likewise.
91031         * lib/verror.h: Likewise.
91032         * lib/xsetenv.h: Likewise.
91033         * lib/xvasprintf.h: Likewise.
91035 2007-03-08  Jim Meyering  <jim@meyering.net>
91037         * users.txt: Add parted.
91039         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
91041 2007-03-07  Bruno Haible  <bruno@clisp.org>
91043         * m4/printf.m4: Make the shell script snippets copy&pastable.
91045 2007-03-02  Bruno Haible  <bruno@clisp.org>
91047         * lib/netinet_in_.h: New file.
91048         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
91049         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
91050         * modules/netinet_in (Files): Add lib/netinet_in_.h.
91051         (Depends-on): Add absolute-header.
91052         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
91053         into netinet/in.h.
91055 2007-03-03  Bruno Haible  <bruno@clisp.org>
91057         * lib/sys_select_.h: New file.
91058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
91059         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
91060         * modules/sys_select (Files): Add lib/sys_select_.h.
91061         (Depends-on): Add absolute-header.
91062         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
91063         into sys/select.h.
91065 2007-03-02  Bruno Haible  <bruno@clisp.org>
91067         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
91068         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
91069         values.
91070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
91071         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91072         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
91073         * modules/sys_socket (Depends-on): Add absolute-header.
91074         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
91075         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
91076         (Include): Remove requirement of inclusion of <sys/types.h>.
91078 2007-03-02  Bruno Haible  <bruno@clisp.org>
91080         * lib/byteswap_.h (bswap_32): Fix formula.
91082 2007-03-06  Bruno Haible  <bruno@clisp.org>
91084         * modules/sprintf-posix-tests: New file.
91085         * tests/test-sprintf-posix.c: New file.
91087         * modules/sprintf-posix: New file.
91088         * lib/sprintf.c: New file.
91089         * m4/sprintf-posix.m4: New file.
91090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
91091         REPLACE_SPRINTF.
91092         * lib/stdio_.h (sprintf): New declaration.
91093         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
91094         REPLACE_SPRINTF.
91096 2007-03-06  Bruno Haible  <bruno@clisp.org>
91098         * modules/vsprintf-posix-tests: New file.
91099         * tests/test-vsprintf-posix.c: New file.
91100         * tests/test-sprintf-posix.h: New file.
91102         * modules/vsprintf-posix: New file.
91103         * lib/vsprintf.c: New file.
91104         * m4/vsprintf-posix.m4: New file.
91105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91106         REPLACE_VSPRINTF.
91107         * lib/stdio_.h (vsprintf): New declaration.
91108         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91109         REPLACE_VSPRINTF.
91111 2007-03-06  Bruno Haible  <bruno@clisp.org>
91113         * modules/vsnprintf (Depend-on): Remove minmax.
91115 2007-03-06  Bruno Haible  <bruno@clisp.org>
91117         * modules/snprintf-posix-tests: New file.
91118         * tests/test-snprintf-posix.c: New file.
91120         * modules/snprintf-posix: New file.
91121         * m4/snprintf-posix.m4: New file.
91122         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91123         gl_FUNC_SNPRINTF.
91124         (gl_FUNC_SNPRINTF): Invoke it.
91125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91126         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91127         is set.
91128         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91130 2007-03-06  Bruno Haible  <bruno@clisp.org>
91132         * modules/vsnprintf-posix-tests: New file.
91133         * tests/test-vsnprintf-posix.c: New file.
91134         * tests/test-snprintf-posix.h: New file.
91136         * modules/vsnprintf-posix: New file.
91137         * m4/vsnprintf-posix.m4: New file.
91138         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91139         gl_FUNC_VSNPRINTF.
91140         (gl_FUNC_VSNPRINTF): Invoke it.
91141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91142         * lib/stdio_.h (vsnprintf): Define as a replacement if
91143         REPLACE_VSNPRINTF is set.
91144         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91146 2007-03-06  Bruno Haible  <bruno@clisp.org>
91148         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91151 2007-03-06  Bruno Haible  <bruno@clisp.org>
91153         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91154         (asinl): Declare also if HAVE_DECL_ASINL is set.
91155         (atanl): Declare also if HAVE_DECL_ATANL is set.
91156         (ceill): Declare also if HAVE_DECL_CEILL is set.
91157         (cosl): Declare also if HAVE_DECL_COSL is set.
91158         (expl): Declare also if HAVE_DECL_EXPL is set.
91159         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91160         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91161         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91162         (logl): Declare also if HAVE_DECL_LOGL is set.
91163         (sinl): Declare also if HAVE_DECL_SINL is set.
91164         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91165         (tanl): Declare also if HAVE_DECL_TANL is set.
91166         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91169         declaration of frexpl, ldexpl.
91170         * modules/printf-frexpl (Depends-on): Add math.
91171         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91173 2007-03-05  Bruno Haible  <bruno@clisp.org>
91175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91176         frexpl and ldexpl are declared.
91177         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91179 2007-03-05  Bruno Haible  <bruno@clisp.org>
91181         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91182         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91184 2007-03-05  Bruno Haible  <bruno@clisp.org>
91186         * lib/stdio_.h: Include <stddef.h>.
91188 2007-03-05  Bruno Haible  <bruno@clisp.org>
91190         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91192 2007-03-05  Bruno Haible  <bruno@clisp.org>
91194         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91195         NetBSD 4, from Ralf Wildenhues.
91197 2007-03-04  Bruno Haible  <bruno@clisp.org>
91199         * lib/vasprintf.h: Update #if logic for the case when the functions
91200         exist but are overridden.
91202 2007-03-04  Bruno Haible  <bruno@clisp.org>
91204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91205         implementations: glibc-2.4 and MacOS X 10.3.
91206         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91207         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91208         * tests/test-vasprintf-posix.c (test_function): Likewise.
91210 2007-03-04  Bruno Haible  <bruno@clisp.org>
91212         * modules/vasprintf-posix-tests: New file.
91213         * tests/test-vasprintf-posix.c: New file.
91215         * modules/vasprintf-posix: New file.
91216         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91217         defined.
91218         * m4/vasprintf-posix.m4: New file.
91219         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91220         gl_FUNC_VASPRINTF.
91221         (gl_FUNC_VASPRINTF): Invoke it.
91222         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91223         here.
91224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91226 2007-03-04  Bruno Haible  <bruno@clisp.org>
91228         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91229         REPLACE_GETTIMEOFDAY.
91230         * modules/sys_time (Makefile.am): Likewise.
91231         * m4/sys_time_h.m4: Likewise.
91232         * m4/gettimeofday.m4: Likewise.
91234 2007-03-04  Bruno Haible  <bruno@clisp.org>
91236         * modules/vasnprintf-posix-tests: New file.
91237         * tests/test-vasnprintf-posix.c: New file.
91239         * modules/vasnprintf-posix: New file.
91240         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91241         printf-frexpl.h.
91242         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91243         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91244         REPLACE_VASNPRINTF is defined.
91245         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91246         gl_FUNC_VASNPRINTF.
91247         (gl_FUNC_VASNPRINTF): Invoke it.
91248         * m4/vasnprintf-posix.m4: New file.
91249         * m4/printf.m4: New file.
91251 2007-03-04  Bruno Haible  <bruno@clisp.org>
91253         Compile progreloc.c only if --enable-relocatable is specified.
91254         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91255         if --enable-relocatable was specified.
91256         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91257         lib_SOURCES.
91259 2007-03-04  Jim Meyering  <jim@meyering.net>
91261         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91262         Use it consistently, rather than enumerating errno constants.
91264 2007-03-04  Bruno Haible  <bruno@clisp.org>
91266         * modules/xvasprintf-tests: New file.
91267         * tests/test-xvasprintf.c: New file.
91269         * modules/vasprintf-tests: New file.
91270         * tests/test-vasprintf.c: New file.
91272         * modules/vasnprintf-tests: New file.
91273         * tests/test-vasnprintf.c: New file.
91275         * modules/vsnprintf-tests: New file.
91276         * tests/test-vsnprintf.c: New file.
91278         * modules/snprintf-tests: New file.
91279         * tests/test-snprintf.c: New file.
91281 2007-03-04  Bruno Haible  <bruno@clisp.org>
91283         Compile relocatable.c only if --enable-relocatable is specified.
91284         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91285         gl_RELOCATABLE_LIBRARY.
91286         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91287         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91288         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91289         gl_RELOCATABLE_LIBRARY.
91290         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91291         (Makefile.am): Remove lib_SOURCES.
91292         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91293         gl_RELOCATABLE_LIBRARY.
91294         (Makefile.am): Remove lib_SOURCES.
91295         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91296         always.
91297         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91298         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91300 2007-03-04  Bruno Haible  <bruno@clisp.org>
91302         * modules/argmatch-tests: New file.
91303         * tests/test-argmatch.c: New file.
91305         * tests/test-allocsa.c (main): Halve the number of loop runs.
91307         * modules/alloca-opt-tests: New file.
91308         * tests/test-alloca-opt.c: New file.
91310 2007-03-04  Jim Meyering  <jim@meyering.net>
91312         Work around difference between Linux ACLs and Solaris 10 ZFS.
91313         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91314         for EINVAL.
91316 2007-03-03  Bruno Haible  <bruno@clisp.org>
91318         * modules/relocatable-prog (Depends-on): Add back progreloc's
91319         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91321 2007-03-03  Bruno Haible  <bruno@clisp.org>
91323         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91324         * modules/relocatable-lib: New file.
91326 2007-03-03  Bruno Haible  <bruno@clisp.org>
91328         * modules/relocatable-prog: Renamed from modules/relocatable.
91329         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91331 2007-03-03  Bruno Haible  <bruno@clisp.org>
91333         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91334         m4/relocatable-lib.m4.
91335         (Depends-on): Remove 'relocatable'.
91336         (configure.ac): Add gl_RELOCATABLE_NOP.
91338 2007-03-03  Bruno Haible  <bruno@clisp.org>
91340         * modules/relocatable-prog-wrapper: New file.
91341         * modules/relocatable (Depends-on): Add it. Remove all other
91342         dependencies except progname.
91343         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91345         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91346         (gl_FUNC_STRERROR): Nop.
91347         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91349         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91350         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91352         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91353         (gl_FUNC_READLINK): Update.
91355         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91357 2007-03-03  Bruno Haible  <bruno@clisp.org>
91359         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91360         * modules/xreadlink (Depends-on): Add unistd.
91361         * modules/xreadlink-with-size (Depends-on): Likewise.
91363 2007-03-03  Bruno Haible  <bruno@clisp.org>
91365         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91366         extracted from gt_FUNC_SETENV.
91367         (gt_FUNC_SETENV): Remove macro.
91368         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91369         remove gt_FUNC_SETENV.
91371 2007-03-03  Bruno Haible  <bruno@clisp.org>
91373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91374         ENABLE_RELOCATABLE here.
91375         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91377 2007-03-03  Bruno Haible  <bruno@clisp.org>
91379         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91380         * tests/test-rbtreehash_list.c: Include progname.h.
91381         (main): Call set_program_name.
91383         * modules/rbtree-oset-tests (Depends-on): Add progname.
91384         * tests/test-rbtree_oset.c: Include progname.h.
91385         (main): Call set_program_name.
91387         * modules/rbtree-list-tests (Depends-on): Add progname.
91388         * tests/test-rbtree_list.c: Include progname.h.
91389         (main): Call set_program_name.
91391         * modules/linked-list-tests (Depends-on): Add progname.
91392         * tests/test-linked_list.c: Include progname.h.
91393         (main): Call set_program_name.
91395 2007-03-03  Bruno Haible  <bruno@clisp.org>
91397         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91398         All uses of __restrict changed to _Restrict_.
91399         * lib/glob_.h (__restrict): Remove macro.
91401 2007-03-02  Bruno Haible  <bruno@clisp.org>
91403         * modules/gettext (configure.ac): Require gettext infrastructure
91404         from version 0.16.1.
91406 2007-03-02  Bruno Haible  <bruno@clisp.org>
91408         * modules/linkedhash-list-tests (Depends-on): Add progname.
91409         * tests/test-linkedhash_list.c: Include progname.h.
91410         (main): Call set_program_name.
91412         * modules/carray-list-tests (Depends-on): Add progname.
91413         * tests/test-carray_list.c: Include progname.h.
91414         (main): Call set_program_name.
91416         * modules/avltreehash-list-tests (Depends-on): Add progname.
91417         * tests/test-avltreehash_list.c: Include progname.h.
91418         (main): Call set_program_name.
91420         * modules/avltree-oset-tests (Depends-on): Add progname.
91421         * tests/test-avltree_oset.c: Include progname.h.
91422         (main): Call set_program_name.
91424         * modules/avltree-list-tests (Depends-on): Add progname.
91425         * tests/test-avltree_list.c: Include progname.h.
91426         (main): Call set_program_name.
91428         * modules/array-oset-tests (Depends-on): Add progname.
91429         * tests/test-array_oset.c: Include progname.h.
91430         (main): Call set_program_name.
91432         * modules/array-list-tests (Depends-on): Add progname.
91433         * tests/test-array_list.c: Include progname.h.
91434         (main): Call set_program_name.
91436         * modules/argp-tests (Depends-on): Add progname.
91437         * tests/test-argp.c: Include argp.h first. Include progname.h.
91438         (main): Call set_program_name.
91440 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91442         * doc/gnulib-tool.texi (Initial import): Reword description of
91443         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91444         limited effect even if defined after the first system include.
91446 2007-03-01  Bruno Haible  <bruno@clisp.org>
91448         * build-aux/config.libpath: Update to libtool-1.5.22.
91449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91451 2007-03-01  Bruno Haible  <bruno@clisp.org>
91453         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91454         foo_CFLAGS.
91455         Reported by Ralf Wildenhues.
91457 2007-03-01  Bruno Haible  <bruno@clisp.org>
91459         * build-aux/install-reloc: Remove object files left over by some
91460         compilers.
91461         Reported by Ralf Wildenhues.
91463 2007-03-01  Bruno Haible  <bruno@clisp.org>
91465         * build-aux/install-reloc: Break long lines.
91467 2007-03-01  Bruno Haible  <bruno@clisp.org>
91469         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91470         Reported by Ralf Wildenhues.
91472 2007-03-01  Bruno Haible  <bruno@clisp.org>
91474         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91475         include ordering constraints.
91477 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91479         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91480         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91481         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91482         as another example.
91483         * lib/time_.h: Fix misspelling.
91484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91485         Require gl_HEADER_TIME_H_DEFAULTS.
91486         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91487         * m4/time_r.m4 (gl_TIME_R): Likewise.
91488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91490 2007-03-01  Bruno Haible  <bruno@clisp.org>
91492         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91493         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91495 2007-03-01  Jim Meyering  <jim@meyering.net>
91497         * modules/xreadlink (Maintainer): Add my name.
91498         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91500 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91501             Bruno Haible  <bruno@clisp.org>
91503         * build-aux/install-reloc: Compile also c-ctype.c.
91504         * build-aux/relocatable.sh.in: New file.
91505         * doc/relocatable.texi: New file.
91506         * doc/relocatable-maint.texi: New file.
91507         * doc/gnulib.texi: Include relocatable-maint.texi.
91508         * lib/progreloc.c: Include unistd.h unconditionally.
91509         * lib/relocwrapper.c: Include unistd.h unconditionally.
91510         Include c-ctype.h.
91511         (add_dotbin): Use c_tolower.
91512         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91513         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91514         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91515         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91516         to m4/relocatable-lib.m4.
91517         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91518         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91519         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91520         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91521         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91522         * modules/relocatable: New file.
91523         * modules/relocatable-lib: New file.
91524         * modules/relocatable-script: New file.
91526 2007-02-28  Bruno Haible  <bruno@clisp.org>
91528         Import --enable-relocatable infrastructure.
91529         * build-aux/config.libpath: New file, from GNU gettext.
91530         * build-aux/install-reloc: New file, from GNU gettext.
91531         * build-aux/reloc-ldflags: New file, from GNU gettext.
91532         * lib/relocatable.h: New file, from GNU gettext.
91533         * lib/relocatable.c: New file, from GNU gettext.
91534         * lib/relocwrapper.c: New file, from GNU gettext.
91535         * m4/relocatable.m4: New file, from GNU gettext.
91537 2007-02-28  Bruno Haible  <bruno@clisp.org>
91539         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91541         * modules/xreadlink: New file, from GNU gettext with modifications.
91542         * lib/xreadlink.c: New file, from GNU gettext.
91543         * lib/xreadlink.h: Add comments.
91544         (xreadlink): New declaration.
91546         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91547         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91548         lib/xreadlink-with-size.c.
91549         (configure.ac): Remove gl_XREADLINK invocation.
91550         (Makefile.am): Augment lib_SOURCES.
91551         * m4/xreadlink.m4: Remove file.
91552         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91553         (xreadlink_with_size): Renamed from xreadink.
91554         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91555         * modules/canonicalize (Depends-on): Replace xreadlink with
91556         xreadlink-with-size.
91557         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91559 2007-02-25  Jim Meyering  <jim@meyering.net>
91561         * build-aux/announce-gen: When complaining about excess arguments,
91562         list them.
91564 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91566         * README: Document signed integer overflow situation more
91567         accurately.
91569 2007-02-25  Bruno Haible  <bruno@clisp.org>
91571         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91572         'a' or 'A' conversion.
91574 2007-02-25  Bruno Haible  <bruno@clisp.org>
91576         * modules/filename: Renamed from modules/pathname.
91577         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91578         lib/concatpath.c with lib/concat-filename.c.
91579         (Makefile.am): Update.
91580         (Include): Replace pathname.h with filename.h.
91581         * lib/filename.h: Renamed from lib/pathname.h.
91582         (concatenated_filename): Renamed from concatenated_pathname.
91583         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91584         (concatenated_filename): Renamed from concatenated_pathname.
91585         * lib/findprog.c: Include filename.h instead of pathname.h.
91586         (find_in_path): Update.
91587         * lib/javacomp.c: Include filename.h instead of pathname.h.
91588         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91589         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91590         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91591         is_oldgcj_14_13_usable, is_javac_usable): Update.
91592         * lib/javaexec.c: Include filename.h instead of pathname.h.
91593         (execute_java_class): Update.
91594         * modules/findprog: Update.
91595         * modules/javacomp: Update.
91596         * modules/javaexec: Update.
91597         * MODULES.html.sh (File system functions): Add 'filename', remove
91598         'pathname'.
91600 2007-02-25  Bruno Haible  <bruno@clisp.org>
91602         * modules/printf-frexpl-tests: New file.
91603         * tests/test-printf-frexpl.c: New file.
91605         * modules/printf-frexpl: New file.
91606         * lib/printf-frexpl.h: New file.
91607         * lib/printf-frexpl.c: New file.
91608         * m4/printf-frexpl.m4: New file.
91610 2007-02-25  Bruno Haible  <bruno@clisp.org>
91612         * modules/printf-frexp-tests: New file.
91613         * tests/test-printf-frexp.c: New file.
91615         * modules/printf-frexp: New file.
91616         * lib/printf-frexp.h: New file.
91617         * lib/printf-frexp.c: New file.
91618         * m4/printf-frexp.m4: New file.
91620 2007-02-25  Bruno Haible  <bruno@clisp.org>
91622         Assume automake >= 1.10 for the tests.
91623         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91624         * modules/arctwo-tests: Likewise.
91625         * modules/argp-tests: Likewise.
91626         * modules/avltree-list-tests: Likewise.
91627         * modules/avltree-oset-tests: Likewise.
91628         * modules/avltreehash-list-tests: Likewise.
91629         * modules/carray-list-tests: Likewise.
91630         * modules/crc-tests: Likewise.
91631         * modules/des-tests: Likewise.
91632         * modules/gc-arcfour-tests: Likewise.
91633         * modules/gc-arctwo-tests: Likewise.
91634         * modules/gc-des-tests: Likewise.
91635         * modules/gc-hmac-md5-tests: Likewise.
91636         * modules/gc-hmac-sha1-tests: Likewise.
91637         * modules/gc-md2-tests: Likewise.
91638         * modules/gc-md4-tests: Likewise.
91639         * modules/gc-md5-tests: Likewise.
91640         * modules/gc-pbkdf2-sha1-tests: Likewise.
91641         * modules/gc-rijndael-tests: Likewise.
91642         * modules/gc-sha1-tests: Likewise.
91643         * modules/gc-tests: Likewise.
91644         * modules/getaddrinfo-tests: Likewise.
91645         * modules/hmac-md5-tests: Likewise.
91646         * modules/hmac-sha1-tests: Likewise.
91647         * modules/linked-list-tests: Likewise.
91648         * modules/linkedhash-list-tests: Likewise.
91649         * modules/lock-tests: Likewise.
91650         * modules/md2-tests: Likewise.
91651         * modules/md4-tests: Likewise.
91652         * modules/md5-tests: Likewise.
91653         * modules/rbtree-list-tests: Likewise.
91654         * modules/rbtree-oset-tests: Likewise.
91655         * modules/rbtreehash-list-tests: Likewise.
91656         * modules/read-file-tests: Likewise.
91657         * modules/rijndael-tests: Likewise.
91658         * modules/stdint-tests: Likewise.
91659         * modules/tls-tests: Likewise.
91661 2007-02-24  Bruno Haible  <bruno@clisp.org>
91663         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91664         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91665         function; instead check whether isnan with a double argument links.
91666         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91667         function; instead check whether isnan with a 'long double' argument
91668         links.
91669         Reported by Eric Blake <ebb9@byu.net>.
91671 2007-02-24  Bruno Haible  <bruno@clisp.org>
91673         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91674         defined.
91675         * lib/isnanl.c: Remove all code. Just include isnan.c.
91676         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91678 2007-02-25  Jim Meyering  <jim@meyering.net>
91680         Avoid conflicting types for 'unsetenv' on FreeBSD.
91681         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91682         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91683         in stdlib.h.
91685 2007-02-24  Bruno Haible  <bruno@clisp.org>
91687         * modules/isnanl-nolibm-tests: New file.
91688         * tests/test-isnanl.c: New file.
91690         * modules/isnanl-nolibm: New file.
91691         * lib/isnanl.h: New file.
91692         * lib/isnanl.c: New file.
91693         * m4/isnanl.m4: New file.
91695 2007-02-24  Bruno Haible  <bruno@clisp.org>
91697         * modules/isnan-nolibm-tests: New file.
91698         * tests/test-isnan.c: New file.
91700         * modules/isnan-nolibm: New file.
91701         * lib/isnan.h: New file.
91702         * lib/isnan.c: New file.
91703         * m4/isnan.m4: New file.
91705 2007-02-24  Bruno Haible  <bruno@clisp.org>
91707         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91708         assume that an exponent fits in 20 bits.
91710 2007-02-24  Jim Meyering  <jim@meyering.net>
91712         * m4/regex.m4: Update the description of the configure-time option,
91713         --without-included-regex, to state accurately what the defaults are,
91714         and perhaps to give people an idea why using this option is risky.
91716 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91719         loops on small arguments.  This attempts to avoid the problem
91720         Bruno Haible reported for AIX 4.3.2 in
91721         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91723 2007-02-23  Bruno Haible  <bruno@clisp.org>
91725         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91726         Needed for help2man.
91728 2007-02-23  Karl Berry  <karl@gnu.org>
91730         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91731         exists, foo.h should be cvs-ignored, not committed.
91733 2007-02-23  Eric Blake  <ebb9@byu.net>
91735         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91736         * lib/stat-time.h (includes): Likewise.
91737         * lib/utimecmp.c (includes): Likewise.
91738         * lib/utimens.h (includes): Likewise.
91739         * lib/getdate.y (includes): Also include "timespec.h" for use
91740         internal to the module.
91741         * modules/utimens (Depends-on): Revert yesterday's patch.
91742         * modules/nanosleep (Depends-on): Add missing dependency.
91744 2007-02-22  Bruno Haible  <bruno@clisp.org>
91746         * lib/glob.c: Don't include getlogin_r.h.
91748 2007-02-22  Jim Meyering  <jim@meyering.net>
91750         * modules/utimens (Depends-on): Add timespec, required for
91751         utimens.h's inclusion of timespec.h.
91753 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91755         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91756         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91757         Schwab in
91758         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91759         I'll try to think of a better way to fix the Solaris problem.
91761         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91762         like glibc; on Solaris 10, it fails with errno == EINVAL.
91763         POSIX says the behavior is unspecified if the first argument is NULL,
91764         so play it safe and never pass NULL to the system getcwd.
91766 2007-02-21  Jim Meyering  <jim@meyering.net>
91768         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91769         of gettimeofday.  It would conflict with the one now always
91770         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91771         an IRIX 6.5 build failure.
91773 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91775         Minor fixups to port to Solaris 10 with Sun C 5.8.
91776         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91777         * modules/getcwd (Depends-on): Add dirfd.
91778         * lib/putenv.c (putenv): #undef it.
91779         (rpl_putenv): New decl.
91780         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91782 2007-02-20  Bruno Haible  <bruno@clisp.org>
91784         * modules/stdio-tests: New file.
91785         * tests/test-stdio.c: New file.
91787         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91788         (Depends-on): Add stdio.
91789         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91790         (Include): Use <stdio.h> instead of vsnprintf.h.
91791         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91792         HAVE_DECL_VSNPRINTF.
91793         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91795         * modules/snprintf (Files): Remove lib/snprintf.h.
91796         (Depends-on): Add stdio.
91797         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91798         (Include): Use <stdio.h> instead of snprintf.h.
91799         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91800         HAVE_DECL_SNPRINTF.
91801         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91802         * lib/getaddrinfo.c: Likewise.
91804         * modules/stdio: New file.
91805         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91806         * lib/snprintf.h: Remove file.
91807         * lib/vsnprintf.h: Remove file.
91808         * lib/.cppi-disable: Remove snprintf.h.
91809         * m4/stdio_h.m4: New file.
91810         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91812 2007-02-20  Jim Meyering  <jim@meyering.net>
91814         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91815         used by e.g., mingw.  From Bruno Haible.
91817 2007-02-19  Bruno Haible  <bruno@clisp.org>
91819         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91820         warnings.
91821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91823 2007-02-19  Bruno Haible  <bruno@clisp.org>
91825         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91826         from mingw users.
91828 2007-02-19  Bruno Haible  <bruno@clisp.org>
91830         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91831         warnings.
91832         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91834 2007-02-19  Jim Meyering  <jim@meyering.net>
91836         Don't use FD after a successful "fdopendir (fd)".
91837         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91838         Reset it by calling dirfd on the just-obtained DIR*.
91840         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91841         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91843 2007-02-18  Bruno Haible  <bruno@clisp.org>
91845         * lib/readlink.c: Include <unistd.h>.
91846         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91847         HAVE_READLINK.
91848         * modules/readlink (Depends-on): Add unistd.
91849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91850         (Include): Add <unistd.h>.
91852         * lib/getlogin_r.h: Remove file.
91853         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91854         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91855         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91856         HAVE_DECL_GETLOGIN_R.
91857         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91858         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91859         (Include): Use <unistd.h> instead of getlogin_r.h.
91861         * lib/getcwd.h: Remove file.
91862         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91863         * lib/xgetcwd.c: Likewise.
91864         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91865         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91866         * modules/getcwd (Files): Remove lib/getcwd.h.
91867         (Depends-on): Add unistd.
91868         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91869         (Include): Use <unistd.h> instad of getcwd.h.
91871         * lib/ftruncate.c: Include <unistd.h> first.
91872         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91873         Set HAVE_FTRUNCATE.
91874         * modules/ftruncate (Depends-on): Add unistd.
91875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91877         * lib/fchdir.c: Include <unistd.h> first.
91878         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91880         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91881         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91882         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91884         * lib/dup2.c: Include <unistd.h> first.
91885         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91886         HAVE_DUP2.
91887         * modules/dup2 (Depends-on): Add unistd.
91888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91890         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91891         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91892         REPLACE_CHOWN. Don't define chown as a macro here.
91893         * modules/chown (Depends-on): Add unistd.
91894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91896         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91897         Add definition for GL_LINK_WARNING.
91898         (chown, dup2): New declarations.
91899         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91900         link warning.
91901         (ftruncate): New declaration.
91902         (getcwd): New declaration, taken from old getcwd.h.
91903         (getlogin_r): New declaration, taken from old getlogin_r.h.
91904         (readlink): New declaration.
91905         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91906         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91907         (gl_PREREQ_UNISTD): Remove macro.
91908         (gl_UNISTD_MODULE_INDICATOR): New macro.
91909         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91910         many new variables. Don't set UNISTD_H.
91911         * modules/unistd (Description): Change.
91912         (Depends-on): Add link-warning.
91913         (configure.ac): Update.
91914         (Makefile.am): Create unistd.h always. Substitute many new variables
91915         into it.
91917 2007-02-18  Bruno Haible  <bruno@clisp.org>
91919         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91920         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91921         HAVE_GETSUBOPT.
91922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91923         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91924         * lib/getsubopt.h: Remove file.
91925         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91926         (Depends-on): Add stdlib.
91927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91928         (Includes): Use <stdlib.h> instead of getsubopt.h.
91929         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91930         Set HAVE_GETSUBOPT.
91931         * lib/getsubopt.c: Don't include getsubopt.h.
91933 2007-02-18  Bruno Haible  <bruno@clisp.org>
91935         * modules/fchdir (Depends-on): Add dup2.
91937 2007-02-18  Bruno Haible  <bruno@clisp.org>
91939         * lib/stdlib_.h: Handle glibc's special invocation convention
91940         specially.
91942 2007-02-18  Bruno Haible  <bruno@clisp.org>
91944         * modules/stdlib-tests: New file.
91945         * tests/test-stdlib.c: New file.
91947         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91948         (Depends-on): Add stdlib.
91949         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91950         (Includes): Use <stdlib.h> instead of mkstemp.h.
91951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91952         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91953         * lib/mkstemp.c: Don't include mkstemp.h.
91954         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91955         * lib/stdlib--.h: Don't include mkstemp.h.
91957         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91958         (Depends-on): Add stdlib.
91959         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91960         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91961         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91962         HAVE_MKDTEMP.
91963         * lib/mkdtemp.c: Don't include mkdtemp.h.
91964         * lib/clean-temp.c: Don't include mkdtemp.h.
91966         * modules/exit (Files): Remove lib/exit.h.
91967         (Depends-on): Add stdlib.
91968         (Makefile.am): Remove lib_SOURCES.
91969         (Include): Use <stdlib.h> instead of exit.h.
91970         * lib/argmatch.c: Don't include exit.h.
91971         * lib/execute.c: Likewise.
91972         * lib/pagealign_alloc.c: Likewise.
91973         * lib/pipe.c: Likewise.
91974         * lib/wait-process.c: Likewise.
91975         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91976         * lib/exitfail.c: Likewise.
91977         * lib/savewd.c: Likewise.
91978         * lib/xsetenv.c: Likewise.
91980         * modules/stdlib: New file.
91981         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91982         and extra comments about mkstemp().
91983         * lib/exit.h: Remove file.
91984         * lib/mkdtemp.h: Remove file.
91985         * lib/mkstemp.h: Remove file.
91986         * m4/stdlib_h.m4: New file.
91987         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91989 2007-02-18  Bruno Haible  <bruno@clisp.org>
91991         * modules/math-tests: New file.
91992         * tests/test-math.c: New file.
91994         * modules/math: New file.
91995         * modules/mathl (Files): Remove lib/mathl.h.
91996         (Depends-on): Add math.
91997         (Makefile.am): Don't mention mathl.h.
91998         (Include): Use <math.h> instead of mathl.h.
91999         * lib/math_.h: New file.
92000         * lib/mathl.h: Remove file.
92001         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
92002         mathl.h.
92003         * lib/asinl.c: Likewise.
92004         * lib/atanl.c: Likewise.
92005         * lib/ceill.c: Likewise.
92006         * lib/cosl.c: Likewise.
92007         * lib/expl.c: Likewise.
92008         * lib/floorl.c: Likewise.
92009         * lib/frexpl.c: Likewise.
92010         * lib/ldexpl.c: Likewise.
92011         * lib/logl.c: Likewise.
92012         * lib/sincosl.c: Likewise.
92013         * lib/sinl.c: Likewise.
92014         * lib/sqrtl.c: Likewise.
92015         * lib/tanl.c: Likewise.
92016         * lib/trigl.c: Likewise.
92017         * m4/math_h.m4: New file.
92018         * MODULES.html.sh (Mathematics): Add math.
92020 2007-02-17  Bruno Haible  <bruno@clisp.org>
92022         * modules/wctype-tests: New file.
92023         * tests/test-wctype.c: New file.
92025         * modules/wchar-tests: New file.
92026         * tests/test-wchar.c: New file.
92028         * modules/unistd-tests: New file.
92029         * tests/test-unistd.c: New file.
92031         * modules/time-tests: New file.
92032         * tests/test-time.c: New file.
92034         * modules/sysexits-tests: New file.
92035         * tests/test-sysexits.c: New file.
92037         * modules/sys_time-tests: New file.
92038         * tests/test-sys_time.c: New file.
92040         * modules/sys_stat-tests: New file.
92041         * tests/test-sys_stat.c: New file.
92043         * modules/sys_socket-tests: New file.
92044         * tests/test-sys_socket.c: New file.
92046         * modules/sys_select-tests: New file.
92047         * tests/test-sys_select.c: New file.
92049         * modules/string-tests: New file.
92050         * tests/test-string.c: New file.
92052         * modules/stdbool-tests: New file.
92053         * tests/test-stdbool.c: New file.
92055         * modules/netinet_in-tests: New file.
92056         * tests/test-netinet_in.c: New file.
92058         * modules/inttypes-tests: New file.
92059         * tests/test-inttypes.c: New file.
92061         * modules/fcntl-tests: New file.
92062         * tests/test-fcntl.c: New file.
92064         * modules/byteswap-tests: New file.
92065         * tests/test-byteswap.c: New file.
92067         * modules/arpa_inet-tests: New file.
92068         * tests/test-arpa_inet.c: New file.
92070 2007-02-17  Bruno Haible  <bruno@clisp.org>
92072         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
92073         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
92074         if the corresponding module is not enabled. Emit link warnings if
92075         the function is used nevertheless.
92076         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
92077         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
92078         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
92079         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92080         * modules/inttypes (Depends-on): Add link-warning.
92081         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92082         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
92083         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
92084         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
92085         * modules/imaxdiv (configure.ac): Likewise.
92086         * modules/strtoimax (configure.ac): Likewise.
92087         * modules/strtoumax (configure.ac): Likewise.
92089 2007-02-17  Bruno Haible  <bruno@clisp.org>
92091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
92092         gl_STRING_MODULE_INDICATOR_DEFAULTS.
92093         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
92094         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
92096 2007-02-17  Bruno Haible  <bruno@clisp.org>
92098         * modules/link-warning: New file.
92099         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
92100         * lib/string_.h (GL_LINK_WARNING): Remove definition.
92101         * modules/string (Depends-on): Add link-warning.
92102         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92103         string.h.
92104         * MODULES.html.sh (Support for building libraries and executables): Add
92105         link-warning.
92107 2007-02-17  Bruno Haible  <bruno@clisp.org>
92109         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92110         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92111         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92112         long lines.
92114 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92115             Bruno Haible  <bruno@clisp.org>
92117         * modules/tmpfile: New file.
92118         * lib/tmpfile.c: New file.
92119         * m4/tmpfile.m4: New file.
92120         * MODULES.html.sh (func_all_modules): New section "Input/output".
92122 2007-02-15  Bruno Haible  <bruno@clisp.org>
92124         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92125         (supports_delete_on_close): New function.
92126         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92128 2007-02-14  Bruno Haible  <bruno@clisp.org>
92130         * modules/mbspcasecmp-tests: New file.
92131         * tests/test-mbspcasecmp.sh: New file.
92132         * tests/test-mbspcasecmp.c: New file.
92134         New module mbspcasecmp.
92135         * modules/mbspcasecmp: New file.
92136         * lib/mbspcasecmp.c: New file.
92137         * lib/string_.h (strncasecmp): Change warning message.
92138         (mbspcasecmp): New declaration.
92139         * m4/mbspcasecmp.m4: New file.
92140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92141         GNULIB_MBSPCASECMP.
92142         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92143         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92145 2007-02-14  Bruno Haible  <bruno@clisp.org>
92147         * modules/mbsncasecmp-tests: New file.
92148         * tests/test-mbsncasecmp.sh: New file.
92149         * tests/test-mbsncasecmp.c: New file.
92151         New module mbsncasecmp.
92152         * modules/mbsncasecmp: New file.
92153         * lib/mbsncasecmp.c: New file.
92154         * lib/string_.h (mbsncasecmp): New declaration.
92155         * m4/mbsncasecmp.m4: New file.
92156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92157         GNULIB_MBSNCASECMP.
92158         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92159         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92161 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92163         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92164         Verify that it doesn't overlap with our flags.
92165         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92166         do not have the desired effect in multibyte locales; instead, use
92167         mbscasecmp.
92168         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92169         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92170         we don't require GNU fnmatch ourselves (if our users require it, they
92171         should do so explicitly).
92173         Fix regex code so it doesn't rely on strcasecmp.
92174         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92175         Otherwise, include gnulib's langinfo.h.
92176         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92177         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92178         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92179         * modules/regex (FILES): Remove m4/codeset.m4.
92180         (Depends-on): Add localcharset.  Remove strcase.
92182 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92184         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92185         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92187 2007-02-13  Bruno Haible  <bruno@clisp.org>
92189         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92192 2007-02-12  Bruno Haible  <bruno@clisp.org>
92194         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92195         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92196         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92197         time warning rather than a link error.
92199 2007-02-12  Bruno Haible  <bruno@clisp.org>
92201         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92202         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92203         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92205 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92207         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92208         args, not 2.
92210 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92212         New module 'time', so that apps can include <time.h> as per
92213         POSIX and GNU instead of separate include files like time_r.h
92214         and timegm.h.  This implementation tries out a simpler approach
92215         for replacing decls in standard include files (as compared to
92216         the string module), somewhat as an experiment.
92218         * config/srclist.txt: Comment out mktime.c for now.
92219         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92220         since it doesn't apply any more.  Use generic wording instead.
92221         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92222         'time'.
92223         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92224         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92225         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92226         Don't include <sys/types.h>; no longer needed since we assume C89.
92227         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92228         * lib/strftime.c: Likewise.
92229         * lib/time_r.c: Likewise.
92230         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92231         * lib/nanosleep.c: Include <time.h> first, to check interface.
92232         * lib/strptime.c: Likewise.
92233         * lib/time_r.c: Likewise.
92234         * lib/timegm.c: Likewise.
92235         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92236         needed.
92237         * lib/timegm.c: Don't include timegm.h; no longer needed.
92238         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92239         time.h now handles any problems in that area.
92240         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92241         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92242         that time.h defines struct timespec.
92243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92244         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92245         handles that.
92246         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92247         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92248         needed.  Set REPLACE_LOCALTIME.
92249         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92250         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92251         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92252         nanosleep; time_h.m4 now does that.  Don't require
92253         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92254         module handles this now.
92255         * modules/getdate (Depends-on): Remove timespec.  Add time.
92256         * modules/nanosleep (Depends-on): Likewise.
92257         * modules/stat-time (Depends-on): Likewise.
92258         * modules/nanosleep (Include): Include time.h, not timespec.h.
92259         * modules/strptime (Files): Remove lib/strptime.h.
92260         (Depends-on): Add extensions, time.
92261         (Include): Include time.h, not strptime.h.
92262         * modules/time_r (Files): Remove lib/time_r.h.
92263         (Depends-on): Add time.
92264         (Include): Include time.h, not time_r.h.
92265         * modules/timegm: Likewise.
92266         * modules/timespec (Description): Now does timespec-related decls
92267         of our own, instead of struct timespec itself.
92268         (Depends-on): Add time; remove extensions.
92269         (Maintainer): Add self.
92270         * modules/utimecmp (Depends-on): Add time; remove timespec.
92271         * modules/utimens (Depends-on): Likewise.
92272         * modules/xnanosleep (Depends-on): Likewise.
92274 2007-02-11  Bruno Haible  <bruno@clisp.org>
92276         * lib/c-strstr.c: Include allocsa.h.
92277         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92278         * lib/c-strcasestr.c: Include allocsa.h.
92279         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92280         * lib/strcasestr.c: Include allocsa.h.
92281         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92282         * lib/mbsstr.c: Include allocsa.h.
92283         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92284         allocsa/freesa instead of malloc/free.
92285         * lib/mbscasestr.c: Include allocsa.h.
92286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92287         allocsa/freesa instead of malloc/free.
92288         * modules/c-strstr (Depends-on): Add allocsa.
92289         * modules/c-strcasestr (Depends-on): Likewise.
92290         * modules/strcasestr (Depends-on): Likewise.
92291         * modules/mbsstr (Depends-on): Likewise.
92292         * modules/mbscasestr (Depends-on): Likewise.
92294 2007-02-11  Bruno Haible  <bruno@clisp.org>
92296         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92298         * modules/mbsspn-tests: New file.
92299         * tests/test-mbsspn.sh: New file.
92300         * tests/test-mbsspn.c: New file.
92302 2007-02-11  Bruno Haible  <bruno@clisp.org>
92304         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92306         * modules/mbspbrk-tests: New file.
92307         * tests/test-mbspbrk.sh: New file.
92308         * tests/test-mbspbrk.c: New file.
92310 2007-02-11  Bruno Haible  <bruno@clisp.org>
92312         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92313         unneeded cast.
92315         * modules/mbscspn-tests: New file.
92316         * tests/test-mbscspn.sh: New file.
92317         * tests/test-mbscspn.c: New file.
92319 2007-02-11  Bruno Haible  <bruno@clisp.org>
92321         * modules/mbscasecmp-tests: New file.
92322         * tests/test-mbscasecmp.sh: New file.
92323         * tests/test-mbscasecmp.c: New file.
92325 2007-02-11  Bruno Haible  <bruno@clisp.org>
92327         Ensure O(n) worst-case complexity of mbscasestr.
92328         * lib/mbscasestr.c: Include stdbool.h.
92329         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92330         functions.
92331         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92332         the bookkeeping indicates that it's worth it.
92333         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92335         * modules/mbscasestr-tests: New file.
92336         * tests/test-mbscasestr1.c: New file.
92337         * tests/test-mbscasestr2.sh: New file.
92338         * tests/test-mbscasestr2.c: New file.
92339         * tests/test-mbscasestr3.sh: New file.
92340         * tests/test-mbscasestr3.c: New file.
92341         * tests/test-mbscasestr4.sh: New file.
92342         * tests/test-mbscasestr4.c: New file.
92343         * m4/locale-tr.m4: New file.
92345 2007-02-11  Bruno Haible  <bruno@clisp.org>
92347         Ensure O(n) worst-case complexity of mbsstr.
92348         * lib/mbsstr.c: Include stdbool.h.
92349         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92350         functions.
92351         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92352         bookkeeping indicates that it's worth it.
92353         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92355         * modules/mbsstr-tests: New file.
92356         * tests/test-mbsstr1.c: New file.
92357         * tests/test-mbsstr2.sh: New file.
92358         * tests/test-mbsstr2.c: New file.
92359         * tests/test-mbsstr3.sh: New file.
92360         * tests/test-mbsstr3.c: New file.
92361         * m4/locale-fr.m4: New file.
92363 2007-02-11  Bruno Haible  <bruno@clisp.org>
92365         * lib/mbsrchr.c (mbsrchr): Fix bug.
92367         * modules/mbsrchr-tests: New file.
92368         * tests/test-mbsrchr.sh: New file.
92369         * tests/test-mbsrchr.c: New file.
92371 2007-02-11  Bruno Haible  <bruno@clisp.org>
92373         * lib/mbschr.c (mbschr): Fix bug.
92375         * modules/mbschr-tests: New file.
92376         * tests/test-mbschr.sh: New file.
92377         * tests/test-mbschr.c: New file.
92378         * m4/locale-zh.m4: New file.
92380 2007-02-11  Bruno Haible  <bruno@clisp.org>
92382         Support for copying multibyte string iterators.
92383         * lib/mbiter.h: Include <string.h>.
92384         (mbiter_multi_copy): New function.
92385         (mbi_copy): New macro.
92386         * lib/mbuiter.h: Include <string.h>.
92387         (mbuiter_multi_copy): New function.
92388         (mbui_copy): New macro.
92390 2007-02-11  Bruno Haible  <bruno@clisp.org>
92392         New module mbslen.
92393         * modules/mbslen: New file.
92394         * lib/mbslen.c: New file.
92395         * lib/string_.h (mbslen): New declaration.
92396         * m4/mbslen.m4: New file.
92397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92398         GNULIB_MBSLEN.
92399         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92400         * MODULES.html.sh (Internationalization functions): Add mbslen.
92402 2007-02-11  Bruno Haible  <bruno@clisp.org>
92404         Ensure O(n) worst-case complexity of strcasestr substitute.
92405         * lib/strcasestr.c: Include stdbool.h.
92406         (knuth_morris_pratt): New function.
92407         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92408         bookkeeping indicates that it's worth it.
92409         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92411         * modules/strcasestr-tests: New file.
92412         * tests/test-strcasestr.c: New file.
92414 2007-02-11  Bruno Haible  <bruno@clisp.org>
92416         Ensure O(n) worst-case complexity of c_strcasestr.
92417         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92418         (knuth_morris_pratt): New function.
92419         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92420         the bookkeeping indicates that it's worth it.
92421         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92423         * modules/c-strcasestr-tests: New file.
92424         * tests/test-c-strcasestr.c: New file.
92426 2007-02-11  Bruno Haible  <bruno@clisp.org>
92428         Ensure O(n) worst-case complexity of c_strstr.
92429         * lib/c-strstr.c: Include stdbool.h, string.h.
92430         (knuth_morris_pratt): New function.
92431         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92432         bookkeeping indicates that it's worth it.
92433         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92435         * lib/c-strstr.c: Complete rewrite for maintainability.
92437         * modules/c-strstr-tests: New file.
92438         * tests/test-c-strstr.c: New file.
92440 2007-02-11  Bruno Haible  <bruno@clisp.org>
92442         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92443         5.2.1 and earlier, whereby \055 was treated just like the range
92444         delimiter '-'.
92445         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92447 2007-02-08  Bruno Haible  <bruno@clisp.org>
92449         * modules/regex (Depends-on): Add stdbool.
92450         Reported by Dalibor Topic <robilad@kaffe.org>.
92452 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92454         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92455         Prefer returning from main to exiting from it.
92456         Remove unnecessary parens after sizeof.
92458 2007-02-05  Bruno Haible  <bruno@clisp.org>
92460         New module mbssep.
92461         * modules/mbssep: New file.
92462         * lib/mbssep.c: New file.
92463         * lib/string_.h (strsep): Add a conditional link warning.
92464         (mbssep): New declaration.
92465         * m4/mbssep.m4: New file.
92466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92467         GNULIB_MBSSEP.
92468         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92469         * MODULES.html.sh (Internationalization functions): Add mbssep.
92471 2007-02-05  Bruno Haible  <bruno@clisp.org>
92473         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92474         Optimize search in case of 1 delimiter.
92476 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92478         * lib/acl.h: Include sys/types.h before sys/acl.h.
92480 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92482         Merge upstream fix for glibc bugzilla #3957:
92484         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92486         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92487         bit for RE_HAT_LISTS_NOT_NEWLINE.
92488         (build_charclass_op): Remove bogus comment.
92490 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92492         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92494 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92496         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92497         * lib/memmem.c [!defined _LIBC]: Include config.h.
92499 2007-02-04  Bruno Haible  <bruno@clisp.org>
92501         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92502         warning message.
92504 2007-02-04  Bruno Haible  <bruno@clisp.org>
92506         New module mbstok_r.
92507         * modules/mbstok_r: New file.
92508         * lib/mbstok_r.c: New file.
92509         * lib/string_.h (strtok_r): Change argument names to match the
92510         comments. Add a conditional link warning.
92511         (mbstok_r): New declaration.
92512         * m4/mbstok_r.m4: New file.
92513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92514         GNULIB_MBSTOK_R.
92515         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92516         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92518 2007-02-04  Bruno Haible  <bruno@clisp.org>
92520         New module mbsspn.
92521         * modules/mbsspn: New file.
92522         * lib/mbsspn.c: New file.
92523         * lib/string_.h (strspn): Add a conditional link warning.
92524         (mbsspn): New declaration.
92525         * m4/mbsspn.m4: New file.
92526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92527         GNULIB_MBSSPN.
92528         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92529         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92531 2007-02-04  Bruno Haible  <bruno@clisp.org>
92533         New module mbspbrk.
92534         * modules/mbspbrk: New file.
92535         * lib/mbspbrk.c: New file.
92536         * lib/string_.h (strpbrk): Add a conditional link warning.
92537         (mbspbrk): New declaration.
92538         * m4/mbspbrk.m4: New file.
92539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92540         GNULIB_MBSPBRK.
92541         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92542         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92544 2007-02-04  Bruno Haible  <bruno@clisp.org>
92546         New module mbscspn.
92547         * modules/mbscspn: New file.
92548         * lib/mbscspn.c: New file.
92549         * lib/string_.h (strcspn): Add a conditional link warning.
92550         (mbscspn): New declaration.
92551         * m4/mbscspn.m4: New file.
92552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92553         GNULIB_MBSCSPN.
92554         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92555         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92557 2007-02-04  Bruno Haible  <bruno@clisp.org>
92559         New module mbscasestr, reduced goal of strcasestr.
92560         * modules/mbscasestr: New file.
92561         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92562         (mbscasestr): Renamed from strcasestr.
92563         * lib/strcasestr.c: Don't include mbuiter.h.
92564         (strcasestr): Remove support for multibyte locales.
92565         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92566         Change the conditional link warning.
92567         (mbscasestr): New declaration.
92568         * m4/mbscasestr.m4: New file.
92569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92570         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92571         REPLACE_STRCASESTR.
92572         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92574         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92575         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92576         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92577         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92578         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92579         (Depends-on): Remove mbuiter.
92580         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92582 2007-02-04  Bruno Haible  <bruno@clisp.org>
92584         Simplify handling of strncasecmp.
92585         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92586         the conditional link warning.
92587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92588         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92589         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92590         * modules/strcase (configure.ac): Don't invoke
92591         gl_STRING_MODULE_INDICATOR.
92592         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92594 2007-02-04  Bruno Haible  <bruno@clisp.org>
92596         New module mbscasecmp, reduced goal of strcasecmp.
92597         * modules/mbscasecmp: New file.
92598         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92599         (mbscasecmp): Renamed from strcasecmp.
92600         * lib/strcasecmp.c: Don't include mbuiter.h.
92601         (strcasecmp): Remove support for multibyte locales.
92602         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92603         Change the conditional link warning.
92604         (mbscasecmp): New declaration.
92605         * m4/mbscasecmp.m4: New file.
92606         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92607         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92608         REPLACE_STRCASECMP.
92609         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92611         GNULIB_MBSCASECMP.
92612         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92613         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92614         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92615         (Depends-on): Remove mbuiter.
92616         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92618 2007-02-04  Bruno Haible  <bruno@clisp.org>
92620         New module mbsstr. Remove module strstr.
92621         * modules/mbsstr: New file.
92622         * modules/strstr: Remove file.
92623         * lib/mbsstr.c: Renamed from lib/strstr.c.
92624         (mbsstr): Renamed from strstr.
92625         * lib/string_.h (strstr): Remove declaration. Change the conditional
92626         link warning.
92627         (mbsstr): New declaration.
92628         * m4/mbsstr.m4: New file.
92629         * m4/strstr.m4: Remove file.
92630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92631         REPLACE_STRSTR.
92632         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92633         Don't initialize GNULIB_STRSTR.
92634         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92635         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92636         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92637         (Support for systems lacking ANSI C 89): Remove strstr.
92639 2007-02-04  Bruno Haible  <bruno@clisp.org>
92641         New module mbsrchr.
92642         * modules/mbsrchr: New file.
92643         * lib/mbsrchr.c: New file.
92644         * lib/string_.h (strrchr): Add a conditional link warning.
92645         (mbsrchr): New declaration.
92646         * m4/mbsrchr.m4: New file.
92647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92648         GNULIB_MBSRCHR.
92649         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92650         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92652 2007-02-04  Bruno Haible  <bruno@clisp.org>
92654         New module mbschr.
92655         * modules/mbschr: New file.
92656         * lib/mbschr.c: New file.
92657         * lib/string_.h (strchr): Add a conditional link warning.
92658         (mbschr): New declaration.
92659         * m4/mbschr.m4: New file.
92660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92661         GNULIB_MBSCHR.
92662         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92663         * MODULES.html.sh (Internationalization functions): Add mbschr.
92665 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92667         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92669         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92671 2007-02-04  Bruno Haible  <bruno@clisp.org>
92673         New module description section 'configure.ac-early'.
92674         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92675         (func_get_autoconf_early_snippet): New function.
92676         (func_import, func_create_testdir): Use it. Remove special cases for
92677         modules 'extensions' and 'lock'.
92678         * modules/extensions (configure.ac-early): Require
92679         gl_USE_SYSTEM_EXTENSIONS.
92680         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92682 2007-02-04  Bruno Haible  <bruno@clisp.org>
92684         Make use of gcj-4.3's -fsource and -ftarget option.
92685         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92686         and if so try the options -fsource and -ftarget.
92687         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92688         source_version, ftarget_option, target_version arguments.
92689         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92690         (is_envjavac_oldgcj_14_14_usable): Renamed from
92691         is_envjavac_gcj_14_14_usable.
92692         (is_envjavac_oldgcj_14_13_usable): Renamed from
92693         is_envjavac_gcj_14_13_usable.
92694         (is_gcj_present): Update.
92695         (is_gcj_43, is_gcj43_usable): New functions.
92696         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92697         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92698         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92699         try the options -fsource and -ftarget.
92701 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92703         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92704         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92705         larger value.
92707 2007-02-03  Jim Meyering  <jim@meyering.net>
92709         Give tools a better chance to allocate space for very large buffers.
92710         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92712         Make pwd and readlink work also when run with an unreadable parent dir
92713         on systems with openat support.
92714         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92715         provided getcwd function, even when we have openat support.
92716         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92718 2007-02-02  Bruno Haible  <bruno@clisp.org>
92720         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92721         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92722         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92723         portability problems if one of these functions is only used on specific
92724         platforms.
92725         Reported by Paul Eggert.
92727 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92729         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92730         is causing more trouble than it's curing.
92731         * lib/regex_internal.h (__mempcpy): Remove.
92732         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92733         (and make the code a tad smaller to boot).
92734         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92736 2007-02-02  Jim Meyering  <jim@meyering.net>
92738         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92739         section, not in the Makefile.am: one.
92741 2007-02-02  Eric Blake  <ebb9@byu.net>
92743         * lib/strchrnul.c: Always include config.h first.
92745         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92746         gnulib strstr is not necessary here.
92748 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92750         * m4/socklen.m4: Fix typo.
92752 2007-02-02  Eric Blake  <ebb9@byu.net>
92754         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92755         * modules/netinet_in (Makefile.am): Likewise.
92757 2007-02-01  Bruno Haible  <bruno@clisp.org>
92759         * lib/string_.h (GL_LINK_WARNING): New macro.
92760         (strcasecmp, strstr, strcasestr): If provided by the system,
92761         conditionally define as a macro that leads to a warning instead of to
92762         an error.
92763         (strncasecmp): Conditionally define as a macro that leads to a warning.
92765 2007-02-01  Karl Berry  <karl@gnu.org>
92767         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92769 2007-02-01  Bruno Haible  <bruno@clisp.org>
92771         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92772         renamings.
92774 2007-02-01  Eric Blake  <ebb9@byu.net>
92776         * modules/regex (Depends-on): Revert dependence on mempcpy.
92777         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92778         module's definition of mempcpy.
92779         Reported by Paul Eggert.
92781 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92783         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92784         the symbol XYZ before redefining it.  This fixes a problem with
92785         programs that don't use XYZ, when compiled on systems that define
92786         XYZ to something else.
92788 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92790         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92791         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92792         writeable to group or other and (2) is intended to have a special
92793         mode bit that is set or cleared.  In such a case, the directory
92794         should be neither group- nor other-writeable until the special
92795         mode bits are right.
92797 2007-01-31  Eric Blake  <ebb9@byu.net>
92799         * modules/mountlist (Depends-on): Add strstr.
92801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92802         bug.
92803         * modules/string (Makefile.am): Remove redundant replacement.
92804         * modules/regex (Depends-on): Add mempcpy.
92806 2007-01-31  Bruno Haible  <bruno@clisp.org>
92808         New module description field 'Link'.
92809         * gnulib-tool (func_usage): Document --extract-link-directive.
92810         (sed_extract_prog): Recognize 'Link' directive.
92811         (func_get_link_directive): New function.
92812         (func_import): Show summary of link directives.
92813         Handle --extract-link-directive option.
92814         * modules/acl (Link): New section.
92815         * modules/clock-time (Link): New section.
92816         * modules/euidaccess (Link): New section.
92817         * modules/gettext (Link): New section.
92818         * modules/iconv (Link): New section.
92819         * modules/lock (Link): New section.
92820         * modules/nanosleep (Link): New section.
92821         * modules/readline (Link): New section.
92823 2007-01-27  Bruno Haible  <bruno@clisp.org>
92825         Enforce the use of gnulib modules for unportable <string.h> functions.
92826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92827         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92828         (gl_HEADER_STRING_H_BODY): Require it.
92829         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92830         the symbol XYZ to one that gives a link error.
92831         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92832         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92833         * modules/mempcpy (configure.ac): Likewise.
92834         * modules/memrchr (configure.ac): Likewise.
92835         * modules/stpcpy (configure.ac): Likewise.
92836         * modules/stpncpy (configure.ac): Likewise.
92837         * modules/strcase (configure.ac): Likewise.
92838         * modules/strcasestr (configure.ac): Likewise.
92839         * modules/strchrnul (configure.ac): Likewise.
92840         * modules/strdup (configure.ac): Likewise.
92841         * modules/strndup (configure.ac): Likewise.
92842         * modules/strnlen (configure.ac): Likewise.
92843         * modules/strpbrk (configure.ac): Likewise.
92844         * modules/strsep (configure.ac): Likewise.
92845         * modules/strstr (configure.ac): Likewise.
92846         * modules/strtok_r (configure.ac): Likewise.
92848 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92850         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92852 2007-01-30  Jim Meyering  <jim@meyering.net>
92854         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92856 2007-01-29  Bruno Haible  <bruno@clisp.org>
92858         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92859         * lib/execute.c: Likewise.
92860         * lib/pipe.c: Likewise.
92861         * lib/printf-args.h: Likewise.
92862         * lib/printf-args.c: Likewise.
92863         * lib/printf-parse.c: Likewise.
92864         * lib/vasnprintf.c: Likewise.
92866 2007-01-29  Eric Blake  <ebb9@byu.net>
92868         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92869         declaration.
92871 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92873         * lib/strptime.h (strptime): Use 'restrict' for args where
92874         POSIX requires this.
92875         * lib/strptime.c (strptime): Likewise.
92876         Change license notice from LGPL to GPL, since gnulib-tool will
92877         change this as needed.
92878         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92879         defined.
92880         Include "strptime.h" first, to check interface.
92881         Do not #undef _LIBC and _NL_CURRENT.
92882         Do not include <stdlib.h>; no longer needed.
92883         Include "time_r.h" and declare ptime_locale_status
92884         only if _LIBC is not defined.
92885         (__P): Remove unused macro.
92886         (match_string): Bring back glibc version, but use it only if _LIBC
92887         is defined.
92888         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92889         Remove unnecessary assertion and abort() call.
92890         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92891         * m4/strptime.m4: Fix serial number comment.
92892         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92893         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92894         (Depends-on): Add time_r.
92896 2007-01-29  Bruno Haible  <bruno@clisp.org>
92898         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92899         strptime.
92900         * modules/strptime (Depends-on): Add stdbool.
92901         * lib/strptime.h: Include <time.h> always. Add comments.
92903 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92905         * modules/strptime: New file.
92906         * lib/strptime.h: New file.
92907         * lib/strptime.c: New file.
92908         * m4/strptime.m4: New file.
92910 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92912         * MODULES.html.sh: New module mpsort.
92913         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92915         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92916         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92917         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92918         All uses changed.
92919         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92920         All uses changed.
92921         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92922         to _Restrict_.
92923         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92924         the parameter matches the prototype.
92926 2007-01-28  Jim Meyering  <jim@meyering.net>
92928         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92929         sys/time.h here, reverting that part of the previous patch:
92930         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92932 2007-01-28  Bruno Haible  <bruno@clisp.org>
92934         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92935         value of $(SYS_TIME_H).
92936         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92937         remove it conditionally, too. [added by Jim Meyering]
92938         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92939         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92940         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92941         GETTIMEOFDAY_REPLACEMENT to 1.
92943 2007-01-28  Bruno Haible  <bruno@clisp.org>
92945         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92946         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92948         Set UNISTD_H instead of UNISTD_H2.
92949         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92951 2007-01-28  Bruno Haible  <bruno@clisp.org>
92953         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92954         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92956 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92958         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92959         (func_create_testdir): Ensure C locale for `grep' and `tr'
92960         character ranges.
92961         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92962         ACLOCAL_AMFLAGS parsing state machine.
92964 2007-01-27  Bruno Haible  <bruno@clisp.org>
92966         * modules/unistr/base: Update.
92968 2007-01-27  Bruno Haible  <bruno@clisp.org>
92970         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92971         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92972         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92973         modules/unistr/u32-mbtouc.
92974         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92975         * lib/unistr.h: Update.
92976         * lib/linebreak.c: Update.
92977         * modules/unistr/u32-mbtouc: Renamed from
92978         modules/unistr/u32-mbtouc-safe.
92979         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92980         * lib/unistr.h: Update.
92981         * lib/unistr/u32-to-u8.c: Update.
92982         * lib/unistr/u32-to-u16.c: Update.
92984 2007-01-27  Bruno Haible  <bruno@clisp.org>
92986         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92987         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92988         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92989         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92990         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92991         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92992         modules/unistr/u16-mbtouc.
92993         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92994         * lib/unistr.h: Update.
92995         * lib/linebreak.c: Update.
92996         * modules/linebreak: Update.
92997         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92998         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92999         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
93000         * modules/unistr/u16-mbtouc: Renamed from
93001         modules/unistr/u16-mbtouc-safe.
93002         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
93003         * lib/unistr.h: Update.
93004         * lib/unistr/u16-to-u8.c: Update.
93005         * modules/unistr/u16-to-u8: Update.
93006         * lib/unistr/u16-to-u32.c: Update.
93007         * modules/unistr/u16-to-u32: Update.
93009 2007-01-27  Bruno Haible  <bruno@clisp.org>
93011         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
93012         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
93013         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
93014         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
93015         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
93016         * modules/unistr/u8-mbtouc-unsafe: Renamed from
93017         modules/unistr/u8-mbtouc.
93018         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
93019         * lib/unistr.h: Update.
93020         * lib/striconveh.c: Update.
93021         * modules/striconveh: Update.
93022         * lib/linebreak.c: Update.
93023         * modules/linebreak: Update.
93024         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
93025         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
93026         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
93027         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
93028         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
93029         * lib/unistr.h: Update.
93030         * lib/striconveh.c: Update.
93031         * modules/striconveh: Update.
93032         * lib/unistr/u8-to-u16.c: Update.
93033         * modules/unistr/u8-to-u16: Update.
93034         * lib/unistr/u8-to-u32.c: Update.
93035         * modules/unistr/u8-to-u32: Update.
93037 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93039         Sync from Libtool.
93040         * lib/argz.c: Do not include strings.h nor memory.h, include
93041         string.h unconditionally.  Patch by Simon Josefsson.
93043 2007-01-27  Bruno Haible  <bruno@clisp.org>
93045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
93046         from gl_HEADER_STRING_H_BODY.
93047         (gl_HEADER_STRING_H_BODY): Require it.
93048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
93049         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93050         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93051         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93053         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
93054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93055         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93056         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
93057         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93059         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
93060         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93061         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93062         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93064 2007-01-27  Bruno Haible  <bruno@clisp.org>
93066         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
93067         check_PROGRAMS into noinst_PROGRAMS.
93068         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
93069         check_PROGRAMS in this case.
93070         (func_import): Set for_test to false.
93071         (func_create_testdir): Set for_test to true.
93073 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93074             Bruno Haible  <bruno@clisp.org>
93076         * modules/strcasestr (Files): Remove lib/strcasestr.h.
93077         (Depends-on): Add string.
93078         (Includes): Use <string.h> instead of strcasestr.h.
93079         * modules/string (Makefile.am): Also substitute the value of
93080         REPLACE_STRCASESTR.
93081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
93082         assume strcasestr is declared in <string.h> not <strings.h>. Also
93083         set REPLACE_STRCASESTR.
93084         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
93085         REPLACE_STRCASESTR.
93086         * lib/strcasestr.h: Remove file.
93087         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
93088         * lib/string_.h (strcasestr): New declaration.
93090 2007-01-27  Bruno Haible  <bruno@clisp.org>
93092         * lib/string_.h: Use 'extern'.
93094 2007-01-27  Jim Meyering  <jim@meyering.net>
93096         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
93097         of set-but-not-used local, "q".
93099         * lib/mempcpy.c: Include <config.h> before <string.h>.
93100         This fixes a compilation error on HP-UX, due to the system's
93101         "restrict"-using mempcpy prototype.
93103 2007-01-26  Bruno Haible  <bruno@clisp.org>
93105         Small optimization.
93106         * lib/javacomp.c: Include c-strstr.h.
93107          (is_envjavac_gcj): Use c_strstr instead of strstr.
93108         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93110 2007-01-26  Bruno Haible  <bruno@clisp.org>
93112         * MODULES.html.sh (Unicode string functions): Add the new modules.
93114         * modules/uniconv/u32-strconv-to-locale: New file.
93115         * lib/uniconv/u32-strconv-to-locale.c: New file.
93117         * modules/uniconv/u16-strconv-to-locale: New file.
93118         * lib/uniconv/u16-strconv-to-locale.c: New file.
93120         * modules/uniconv/u8-strconv-to-locale: New file.
93121         * lib/uniconv/u8-strconv-to-locale.c: New file.
93123         * modules/uniconv/u32-strconv-from-locale: New file.
93124         * lib/uniconv/u32-strconv-from-locale.c: New file.
93126         * modules/uniconv/u16-strconv-from-locale: New file.
93127         * lib/uniconv/u16-strconv-from-locale.c: New file.
93129         * modules/uniconv/u8-strconv-from-locale: New file.
93130         * lib/uniconv/u8-strconv-from-locale.c: New file.
93132         * modules/uniconv/u32-strconv-to-enc: New file.
93133         * lib/uniconv/u32-strconv-to-enc.c: New file.
93134         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93135         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93137         * modules/uniconv/u16-strconv-to-enc: New file.
93138         * lib/uniconv/u16-strconv-to-enc.c: New file.
93139         * lib/uniconv/u-strconv-to-enc.h: New file.
93140         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93141         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93143         * modules/uniconv/u8-strconv-to-enc: New file.
93144         * lib/uniconv/u8-strconv-to-enc.c: New file.
93145         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93146         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93148         * modules/uniconv/u32-strconv-from-enc: New file.
93149         * lib/uniconv/u32-strconv-from-enc.c: New file.
93150         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93151         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93153         * modules/uniconv/u16-strconv-from-enc: New file.
93154         * lib/uniconv/u16-strconv-from-enc.c: New file.
93155         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93156         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93158         * modules/uniconv/u8-strconv-from-enc: New file.
93159         * lib/uniconv/u8-strconv-from-enc.c: New file.
93160         * lib/uniconv/u-strconv-from-enc.h: New file.
93161         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93162         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93164         * modules/uniconv/u32-conv-from-enc: New file.
93165         * lib/uniconv/u32-conv-from-enc.c: New file.
93166         * modules/uniconv/u32-conv-from-enc-tests: New file.
93167         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93169         * modules/uniconv/u16-conv-from-enc: New file.
93170         * lib/uniconv/u16-conv-from-enc.c: New file.
93171         * lib/uniconv/u-conv-from-enc.h: New file.
93172         * modules/uniconv/u16-conv-from-enc-tests: New file.
93173         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93175         * modules/uniconv/u8-conv-from-enc: New file.
93176         * lib/uniconv/u8-conv-from-enc.c: New file.
93177         * modules/uniconv/u8-conv-from-enc-tests: New file.
93178         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93180         * modules/uniconv/base: New file.
93181         * lib/uniconv.h: New file.
93183 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93185         * doc/gnulib-tool.texi (Initial import): Update to match current
93186         behavior with strdup module.
93187         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93188         * lib/memmem.h: Remove; all uses removed.  This is now done
93189         by <string.h>.
93190         * lib/mempcpy.h: Likewise.
93191         * lib/memrchr.h: Likewise.
93192         * lib/stpcpy.h: Likewise.
93193         * lib/stpncpy.h: Likewise.
93194         * lib/strcase.h: Likewise.
93195         * lib/strchrnul.h: Likewise.
93196         * lib/strdup.h: Likewise.
93197         * lib/strndup.h: Likewise.
93198         * lib/strnlen.h: Likewise.
93199         * lib/strpbrk.h: Likewise.
93200         * lib/strsep.h: Likewise.
93201         * lib/strstr.h: Likewise.
93202         * lib/strtok_r.h: Likewise.
93203         * lib/string_.h: New file.
93204         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93205         Rely on <string.h> instead.
93206         * lib/canon-host.c: Likewise.
93207         * lib/chdir-long.c: Likewise.
93208         * lib/concatpath.c: Likewise.
93209         * lib/exclude.c: Likewise.
93210         * lib/fchdir.c: Likewise.
93211         * lib/getaddrinfo.c: Likewise.
93212         * lib/getcwd.c: Likewise.
93213         * lib/getsubopt.c: Likewise.
93214         * lib/glob.c: Likewise.
93215         * lib/hard-locale.c: Likewise.
93216         * lib/iconvme.c: Likewise.
93217         * lib/javacomp.c: Likewise.
93218         * lib/mempcpy.c: Likewise.
93219         * lib/memrchr.c: Likewise.
93220         * lib/regex_internal.h: Likewise.
93221         * lib/stpncpy.c: Likewise.
93222         * lib/strcasecmp.c: Likewise.
93223         * lib/strchrnul.c: Likewise.
93224         * lib/strdup.c: Likewise.
93225         * lib/striconv.c: Likewise.
93226         * lib/striconveh.c: Likewise.
93227         * lib/striconveha.c: Likewise.
93228         * lib/strncasecmp.c: Likewise.
93229         * lib/strndup.c: Likewise.
93230         * lib/strnlen.c: Likewise.
93231         * lib/strsep.c: Likewise.
93232         * lib/strstr.c: Likewise.
93233         * lib/strtok_r.c: Likewise.
93234         * lib/userspec.c: Likewise.
93235         * lib/w32spawn.h: Likewise.
93236         * lib/xstrndup.c: Likewise.
93237         * lib/mountlist.c (strstr): Remove decl.
93238         * m4/string_h.m4: New file.
93239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93240         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93241         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93242         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93243         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93244         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93245         Set REPLACE_STRCASECMP if necessary.
93246         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93247         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93248         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93249         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93250         HAVE_DECL_STRDUP if necessary.
93251         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93252         since gl_FUNC_STRNDUP does that now.
93253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93254         Check for decl here...
93255         (gl_PREREQ_STRNLEN): ... not here.
93256         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93257         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93258         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93259         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93260         necessary.
93261         * modules/string: New file.
93262         * modules/memmem (Files): Remove special-purpose include file.
93263         (Depends-on): Add string.
93264         (Include): Include <string.h>, not the removed file.
93265         * modules/mempcpy: Likewise.
93266         * modules/memrchr: Likewise.
93267         * modules/stpcpy: Likewise.
93268         * modules/stpncpy: Likewise.
93269         * modules/strcase: Likewise.
93270         * modules/strchrnul: Likewise.
93271         * modules/strdup: Likewise.
93272         * modules/strndup: Likewise.
93273         * modules/strnlen: Likewise.
93274         * modules/strpbrk: Likewise.
93275         * modules/strsep: Likewise.
93276         * modules/strstr: Likewise.
93277         * modules/strtok_r: Likewise.
93278         * tests/test-dirname.c: Don't include "strdup.h", since
93279         <string.h> now suffices.
93280         * tests/test-memmem.c: Don't include "memmem.h", since
93281         <string.h> now suffices.
93283 2007-01-25  Bruno Haible  <bruno@clisp.org>
93285         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93286         *resultp is 0.
93288         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93289         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93290         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93291         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93293         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93294         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93295         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93296         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93297         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93298         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93300 2007-01-24  Bruno Haible  <bruno@clisp.org>
93302         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93303         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93304         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93305         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93306         gl_FUNC_FTS_CORE.
93307         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93308         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93309         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93310         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93311         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93312         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93313         gl_FUNC_FCHOWNAT.
93314         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93315         gl_FUNC_STRFTIME.
93316         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93317         Reported by Ralf Wildenhues.
93319 2007-01-24  Bruno Haible  <bruno@clisp.org>
93321         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93322         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93323         gl_GETADDRINFO.
93324         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93325         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93326         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93328 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93330         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93331         Don't use 'exit'; just return from 'main'.
93332         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93334         * lib/fnmatch_.h: Readjust white space and comments to match
93335         glibc, to avoid spurious diffs.
93337 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93339         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93340         2004-12-01 change by Jakub Jelinek, since this code won't compile
93341         if !LIBC.  Problem reported by Bob Proulx.
93343 2007-01-23  Bruno Haible  <bruno@clisp.org>
93345         * lib/striconveh.c: Include c-strcaseeq.h.
93346         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93347         * modules/striconveh (Depends-on): Add c-strcaseeq.
93349 2007-01-23  Bruno Haible  <bruno@clisp.org>
93351         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93353         * modules/c-strcaseeq: New file.
93354         * lib/c-strcaseeq.h: New file.
93356         * modules/streq: New file.
93357         * lib/streq.h: New file.
93359 2007-01-23  Bruno Haible  <bruno@clisp.org>
93361         * modules/striconveha-tests: New file.
93362         * tests/test-striconveha.c: New file.
93364         * lib/striconveha.h: Include <stdbool.h>.
93365         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93366         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93367         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93368         (mem_iconveha): New function.
93369         (str_iconveha_notranslit): Renamed from str_iconveha.
93370         (str_iconveha): New function.
93371         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93372         c-strcase.
93374 2007-01-23  Bruno Haible  <bruno@clisp.org>
93376         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93377         encodings without forgiving before trying any encoding with handler.
93378         (str_iconveha): Try all encodings without forgiving before trying any
93379         encoding with handler.
93381 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93383         Import the following changes from libc.
93385         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93387         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93389         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93391         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93392         normal_bracket label.
93394         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93396         [BZ #361]
93397         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93398         to normal_bracket after fetching the next character.
93400 2007-01-22  Bruno Haible  <bruno@clisp.org>
93402         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93403         argument.
93404         * lib/striconveh.c (iconv_carefully_1): New function.
93405         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93406         argument.
93407         (str_cd_iconveh): Update.
93408         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93409         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93410         * tests/test-striconveh.c (MAGIC): New macro.
93411         (new_offsets): New function.
93412         (main): Test call with and without offsets.
93414 2007-01-22  Bruno Haible  <bruno@clisp.org>
93416         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93417         * modules/sys_select (Makefile.am): Likewise.
93418         * modules/sys_socket (Makefile.am): Likewise.
93419         * modules/sys_time (Makefile.am): Likewise.
93421 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93423         * modules/gettimeofday (License): Change from GPL to LGPL, since
93424         gettimeofday is a library function.
93426 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93428         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93430 2007-01-21  Bruno Haible  <bruno@clisp.org>
93432         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93434 2007-01-21  Bruno Haible  <bruno@clisp.org>
93436         * modules/striconveha: New file.
93437         * lib/striconveha.h: New file.
93438         * lib/striconveha.c: New file.
93439         * MODULES.html.sh (Internationalization functions): Add striconveha.
93440         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93441         string.
93442         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93444 2007-01-21  Bruno Haible  <bruno@clisp.org>
93446         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93447         * lib/striconveh.c (str_iconveh): Likewise.
93449 2007-01-21  Bruno Haible  <bruno@clisp.org>
93451         * lib/striconveh.h (mem_iconveh): New declaration.
93452         * lib/striconveh.c (mem_iconveh): New function.
93453         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93455 2007-01-21  Bruno Haible  <bruno@clisp.org>
93457         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93459         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93460         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93461         original result buffer.
93462         (str_cd_iconveh): Update.
93463         * tests/test-striconveh.c (main): Update.
93465         * lib/striconv.h (mem_cd_iconv): Change specification.
93466         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93467         result buffer.
93468         (str_cd_iconv): Update.
93469         * tests/test-striconv.c (main): Update.
93471 2007-01-21  Bruno Haible  <bruno@clisp.org>
93473         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93475 2007-01-20  Jim Meyering  <jim@meyering.net>
93477         * lib/userspec.c (parse_with_separator): If a user or group string
93478         starts with "+", skip the corresponding name-to-ID look-up, since
93479         such a look-up must fail: user and group names may not include "+".
93481 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93483         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93484         since we now assume the sys_time module.
93485         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93486         check for sys/time.h; no longer needed.
93487         * modules/poll (Depends-on): Depend on sys_time.
93489 2007-01-18  Bruno Haible  <bruno@clisp.org>
93491         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93492         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93494         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93495         gettimeofday.
93497         * tests/test-gettimeofday.c: Include <time.h>.
93498         (dummy): Remove variable.
93500         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93501         gl_HEADER_SYS_TIME_H.
93502         (gl_HEADER_SYS_TIME_H): New macro.
93504         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93505         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93507         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93508         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93510         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93511         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93512         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93513         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93514         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93516         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93517         last change; it caused a compilation error when cross-compiling to
93518         Cygwin.
93520 2007-01-18  Jim Meyering  <jim@meyering.net>
93522         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93523         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93524         than the race-prone "test -d sys || mkdir sys".
93525         (configure.ac): Use AC_PROG_MKDIR_P.
93526         * modules/sys_select: Likewise.
93527         * modules/sys_socket: Likewise.
93528         * modules/sys_time: Likewise.
93530 2007-01-18  Eric Blake  <ebb9@byu.net>
93532         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93533         replace gettimeofday.
93534         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93535         name, to avoid infinite recursion.
93537 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93539         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93540         module sys_time.
93541         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93542         assume timespec.h defines struct timeval.
93543         * lib/settime.c: Likewise.
93544         * lib/utimens.c: Likewise.
93545         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93546         since we now assume the gettimeofday module.
93547         * lib/tempname.c (__gen_tempname): Likewise.
93548         * lib/gettimeofday.h: Remove.
93549         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93550         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93551         Include <time.h>, for 'time()'.
93552         (localtime_buffer_addr): Also use this workaround if
93553         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93554         to simplify the uses.  All uses changed.
93555         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93556         that #undef is inside {}, and 'const' follows type name consistently.
93557         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93558         (gettimeofday): Do not use the maximum possible value for
93559         tv->tv_usec, since that might break usages other than ls.c.
93560         Instead, we'll leave ls.c alone.  This undoes today's patch
93561         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93562         we've never observed the problem but might as well keep the
93563         canary.
93564         * lib/nanosleep.c: Include timespec.h first, for interface check.
93565         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93566         now assume the sys_time module.
93567         * lib/tempname.c: Likewise.
93568         * lib/timespec.h: Likewise.
93569         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93570         needed.
93571         * lib/strftime.c: Likewise.
93572         * lib/timespec.h: Likewise.
93573         * lib/posixtm.c: Include posixtm.h first, for interface check.
93574         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93575         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93576         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93577         * lib/sys_time_.h: New file.
93578         * lib/timespec.h (struct timespec): Use long int, not long.
93579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93580         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93581         Remove obsolescent call to AC_HEADER_TIME.
93582         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93585         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93586         Likewise.
93587         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93588         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93590         into the sys_time module.  Check for gettimeofday just once.
93591         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93592         for gettimeofday signature to just check the signature.  Merely
93593         compile it, since linking doesn't test signature.  Improve test for
93594         whether gettimeofday.o is actually needed.
93595         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93596         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93597         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93598         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93599         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93600         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93601         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93602         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93603         than worrying about sys/time.h.
93604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93605         Don't bother worrying about TIME_WITH_SYS_TIME.
93606         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93607         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93608         * m4/sys_time_h.m4: New file.
93609         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93610         Don't include sys/time.h.  Return from main rather than exiting.
93611         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93612         all uses changed.
93613         * modules/gethrxtime (Depends-on): Add sys_time.
93614         * modules/gettime (Depends-on): Likewise.
93615         * modules/gettimeofday (Depends-on): Likewise.
93616         * modules/nanosleep (Depends-on): Likewise.
93617         * modules/settime (Depends-on): Likewise.
93618         * modules/tempname (Depends-on): Likewise.
93619         * modules/utimens (Depends-on): Likewise.
93620         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93621         (Include): Change back to <sys/time.h>.
93622         (Maintainer): Add self.
93623         * modules/sys_time: New file.
93624         * modules/tempname (Depends-on): Add gettimeofday.
93625         * tests/test-gettimeofday.c: Include <sys/time.h>
93626         rather than gettimeofday.h.
93628 2007-01-17  Bruno Haible  <bruno@clisp.org>
93630         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93631         the license default to GPL.
93632         (func_create_testdir): Don't complain if a module is LGPL and its
93633         tests module depends on GPLed modules.
93635 2007-01-17  Bruno Haible  <bruno@clisp.org>
93637         * lib/gettimeofday.c (gettimeofday): Add code for the case
93638         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93639         maximum possible value for tv->tv_usec, rather than the minimum one.
93641 2005-10-08  Martin Lambers  <marlam@marlam.de>
93642 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93643 2007-01-16  Bruno Haible  <bruno@clisp.org>
93645         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93646         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93647         gl_FUNC_GETTIMEOFDAY.
93648         (Include): Add gettimeofday.h.
93649         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93650         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93651         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93652         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93653         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93654         * lib/gettimeofday.h: New file.
93655         * lib/gettimeofday.c: Include <sys/timeb.h>.
93656         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93657         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93658         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93659         fall back on time().
93661         * tests/test-gettimeofday.c: New file.
93662         * modules/gettimeofday-tests: New file.
93664 2007-01-16  Eric Blake  <ebb9@byu.net>
93666         * modules/fnmatch (Depends-on): Depend on wchar.
93667         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93668         * m4/fnmatch.m4: Likewise.
93669         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93670         * m4/mbchar.m4: Likewise.
93671         * modules/mbswidth (Depends-on): Depend on wchar.
93672         * lib/mbswidth.c: Assume <wchar.h>.
93673         * m4/mbswidth.m4: Likewise.
93674         * modules/quotearg (Depends-on): Depend on wchar.
93675         * lib/quotearg.c: Assume <wchar.h>.
93676         * m4/quotearg.m4: Likewise.
93677         * modules/regex (Depends-on): Depend on wchar.
93678         * lib/regex_internal.h: Assume <wchar.h>.
93679         * m4/regex.m4: Likewise.
93680         * modules/stdint (Depends-on): Depend on wchar.
93681         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93682         * m4/stdint.m4: Likewise.
93683         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93684         * modules/strftime (Depends-on): Depend on wchar.
93685         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93686         * modules/strtol (Depends-on): Depend on wchar.
93687         * lib/strtol.c: Assume <wchar.h>.
93688         * modules/wcwidth (Depends-on): Depend on wchar.
93689         * lib/wcwidth.h: Assume <wchar.h>.
93690         * m4/wcwidth.m4: Likewise.
93692 2007-01-16  Bruno Haible  <bruno@clisp.org>
93694         * modules/csharpexec-script: New, created from...
93695         * modules/csharpexec: ... this.
93697 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93699         * modules/javaexec-script: New, created from...
93700         * modules/javaexec: ... this.
93702 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93704         * modules/poll (Dependencies): Add sys_select.
93706 2007-01-15  Jim Meyering  <jim@meyering.net>
93708         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93709         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93710         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93711         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93713 2007-01-15  Bruno Haible  <bruno@clisp.org>
93715         * modules/striconveh: New file.
93716         * lib/striconveh.h: New file.
93717         * lib/striconveh.c: New file.
93718         * MODULES.html.sh (Internationalization functions): Add striconveh.
93720         * modules/striconveh-tests: New file.
93721         * tests/test-striconveh.c: New file.
93723 2007-01-15  Bruno Haible  <bruno@clisp.org>
93725         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93726         not from GNU libiconv or GNU libc.
93728 2007-01-15  Bruno Haible  <bruno@clisp.org>
93730         * doc/gnulib-intro.texi (Copyright): Explain the different license
93731         terms for module descriptions, autoconf macros, tests, documentation.
93733 2007-01-14  Bruno Haible  <bruno@clisp.org>
93735         * modules/striconv-tests: New file.
93736         * tests/test-striconv.c: New file.
93738 2007-01-14  Bruno Haible  <bruno@clisp.org>
93740         * modules/iconv-tests: New file.
93741         * tests/test-iconv.c: New file.
93743 2007-01-14  Bruno Haible  <bruno@clisp.org>
93745         * gnulib-tool (func_get_license): For test modules, use the license of
93746         the main module.
93748 2007-01-14  Bruno Haible  <bruno@clisp.org>
93750         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93751         if iconv is found to exist.
93753 2007-01-14  Bruno Haible  <bruno@clisp.org>
93755         * modules/c-ctype-tests: New file.
93756         * tests/test-c-ctype.c: New file.
93758 2007-01-14  Bruno Haible  <bruno@clisp.org>
93760         * modules/binary-io-tests: New file.
93761         * tests/test-binary-io.sh: New file.
93762         * tests/test-binary-io.c: New file.
93764 2007-01-14  Bruno Haible  <bruno@clisp.org>
93766         * modules/array-oset-tests: New file.
93767         * tests/test-array_oset.c: New file.
93769 2007-01-14  Bruno Haible  <bruno@clisp.org>
93771         * modules/array-list-tests: New file.
93772         * tests/test-array_list.c: New file.
93774 2007-01-14  Bruno Haible  <bruno@clisp.org>
93776         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93777         and make.
93778         Reported by Simon Josefsson in
93779         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93781 2007-01-14  Bruno Haible  <bruno@clisp.org>
93783         * modules/allocsa-tests: New file.
93784         * tests/test-allocsa.c: New file.
93786 2007-01-14  Bruno Haible  <bruno@clisp.org>
93788         * modules/fchdir (Depends-on): Add absolute-header.
93789         * modules/unistd (Depends-on): Likewise.
93791 2006-12-30  Bruno Haible  <bruno@clisp.org>
93793         * modules/fchdir: New file.
93794         * modules/unistd (Files): Add lib/unistd_.h.
93795         (Makefile.am): Generate unistd.h from unistd_.h.
93796         * lib/fchdir.c: New file.
93797         * lib/dirent_.h: New file.
93798         * lib/unistd_.h: New file.
93799         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93800         * m4/fchdir.m4: New file.
93801         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93802         (gl_HEADER_UNISTD): Invoke it.
93803         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93804         function.
93805         * lib/backupfile.c (opendir, closedir): Undefine.
93806         * lib/chown.c (open, close): Undefine.
93807         * lib/clean-temp.c (open, close): Undefine.
93808         * lib/copy-file.c (open, close): Undefine.
93809         * lib/execute.c (open, close): Undefine.
93810         * lib/fsusage.c (open, close): Undefine.
93811         * lib/gc-gnulib.c (open, close): Undefine.
93812         * lib/getcwd.c (opendir, closedir): Undefine.
93813         * lib/glob.c (opendir, closedir): Undefine.
93814         * lib/javacomp.c (open, close): Undefine.
93815         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93816         * lib/openat-proc.c (open, close): Undefine.
93817         * lib/pagealign_alloc.c (open, close): Undefine.
93818         * lib/pipe.c (open, close): Undefine.
93819         * lib/progreloc.c (open, close): Undefine.
93820         * lib/savedir.c (opendir, closedir): Undefine.
93821         * lib/utime.c (open, close): Undefine.
93822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93824 2007-01-10  Bruno Haible  <bruno@clisp.org>
93826         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93828 2007-01-12  Eric Blake  <ebb9@byu.net>
93830         Provide a robust <wchar.h>.  Further simplifications are now
93831         possible in other modules, but not included here.
93832         * modules/wchar: New module.
93833         * m4/wchar.m4: New file.
93834         * lib/wchar_.h: Likewise.
93835         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93836         of the new module.
93837         * MODULES.html.sh (Extended multibyte and wide character utilities):
93838         New section.
93840 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93842         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93843         to a reasonable default for memory allocation.
93844         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93845         file system that reports garbage st_size values for symlinks.
93846         Problem reported by Liyang Hu.
93848 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93850         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93851         Emacs .#* auto-save files).
93853 2007-01-11  Bruno Haible  <bruno@clisp.org>
93855         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93856         directory.
93858 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93860         Use @...@ consistently in lib/wctype_.h.
93861         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93862         on it being set to 1 or 0.
93863         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93864         go back to AC_SUBSTing it.
93865         * modules/wctype (Makefile.am): Undo previous change.
93867 2007-01-10  Eric Blake  <ebb9@byu.net>
93869         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93870         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93871         * modules/wctype (Makefile.am): Likewise.
93872         Reported by Chris McGuire.
93874 2007-01-10  Jim Meyering  <jim@meyering.net>
93876         fts.c: a small readability/maintainability improvement
93877         * lib/fts.c (fts_read): Make this code slightly more readable and
93878         maintainable by hoisting the "sp->fts_cur = p" assignments to
93879         immediately follow the statements that set P.  Derived from
93880         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93882 2007-01-10  Eric Blake  <ebb9@byu.net>
93884         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93885         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93887         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93888         Reported by Chris McGuire.
93890 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93892         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93893         in sed script.
93895 2007-01-09  Bruno Haible  <bruno@clisp.org>
93897         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93898         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93899         variables.
93900         (func_module): Use them.
93902 2007-01-09  Bruno Haible  <bruno@clisp.org>
93904         * modules/unistr/base: New file.
93905         * lib/unistr.h: New file.
93907         * modules/unistr/u8-to-u16: New file.
93908         * lib/unistr/u8-to-u16.c: New file.
93910         * modules/unistr/u8-to-u32: New file.
93911         * lib/unistr/u8-to-u32.c: New file.
93913         * modules/unistr/u16-to-u8: New file.
93914         * lib/unistr/u16-to-u8.c: New file.
93916         * modules/unistr/u16-to-u32: New file.
93917         * lib/unistr/u16-to-u32.c: New file.
93919         * modules/unistr/u32-to-u8: New file.
93920         * lib/unistr/u32-to-u8.c: New file.
93922         * modules/unistr/u32-to-u16: New file.
93923         * lib/unistr/u32-to-u16.c: New file.
93925         * modules/unistr/u8-check: New file.
93926         * modules/unistr/u16-check: New file.
93927         * modules/unistr/u32-check: New file.
93928         * lib/unistr/u8-check.c: New file.
93929         * lib/unistr/u16-check.c: New file.
93930         * lib/unistr/u32-check.c: New file.
93932         * modules/unistr/u8-chr: New file.
93933         * modules/unistr/u16-chr: New file.
93934         * modules/unistr/u32-chr: New file.
93935         * lib/unistr/u8-chr.c: New file.
93936         * lib/unistr/u16-chr.c: New file.
93937         * lib/unistr/u32-chr.c: New file.
93939         * modules/unistr/u8-cmp: New file.
93940         * modules/unistr/u16-cmp: New file.
93941         * modules/unistr/u32-cmp: New file.
93942         * lib/unistr/u8-cmp.c: New file.
93943         * lib/unistr/u16-cmp.c: New file.
93944         * lib/unistr/u32-cmp.c: New file.
93946         * modules/unistr/u8-cpy: New file.
93947         * modules/unistr/u16-cpy: New file.
93948         * modules/unistr/u32-cpy: New file.
93949         * lib/unistr/u8-cpy.c: New file.
93950         * lib/unistr/u16-cpy.c: New file.
93951         * lib/unistr/u32-cpy.c: New file.
93952         * lib/unistr/u-cpy.h: New file.
93954         * modules/unistr/u8-cpy-alloc: New file.
93955         * modules/unistr/u16-cpy-alloc: New file.
93956         * modules/unistr/u32-cpy-alloc: New file.
93957         * lib/unistr/u8-cpy-alloc.c: New file.
93958         * lib/unistr/u16-cpy-alloc.c: New file.
93959         * lib/unistr/u32-cpy-alloc.c: New file.
93960         * lib/unistr/u-cpy-alloc.h: New file.
93962         * modules/unistr/u8-endswith: New file.
93963         * modules/unistr/u16-endswith: New file.
93964         * modules/unistr/u32-endswith: New file.
93965         * lib/unistr/u8-endswith.c: New file.
93966         * lib/unistr/u16-endswith.c: New file.
93967         * lib/unistr/u32-endswith.c: New file.
93968         * lib/unistr/u-endswith.h: New file.
93970         * modules/unistr/u8-mblen: New file.
93971         * modules/unistr/u16-mblen: New file.
93972         * modules/unistr/u32-mblen: New file.
93973         * lib/unistr/u8-mblen.c: New file.
93974         * lib/unistr/u16-mblen.c: New file.
93975         * lib/unistr/u32-mblen.c: New file.
93977         * modules/unistr/u8-mbtouc: New file.
93978         * modules/unistr/u16-mbtouc: New file.
93979         * modules/unistr/u32-mbtouc: New file.
93980         * lib/unistr/u8-mbtouc.c: New file.
93981         * lib/unistr/u16-mbtouc.c: New file.
93982         * lib/unistr/u32-mbtouc.c: New file.
93984         * modules/unistr/u8-mbtouc-safe: New file.
93985         * modules/unistr/u16-mbtouc-safe: New file.
93986         * modules/unistr/u32-mbtouc-safe: New file.
93987         * lib/unistr/u8-mbtouc-safe.c: New file.
93988         * lib/unistr/u16-mbtouc-safe.c: New file.
93989         * lib/unistr/u32-mbtouc-safe.c: New file.
93991         * modules/unistr/u8-move: New file.
93992         * modules/unistr/u16-move: New file.
93993         * modules/unistr/u32-move: New file.
93994         * lib/unistr/u8-move.c: New file.
93995         * lib/unistr/u16-move.c: New file.
93996         * lib/unistr/u32-move.c: New file.
93997         * lib/unistr/u-move.h: New file.
93999         * modules/unistr/u8-next: New file.
94000         * modules/unistr/u16-next: New file.
94001         * modules/unistr/u32-next: New file.
94002         * lib/unistr/u8-next.c: New file.
94003         * lib/unistr/u16-next.c: New file.
94004         * lib/unistr/u32-next.c: New file.
94006         * modules/unistr/u8-prev: New file.
94007         * modules/unistr/u16-prev: New file.
94008         * modules/unistr/u32-prev: New file.
94009         * lib/unistr/u8-prev.c: New file.
94010         * lib/unistr/u16-prev.c: New file.
94011         * lib/unistr/u32-prev.c: New file.
94013         * modules/unistr/u8-set: New file.
94014         * modules/unistr/u16-set: New file.
94015         * modules/unistr/u32-set: New file.
94016         * lib/unistr/u8-set.c: New file.
94017         * lib/unistr/u16-set.c: New file.
94018         * lib/unistr/u32-set.c: New file.
94019         * lib/unistr/u-set.h: New file.
94021         * modules/unistr/u8-startswith: New file.
94022         * modules/unistr/u16-startswith: New file.
94023         * modules/unistr/u32-startswith: New file.
94024         * lib/unistr/u8-startswith.c: New file.
94025         * lib/unistr/u16-startswith.c: New file.
94026         * lib/unistr/u32-startswith.c: New file.
94027         * lib/unistr/u-startswith.h: New file.
94029         * modules/unistr/u8-stpcpy: New file.
94030         * modules/unistr/u16-stpcpy: New file.
94031         * modules/unistr/u32-stpcpy: New file.
94032         * lib/unistr/u8-stpcpy.c: New file.
94033         * lib/unistr/u16-stpcpy.c: New file.
94034         * lib/unistr/u32-stpcpy.c: New file.
94035         * lib/unistr/u-stpcpy.h: New file.
94037         * modules/unistr/u8-stpncpy: New file.
94038         * modules/unistr/u16-stpncpy: New file.
94039         * modules/unistr/u32-stpncpy: New file.
94040         * lib/unistr/u8-stpncpy.c: New file.
94041         * lib/unistr/u16-stpncpy.c: New file.
94042         * lib/unistr/u32-stpncpy.c: New file.
94043         * lib/unistr/u-stpncpy.h: New file.
94045         * modules/unistr/u8-strcat: New file.
94046         * modules/unistr/u16-strcat: New file.
94047         * modules/unistr/u32-strcat: New file.
94048         * lib/unistr/u8-strcat.c: New file.
94049         * lib/unistr/u16-strcat.c: New file.
94050         * lib/unistr/u32-strcat.c: New file.
94051         * lib/unistr/u-strcat.h: New file.
94053         * modules/unistr/u8-strchr: New file.
94054         * modules/unistr/u16-strchr: New file.
94055         * modules/unistr/u32-strchr: New file.
94056         * lib/unistr/u8-strchr.c: New file.
94057         * lib/unistr/u16-strchr.c: New file.
94058         * lib/unistr/u32-strchr.c: New file.
94060         * modules/unistr/u8-strcmp: New file.
94061         * modules/unistr/u16-strcmp: New file.
94062         * modules/unistr/u32-strcmp: New file.
94063         * lib/unistr/u8-strcmp.c: New file.
94064         * lib/unistr/u16-strcmp.c: New file.
94065         * lib/unistr/u32-strcmp.c: New file.
94067         * modules/unistr/u8-strcpy: New file.
94068         * modules/unistr/u16-strcpy: New file.
94069         * modules/unistr/u32-strcpy: New file.
94070         * lib/unistr/u8-strcpy.c: New file.
94071         * lib/unistr/u16-strcpy.c: New file.
94072         * lib/unistr/u32-strcpy.c: New file.
94073         * lib/unistr/u-strcpy.h: New file.
94075         * modules/unistr/u8-strcspn: New file.
94076         * modules/unistr/u16-strcspn: New file.
94077         * modules/unistr/u32-strcspn: New file.
94078         * lib/unistr/u8-strcspn.c: New file.
94079         * lib/unistr/u16-strcspn.c: New file.
94080         * lib/unistr/u32-strcspn.c: New file.
94081         * lib/unistr/u-strcspn.h: New file.
94083         * modules/unistr/u8-strdup: New file.
94084         * modules/unistr/u16-strdup: New file.
94085         * modules/unistr/u32-strdup: New file.
94086         * lib/unistr/u8-strdup.c: New file.
94087         * lib/unistr/u16-strdup.c: New file.
94088         * lib/unistr/u32-strdup.c: New file.
94089         * lib/unistr/u-strdup.h: New file.
94091         * modules/unistr/u8-strlen: New file.
94092         * modules/unistr/u16-strlen: New file.
94093         * modules/unistr/u32-strlen: New file.
94094         * lib/unistr/u8-strlen.c: New file.
94095         * lib/unistr/u16-strlen.c: New file.
94096         * lib/unistr/u32-strlen.c: New file.
94097         * lib/unistr/u-strlen.h: New file.
94099         * modules/unistr/u8-strmblen: New file.
94100         * modules/unistr/u16-strmblen: New file.
94101         * modules/unistr/u32-strmblen: New file.
94102         * lib/unistr/u8-strmblen.c: New file.
94103         * lib/unistr/u16-strmblen.c: New file.
94104         * lib/unistr/u32-strmblen.c: New file.
94106         * modules/unistr/u8-strmbtouc: New file.
94107         * modules/unistr/u16-strmbtouc: New file.
94108         * modules/unistr/u32-strmbtouc: New file.
94109         * lib/unistr/u8-strmbtouc.c: New file.
94110         * lib/unistr/u16-strmbtouc.c: New file.
94111         * lib/unistr/u32-strmbtouc.c: New file.
94113         * modules/unistr/u8-strncat: New file.
94114         * modules/unistr/u16-strncat: New file.
94115         * modules/unistr/u32-strncat: New file.
94116         * lib/unistr/u8-strncat.c: New file.
94117         * lib/unistr/u16-strncat.c: New file.
94118         * lib/unistr/u32-strncat.c: New file.
94119         * lib/unistr/u-strncat.h: New file.
94121         * modules/unistr/u8-strncmp: New file.
94122         * modules/unistr/u16-strncmp: New file.
94123         * modules/unistr/u32-strncmp: New file.
94124         * lib/unistr/u8-strncmp.c: New file.
94125         * lib/unistr/u16-strncmp.c: New file.
94126         * lib/unistr/u32-strncmp.c: New file.
94128         * modules/unistr/u8-strncpy: New file.
94129         * modules/unistr/u16-strncpy: New file.
94130         * modules/unistr/u32-strncpy: New file.
94131         * lib/unistr/u8-strncpy.c: New file.
94132         * lib/unistr/u16-strncpy.c: New file.
94133         * lib/unistr/u32-strncpy.c: New file.
94134         * lib/unistr/u-strncpy.h: New file.
94136         * modules/unistr/u8-strnlen: New file.
94137         * modules/unistr/u16-strnlen: New file.
94138         * modules/unistr/u32-strnlen: New file.
94139         * lib/unistr/u8-strnlen.c: New file.
94140         * lib/unistr/u16-strnlen.c: New file.
94141         * lib/unistr/u32-strnlen.c: New file.
94142         * lib/unistr/u-strnlen.h: New file.
94144         * modules/unistr/u8-strpbrk: New file.
94145         * modules/unistr/u16-strpbrk: New file.
94146         * modules/unistr/u32-strpbrk: New file.
94147         * lib/unistr/u8-strpbrk.c: New file.
94148         * lib/unistr/u16-strpbrk.c: New file.
94149         * lib/unistr/u32-strpbrk.c: New file.
94150         * lib/unistr/u-strpbrk.h: New file.
94152         * modules/unistr/u8-strrchr: New file.
94153         * modules/unistr/u16-strrchr: New file.
94154         * modules/unistr/u32-strrchr: New file.
94155         * lib/unistr/u8-strrchr.c: New file.
94156         * lib/unistr/u16-strrchr.c: New file.
94157         * lib/unistr/u32-strrchr.c: New file.
94159         * modules/unistr/u8-strspn: New file.
94160         * modules/unistr/u16-strspn: New file.
94161         * modules/unistr/u32-strspn: New file.
94162         * lib/unistr/u8-strspn.c: New file.
94163         * lib/unistr/u16-strspn.c: New file.
94164         * lib/unistr/u32-strspn.c: New file.
94165         * lib/unistr/u-strspn.h: New file.
94167         * modules/unistr/u8-strstr: New file.
94168         * modules/unistr/u16-strstr: New file.
94169         * modules/unistr/u32-strstr: New file.
94170         * lib/unistr/u8-strstr.c: New file.
94171         * lib/unistr/u16-strstr.c: New file.
94172         * lib/unistr/u32-strstr.c: New file.
94173         * lib/unistr/u-strstr.h: New file.
94175         * modules/unistr/u8-strtok: New file.
94176         * modules/unistr/u16-strtok: New file.
94177         * modules/unistr/u32-strtok: New file.
94178         * lib/unistr/u8-strtok.c: New file.
94179         * lib/unistr/u16-strtok.c: New file.
94180         * lib/unistr/u32-strtok.c: New file.
94181         * lib/unistr/u-strtok.h: New file.
94183         * modules/unistr/u8-uctomb: New file.
94184         * modules/unistr/u16-uctomb: New file.
94185         * modules/unistr/u32-uctomb: New file.
94186         * lib/unistr/u8-uctomb.c: New file.
94187         * lib/unistr/u16-uctomb.c: New file.
94188         * lib/unistr/u32-uctomb.c: New file.
94190         * MODULES.html.sh (Unicode string functions): Add the new modules.
94192 2007-01-08  Bruno Haible  <bruno@clisp.org>
94194         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94195         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94196         subdirectories.
94198 2007-01-08  Karl Berry  <karl@gnu.org>
94200         * doc/error.texi: mention that main() fns must set program_name
94201         when progname is used.
94203 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94205         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94206         WCTYPE_H is empty, for the benefit of builds from non-distclean
94207         directories.  Problem reported by Eric Blake in
94208         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94210 2007-01-08  Bruno Haible  <bruno@clisp.org>
94212         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94213         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94214         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94215         PROVIDE_CANONICALIZE_FILENAME_MODE.
94216         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94218 2007-01-08  Bruno Haible  <bruno@clisp.org>
94220         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94221         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94222         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94223         * lib/fts.c: Likewise.
94224         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94226 2006-12-25  Bruno Haible  <bruno@clisp.org>
94228         * modules/utf8-ucs4-safe: New file.
94229         * lib/utf8-ucs4-safe.h: New file.
94230         * lib/unistr/utf8-ucs4-safe.c: New file.
94232         * modules/utf16-ucs4-safe: New file.
94233         * lib/utf16-ucs4-safe.h: New file.
94234         * lib/unistr/utf16-ucs4-safe.c: New file.
94236         * MODULES.html.sh (Unicode string functions): Add the new modules.
94238 2007-01-08  Bruno Haible  <bruno@clisp.org>
94240         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94241         (Depends-on): Add unitypes.
94242         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94243         (u8_mbtouc_aux): Move out to separate file.
94244         (u8_mbtouc): Use ucs4_t, uint8_t types.
94245         * lib/unistr/utf8-ucs4.c: New file.
94247         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94248         (Depends-on): Add unitypes.
94249         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94250         (u16_mbtouc_aux): Move out to separate file.
94251         (u16_mbtouc): Use ucs4_t, uint16_t types.
94252         * lib/unistr/utf16-ucs4.c: New file.
94254         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94255         (Depends-on): Add unitypes.
94256         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94257         (u8_uctomb_aux): Move out to separate file.
94258         (u8_uctomb): Use ucs4_t, uint8_t types.
94259         * lib/unistr/ucs4-utf8.c: New file.
94261         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94262         (Depends-on): Add unitypes.
94263         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94264         (u16_uctomb_aux): Move out to separate file.
94265         (u16_uctomb): Use ucs4_t, uint16_t types.
94266         * lib/unistr/ucs4-utf16.c: New file.
94268 2006-12-25  Bruno Haible  <bruno@clisp.org>
94270         * modules/unitypes: New file.
94271         * lib/unitypes.h: New file.
94272         * MODULES.html.sh (func_all_modules): New section "Unicode string
94273         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94274         this section. Add unitypes.
94276 2007-01-08  Bruno Haible  <bruno@clisp.org>
94278         Avoid variable names that conflict with those from libtool.
94279         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94280         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94281         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94282         library_names_spec to acl_library_names_spec, hardcode_* to
94283         acl_hardcode_*.
94284         Reported by Ralf Wildenhues.
94286 2007-01-08  Bruno Haible  <bruno@clisp.org>
94288         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94289         definition.
94290         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94291         definition.
94292         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94293         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94294         definition.
94295         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94296         definition.
94297         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94298         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94299         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94300         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94301         definition.
94302         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94303         definition.
94304         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94305         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94306         GC_USE_<algorithm>.
94307         * lib/gc-libgcrypt.c: Likewise.
94308         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94309         * modules/gc-arctwo (configure.ac): Likewise.
94310         * modules/gc-des (configure.ac): Likewise.
94311         * modules/gc-hmac-md5 (configure.ac): Likewise.
94312         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94313         * modules/gc-md2 (configure.ac): Likewise.
94314         * modules/gc-md4 (configure.ac): Likewise.
94315         * modules/gc-md5 (configure.ac): Likewise.
94316         * modules/gc-random (configure.ac): Likewise.
94317         * modules/gc-rijndael (configure.ac): Likewise.
94318         * modules/gc-sha1 (configure.ac): Likewise.
94320 2007-01-08  Bruno Haible  <bruno@clisp.org>
94322         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94323         macro definition.
94324         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94325         definition.
94326         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94327         definition.
94328         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94329         * modules/fcntl-safer (configure.ac): Likewise.
94330         * modules/fopen-safer (configure.ac): Likewise.
94331         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94332         GNULIB_FWRITEERROR macro definition.
94334 2007-01-08  Bruno Haible  <bruno@clisp.org>
94336         * m4/gnulib-common.m4: New file.
94337         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94338         (func_get_filelist): Add m4/gnulib-common.m4.
94340 2007-01-08  Bruno Haible  <bruno@clisp.org>
94342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94343         command.
94345 2007-01-08  Jim Meyering  <jim@meyering.net>
94347         Use a more robust test for a "can't happen" condition.
94348         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94349         narrowed the st_size value.  Presuming the "can't happen" condition
94350         is true, that narrowing could conceivably convert an invalid st_size
94351         value into a valid one.  Instead, use a change based on Matthew
94352         Woehlke's original patch.
94354         Slight readability improvement: use an assert-like macro
94355         in place of literal "abort ()" uses.
94356         * lib/fts.c (fts_assert): Define.
94357         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94358         Use this macro instead of a bare 'abort'.
94360 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94362         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94363         simply work around them.
94364         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94365         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94366         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94367         declaring.
94368         Don't bother to define as macros, since the standard doesn't require it.
94369         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94370         longer worry about IRIX 5.3.
94371         (HAVE_WCTYPE_CTMP_BUG): Remove.
94373 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94375         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94376         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94377         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94378         Problems reported by Georg Schwarz for IRIX 5.3.
94380         * gnulib-tool (autoconf_minversion): Take the maximum version number
94381         found, not the minimum.  Problem reported by James Youngman.
94383 2007-01-03  Karl Berry  <karl@gnu.org>
94385         * doc/error.texi: new file, explaining interaction with progname.
94386         * doc/gnulib.texi: include it.  Update copyright.
94388 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94390         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94391         AC_CANONICAL_HOST, to improve autobuild outputs.
94393 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94394             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94396         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94397         sockets, server sockets, and other file descriptors.  Count errors
94398         to compute the return value.  Reorder the code a bit to be easier
94399         to follow.  Don't set event bits that were not requested (except
94400         POLLERR and POLLHUP).
94402 2007-01-01  Bruno Haible  <bruno@clisp.org>
94404         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94406 2007-01-03  Jim Meyering  <jim@meyering.net>
94408         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94410 2007-01-02  Bruno Haible  <bruno@clisp.org>
94412         * modules/settime (Include): Require timespec.h.
94413         * modules/nanosleep (Include): Likewise.
94415 2007-01-01  Bruno Haible  <bruno@clisp.org>
94417         * gnulib-tool (func_emit_copyright_notice): Bump year.
94418         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94420 2007-01-01  Bruno Haible  <bruno@clisp.org>
94422         Improve support for OpenBSD.
94423         * build-aux/config.rpath (libname_spec): Export.
94424         (library_names_spec): New variable. Export.
94425         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94426         library_names_spec from the config.rpath output. Locate shared library
94427         through the name pattern in library_names_spec.
94429 2007-01-01  Eric Blake  <ebb9@byu.net>
94431         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94433 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94435         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94436         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94437         assume the C locale, and avoid an "eval" that could cause trouble.
94438         Problem with SORT reported by Bob Proulx.
94440         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94441         Define.  Trivial patch from Henning Nielsen Lund, originally
94442         sent to bug-grep@gnu.org today.
94444 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94446         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94447         struct stat.  Problem reported by Henning Nielsen Lund.
94448         * lib/acl.c: Include acl.h first, to check interface.  Don't
94449         bother to include sys/types.h and sys/stat.h again.
94451 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94453         Import the following change from libc; problem reported by
94454         Sven Verdoolaege.
94456         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94458         [BZ #1373]
94459         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94461 2006-12-28  Jim Meyering  <jim@meyering.net>
94463         * build-aux/announce-gen: Do not assume that the package
94464         builds any of tar.gz, tar.bz2, and .xdelta files.
94465         Suggestion from Simon Josefsson.
94467 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94469         * modules/announce-gen: New file.
94471 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94473         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94474         handles its gotchas now.
94475         * lib/mbswidth.c: Likewise.
94476         * lib/wcwidth.h: Likewise.
94477         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94478         and iswcntrl; the wctype module does this stuff now.
94479         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94481         * modules/mbchar (Depends-on): Add wctype.
94482         * modules/mbswidth (Depends-on): Likewise.
94483         * modules/wcwidth (Depends-on): Likewise.
94485 2006-12-27  Eric Blake  <ebb9@byu.net>
94487         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94488         module uses more than what <wctype.h> is required to provide.
94490 2006-12-26  Eric Blake  <ebb9@byu.net>
94492         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94494 2006-12-26  Eric Blake  <ebb9@byu.net>
94496         * modules/absolute-header: New module.
94497         * modules/fcntl (Depends-on): Depend on it.
94498         * modules/inttypes (Depends-on): Likewise.
94499         * modules/stdint (Depends-on): Likewise.
94500         * modules/sys_stat (Depends-on): Likewise.
94501         * modules/wctype (Depends-on): Likewise.
94502         * MODULES.html.sh (Support for building libraries and
94503         executables): Document it.
94505 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94507         * gnulib-tool (SED): Remove, undoing previous change.
94508         The problem was that it broke coreutils on Solaris, because
94509         "sed --posix" leaked into a makefile.
94510         (sed): New alias, if 'alias' and GNU sed.
94512 2006-12-24  Jim Meyering  <jim@meyering.net>
94514         Work around an fchownat bug in glibc-2.4:
94515         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94516         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94517         in spite of the -P option.
94518         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94519         New macros.
94520         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94521         * modules/openat (Files): Add lib/fchownat.c.
94522         * lib/openat.c (fchownat): Don't define here.  Move to...
94523         * lib/fchownat.c: ...this new file.
94525 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94527         Fix bug reported by Bruno Haible in
94528         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94529         where quotearg.c didn't compile on Mac OS X 10.2 because it
94530         lacks <wchar.h> and wint_t.
94531         * lib/wctype_.h (__wctype_wint_t): New type.
94532         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94533         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94534         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94535         Arg is now of type __wctype_wint_t, not wint_t.
94536         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94537         substitute HAVE_WINT_T.
94538         * modules/wctype (Files): Add m4/wint_t.m4.
94539         (wctype.h): Substitute HAVE_WINT_T.
94541 2006-12-23  Bruno Haible  <bruno@clisp.org>
94543         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94545 2006-12-23  Bruno Haible  <bruno@clisp.org>
94547         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94548         S_ISLNK.
94549         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94550         mingw.
94552 2006-12-22  Bruno Haible  <bruno@clisp.org>
94554         * lib/copy-file.c: Include acl.h.
94555         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94556         Close the file descriptors only after being done with copy_acl.
94557         * modules/copy-file (Depends-on): Add acl.
94559 2006-12-22  Bruno Haible  <bruno@clisp.org>
94561         * gnulib-tool (SED): New variable.
94562         Use $SED instead of sed everywhere.
94564 2006-12-22  Bruno Haible  <bruno@clisp.org>
94566         * modules/no-c++: New file.
94567         * m4/no-c++.m4: New file.
94568         * MODULES.html.sh (Support for building libraries and executables):
94569         Add no-c++.
94571 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94573         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94574         Include <limits.h>, and use its INT_MAX to rewrite the
94575         j loop so that it does not overflow 'int'.  Problem reported by
94576         Ralf Wildenhues in
94577         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94578         Play it safe by shifting left by 1 rather than multiplying by 2,
94579         as GCC is less likely to optimize this away when the value
94580         is signed (when it assumes overflow leads to undefined behavior).
94581         Also, don't assume time_t uses two's complement.
94583 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94585         * MODULES.html.sh: New module wctype.
94586         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94587         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94588         <wctype.h>, since the new wctype module should fix this.
94589         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94590         the wctype module should arrange for it.
94591         * lib/regex_internal.h: Likewise.
94592         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94593         since the wctype module should handle this now.
94594         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94595         * modules/fnmatch (Depends-on): Add wctype.
94596         * modules/quotearg (Depends-on): Likewise.
94597         * modules/regex (Depends-on): Likewise.
94599 2006-12-19  Bruno Haible  <bruno@clisp.org>
94601         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94602         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94604 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94606         * modules/savewd (Depends-on): Fix dependency on fcntl.
94608 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94610         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94611         conforms to C99, rather than relying on the user's environment
94612         setting of STDINT_H.
94614 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94615         and Eric Blake  <ebb9@byu.net>
94617         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94618         This is more consistent with the other defines here.
94619         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94620         Port to z/OS.  Problem reported by Paul Gilmartin.
94621         Change local vars to use gl_ prefix rather than ac_.
94622         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94623         with other defines.
94624         * modules/double-slash-root: New module.
94625         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94626         (Depends-on): Add double-slash-root.
94627         * MODULES.html.sh (File system functions): Mention new module.
94629 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94631         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94632         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94633         This is for the benefit of gzip, which doesn't do i18n.
94635 2006-12-12  Jim Meyering  <jim@meyering.net>
94637         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94638         Reported by Andreas Schwab <schwab@suse.de>.
94640 2006-12-12  Bruno Haible  <bruno@clisp.org>
94642         Merge these changes.
94643         2006-09-05  Bruno Haible  <bruno@clisp.org>
94644         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94645         iconv_alloc succeeded.
94646         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94647         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94648         test for " && dest " at the end - dest is always != NULL there. Call
94649         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94650         with 2xNULL arguments, also to flush the state storage. Handle the
94651         IRIX iconv behaviour. Realloc the final result, to throw away unused
94652         memory.
94654 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94656         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94657         and fchmodat unconditionally, since glibc 2.4 has them.
94658         Problem reported by Arkadiusz Miskiewicz.
94660 2006-12-10  Bruno Haible  <bruno@clisp.org>
94662         * gnulib-tool (func_import): Show the include files only for those
94663         modules that are copied and specified.
94664         Reported by Karl Berry.
94666 2006-12-08  Jim Meyering  <jim@meyering.net>
94668         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94669         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94671         * build-aux/announce-gen: Add two new options, both optional:
94672         --bootstrap-tools=TOOL_LIST
94673               a comma-separated list of tools, e.g.,
94674               autoconf,automake,bison,gnulib
94675         --gnulib-snapshot-date=DATE
94676               if gnulib is in the bootstrap tool list,
94677               then report this as the snapshot date.
94678               If not specified, use the current date/time.
94679               If you specify a date here, be sure it's UTC.
94681 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94683         * tests/test-argp-2.sh: Fix test to match actual output.
94684         (func_compare): Fix sed script to be portable.
94686 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94688         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94689         workaround for this case.  It is not autoconfigured now; offhand
94690         it's hard to see how to autoconfigure it.
94692 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94694         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94695         a directory that is about to be chowned.  Such a directory's
94696         initial file permissions should permit the owner only and this
94697         should not be changed until after the chown, since the group and
94698         other bits would be incorrect if they granted permission before
94699         the chown.
94701         Fix porting problem for iswctype reported by Georg Schwarz in:
94702         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94703         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94704         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94705         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94706         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94708 2006-12-03  Jim Meyering  <jim@meyering.net>
94710         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94711         p->fts_statp may not yet be defined.
94712         (fts_read): Instead, set it in the caller, once p->fts_statp is
94713         sure to be defined, and corresponds to a top-level directory.
94714         This bug made du -x fail.  Here's the coreutils test case:
94715         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94716         Reported by Mike Frysinger.
94718 2006-12-01  Jim Meyering  <jim@meyering.net>
94720         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94721         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94722         Reported by Simon Josefsson.
94724 2006-11-30  Jim Meyering  <jim@meyering.net>
94726         * m4/warning.m4: Use the all-permissive copyright notice
94727         recommended by RMS (rather than LGPL).
94728         * m4/vararrays.m4: Likewise.
94729         * m4/flexmember.m4: Likewise.
94731 2006-11-29  Bruno Haible  <bruno@clisp.org>
94733         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94734         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94735         using +=.
94736         Reported by Simon Josefsson <simon@josefsson.org>.
94738 2006-11-28  James Youngman  <jay@gnu.org>
94740         * README: Advise users that they might find the bug-gnulib@gnu.org
94741         and autotools-announce@gnu.org mailing lists useful.
94743 2006-11-28  Bruno Haible  <bruno@clisp.org>
94745         * m4/ptrdiff_max.m4: Remove file.
94747 2006-11-21  Bruno Haible  <bruno@clisp.org>
94749         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94750         _AC_COMPUTE_INT.
94751         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94752         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94753         _AC_COMPUTE_INT.
94754         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94755         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94756         _AC_COMPUTE_INT.
94757         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94759 2006-11-28  Jim Meyering  <jim@meyering.net>
94761         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94762         warning from "gcc -Wshadow" about shadowing the builtin.
94764 2006-11-27  Bruno Haible  <bruno@clisp.org>
94766         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94767         _AC_COMPUTE_INT.
94768         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94770 2006-11-27  Bruno Haible  <bruno@clisp.org>
94771             Paul Eggert  <eggert@cs.ucla.edu>
94773         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94775 2006-11-26  Bruno Haible  <bruno@clisp.org>
94777         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94778         noinst_LTLIBRARIES.
94780 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94781             Bruno Haible  <bruno@clisp.org>
94783         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94784         if compiling with "gcc -ansi".
94786 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94788         Fix some incompatibilities with gcc -ansi -pedantic.
94789         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94790         if compiling pedantically with GCC, unless it's C99 or later.
94791         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94792         it mishandles gcc -ansi -pedantic as well.
94793         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94794         if gcc -pedantic.
94795         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94796         initializers for struct if -pedantic, unless it's C99 or later.
94798 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94800         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94801         Don't close an fd more than once. Identical atimes indicate
94802         success, not failure.
94804 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94806         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94808 2006-11-23  Jim Meyering  <jim@meyering.net>
94810         * build-aux/announce-gen: New file.  From coreutils.
94812 2006-11-22  Jim Meyering  <jim@meyering.net>
94814         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94815         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94816         (fts_read): Use a temporary to narrow the overused st_size member
94817         before using it in a switch statement.  Reported by Matthew Woehlke.
94819         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94820         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94822 2006-11-20  Bruno Haible  <bruno@clisp.org>
94824         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94825         changequote instead of pairs of brackets.
94826         Reported by Andreas Schwab <schwab@suse.de>.
94828 2006-11-21  Jim Meyering  <jim@meyering.net>
94830         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94831         so as to remain compatible with older compilers.
94832         Patch from Michael Deutschmann.
94834 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94836         * MODULES.html.sh (File system functions): Add openat.
94838         * lib/openat.h (rpl_fstatat): New macro, if
94839         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94840         (fstatat): Define to rpl_fstatat under the same conditions,
94841         unless COMPILING_FSTATAT.
94842         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94843         seems to have the bug.
94844         * lib/fstatat.c: New file.
94845         * modules/openat (Files): Add it.
94847 2006-11-20  Bruno Haible  <bruno@clisp.org>
94849         * Makefile: New file.
94851 2006-11-20  Jim Meyering  <jim@meyering.net>
94853         The beginnings of syntax-related checks for gnulib.
94854         * lib/Makefile: New file.
94855         * lib/t-idcache: New script.  Ensure that the two halves of
94856         idcache.c stay in sync.
94858         * lib/idcache.c: Adjust comments in user- and group- portions to
94859         be more accurate, and to be consistent with one another.
94861 2006-11-20  Jim Meyering  <jim@meyering.net>
94863         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94864         continue using the flexible array member (thus, this module performs
94865         half as many malloc calls), with the addition that...
94866         (getgroup, getuser): Consistently record a non-match via an empty
94867         "name" string, and map an empty string match to a NULL return value.
94868         * modules/idcache (Depends-on): Re-add flexmember.
94870         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94871         (getuidbyname, getgroup, getgidbyname): Likewise.
94873         Use cleaner syntax: NULL rather than 0.
94874         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94876 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94878         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94879         It mishandled the case where the group was missing.
94880         Problem reported by Greg Schafer.
94881         * modules/idcache: Likewise.
94883 2006-11-18  Jim Meyering  <jim@meyering.net>
94885         * check-module (%exempt_header): Add exception for some
94886         conditionally-included headers.
94888         * modules/i-ring (Depends-on): Add verify.
94889         (License): Change to LGPL.
94891 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94893         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94894         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94895         and inttostr.h.  Use snprintf rather than uinttostr, so that
94896         LGPLed code doesn't depend on GPLed.
94898 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94900         * modules/inline (License): Change from GPL to LGPL.
94902 2006-11-17  Jim Meyering  <jim@meyering.net>
94904         * modules/d-type (License): Switch to LGPL.
94906 2006-11-15  Bruno Haible  <bruno@clisp.org>
94908         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94910 2006-11-15  Eric Blake  <ebb9@byu.net>
94912         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94913         the module dependency.
94915 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94916             Bruno Haible  <bruno@clisp.org>
94918         * gnulib-tool (func_create_testdir): Add license consistency check.
94920 2006-11-15  Eric Blake  <ebb9@byu.net>
94922         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94923         random "(cached)" in configure output.
94925 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94927         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94928         test for conforming inttypes.h is both announced and cached.
94930         * MODULES.html.sh (seen_modules, seen_files): New variables.
94931         (func_module): Rewrite to use a few less gnulib-tool and sed
94932         invocations.  Avoid a couple of quadratic algorithms for ...
94933         (missed_modules, missed_files): ... these, with ...
94934         (func_append, func_tmpdir): ... these new functions, from
94935         gnulib-tool.  Analogously, install traps for cleanup.
94937         * tests/test-gc.c (main): Remove unused variables.
94938         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94940 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94942         * modules/inttostr (License): Change to LGPL.
94944 2006-11-14  Eric Blake  <ebb9@byu.net>
94946         * modules/tempname (License): Change to LGPL.
94948 2006-11-14  Eric Blake  <ebb9@byu.net>
94950         * doc/functions.texi (Function Portability): *printf functions on
94951         Cygwin now understand all POSIX size specifiers.
94953 2006-11-14  Bruno Haible  <bruno@clisp.org>
94955         * modules/c-ctype (License): Change to LGPL.
94957 2006-11-12  Bruno Haible  <bruno@clisp.org>
94959         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94960         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94961         for GNOME libraries, for which the include files are installed in
94962         subdirectories of $prefix/include.
94964 2006-11-12  Bruno Haible  <bruno@clisp.org>
94966         * m4/lib-link.m4: Require at least autoconf-2.54.
94967         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94968         name to underscores for the --with option.
94970 2006-11-13  Bruno Haible  <bruno@clisp.org>
94972         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94973         the tests directory.
94974         Reported by Ralf Wildenhues.
94976 2006-11-13  Bruno Haible  <bruno@clisp.org>
94978         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94979         (func_emit_initmacro_end): Undo the override here.
94980         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94981         Works around the famous automake error in coreutils.
94983 2006-11-13  Eric Blake  <ebb9@byu.net>
94985         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94986         element, not its node.
94988 2006-11-12  Bruno Haible  <bruno@clisp.org>
94990         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94991         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94993 2006-11-12  Bruno Haible  <bruno@clisp.org>
94995         * gnulib-tool: New option --local-symlink.
94996         (func_usage): Document it.
94997         (lsymbolic): New variable.
94998         (func_import, func_create_testdir): If --symlink was not specified,
94999         test whether --local-symlink was specified and the file comes from
95000         the local_gnulib_dir.
95002 2006-11-12  Bruno Haible  <bruno@clisp.org>
95004         * gnulib-tool (func_ln): New function.
95005         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
95007 2006-11-12  Bruno Haible  <bruno@clisp.org>
95009         Finish support for source files in subdirectories.
95010         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
95011         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
95012         AUTOMAKE_OPTIONS.
95013         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
95015 2006-11-12  Bruno Haible  <bruno@clisp.org>
95017         * gnulib-tool (func_get_automake_snippet): Synthesize also an
95018         EXTRA_lib_SOURCES augmentation.
95019         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
95021 2006-11-12  Jim Meyering  <jim@meyering.net>
95023         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
95024         file descriptors.  This also averts a failure on systems with
95025         native openat support when a traversed directory lacks "x" access.
95026         * lib/fts_.h: Include "i-ring.h"
95027         (struct FTS) [fts_fd_ring]: New member.
95028         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
95029         (FCHDIR): Add parentheses.
95030         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
95031         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
95032         When descending, rather than simply closing the previous
95033         fts_cwd_fd value, push that file descriptor onto the ring.
95034         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
95035         (fts_open): Initialize the new fd_ring member.
95036         (fts_close): Clear the ring.
95037         (fts_safe_changedir): When possible, use our new fd_ring to skip
95038         the diropen and fstat and dev/ino comparison that would normally
95039         accompany a virtual `chdir ("..")'.
95041         * modules/fts (Depends-on): Add i-ring.
95042         * modules/i-ring: New module.
95043         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
95044         * m4/i-ring.m4: New file.
95046 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95048         * gnulib-tool (func_create_testdir): Fix replacement of
95049         `build-aux' in configure.ac.  Run autotools in gltests
95050         subdirectory.
95051         (func_create_testdir, func_create_megatestdir, test): There is
95052         no need for '--force' in most autotool invocations in a new
95053         tree.  Actually fail the whole test if any of the tools, or the
95054         configure or make stages fail.
95056         Sync from Automake.
95057         * build-aux/gnupload: Revert last change.  Add pointer to upload
95058         instructions of the GNU Maintenance Instructions.
95059         Suggestion by Karl Berry.
95061 2006-11-10  Jim Meyering  <jim@meyering.net>
95063         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
95065 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95067         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
95068         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
95069         (bind_textdomain_codeset) [! ENABLE_NLS]:
95070         Evaluate all the arguments.  That way, callers get compatible behavior
95071         if the arguments have side effects.  Also, it avoids some GCC
95072         diagnostics in some cases; Joel E. Denny reported problems when Bison
95073         was configured with --enable-gcc-warnigs.
95075 2006-11-10  Jim Meyering  <jim@meyering.net>
95077         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
95078         relevant options in CFLAGS (like -O, -fno-inline) are taken into
95079         account.
95081 2006-11-10  Jim Meyering  <jim@meyering.net>
95083         * modules/inline: New file/module.
95084         * modules/xalloc (Files): Remove m4/inline.m4.
95085         (Depends-on): Add inline, instead.
95086         * modules/oset: Likewise.
95087         * modules/list: Likewise.
95089 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95091         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
95092         Problem reported by Matthew Woehlke.
95094 2006-11-09  Bruno Haible  <bruno@clisp.org>
95096         * lib/tempname.c (gen_tempname): Remove variant that invokes
95097         __gen_tempname.
95098         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
95099         __gen_tempname.
95101 2006-11-08  Bruno Haible  <bruno@clisp.org>
95103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
95104         to 'yes' instead of 'cross-compiling'.
95106 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95108         * lib/quotearg.h (quotearg_free): New decl.
95109         * lib/quotearg.c (quotearg_free): New function.
95110         (slot0, nslots, slotvec0, slotvec):
95111         Now file-scope so that quotearg_free can get at them.
95113 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95115         Sync from Automake.
95116         * build-aux/gnupload: Add missing 'gnu' to example URL.
95117         Report by Karl Berry.
95119 2006-11-08  Bruno Haible  <bruno@clisp.org>
95121         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95122         Suggested by Paul Eggert.
95124 2006-11-08  Jim Meyering  <jim@meyering.net>
95126         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95127         It's already included if !_LIBC.
95128         (fts_safe_changedir): Add a comment.
95130 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95132         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95133         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95134         Matthew Woehlke.
95136         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95137         definitions up, to avoid colliding with change below.
95138         (static_inline) [HAVE_INLINE]: New macro.
95139         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95140         Provide extern decls when !HAVE_INLINE.  Do not define unless
95141         static_inline is defined, either by us or by xmalloc.c.  Use
95142         static_inline rather than static inline.
95143         (XCALLOC): Optimize sizeof(T) = 1 case.
95144         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95146 2006-11-07  Bruno Haible  <bruno@clisp.org>
95148         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95149         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95150         AC_C_INLINE.
95151         * modules/xalloc (Files): Add m4/inline.m4.
95153 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95155         * README: Fix typo.
95156         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95157         (Miscellanous Notes): ...from this.
95159 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95161         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95162         Mention that offsetof should be used instead of sizeof.
95163         From Bruno Haible.
95165 2006-11-07  Bruno Haible  <bruno@clisp.org>
95167         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95169 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95171         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95172         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95173         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95174         (gl_tree_add_before, gl_tree_add_after):
95175         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95176         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95177         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95178         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95179         (gl_linked_add_after, gl_linked_add_at): Likewise.
95180         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95181         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95182         (gl_tree_add_before, gl_tree_add_after): Likewise.
95183         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95184         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95185         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95187 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95189         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95191 2006-11-06  Bruno Haible  <bruno@clisp.org>
95193         * m4/inline.m4: New file.
95194         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95195         * modules/list (Files): Add m4/inline.m4.
95196         * modules/oset (Files): Likewise.
95198 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95200         * lib/idcache.c: Include <stddef.h>, for offsetof.
95201         (struct userid.name): Change from char * to a flexible array member.
95202         All uses changed.
95203         * modules/idcache (Depends-on): Add flexmember.
95205         * MODULES.html.sh (Core language properties): New module flexmember.
95206         * modules/flexmember, m4/flexmember.m4: New files.
95208         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95209         inline functions that are identical with the old xnmalloc_inline,
95210         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95211         that we can avoid some unnecessary integer multiplications and
95212         divisions in the common case where the element size is known at
95213         compile time.
95214         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95215         needed.
95216         (xnboundedmalloc): Remove.
95217         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95218         arguments, for consistency with rest of this header.
95219         (xcharalloc): Rewrite using XNMALLOC.
95220         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95221         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95222         versions have been moved to lib/xalloc.h and renamed to be the
95223         non-*_inline versions.
95224         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95225         and xnrealloc functions, since those functions are now inline and
95226         now call us.
95227         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95228         renaming described above.
95229         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95230         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95231         captures the dependency in AC_C_INLINE.
95233         New module canonicalize-lgpl, proposed by Charles Wilson in
95234         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95235         with a few small changes afterwards.
95236         * MODULES.html.sh (File system functions): New module
95237         canonicalize-lgpl.
95238         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95239         and canonicalize_file_name.
95240         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95241         * modules/canonicalize-lgpl: New files.
95243 2006-11-05  Bruno Haible  <bruno@clisp.org>
95245         * gnulib-tool (func_import, func_create_testdir): Create directories
95246         also for files in subdirectories of lib/.
95248 2006-11-05  Bruno Haible  <bruno@clisp.org>
95250         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95251         ANSI C compliant.
95253 2006-11-03  Bruno Haible  <bruno@clisp.org>
95255         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95257         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95258         (xnboundedmalloc): New inline function.
95259         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95260         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95261         xmalloc.
95262         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95263         xmalloc.
95264         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95265         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95266         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95267         xmalloc.
95268         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95269         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95270         xmalloc.
95271         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95272         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95273         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95274         xmalloc.
95275         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95276         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95277         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95278         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95279         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95280         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95281         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95283 2006-11-03  Bruno Haible  <bruno@clisp.org>
95285         * lib/c-ctype.h [C++]: Define functions without name mangling.
95286         * lib/fwriteerror.h [C++]: Likewise.
95287         * lib/gcd.h [C++]: Likewise.
95288         * lib/linebreak.h [C++]: Likewise.
95290 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95292         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95293         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95294         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95296         Check for functions and headers just once.
95297         Check for declaration of canonicalize_file_name.
95298         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95300 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95302         * gnulib-tool (func_import): Fix typo in actioncmd.
95304 2006-11-02  Bruno Haible  <bruno@clisp.org>
95306         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95307         newline sequence in the Makefile.am snippet as a space, like "make"
95308         does.
95309         Reported by Roger Persson <perrog@gmail.com>.
95311 2006-11-01  Bruno Haible  <bruno@clisp.org>
95313         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95314         already declared in <string.h>.
95315         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95317 2006-11-01  Bruno Haible  <bruno@clisp.org>
95319         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95320         * lib/strcase.h: Include <string.h>.
95321         (strcasecmp): Define to rpl_strcasecmp here.
95323 2006-11-01  Bruno Haible  <bruno@clisp.org>
95325         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95327 2006-11-01  Eric Blake  <ebb9@byu.net>
95329         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95333 2006-10-29  Bruno Haible  <bruno@clisp.org>
95335         Make it compile in C++ mode.
95336         * lib/full-write.c (full_rw): Add a cast.
95338 2006-11-01  Bruno Haible  <bruno@clisp.org>
95340         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95341         be POSIX compliant.
95342         Reported by Roger Persson <perrog@gmail.com>.
95344 2006-11-01  Eric Blake  <ebb9@byu.net>
95346         * lib/getopt_.h: Fix comments.
95348 2006-10-31  Eric Blake  <ebb9@byu.net>
95350         * modules/tmpdir (Depends-on): Add sys_stat.
95351         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95352         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95353         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95354         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95355         tempname.
95357 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95359         Avoid some C++ diagnostics reported by Bruno Haible.
95360         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95361         xmalloc.
95362         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95363         (struct slotvec): Move to top level.
95364         (quotearg_n_options): Rewrite to avoid xmalloc.
95365         * lib/xalloc.h (xcharalloc): New function.
95366         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95367         [defined __cplusplus]: Add function template that provides result
95368         type propagation.  This part of the change is from Bruno Haible.
95370 2006-10-29  Bruno Haible  <bruno@clisp.org>
95372         Make it compile in C++ mode.
95373         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95374         * lib/strnlen1.c (strnlen1): Cast memchr result.
95375         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95376         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95377         (create_temp_dir): Rename local variable 'template'.
95378         (compile_csharp_using_sscli): Add cast.
95379         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95380         * lib/findprog.c (find_in_path): Likewise.
95381         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95382         * lib/wait-process.c (register_slave_subprocess): Likewise.
95384 2006-10-22  Bruno Haible  <bruno@clisp.org>
95386         * modules/tsearch: New file.
95387         * lib/tsearch.h: New file.
95388         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95389         * m4/tsearch.m4: New file.
95390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95392 2006-10-29  Eric Blake  <ebb9@byu.net>
95394         * lib/arcfour.c: Assume config.h.
95395         * lib/arctwo.c: Likewise.
95396         * lib/base64.c: Likewise.
95397         * lib/check-version.c: Likewise.
95398         * lib/crc.c: Likewise.
95399         * lib/des.c: Likewise.
95400         * lib/gc-gnulib.c: Likewise.
95401         * lib/gc-libgcrypt.c: Likewise.
95402         * lib/gc-pbkdf2-sha1.c: Likewise.
95403         * lib/getaddrinfo.c: Likewise.
95404         * lib/getdelim.c: Likewise.
95405         * lib/getline.c: Likewise.
95406         * lib/hmac-md5.c: Likewise.
95407         * lib/hmac-sha1.c: Likewise.
95408         * lib/iconvme.c: Likewise.
95409         * lib/md2.c: Likewise.
95410         * lib/md4.c: Likewise.
95411         * lib/memxor.c: Likewise.
95412         * lib/read-file.c: Likewise.
95413         * lib/readline.c: Likewise.
95414         * lib/rijndael-alg-fst.c: Likewise.
95415         * lib/rijndael-api-fst.c: Likewise.
95416         * lib/xgetdomainname.c: Likewise.
95418 2006-10-28  Eric Blake  <ebb9@byu.net>
95420         * lib/xstrndup.c: Assume config.h.
95422 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95424         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95425         stat-macros.h is now for our own macros, whereas stat_h is for
95426         macros in the <sys/stat.h> name space.
95427         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95428         (STAT_MACROS_H): Remove.
95429         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95430         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95431         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95432         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95433         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95434         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95435         Move these macros to ...
95436         * lib/stat_.h: here.  Don't include stat-macros.h.
95437         * lib/canonicalize.c: Don't include stat-macros.h.
95438         * lib/chown.c: Likewise.
95439         * lib/euidaccess.c: Likewise.
95440         * lib/file-type.c: Likewise.
95441         * lib/filemode.c: Likewise.
95442         * lib/glob.c: Likewise.
95443         * lib/isapipe.c: Likewise.
95444         * lib/lchown.c: Likewise.
95445         * lib/lstat.c: Likewise.
95446         * lib/mkdir-p.c: Likewise.
95447         * lib/rmdir.c: Likewise.
95448         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95450         unless mkdir isn't declared, to speed up 'configure'.
95451         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95452         would define all the S_* symbols.
95453         * modules/canonicalize (Depends-on):
95454         Depend on sys_stat, not stat-macros.
95455         * modules/chown: Likewise.
95456         * modules/euidaccess: Likewise.
95457         * modules/filemode: Likewise.
95458         * modules/file-type: Likewise.
95459         * modules/glob: Likewise.
95460         * modules/isapipe: Likewise.
95461         * modules/lchown: Likewise.
95462         * modules/lstat: Likewise.
95463         * modules/mkancesdirs: Likewise.
95464         * modules/rmdir: Likewise.
95465         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95466         * modules/modechange: Likewise.
95467         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95468         (configure.ac): Remove gl_STAT_MACROS.
95469         * modules/sys_stat (Depends-on): Remove stat-macros.
95471 2006-10-27  Bruno Haible  <bruno@clisp.org>
95473         * m4/signed.m4: Remove file.
95474         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95475         invocation.
95476         * modules/vasnprintf (Files): Remove m4/signed.m4.
95478 2006-10-27  Bruno Haible  <bruno@clisp.org>
95480         Update to GNU gettext 0.16.
95481         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95482         m4/inttypes-h.m4, m4/signed.m4.
95483         * m4/gettext.m4: Update to GNU gettext 0.16.
95484         * m4/intl.m4: New file, from GNU gettext.
95485         * m4/intldir.m4: New file, from GNU gettext.
95486         * config/srclist.txt: Update
95488 2006-10-27  Eric Blake  <ebb9@byu.net>
95490         * MODULES.html.sh: Document tempname.
95491         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95492         dependencies.
95493         (Files): Move lib/tempname.c...
95494         * modules/tempname: ...to this new module.
95495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95496         (gl_PREREQ_TEMPNAME): Move...
95497         * m4/tempname.m4: ...to this new file.
95498         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95499         * modules/sys_stat (Depends-on): Add stat-macros.
95500         * lib/stat_.h (includes): Pick up stat macros.
95501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95502         if stat macros are broken.
95503         * lib/tempname.c (includes): No need to include "stat-macros.h".
95504         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95505         (direxists, __path_search) [!_LIBC]: Don't compile these in
95506         gnulib; the tmpdir module covers that.
95507         * lib/tempname.h: New file.
95509 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95511         * COPYING: Explain how gnulib-tool converts licence headers.
95512         Almost all wording by Eric Blake.
95514 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95516         * lib/mbchar.h (is_basic_table): Make read-only.
95517         * lib/mbchar.c (is_basic_table): Likewise.
95518         Reported by John Darrington.
95520 2006-10-25  Bruno Haible  <bruno@clisp.org>
95522         * lib/progname.h (set_program_name): Undefine before defining.
95524 2006-10-25  Bruno Haible  <bruno@clisp.org>
95526         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95527         false for non-gcc C++ compilers.
95528         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95530 2006-10-24  Bruno Haible  <bruno@clisp.org>
95532         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95533         iconv implementations like Irix iconv.
95535 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95537         * modules/vararrays: New file.
95538         * m4/vararrays.m4: New file, taken from diffutils.
95539         * MODULES.html.sh: New module vararrays.
95541 2006-10-24  Karl Berry  <karl@gnu.org>
95543         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95544         Don't call GNU Unix.
95546 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95548         * users.txt: Add Libtool.
95550         Sync from Libtool:
95552         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95554         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95555         to gnulib's policy of including config.h unconditionally.
95557 2006-10-24  Bruno Haible  <bruno@clisp.org>
95559         * modules/wcwidth (Files): Add m4/wint_t.m4.
95560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95561         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95563 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95565         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95566         to pacify GCC with some -W flags enabled.  Problem reported by
95567         Bruno Haible.
95569 2006-10-24  Jim Meyering  <jim@meyering.net>
95571         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95572         Reported by Karl Berry.
95574 2006-10-23  Bruno Haible  <bruno@clisp.org>
95576         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95578 2006-10-24  Bruno Haible  <bruno@clisp.org>
95580         * lib/gl_list.h: Use C comment style, not C++ comment style.
95582 2006-10-23  Eric Blake  <ebb9@byu.net>
95584         * lib/getaddrinfo.c (includes): Add missing include.
95586 2006-10-23  Bruno Haible  <bruno@clisp.org>
95587             Paul Eggert  <eggert@cs.ucla.edu>
95589         Ability to rename obstack_free.
95590         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95591         obstack_free.
95592         (obstack_free): Invoke the __obstack_free macro.
95593         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95595 2006-10-23  Bruno Haible  <bruno@clisp.org>
95596             Paul Eggert  <eggert@cs.ucla.edu>
95598         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95599         __argc, __argv from the declaration. (They are defined as macros on
95600         mingw.)
95602 2006-10-22  Bruno Haible  <bruno@clisp.org>
95604         * doc/gnulib-intro.texi: New file.
95605         * doc/gnulib.texi: Include it.
95607 2006-10-21  Bruno Haible  <bruno@clisp.org>
95609         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95610         "Introduction", "Miscellanous Notes", "Particular Modules".
95612 2006-10-21  Bruno Haible  <bruno@clisp.org>
95614         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95615         Change mostlyclean-local rule to avoid sh syntax error from bash
95616         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95618 2006-10-23  Jim Meyering  <jim@meyering.net>
95620         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95621         in place of snprintf.
95623         * modules/inttostr (Files): Add lib/uinttostr.c.
95624         * lib/uinttostr.c (inttostr): New file/function.
95625         * lib/inttostr.h (uinttostr): Declare.
95626         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95627         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95628         Add uinttostr.
95629         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95631 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95633         * lib/canonicalize.c (ELOOP): Define if not already defined.
95634         Problem reported by Bruno Haible in
95635         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95637 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95639         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95640         Problem reported by Perry Smith and Ville Laurikari.
95642         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95643         uses.
95645 2006-10-19  Bruno Haible  <bruno@clisp.org>
95647         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95648         for mingw.
95650 2006-10-19  Bruno Haible  <bruno@clisp.org>
95652         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95653         Needed for mingw.
95655 2006-10-19  Bruno Haible  <bruno@clisp.org>
95657         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95659 2006-10-19  Bruno Haible  <bruno@clisp.org>
95661         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95662         it.
95664 2006-10-19  Bruno Haible  <bruno@clisp.org>
95666         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95667         invocation.
95669 2006-10-19  Bruno Haible  <bruno@clisp.org>
95671         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95672         mountlist by default.
95674 2006-10-16  Bruno Haible  <bruno@clisp.org>
95676         * lib/c-strstr.c: Include c-strstr.h.
95678 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95680         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95681         in a slash.
95683 2006-10-18  Bruno Haible  <bruno@clisp.org>
95685         * lib/lock.h [C++]: Wrap definitions in extern "C".
95687 2006-10-18  Bruno Haible  <bruno@clisp.org>
95689         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95690         gl_LIBOBJS list.
95692 2006-10-18  Bruno Haible  <bruno@clisp.org>
95694         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95696 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95698         * lib/xstrtol.h: Include gettext.h.
95699         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95700         Problem reported by Eric Blake.
95701         * modules/xstrtol (Depends-on): Add gettext-h.
95703 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95705         * lib/strftime.c (advance): New macro.
95706         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95707         incomplete type, so you can't add 0 to it.  Problem and patch
95708         reported by Eelco Dolstra for dietlibc.
95710 2006-10-18  Jim Meyering  <jim@meyering.net>
95712         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95713         type for a local, and rename it: s/up/user_proc/.
95715 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95717         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95718         READ_UTMP_USER_PROCESS.
95719         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95721 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95723         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95724         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95726 2006-10-17  Eric Blake  <ebb9@byu.net>
95728         * lib/sigprocmask.c (sigprocmask): Fix typo.
95730         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95732         * modules/clean-temp (Makefile.am): Don't add to make output...
95733         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95734         config.h.
95736 2006-10-17  Bruno Haible  <bruno@clisp.org>
95738         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95739         differently if DEFAULT_TEXT_DOMAIN is set.
95741 2006-10-16  Bruno Haible  <bruno@clisp.org>
95743         * lib/clean-temp.c: Include fwriteerror.h.
95745 2006-10-16  Bruno Haible  <bruno@clisp.org>
95747         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95749 2006-10-16  Bruno Haible  <bruno@clisp.org>
95751         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95752         * lib/sigprocmask.h: Include <sys/types.h>.
95753         (sigset_t): Use the system's definition if present.
95755 2006-10-17  Eric Blake  <ebb9@byu.net>
95757         * lib/xvasprintf.c (includes): Assume config.h.
95758         * lib/xasprintf.c (includes): Likewise.
95760 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95762         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95763         at least as wide as intmax_t.
95765 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95767         (Imported from Automake.)
95768         * build-aux/gnupload: Update to version 1.1 of directive file.
95770 2006-10-16  Eric Blake  <ebb9@byu.net>
95772         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95773         match Automake 1.10a.
95775 2006-10-14  Bruno Haible  <bruno@clisp.org>
95777         * modules/sigprocmask: New file.
95778         * lib/sigprocmask.h: New file.
95779         * lib/sigprocmask.c: New file.
95780         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95781         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95782         request sigprocmask.o.
95783         (gl_PREREQ_SIGPROCMASK): New macro.
95784         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95785         (Depends-on): Add sigprocmask.
95786         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95787         gt_SIGNALBLOCKING. Test for 'raise' only once.
95788         * lib/fatal-signal.c: Include sigprocmask.h.
95789         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95790         unblock_fatal_signals): Define always.
95791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95792         sigprocmask.
95794 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95796         Sync from Automake.
95797         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95798         which incorrectly sets the mode of an existing destination
95799         directory.  In some cases the unpatched install-sh could do the
95800         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95801         system.  We hope this is rare in practice, but it's clearly worth
95802         fixing.  Problem reported by Alex Unleashed in
95803         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95804         Also, don't bother to check for -m bugs unless we're using -m;
95805         suggested by Stepan Kasal.
95807 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95809         Sync from Automake.
95810         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95811         `-c' flag, so they appear at the same position as in %FASTDEP%
95812         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95813         which ignores unknown options only after the first non-option.
95814         Bug report against M4 by Nelson H. F. Beebe.
95816 2006-10-13  Jim Meyering  <jim@meyering.net>
95818         Fix a bug in yesterday's change.
95819         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95820         p->fts_statp->st_dev would be used uninitialized.
95821         Ensures that we always call fts_stat on the very first entry.
95822         Miklos Szeredi reported that find -xdev stopped working.
95824 2006-10-12  Bruno Haible  <bruno@clisp.org>
95826         * gnulib-tool (func_get_automake_snippet): Append an automatically
95827         computed EXTRA_DIST augmentation.
95828         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95829         * modules/alloca-opt (Makefile.am): Likewise.
95830         * modules/allocsa (Makefile.am): Likewise.
95831         * modules/arcfour (Makefile.am): Likewise.
95832         * modules/arctwo (Makefile.am): Likewise.
95833         * modules/argmatch (Makefile.am): Likewise.
95834         * modules/argz (Makefile.am): Likewise.
95835         * modules/atexit (Makefile.am): Likewise.
95836         * modules/backupfile (Makefile.am): Likewise.
95837         * modules/byteswap (Makefile.am): Likewise.
95838         * modules/c-strtod (Makefile.am): Likewise.
95839         * modules/c-strtold (Makefile.am): Likewise.
95840         * modules/calloc (Makefile.am): Likewise.
95841         * modules/canon-host (Makefile.am): Likewise.
95842         * modules/canonicalize (Makefile.am): Likewise.
95843         * modules/chdir-long (Makefile.am): Likewise.
95844         * modules/chdir-safer (Makefile.am): Likewise.
95845         * modules/check-version (Makefile.am): Likewise.
95846         * modules/chown (Makefile.am): Likewise.
95847         * modules/cloexec (Makefile.am): Likewise.
95848         * modules/close-stream (Makefile.am): Likewise.
95849         * modules/closeout (Makefile.am): Likewise.
95850         * modules/crc (Makefile.am): Likewise.
95851         * modules/csharpexec (Makefile.am): Likewise.
95852         * modules/cycle-check (Makefile.am): Likewise.
95853         * modules/des (Makefile.am): Likewise.
95854         * modules/dev-ino (Makefile.am): Likewise.
95855         * modules/dirfd (Makefile.am): Likewise.
95856         * modules/dirname (Makefile.am): Likewise.
95857         * modules/dup2 (Makefile.am): Likewise.
95858         * modules/eealloc (Makefile.am): Likewise.
95859         * modules/error (Makefile.am): Likewise.
95860         * modules/euidaccess (Makefile.am): Likewise.
95861         * modules/exclude (Makefile.am): Likewise.
95862         * modules/exitfail (Makefile.am): Likewise.
95863         * modules/fcntl-safer (Makefile.am): Likewise.
95864         * modules/fcntl (Makefile.am): Likewise.
95865         * modules/file-type (Makefile.am): Likewise.
95866         * modules/fileblocks (Makefile.am): Likewise.
95867         * modules/filemode (Makefile.am): Likewise.
95868         * modules/filenamecat (Makefile.am): Likewise.
95869         * modules/fnmatch (Makefile.am): Likewise.
95870         * modules/fopen-safer (Makefile.am): Likewise.
95871         * modules/fpending (Makefile.am): Likewise.
95872         * modules/fprintftime (Makefile.am): Likewise.
95873         * modules/free (Makefile.am): Likewise.
95874         * modules/fsusage (Makefile.am): Likewise.
95875         * modules/ftruncate (Makefile.am): Likewise.
95876         * modules/fts (Makefile.am): Likewise.
95877         * modules/gc-arcfour (Makefile.am): Likewise.
95878         * modules/gc-des (Makefile.am): Likewise.
95879         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95880         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95881         * modules/gc-md4 (Makefile.am): Likewise.
95882         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95883         * modules/gc-sha1 (Makefile.am): Likewise.
95884         * modules/gc (Makefile.am): Likewise.
95885         * modules/getaddrinfo (Makefile.am): Likewise.
95886         * modules/getcwd (Makefile.am): Likewise.
95887         * modules/getdelim (Makefile.am): Likewise.
95888         * modules/getdomainname (Makefile.am): Likewise.
95889         * modules/getgroups (Makefile.am): Likewise.
95890         * modules/gethostname (Makefile.am): Likewise.
95891         * modules/gethrxtime (Makefile.am): Likewise.
95892         * modules/getline (Makefile.am): Likewise.
95893         * modules/getloadavg (Makefile.am): Likewise.
95894         * modules/getlogin_r (Makefile.am): Likewise.
95895         * modules/getndelim2 (Makefile.am): Likewise.
95896         * modules/getopt (Makefile.am): Likewise.
95897         * modules/getpagesize (Makefile.am): Likewise.
95898         * modules/getpass-gnu (Makefile.am): Likewise.
95899         * modules/getpass (Makefile.am): Likewise.
95900         * modules/getsubopt (Makefile.am): Likewise.
95901         * modules/gettime (Makefile.am): Likewise.
95902         * modules/gettimeofday (Makefile.am): Likewise.
95903         * modules/getugroups (Makefile.am): Likewise.
95904         * modules/getusershell (Makefile.am): Likewise.
95905         * modules/glob (Makefile.am): Likewise.
95906         * modules/group-member (Makefile.am): Likewise.
95907         * modules/hard-locale (Makefile.am): Likewise.
95908         * modules/hash (Makefile.am): Likewise.
95909         * modules/hmac-md5 (Makefile.am): Likewise.
95910         * modules/hmac-sha1 (Makefile.am): Likewise.
95911         * modules/human (Makefile.am): Likewise.
95912         * modules/idcache (Makefile.am): Likewise.
95913         * modules/imaxabs (Makefile.am): Likewise.
95914         * modules/imaxdiv (Makefile.am): Likewise.
95915         * modules/inet_ntop (Makefile.am): Likewise.
95916         * modules/inet_pton (Makefile.am): Likewise.
95917         * modules/intprops (Makefile.am): Likewise.
95918         * modules/inttostr (Makefile.am): Likewise.
95919         * modules/inttypes (Makefile.am): Likewise.
95920         * modules/isapipe (Makefile.am): Likewise.
95921         * modules/javaversion (Makefile.am): Likewise.
95922         * modules/lchmod (Makefile.am): Likewise.
95923         * modules/lchown (Makefile.am): Likewise.
95924         * modules/localcharset (Makefile.am): Likewise.
95925         * modules/long-options (Makefile.am): Likewise.
95926         * modules/lstat (Makefile.am): Likewise.
95927         * modules/malloc (Makefile.am): Likewise.
95928         * modules/mathl (Makefile.am): Likewise.
95929         * modules/mbchar (Makefile.am): Likewise.
95930         * modules/md2 (Makefile.am): Likewise.
95931         * modules/md4 (Makefile.am): Likewise.
95932         * modules/md5 (Makefile.am): Likewise.
95933         * modules/memcasecmp (Makefile.am): Likewise.
95934         * modules/memchr (Makefile.am): Likewise.
95935         * modules/memcmp (Makefile.am): Likewise.
95936         * modules/memcoll (Makefile.am): Likewise.
95937         * modules/memcpy (Makefile.am): Likewise.
95938         * modules/memmem (Makefile.am): Likewise.
95939         * modules/memmove (Makefile.am): Likewise.
95940         * modules/mempcpy (Makefile.am): Likewise.
95941         * modules/memrchr (Makefile.am): Likewise.
95942         * modules/memset (Makefile.am): Likewise.
95943         * modules/memxor (Makefile.am): Likewise.
95944         * modules/mkancesdirs (Makefile.am): Likewise.
95945         * modules/mkdir-p (Makefile.am): Likewise.
95946         * modules/mkdir (Makefile.am): Likewise.
95947         * modules/mkdtemp (Makefile.am): Likewise.
95948         * modules/mkstemp (Makefile.am): Likewise.
95949         * modules/mktime (Makefile.am): Likewise.
95950         * modules/modechange (Makefile.am): Likewise.
95951         * modules/mountlist (Makefile.am): Likewise.
95952         * modules/nanosleep (Makefile.am): Likewise.
95953         * modules/obstack (Makefile.am): Likewise.
95954         * modules/openat (Makefile.am): Likewise.
95955         * modules/pagealign_alloc (Makefile.am): Likewise.
95956         * modules/pathmax (Makefile.am): Likewise.
95957         * modules/physmem (Makefile.am): Likewise.
95958         * modules/poll (Makefile.am): Likewise.
95959         * modules/posixtm (Makefile.am): Likewise.
95960         * modules/posixver (Makefile.am): Likewise.
95961         * modules/putenv (Makefile.am): Likewise.
95962         * modules/quote (Makefile.am): Likewise.
95963         * modules/quotearg (Makefile.am): Likewise.
95964         * modules/raise (Makefile.am): Likewise.
95965         * modules/read-file (Makefile.am): Likewise.
95966         * modules/readline (Makefile.am): Likewise.
95967         * modules/readlink (Makefile.am): Likewise.
95968         * modules/readtokens (Makefile.am): Likewise.
95969         * modules/readutmp (Makefile.am): Likewise.
95970         * modules/realloc (Makefile.am): Likewise.
95971         * modules/regex (Makefile.am): Likewise.
95972         * modules/rename-dest-slash (Makefile.am): Likewise.
95973         * modules/rename (Makefile.am): Likewise.
95974         * modules/rijndael (Makefile.am): Likewise.
95975         * modules/rmdir (Makefile.am): Likewise.
95976         * modules/rpmatch (Makefile.am): Likewise.
95977         * modules/safe-read (Makefile.am): Likewise.
95978         * modules/safe-write (Makefile.am): Likewise.
95979         * modules/same-inode (Makefile.am): Likewise.
95980         * modules/same (Makefile.am): Likewise.
95981         * modules/save-cwd (Makefile.am): Likewise.
95982         * modules/savedir (Makefile.am): Likewise.
95983         * modules/setenv (Makefile.am): Likewise.
95984         * modules/settime (Makefile.am): Likewise.
95985         * modules/sha1 (Makefile.am): Likewise.
95986         * modules/sig2str (Makefile.am): Likewise.
95987         * modules/snprintf (Makefile.am): Likewise.
95988         * modules/stat-macros (Makefile.am): Likewise.
95989         * modules/stat-time (Makefile.am): Likewise.
95990         * modules/stdbool (Makefile.am): Likewise.
95991         * modules/stdint (Makefile.am): Likewise.
95992         * modules/stdlib-safer (Makefile.am): Likewise.
95993         * modules/stpcpy (Makefile.am): Likewise.
95994         * modules/stpncpy (Makefile.am): Likewise.
95995         * modules/strcase (Makefile.am): Likewise.
95996         * modules/strcasestr (Makefile.am): Likewise.
95997         * modules/strchrnul (Makefile.am): Likewise.
95998         * modules/strcspn (Makefile.am): Likewise.
95999         * modules/strdup (Makefile.am): Likewise.
96000         * modules/strerror (Makefile.am): Likewise.
96001         * modules/strftime (Makefile.am): Likewise.
96002         * modules/strndup (Makefile.am): Likewise.
96003         * modules/strnlen (Makefile.am): Likewise.
96004         * modules/strpbrk (Makefile.am): Likewise.
96005         * modules/strsep (Makefile.am): Likewise.
96006         * modules/strstr (Makefile.am): Likewise.
96007         * modules/strtod (Makefile.am): Likewise.
96008         * modules/strtoimax (Makefile.am): Likewise.
96009         * modules/strtok_r (Makefile.am): Likewise.
96010         * modules/strtol (Makefile.am): Likewise.
96011         * modules/strtoll (Makefile.am): Likewise.
96012         * modules/strtoul (Makefile.am): Likewise.
96013         * modules/strtoull (Makefile.am): Likewise.
96014         * modules/strtoumax (Makefile.am): Likewise.
96015         * modules/strverscmp (Makefile.am): Likewise.
96016         * modules/sys_socket (Makefile.am): Likewise.
96017         * modules/sys_stat (Makefile.am): Likewise.
96018         * modules/sysexits (Makefile.am): Likewise.
96019         * modules/time_r (Makefile.am): Likewise.
96020         * modules/timegm (Makefile.am): Likewise.
96021         * modules/timespec (Makefile.am): Likewise.
96022         * modules/tmpfile-safer (Makefile.am): Likewise.
96023         * modules/trim (Makefile.am): Likewise.
96024         * modules/unistd-safer (Makefile.am): Likewise.
96025         * modules/unlinkdir (Makefile.am): Likewise.
96026         * modules/unlocked-io (Makefile.am): Likewise.
96027         * modules/userspec (Makefile.am): Likewise.
96028         * modules/utime (Makefile.am): Likewise.
96029         * modules/utimecmp (Makefile.am): Likewise.
96030         * modules/utimens (Makefile.am): Likewise.
96031         * modules/vasnprintf (Makefile.am): Likewise.
96032         * modules/vasprintf (Makefile.am): Likewise.
96033         * modules/vsnprintf (Makefile.am): Likewise.
96034         * modules/xalloc (Makefile.am): Likewise.
96035         * modules/xgetcwd (Makefile.am): Likewise.
96036         * modules/xnanosleep (Makefile.am): Likewise.
96037         * modules/xreadlink (Makefile.am): Likewise.
96038         * modules/xstrtod (Makefile.am): Likewise.
96039         * modules/xstrtol (Makefile.am): Likewise.
96040         * modules/xstrtold (Makefile.am): Likewise.
96041         * modules/yesno (Makefile.am): Likewise.
96042         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
96044 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96046         * modules/error (Makefile.am): Distribute files through
96047         EXTRA_DIST, not lib_SOURCES.
96049 2006-10-12  Eric Blake  <ebb9@byu.net>
96051         * modules/error (Makefile.am): Distribute files in /lib.
96052         * modules/obstack (Makefile.am): Likewise.
96054 2006-10-12  Bruno Haible  <bruno@clisp.org>
96056         * modules/acl (Makefile.am): Distribute all files in lib/ through
96057         EXTRA_DIST.
96058         * modules/arcfour (Makefile.am): Likewise.
96059         * modules/arctwo (Makefile.am): Likewise.
96060         * modules/argmatch (Makefile.am): Likewise.
96061         * modules/argz (Makefile.am): Likewise.
96062         * modules/atexit (Makefile.am): Likewise.
96063         * modules/backupfile (Makefile.am): Likewise.
96064         * modules/c-strtod (Makefile.am): Likewise.
96065         * modules/c-strtold (Makefile.am): Likewise.
96066         * modules/calloc (Makefile.am): Likewise.
96067         * modules/canon-host (Makefile.am): Likewise.
96068         * modules/canonicalize (Makefile.am): Likewise.
96069         * modules/chdir-long (Makefile.am): Likewise.
96070         * modules/chdir-safer (Makefile.am): Likewise.
96071         * modules/check-version (Makefile.am): Likewise.
96072         * modules/chown (Makefile.am): Likewise.
96073         * modules/cloexec (Makefile.am): Likewise.
96074         * modules/close-stream (Makefile.am): Likewise.
96075         * modules/closeout (Makefile.am): Likewise.
96076         * modules/crc (Makefile.am): Likewise.
96077         * modules/cycle-check (Makefile.am): Likewise.
96078         * modules/des (Makefile.am): Likewise.
96079         * modules/dirfd (Makefile.am): Likewise.
96080         * modules/dirname (Makefile.am): Likewise.
96081         * modules/dup2 (Makefile.am): Likewise.
96082         * modules/euidaccess (Makefile.am): Likewise.
96083         * modules/exclude (Makefile.am): Likewise.
96084         * modules/exitfail (Makefile.am): Likewise.
96085         * modules/fcntl-safer (Makefile.am): Likewise.
96086         * modules/file-type (Makefile.am): Likewise.
96087         * modules/fileblocks (Makefile.am): Likewise.
96088         * modules/filemode (Makefile.am): Likewise.
96089         * modules/filenamecat (Makefile.am): Likewise.
96090         * modules/fnmatch (Makefile.am): Likewise.
96091         * modules/fopen-safer (Makefile.am): Likewise.
96092         * modules/fpending (Makefile.am): Likewise.
96093         * modules/fprintftime (Makefile.am): Likewise.
96094         * modules/free (Makefile.am): Likewise.
96095         * modules/fsusage (Makefile.am): Likewise.
96096         * modules/ftruncate (Makefile.am): Likewise.
96097         * modules/fts (Makefile.am): Likewise.
96098         * modules/gc (Makefile.am): Likewise.
96099         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96100         * modules/getaddrinfo (Makefile.am): Likewise.
96101         * modules/getcwd (Makefile.am): Likewise.
96102         * modules/getdelim (Makefile.am): Likewise.
96103         * modules/getdomainname (Makefile.am): Likewise.
96104         * modules/getgroups (Makefile.am): Likewise.
96105         * modules/gethostname (Makefile.am): Likewise.
96106         * modules/gethrxtime (Makefile.am): Likewise.
96107         * modules/getline (Makefile.am): Likewise.
96108         * modules/getloadavg (Makefile.am): Likewise.
96109         * modules/getlogin_r (Makefile.am): Likewise.
96110         * modules/getopt (Makefile.am): Likewise.
96111         * modules/getpass (Makefile.am): Likewise.
96112         * modules/getpass-gnu (Makefile.am): Likewise.
96113         * modules/getsubopt (Makefile.am): Likewise.
96114         * modules/gettime (Makefile.am): Likewise.
96115         * modules/gettimeofday (Makefile.am): Likewise.
96116         * modules/getugroups (Makefile.am): Likewise.
96117         * modules/getusershell (Makefile.am): Likewise.
96118         * modules/glob (Makefile.am): Likewise.
96119         * modules/group-member (Makefile.am): Likewise.
96120         * modules/hard-locale (Makefile.am): Likewise.
96121         * modules/hash (Makefile.am): Likewise.
96122         * modules/hmac-md5 (Makefile.am): Likewise.
96123         * modules/hmac-sha1 (Makefile.am): Likewise.
96124         * modules/human (Makefile.am): Likewise.
96125         * modules/idcache (Makefile.am): Likewise.
96126         * modules/imaxabs (Makefile.am): Likewise.
96127         * modules/imaxdiv (Makefile.am): Likewise.
96128         * modules/inet_ntop (Makefile.am): Likewise.
96129         * modules/inet_pton (Makefile.am): Likewise.
96130         * modules/inttostr (Makefile.am): Likewise.
96131         * modules/isapipe (Makefile.am): Likewise.
96132         * modules/lchown (Makefile.am): Likewise.
96133         * modules/long-options (Makefile.am): Likewise.
96134         * modules/lstat (Makefile.am): Likewise.
96135         * modules/malloc (Makefile.am): Likewise.
96136         * modules/mathl (Makefile.am): Likewise.
96137         * modules/mbchar (Makefile.am): Likewise.
96138         * modules/md2 (Makefile.am): Likewise.
96139         * modules/md4 (Makefile.am): Likewise.
96140         * modules/md5 (Makefile.am): Likewise.
96141         * modules/memcasecmp (Makefile.am): Likewise.
96142         * modules/memchr (Makefile.am): Likewise.
96143         * modules/memcmp (Makefile.am): Likewise.
96144         * modules/memcoll (Makefile.am): Likewise.
96145         * modules/memcpy (Makefile.am): Likewise.
96146         * modules/memmem (Makefile.am): Likewise.
96147         * modules/memmove (Makefile.am): Likewise.
96148         * modules/mempcpy (Makefile.am): Likewise.
96149         * modules/memrchr (Makefile.am): Likewise.
96150         * modules/memset (Makefile.am): Likewise.
96151         * modules/memxor (Makefile.am): Likewise.
96152         * modules/mkancesdirs (Makefile.am): Likewise.
96153         * modules/mkdir (Makefile.am): Likewise.
96154         * modules/mkdir-p (Makefile.am): Likewise.
96155         * modules/mkdtemp (Makefile.am): Likewise.
96156         * modules/mkstemp (Makefile.am): Likewise.
96157         * modules/mktime (Makefile.am): Likewise.
96158         * modules/modechange (Makefile.am): Likewise.
96159         * modules/mountlist (Makefile.am): Likewise.
96160         * modules/nanosleep (Makefile.am): Likewise.
96161         * modules/openat (Makefile.am): Likewise.
96162         * modules/pagealign_alloc (Makefile.am): Likewise.
96163         * modules/physmem (Makefile.am): Likewise.
96164         * modules/poll (Makefile.am): Likewise.
96165         * modules/posixtm (Makefile.am): Likewise.
96166         * modules/posixver (Makefile.am): Likewise.
96167         * modules/putenv (Makefile.am): Likewise.
96168         * modules/quote (Makefile.am): Likewise.
96169         * modules/quotearg (Makefile.am): Likewise.
96170         * modules/raise (Makefile.am): Likewise.
96171         * modules/read-file (Makefile.am): Likewise.
96172         * modules/readline (Makefile.am): Likewise.
96173         * modules/readlink (Makefile.am): Likewise.
96174         * modules/readtokens (Makefile.am): Likewise.
96175         * modules/readutmp (Makefile.am): Likewise.
96176         * modules/realloc (Makefile.am): Likewise.
96177         * modules/regex (Makefile.am): Likewise.
96178         * modules/rename (Makefile.am): Likewise.
96179         * modules/rename-dest-slash (Makefile.am): Likewise.
96180         * modules/rijndael (Makefile.am): Likewise.
96181         * modules/rmdir (Makefile.am): Likewise.
96182         * modules/rpmatch (Makefile.am): Likewise.
96183         * modules/safe-read (Makefile.am): Likewise.
96184         * modules/safe-write (Makefile.am): Likewise.
96185         * modules/same (Makefile.am): Likewise.
96186         * modules/save-cwd (Makefile.am): Likewise.
96187         * modules/savedir (Makefile.am): Likewise.
96188         * modules/setenv (Makefile.am): Likewise.
96189         * modules/settime (Makefile.am): Likewise.
96190         * modules/sha1 (Makefile.am): Likewise.
96191         * modules/sig2str (Makefile.am): Likewise.
96192         * modules/snprintf (Makefile.am): Likewise.
96193         * modules/stdlib-safer (Makefile.am): Likewise.
96194         * modules/stpcpy (Makefile.am): Likewise.
96195         * modules/stpncpy (Makefile.am): Likewise.
96196         * modules/strcase (Makefile.am): Likewise.
96197         * modules/strcasestr (Makefile.am): Likewise.
96198         * modules/strchrnul (Makefile.am): Likewise.
96199         * modules/strcspn (Makefile.am): Likewise.
96200         * modules/strdup (Makefile.am): Likewise.
96201         * modules/strerror (Makefile.am): Likewise.
96202         * modules/strftime (Makefile.am): Likewise.
96203         * modules/strndup (Makefile.am): Likewise.
96204         * modules/strnlen (Makefile.am): Likewise.
96205         * modules/strpbrk (Makefile.am): Likewise.
96206         * modules/strsep (Makefile.am): Likewise.
96207         * modules/strstr (Makefile.am): Likewise.
96208         * modules/strtod (Makefile.am): Likewise.
96209         * modules/strtoimax (Makefile.am): Likewise.
96210         * modules/strtok_r (Makefile.am): Likewise.
96211         * modules/strtol (Makefile.am): Likewise.
96212         * modules/strtoll (Makefile.am): Likewise.
96213         * modules/strtoul (Makefile.am): Likewise.
96214         * modules/strtoull (Makefile.am): Likewise.
96215         * modules/strtoumax (Makefile.am): Likewise.
96216         * modules/strverscmp (Makefile.am): Likewise.
96217         * modules/time_r (Makefile.am): Likewise.
96218         * modules/timegm (Makefile.am): Likewise.
96219         * modules/tmpfile-safer (Makefile.am): Likewise.
96220         * modules/unistd-safer (Makefile.am): Likewise.
96221         * modules/unlinkdir (Makefile.am): Likewise.
96222         * modules/userspec (Makefile.am): Likewise.
96223         * modules/utime (Makefile.am): Likewise.
96224         * modules/utimecmp (Makefile.am): Likewise.
96225         * modules/utimens (Makefile.am): Likewise.
96226         * modules/vasnprintf (Makefile.am): Likewise.
96227         * modules/vasprintf (Makefile.am): Likewise.
96228         * modules/vsnprintf (Makefile.am): Likewise.
96229         * modules/xalloc (Makefile.am): Likewise.
96230         * modules/xgetcwd (Makefile.am): Likewise.
96231         * modules/xnanosleep (Makefile.am): Likewise.
96232         * modules/xreadlink (Makefile.am): Likewise.
96233         * modules/xstrtod (Makefile.am): Likewise.
96234         * modules/xstrtol (Makefile.am): Likewise.
96235         * modules/xstrtold (Makefile.am): Likewise.
96236         * modules/yesno (Makefile.am): Likewise.
96238 2006-10-12  Jim Meyering  <jim@meyering.net>
96240         * m4/getloadavg.m4: Revert the change below.
96242         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96243         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96244         fail with a symlink, which is what coreutils' ./bootstrap now
96245         creates by default.
96247 2006-10-12  Bruno Haible  <bruno@clisp.org>
96249         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96250         mingw.
96251         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96252         MSVC and mingw explicitly.
96254 2006-10-11  Simon Josefsson  <jas@extundo.com>
96255             Bruno Haible  <bruno@clisp.org>
96257         Add support for multiple gnulib-tool invocations in the scope of a
96258         single configure.ac file.
96259         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96260         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96261         with the same contents as the _LIBADD variable.
96262         (func_emit_initmacro_start, func_emit_initmacro_end,
96263         func_emit_initmacro_done): New functions.
96264         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96265         gl_LIBOBJS and gl_LTLIBOBJS.
96267 2006-10-11  Bruno Haible  <bruno@clisp.org>
96269         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96270         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96271         autoreconf. Instead, invoke autopoint explicitly but move back the
96272         *.m4 files from gnulib.
96274 2006-10-11  Bruno Haible  <bruno@clisp.org>
96276         * gnulib-tool (func_usage): Make module names after --create-testdir
96277         optional.
96278         (func_create_testdir): If no module was specified, use nearly all
96279         modules.
96281 2006-10-12  Jim Meyering  <jim@meyering.net>
96283         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96284         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96285         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96286         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96287         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96288         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96289         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96290         (fts_set_stat_required): New function.
96291         (fts_open): Defer the calls to fts_stat, if possible or requested.
96292         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96293         into fts_stat itself.
96294         (fts_read): Perform any required (deferred) fts_stat call.
96295         (fts_build): Likewise, for the directory we're about to open and read.
96296         In the readdir loop, carefully decide whether each entry will require
96297         an eventual call to fts_stat, using dirent.d_type info if available.
96298         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96299         a command line argument into this function.  Update all callers.
96300         Map a return value of FTS_DOT to FTS_D for a command line argument.
96301         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96302         Thanks to Miklos Szeredi for his tenacity and for the initial
96303         bug report about "find" failing on a FUSE-based file system.
96305         * lib/fts.c (fts_open): Use consistent indentation.
96307 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96309         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96310         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96311         reported by Jim Meyering.  All uses of cache variables renamed
96312         to match Autoconf's.
96313         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96314         the other one.
96316         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96317         Fix misspelling in diagnostic.
96319 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96321         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96322         defined.  Problem reported by Matthew Woehlke.
96324         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96325         Add support for Tandem NonStop R series.
96326         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96327         Use new macro.
96329         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96330         (has_trailing_slash): Omit size arg; all callers changed.
96331         Omit 'inline', since it doesn't help performance and we'd
96332         need to configure it.
96333         Don't count //, ///, etc. as having a trailing slash.
96334         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96335         (rpl_rename_dest_slash): On failure, use rename's errno rather
96336         than (in some cases) an incorrect or junk errno.
96337         Simplify code by removing need to compute length; this does
96338         cause it to make two passes instead of one over the file name,
96339         but it's worth it.
96341         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96342         change, since Autoconf's version may no longer be appropriate now
96343         that we are using CVS Autoconf's version.  Add support for Tandem.
96345 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96346             Bruno Haible  <bruno@clisp.org>
96348         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96349         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96350         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96351         gl_AC_TYPE_LONG_LONG.
96353         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96354         instead of HAVE_LONG_LONG.
96355         * lib/printf-args.c (printf_fetchargs): Likewise.
96356         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96357         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96358         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96359         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96360         gl_AC_TYPE_LONG_LONG.
96362 2006-10-11  Bruno Haible  <bruno@clisp.org>
96364         * m4/longlong.m4: Add comments.
96365         * m4/ulonglong.m4: Likewise.
96367 2006-10-10  Bruno Haible  <bruno@clisp.org>
96369         Make it possible to #define stpcpy, strdup to aliases.
96370         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96371         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96373 2006-10-10  Bruno Haible  <bruno@clisp.org>
96375         Make it possible to #define gcd to an alias.
96376         * lib/gcd.c: Include config.h.
96378 2006-10-10  Bruno Haible  <bruno@clisp.org>
96380         Make it possible to #define c_isascii to an alias.
96381         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96382         defined. Undefine the macros before defining them, to avoid gcc
96383         warnings.
96384         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96385         define NO_C_CTYPE_MACROS early.
96387 2006-10-10  Bruno Haible  <bruno@clisp.org>
96389         Make it possible to #define set_program_name to an alias.
96390         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96391         ENABLE_RELOCATABLE early.
96393 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96395         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96396         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96397         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96398         More generally, don't assume that 64-bit signed int is available
96399         if unsigned int is, and vice versa.
96400         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96401         unsigned symbols, not on their signed counterparts.
96402         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96403         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96404         (UINT64_C, UINTMAX_C):
96405         Likewise.
96406         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96407         unsigned counterparts.
96408         (Have_long_long, Unsigned): New macros.
96409         (Int): Renamed from INT.
96410         (strtoimax): Use the new macros.
96411         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96412         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96413         * modules/inttypes (inttypes.h): Substitute
96414         HAVE_UNSIGNED_LONG_LONG_INT.
96415         * modules/stdint (stdint.h): Likewise.
96416         (Files): Add m4/ulonglong.m4.
96418 2006-10-10  Bruno Haible  <bruno@clisp.org>
96420         Fix a gcc -Wshadow warning.
96421         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96422         to 'bucket'.
96423         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96424         gl_linked_indexof_from_to): Likewise.
96425         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96426         Likewise.
96427         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96428         Likewise.
96429         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96430         Reported by Eric Blake.
96432 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96434         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96435         for NetBSD.  Problem reported by Bruno Haible.
96437 2006-10-09  Jim Meyering  <jim@meyering.net>
96439         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96440         Patch from Bruno Haible.
96442 2006-10-09  Jim Meyering  <jim@meyering.net>
96444         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96445         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96446         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96448 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96450         Don't include <config.h> twice; this doesn't work in some cases,
96451         e.g., when config.h has "#define intmax_t long long int" and
96452         we include <config.h>, <inttypes.h>, <config.h> in that order.
96453         Problem reported by Matthew Woehlke in:
96454         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96455         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96456         * lib/fts-cycle.c: Don't include config.h.
96457         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96458         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96459         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96460         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96461         inttypes.h.
96462         * lib/xstrtoumax.c: Likewise.
96463         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96464         __strtol and the like, so that this module is more like its siblings.
96465         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96466         Remove; no longer needed now that we assume gnulib inttypes.h.
96468 2006-10-08  Bruno Haible  <bruno@clisp.org>
96470         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96471         option.
96473 2006-10-07  Jim Meyering  <jim@meyering.net>
96475         * modules/inttypes (inttypes.h): Revert what seems to have been
96476         an inadvertent part of today's change: use "|", not "/" in the
96477         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96479 2006-10-07  Bruno Haible  <bruno@clisp.org>
96481         * modules/sublist: New file.
96483 2006-10-07  Bruno Haible  <bruno@clisp.org>
96485         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96486         * modules/argz (argz.h): Likewise.
96487         * modules/arpa_inet (arpa/inet.h): Likewise.
96488         * modules/byteswap (byteswap.h): Likewise.
96489         * modules/configmake (configmake.h): Likewise.
96490         * modules/fcntl (fcntl.h): Likewise.
96491         * modules/fnmatch (fnmatch.h): Likewise.
96492         * modules/getopt (getopt.h): Likewise.
96493         * modules/glob (glob.h): Likewise.
96494         * modules/inttypes (inttypes.h): Likewise.
96495         * modules/netinet_in (netinet/in.h): Likewise.
96496         * modules/poll (poll.h): Likewise.
96497         * modules/stdbool (stdbool.h): Likewise.
96498         * modules/stdint (stdint.h): Likewise.
96499         * modules/sys_select (sys/select.h): Likewise.
96500         * modules/sys_socket (sys/socket.h): Likewise.
96501         * modules/sys_stat (sys/stat.h): Likewise.
96502         * modules/sysexits (sysexits.h): Likewise.
96503         * modules/unistd (unistd.h): Likewise.
96504         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96505         Add a "DO NOT EDIT" comment to the generated file.
96506         (func_import): Likewise for gnulib-comp.m4.
96508 2006-10-07  Bruno Haible  <bruno@clisp.org>
96510         * lib/gl_sublist.h: New file.
96511         * lib/gl_sublist.c: New file.
96513 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96515         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96516         name (relative to the original working directory) and the file
96517         name component (relative to the temporary working directory).  All
96518         callers changed.
96519         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96520         * lib/mkdir-p.c (make_dir_parents): Likewise.
96521         * lib/mkdir-p.h (make_dir_parents): Likewise.
96523 2006-10-06  Eric Blake  <ebb9@byu.net>
96525         Define several macros for use by the clean-temp module.
96526         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96527         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96528         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96530         * lib/clean-temp.h (close_stream_temp): New declaration.
96531         * lib/clean-temp.c (includes): Pull in headers according to what
96532         other modules are in use.
96533         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96535 2006-10-06  Bruno Haible  <bruno@clisp.org>
96537         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96538         instead of fopen, fwriteerror.
96540 2006-10-06  Bruno Haible  <bruno@clisp.org>
96542         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96543         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96544         int.
96545         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96546         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96547         Return an error indicator.
96548         Suggested by Eric Blake.
96550 2006-10-06  Bruno Haible  <bruno@clisp.org>
96552         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96553         Reported by Eric Blake.
96555 2006-10-06  Bruno Haible  <bruno@clisp.org>
96557         * modules/closeout (Description): Mention stderr too.
96559 2006-10-06  Bruno Haible  <bruno@clisp.org>
96560         and Paul Eggert  <eggert@cs.ucla.edu>
96562         * lib/closeout.c (close_stdout): Also close stderr.
96563         * lib/closeout.h: Update comment.
96565 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96567         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96568         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96569         * lib/dirchownmod.c: Include lchown.h.
96570         * lib/lchown.c: Don't include files that lchown.h now includes.
96571         Don't declare chown, since lchown.h now does that.
96572         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96573         (lchown): Define to rpl_chown if lchown is declared but
96574         does not exist.  Declare using a prototype if lchown is not
96575         declared.  Add a copyright notice.
96576         * lib/mkstemp.h: Include <unistd.h>.
96577         * lib/openat.c: Include lchown.h.
96579         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96580         we now test for that separately.
96581         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96582         rather than O_NOFOLLOW, when testing whether it's possible to
96583         avoid a race condition reliably.
96584         * lib/savewd.c (savewd_chdir): Likewise.
96586         Remove macros that are no longer needed now that stdint.h is
96587         reliable.
96588         * lib/fsusage.c (UINTMAX_MAX): Remove.
96589         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96590         * lib/utimecmp.c (SIZE_MAX): Remove.
96592         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96594         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96595         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96596         O_NOATIME works.
96598 2006-10-05  Bruno Haible  <bruno@clisp.org>
96600         * lib/gl_list.h (gl_sortedlist_search_from_to,
96601         gl_sortedlist_indexof_from_to): New declarations.
96602         (gl_list_implementation): New fields sortedlist_search_from_to,
96603         sortedlist_indexof_from_to.
96604         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96605         inline functions.
96606         * lib/gl_list.c (gl_sortedlist_search_from_to,
96607         gl_sortedlist_indexof_from_to): New functions.
96608         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96609         function.
96610         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96611         (gl_array_sortedlist_search_from_to): New function.
96612         (gl_array_list_implementation): Update.
96613         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96614         function.
96615         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96616         (gl_carray_sortedlist_search_from_to): New function.
96617         (gl_carray_list_implementation): Update.
96618         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96619         gl_linked_sortedlist_indexof_from_to): New functions.
96620         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96621         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96622         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96623         gl_tree_sortedlist_indexof_from_to): New functions.
96624         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96625         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96626         Update.
96627         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96628         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96629         Update.
96631 2006-10-05  Bruno Haible  <bruno@clisp.org>
96633         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96634         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96635         (struct gl_list_implementation): Add fields search_from_to,
96636         indexof_from_to. Remove fields search, indexof.
96637         (gl_list_search): Use the search_from_to method.
96638         (gl_list_search_from, gl_list_search_from_to): New functions.
96639         (gl_list_indexof): Use the indexof_from_to method.
96640         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96641         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96642         (gl_list_search_from, gl_list_search_from_to): New functions.
96643         (gl_list_indexof): Use the indexof_from_to method.
96644         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96645         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96646         gl_array_indexof. Add start_index, end_index arguments.
96647         (gl_array_search_from_to): Renamed from gl_array_search. Add
96648         start_index, end_index arguments.
96649         (gl_array_remove, gl_array_list_implementation): Update.
96650         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96651         gl_carray_indexof. Add start_index, end_index arguments.
96652         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96653         start_index, end_index arguments.
96654         (gl_carray_remove, gl_carray_list_implementation): Update.
96655         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96656         gl_linked_search. Add start_index, end_index arguments.
96657         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96658         start_index, end_index arguments.
96659         (gl_linked_remove): Update.
96660         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96661         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96662         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96663         field to 'size_t'.
96664         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96665         gl_tree_search. Add start_index, end_index arguments.
96666         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96667         start_index, end_index arguments.
96668         (gl_tree_remove): Update.
96669         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96670         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96671         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96672         function.
96673         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96674         gl_tree_search. Add start_index, end_index arguments.
96675         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96676         start_index, end_index arguments.
96677         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96678         Update.
96679         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96681 2006-10-05  Bruno Haible  <bruno@clisp.org>
96683         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96685         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96686         fwriteerror_temp): New declarations.
96687         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96688         (descriptors): New variable.
96689         (cleanup): First, close the descriptors.
96690         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96691         fclose_temp, fwriteerror_temp): New functions.
96693 2006-10-04  Jim Meyering  <jim@meyering.net>
96695         * lib/fts.c (fts_open): Tiny comment change.
96697 2006-10-04  Bruno Haible  <bruno@clisp.org>
96699         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96700         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96701         gl_LOCK_BODY.
96702         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96703         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96704         gl_LOCK_EARLY_BODY.
96705         (gl_LOCK): Require gl_LOCK_BODY.
96707 2006-10-04  Bruno Haible  <bruno@clisp.org>
96709         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96710         (gl_oset_search_atleast): New declaration.
96711         (struct gl_oset_implementation): Add field 'search_atleast'.
96712         (gl_oset_search_atleast): New inline function.
96713         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96714         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96715         (gl_array_oset_implementation): Update.
96716         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96717         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96718         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96720 2006-10-04  Bruno Haible  <bruno@clisp.org>
96722         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96724 2006-10-03  Bruno Haible  <bruno@clisp.org>
96726         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96727         from gl_avltreehash_list_implementation.
96729 2006-10-03  Bruno Haible  <bruno@clisp.org>
96731         * lib/gl_oset.c (gl_oset_add): Fix return type.
96733 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96735         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96737 2006-10-02  Eric Blake  <ebb9@byu.net>
96739         * modules/strnlen (Depends-on): Add extensions.
96741 2006-10-02  Eric Blake  <ebb9@byu.net>
96743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96744         definition in 2.60+.
96746 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96748         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96749         checks.
96751 2006-10-02  Bruno Haible  <bruno@clisp.org>
96753         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96754         to the AUTOMAKE_OPTIONS.
96755         Reported by Jim Meyering.
96757 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96759         Work around bug in Solaris 10 /proc file system:
96760         /proc/self/fd/NNN/.. isn't the parent directory of
96761         the directory whose file descriptor is NNN.  This needs to
96762         be worked around at run time, not compile time, since a
96763         program might be built on Solaris 8, where things work, and
96764         run on Solaris 10.
96765         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96766         to use the following interface instead:
96767         (OPENAT_BUFFER_SIZE): New macro.
96768         (openat_proc_name): New function.
96769         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96770         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96771         Likewise.
96772         * lib/openat-proc.c: New file.
96773         * modules/openat (Files): Add lib/openat-proc.c.
96774         (Depends-on): Add same-inode, stdbool.
96775         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96777 2006-09-29  Bruno Haible  <bruno@clisp.org>
96779         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96780         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96781         argument. Set stdout_closed before testing for ferror, not after.
96782         (fwriteerror, fwriteerror_no_ebadf): New functions.
96784 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96786         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96788 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96790         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96791         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96793 2006-09-28  Jim Meyering  <jim@meyering.net>
96795         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96796         Include <unistd.h>.
96798 2006-09-28  Bruno Haible  <bruno@clisp.org>
96800         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96801         * modules/linkedhash-list (Depends-on): Likewise.
96802         * modules/rbtreehash-list (Depends-on): Likewise.
96804 2006-09-28  Bruno Haible  <bruno@clisp.org>
96806         * lib/strndup.h: Simplify the redefinition of strndup.
96807         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96810 2006-09-28  Bruno Haible  <bruno@clisp.org>
96812         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96813         * lib/gl_linkedhash_list.c: Likewise.
96814         * lib/gl_rbtreehash_list.c: Likewise.
96816 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96818         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96819         getaddrinfo.
96821         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96822         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96823         it causes <stdio_ext.h> to cause a compile-time error.
96824         Problem reported by Nelson H. F. Beebe.
96825         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96826         of HAVE_DECL___PENDING.
96828         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96829         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96830         declaration.
96832 2006-09-27  Jim Meyering  <jim@meyering.net>
96834         This file could end up with a definition for a function
96835         named __strndup, rather than rpl_strndup on a system with
96836         incomplete weak_alias support.
96837         * lib/strndup.c (strndup): Rename from __strndup.
96838         Remove #defines that used to map __strndup to strndup.
96839         Don't use K&R prototypes.
96840         Remove LIBC-related code, since this file is not sync'd with glibc.
96841         * lib/strndup.h: Revamp, accordingly.
96842         * m4/strndup.m4: Modernize.
96844 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96846         * modules/savewd (Depends-on): Add 'raise'.
96847         * lib/savewd.c: Include <signal.h>, for 'raise'.
96849 2006-09-26  Jim Meyering  <jim@meyering.net>
96851         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96852         when we detect Darwin 8.7.0's acl_get_file bug.
96853         Rearrange to perform the new (below) run-test while $LIBS
96854         contains any acl-related library.  Set USE_ACL at the end.
96855         (gl_ACL_GET_FILE): New function.
96857 2006-09-26  Eric Blake  <ebb9@byu.net>
96859         * lib/verror.c: Include <config.h> unconditionally.
96861 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96863         * modules/clock-time (Maintainer): Add self.
96864         * modules/getlogin_r (Depends-on): Add extensions.
96866 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96868         * modules/clock-time: New module.
96869         * modules/nanosleep (Depends-on): Add clock-time.
96870         * modules/gethrxtime (Depends-on): Likewise.
96871         * modules/gettime (Depends-on): Likewise.
96872         * modules/settime (Depends-on): Likewise.
96874         * modules/fts-lgpl: Depend on openat.
96875         * modules/mkancesdirs: Depend on savewd.
96876         * modules/mkdir-p: Likewise.
96878 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96880         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96882         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96883         `gl_have_arbitrary_file_name_length_limit' to
96884         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96885         actually works between configure runs.
96887 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96888             Bruno Haible  <bruno@clisp.org>
96890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96892 2006-09-25  Jim Meyering  <jim@meyering.net>
96894         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96895         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96897 2006-09-25  Eric Blake  <ebb9@byu.net>
96899         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96900         exec's in 2006-09-18 patch when shuffling fds.
96902 2006-09-25  Bruno Haible  <bruno@clisp.org>
96904         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96905         Reported by Jim Meyering.
96907 2006-09-24  Jim Meyering  <jim@meyering.net>
96909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96910         compare a pointer against a literal "0".  That caused failures with
96911         at least HP-UX's hpcc.
96913 2006-09-22  Simon Josefsson  <jas@extundo.com>
96915         * modules/gc-sha1:
96916         * modules/gc-md4:
96917         * modules/gc-hmac-sha1:
96918         * modules/gc-hmac-md5:
96919         * modules/gc-des:
96920         * modules/gc-arcfour: Distribute more files.
96922 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96924         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96925         (gl_linked_iterator_from_to): Initialize struct completely.
96926         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96927         (gl_tree_iterator_from_to): Likewise
96928         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96929         * lib/gl_array_list.c [lint] (gl_array_iterator)
96930         (gl_array_iterator_from_to): Likewise.
96931         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96932         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96933         (gl_carray_iterator_from_to): Likewise.
96935         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96936         * lib/md4.c (md4_process_block): Remove unused variable.
96937         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96938         parentheses for clarity.
96940 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96942         * modules/bison-i18n (Depends-on): Add gettext.
96944 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96946         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96947         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96948         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96949         also add missing comma that caused broken test.
96950         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96951         stdlib.h, for `abort'.
96952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96953         variables.
96954         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96955         include unistd.h if present, for `rmdir'.
96956         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96957         variables.
96958         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96959         in the process include standard headers for prototypes.
96960         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96961         gets declared on GNU/Linux.
96962         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96963         unistd.h, for `rmdir'.
96964         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96966         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96967         always true.
96968         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96970         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96972 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96974         * gnulib-tool (func_version): Create output all at once.  This
96975         may help avoid triggering unnecessary SIGPIPEs, and at any
96976         rate it doesn't hurt.
96978 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96979             Bruno Haible  <bruno@clisp.org>
96981         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96982         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96983         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96985         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96986         (gl_FUNC_VASPRINTF): Invoke it.
96988 2006-09-22  Bruno Haible  <bruno@clisp.org>
96990         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96991         getloadavg.c as first argument.
96993 2006-09-22  Bruno Haible  <bruno@clisp.org>
96995         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96996         at the beginning of the gl_INIT macro.
96997         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96998         gl_GETLOADAVG.
97000 2006-09-22  Bruno Haible  <bruno@clisp.org>
97002         * gnulib-tool (func_create_megatestdir): Don't include the config-h
97003         module.
97004         Suggested by Ralf Wildenhues.
97006 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97008         Import this patch from libc:
97010         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
97012         * lib/regex_internal.c (re_string_reconstruct): Handle
97013         offset < pstr->valid_raw_len && pstr->offsets_needed case.
97014         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
97015         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
97016         re_string_context_at.
97018         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
97019         now requires it.
97020         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
97021         gl_REGEX now does it for us.
97022         (gl_REGEX): Add test taken from
97023         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
97025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
97026         Check that large offsets work.  Modernize Autoconf usages.
97027         Prefer "yes" to mean a good thing rather than a bad.
97028         Don't put "#define mkstemp" in config.h, as this might interfere
97029         with standard system headers that "#define mkstemp mkstemp64".
97031         * modules/mkstemp (Depends-on): Add extensions, so that
97032         mkstemp is visible on some platforms.
97033         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
97034         (Include): Change to "mkstemp.h" from <stdlib.h>.
97035         (Files): Add mkstemp.h.
97037         * lib/mkstemp.h: New file, since some standard headers
97038         #define mkstemp.
97039         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
97040         Include "mkstemp.h".
97041         Make the _LIBC code resemble glibc original more,
97042         e.g., use K&R style.
97043         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
97044         (mkstemp): Remove, since mkstemp.h does this for us.
97045         * lib/stdlib--.h: Include mkstemp.h.
97047         Import this patch from libc:
97049         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97051         * lib/tempname.c (__gen_tempname): Change attempts_min
97052         into a macro.  Use preprocessor to decide how to initialize
97053         attempts [Coverity CID 67].
97055 2006-09-20  Bruno Haible  <bruno@clisp.org>
97057         * lib/mkdtemp.c: Import from libc.
97058         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97059                 * sysdeps/posix/tempname.c (__gen_tempname): Change
97060                 attempts_min into a macro.  Use preprocessor to decide how to
97061                 initialize attempts [Coverity CID 67].
97062         2001-11-27  Paul Eggert  <eggert@twinsun.com>
97063                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
97064                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
97066 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97068         * gnulib-tool (func_exit): New function, to allow to pass the
97069         exit status portably through the trap.  Use everywhere.
97070         (--help, --version): Signal a write error.
97071         (trap): catch SIGPIPE, for write errors.
97072         Exit at the end of the trap, with the correct exit status.
97074 2006-09-19  Karl Berry  <karl@gnu.org>
97076         * doc/gnulib.texi: note about the license texinfo files.
97078 2006-09-19  Eric Blake  <ebb9@byu.net>
97080         * gnulib-tool: Avoid space-tab.
97082 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97084         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
97085         that prevented coreutils 6.1 from building.  Problem reported
97086         by Petter Reinholdtsen.
97088 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97090         * gnulib-tool (avoidlist): Fix typo that broke options like
97091         --avoid=lock that are used by coreutils bootstrap.
97093 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
97095         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
97096         more systematically.
97098 2006-09-18  Jim Meyering  <jim@meyering.net>
97100         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
97102 2006-09-18  Bruno Haible  <bruno@clisp.org>
97104         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97106 2006-09-18  Bruno Haible  <bruno@clisp.org>
97108         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97109         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97110         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97111         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97112         * m4/gettext.m4: Require autoconf >= 2.52.
97113         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97114         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97115         of gl_cv_header_inttypes_h.
97117 2006-09-18  Bruno Haible  <bruno@clisp.org>
97119         * lib/javaversion.c: Include configmake.h.
97121 2006-09-18  Bruno Haible  <bruno@clisp.org>
97123         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97124         avoid that the while loops be executed in a subshell.
97126 2006-09-18  Bruno Haible  <bruno@clisp.org>
97128         * MODULES.html.sh (func_module): Break long lines.
97129         Suggested by Bruce Korb <bkorb@gnu.org>.
97131 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97133         Speed up by a factor of 1.12.
97134         * gnulib-tool (nl): New variable.
97135         (func_import): Rewrite include directive extraction to only read each
97136         directive once.
97138 2006-09-17  Bruno Haible  <bruno@clisp.org>
97140         * modules/javaversion (Makefile.am): Remove DEFS setting.
97141         (Depends-on): Add configmake, for PKGDATADIR definition.
97143 2006-09-17  Bruno Haible  <bruno@clisp.org>
97145         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97147 2006-09-17  Bruno Haible  <bruno@clisp.org>
97149         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97150         (func_modules_transitive_closure, func_modules_add_dummy,
97151         func_modules_to_filelist, func_import, func_create_testdir,
97152         func_create_megatestdir, ...): Use it wherever possible.
97153         Suggested by Ralf Wildenhues.
97155 2006-09-16  Karl Berry  <karl@gnu.org>
97157         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97158         to avoid sectioning errors.
97159         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97160         [ifinfo]: blank line after @center-ed titles.
97161         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97162         Spell FSF address consistently with others.
97163         (These changes approved by rms.)
97165 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97167         Speed up by a factor of 1.61.
97168         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97169         already checked module names again.
97171 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97173         Speed up by a factor of 1.13.
97174         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97175         for new_files, and the input to func_add_or_update.
97177 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97179         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97180         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97182 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97184         * modules/mkancesdirs (Depends-on): Add fcntl.
97185         * modules/savewd: New file.
97186         * MODULES.html.sh (File system functions): Add savewd.
97188         * modules/configmake (Makefile.am): Add support for the
97189         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97191 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97193         * m4/savewd.m4: New file.
97195 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97197         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97198         (dirchownmod): New arg FD.  All callers changed.
97199         Use FD rather than opening the directory ourself, as opening is
97200         now the caller's responsibility.
97201         * lib/dirchownmod.h: Likewise.
97202         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97203         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97204         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97205         (test_dir): Remove.
97206         (mkancesdirs): Return length of prefix of FILE that has already
97207         been made, or -2 if there is a child doing the work.  Redo
97208         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97209         ".", and treat ".." specially since it might stray back into
97210         already-created areas.  Use a subprocess if necessary.  New arg
97211         WD; all users changed.  MAKE_DIR function should now return 1
97212         if it creates a directory that is not readable.  Return -2 if
97213         a child process is spun off.
97214         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97215         Adjust signature to match code.
97216         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97217         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97218         all users changed.
97219         * lib/savewd.c, lib/savewd.h: New files.
97221 2006-09-15  Jim Meyering  <jim@meyering.net>
97223         * modules/rename-dest-slash: New module.
97224         * MODULES.html.sh (posix_compat): Add it here.
97226         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97228 2006-09-15  Jim Meyering  <jim@meyering.net>
97230         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97231         file.
97233         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97235 2006-09-15  Jim Meyering  <jim@meyering.net>
97237         * lib/rename-dest-slash.c (has_trailing_slash): Use
97238         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97239         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97240         test before testing whether SRC is a directory.
97241         Suggestions from Bruno Haible.
97243         Avoid a warning about an unused variable.
97244         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97245         into the #ifdef block where it's used.
97247         * lib/rename-dest-slash.c: New file.
97249 2006-09-14  Bruno Haible  <bruno@clisp.org>
97251         * lib/allocsa.c: Include <config.h> unconditionally.
97252         * lib/asnprintf.c: Likewise.
97253         * lib/asprintf.c: Likewise.
97254         * lib/c-strcasecmp.c: Likewise.
97255         * lib/c-strcasestr.c: Likewise.
97256         * lib/c-strncasecmp.c: Likewise.
97257         * lib/c-strstr.c: Likewise.
97258         * lib/classpath.c: Likewise.
97259         * lib/clean-temp.c: Likewise.
97260         * lib/concatpath.c: Likewise.
97261         * lib/copy-file.c: Likewise.
97262         * lib/csharpcomp.c: Likewise.
97263         * lib/csharpexec.c: Likewise.
97264         * lib/execute.c: Likewise.
97265         * lib/fatal-signal.c: Likewise.
97266         * lib/findprog.c: Likewise.
97267         * lib/fwriteerror.c: Likewise.
97268         * lib/gl_array_list.c: Likewise.
97269         * lib/gl_array_oset.c: Likewise.
97270         * lib/gl_avltree_list.c: Likewise.
97271         * lib/gl_avltree_oset.c: Likewise.
97272         * lib/gl_avltreehash_list.c: Likewise.
97273         * lib/gl_carray_list.c: Likewise.
97274         * lib/gl_linked_list.c: Likewise.
97275         * lib/gl_linkedhash_list.c: Likewise.
97276         * lib/gl_list.c: Likewise.
97277         * lib/gl_oset.c: Likewise.
97278         * lib/gl_rbtree_list.c: Likewise.
97279         * lib/gl_rbtree_oset.c: Likewise.
97280         * lib/gl_rbtreehash_list.c: Likewise.
97281         * lib/imaxabs.c: Likewise.
97282         * lib/imaxdiv.c: Likewise.
97283         * lib/javacomp.c: Likewise.
97284         * lib/javaexec.c: Likewise.
97285         * lib/javaversion.c: Likewise.
97286         * lib/linebreak.c: Likewise.
97287         * lib/localcharset.c: Likewise.
97288         * lib/lock.c: Likewise.
97289         * lib/mbchar.c: Likewise.
97290         * lib/mbswidth.c: Likewise.
97291         * lib/mkdtemp.c: Likewise.
97292         * lib/pipe.c: Likewise.
97293         * lib/printf-args.c: Likewise.
97294         * lib/printf-parse.c: Likewise.
97295         * lib/progname.c: Likewise.
97296         * lib/progreloc.c: Likewise.
97297         * lib/readlink.c: Likewise.
97298         * lib/sh-quote.c: Likewise.
97299         * lib/stpcpy.c: Likewise.
97300         * lib/stpncpy.c: Likewise.
97301         * lib/strcasecmp.c: Likewise.
97302         * lib/strcasestr.c: Likewise.
97303         * lib/strcspn.c: Likewise.
97304         * lib/striconv.c: Likewise.
97305         * lib/strncasecmp.c: Likewise.
97306         * lib/strnlen1.c: Likewise.
97307         * lib/strstr.c: Likewise.
97308         * lib/strtok_r.c: Likewise.
97309         * lib/tls.c: Likewise.
97310         * lib/tmpdir.c: Likewise.
97311         * lib/unicodeio.c: Likewise.
97312         * lib/unsetenv.c: Likewise.
97313         * lib/vasnprintf.c: Likewise.
97314         * lib/vasprintf.c: Likewise.
97315         * lib/wait-process.c: Likewise.
97316         * lib/xallocsa.c: Likewise.
97317         * lib/xsetenv.c: Likewise.
97318         * lib/xstriconv.c: Likewise.
97320 2006-09-13  Simon Josefsson  <jas@extundo.com>
97322         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97323         that internally, suggested by Ralf Wildenhues
97324         <Ralf.Wildenhues@gmx.de>.
97326 2006-09-13  Simon Josefsson  <jas@extundo.com>
97328         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97329         @LIBOBJS@.
97330         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97332 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97334         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97335         longer worry about uses that don't define HAVE_CONFIG_H.
97336         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97337         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97338         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97339         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97340         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97341         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97342         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97343         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97344         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97345         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97346         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97347         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97348         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97349         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97350         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97351         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97352         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97353         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97354         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97355         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97356         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97357         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97358         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97359         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97360         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97361         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97362         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97363         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97364         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97365         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97366         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97367         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97368         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97369         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97370         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97371         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97372         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97373         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97374         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97375         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97376         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97377         Likewise.
97379 2006-09-13  Eric Blake  <ebb9@byu.net>
97381         * lib/getopt.c: Fix typo in last commit.
97383 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97385         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97386         dgettext.
97388 2006-09-12  Jim Meyering  <jim@meyering.net>
97390         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97391         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97392         Reported by Nelson H. F. Beebe.
97394 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97396         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97397         program_invocation_name and program_invocation_short_name are
97398         initialized.
97399         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97400         and program_invocation_short_name to argp.h, so they are visible
97401         to user programs.
97402         * lib/argp.h: Likewise
97404 2006-09-10  Bruno Haible  <bruno@clisp.org>
97406         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97407         m4/inttypes_h.m4, m4/uintmax_t.m4.
97409 2006-09-10  Bruno Haible  <bruno@clisp.org>
97411         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97412         gl_AC_TYPE_UINTMAX_T.
97414 2006-09-10  Bruno Haible  <bruno@clisp.org>
97416         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97418 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97420         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97421         convention.  Text proposed by Bruno Haible.
97422         (struct argp_option): Document the use of N_() wrappers.
97424         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97425         '\v', and translate the two parts separately, instead of feeding
97426         the whole string to gettext.  This allows to exclude
97427         '\v' from the strings visible to the translator by writing doc
97428         strings as N_("..") "\v" N_("..").
97430 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97432         * config/srclist.txt: Undo latest change; the bug was fixed.
97434 2006-09-09  Bruno Haible  <bruno@clisp.org>
97436         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97437         assignments if building a library without libtool.
97438         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97439         in func_emit_lib_Makefile_am.
97440         (func_import): When building a static library libfoo.a, arrange to
97441         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97442         (func_create_testdir): Likewise.
97443         * modules/gc (configure.ac, Makefile.am): If building statically,
97444         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97445         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97446         * modules/striconv (configure.ac, Makefile.am): Likewise.
97447         Based on a suggestion by Ralf Wildenhues.
97449 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97451         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97452         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97453         Also:
97455         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97456         Add year_2050_test to catch glibc bug 2821
97457         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97459         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97460         Prefer #ifdef to #if.
97462         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97463         Return from 'main' instead of calling 'exit'.
97465 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97467         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97468         returned the maximum time_t value rather than (time_t) -1.
97469         Problem originally reported by William Bardwell
97470         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97472         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97473         Moved to here ...
97474         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97475         ... from here.
97477 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97479         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97480         2821 is fixed.
97482 2006-09-08  Jim Meyering  <jim@meyering.net>
97484         Don't make generated files read-only.  That would bother too many
97485         people.  However, do retain the ability to work when targets are
97486         read-only: remove the destination and temporary files before writing
97487         them (when generated via sed or echo), or by using the -f option for
97488         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97489         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97490         * modules/byteswap, modules/configmake, modules/fcntl:
97491         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97492         * modules/localcharset, modules/netinet_in, modules/poll:
97493         * modules/stdbool, modules/stdint, modules/sys_select:
97494         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97496 2006-09-08  Jim Meyering  <jim@meyering.net>
97498         Avoid new build failure on FreeBSD 6.0.
97499         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97500         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97501         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97503 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97505         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97507 2006-09-07  Jim Meyering  <jim@meyering.net>
97509         Fix global typo in last change: use chmod u-w, not chmod u-x.
97510         Spotted by Paul Eggert and Bruce Korb.
97511         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97512         * modules/byteswap, modules/configmake, modules/fcntl:
97513         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97514         * modules/localcharset, modules/netinet_in, modules/poll:
97515         * modules/stdbool, modules/stdint, modules/sys_select:
97516         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97518 2006-09-06  Jim Meyering  <jim@meyering.net>
97520         Make generated files be read-only.
97521         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97522         Ensure that each generated file is now read-only.
97523         * modules/argz: Likewise.
97524         * modules/arpa_inet: Likewise.
97525         * modules/byteswap: Likewise.
97526         * modules/configmake: Likewise.
97527         * modules/fcntl: Likewise.
97528         * modules/fnmatch: Likewise.
97529         * modules/getopt: Likewise.
97530         * modules/glob: Likewise.
97531         * modules/inttypes: Likewise.
97532         * modules/netinet_in: Likewise.
97533         * modules/poll: Likewise.
97534         * modules/stdbool: Likewise.
97535         * modules/stdint: Likewise.
97536         * modules/sys_select: Likewise.
97537         * modules/sys_socket: Likewise.
97538         * modules/sys_stat: Likewise.
97539         * modules/sysexits: Likewise.
97540         * modules/localcharset: Same as above, but continue using temporary
97541         file named "t-$@" (why different?) rather than the "$@-t" used
97542         everywhere else.
97544         * modules/sysexits (Makefile.am): Replace literal occurrences
97545         of "sysexit.h" more readable, and more consistent, "$@".
97547 2006-09-06  Bruno Haible  <bruno@clisp.org>
97549         * modules/striconv: New file.
97550         * modules/xstriconv: New file.
97551         * MODULES.html.sh (Internationalization functions): Add striconv,
97552         xstriconv.
97554 2006-09-06  Bruno Haible  <bruno@clisp.org>
97556         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97557         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97558         not using libtool correctly.
97560 2006-09-06  Bruno Haible  <bruno@clisp.org>
97562         * lib/striconv.h: New file.
97563         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97564         iconvstring.c.
97565         * lib/xstriconv.h: New file.
97566         * lib/xstriconv.c: New file.
97568 2006-09-06  Bruno Haible  <bruno@clisp.org>
97570         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97571         lib_..._LDFLAGS.
97573 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97575         * lib/argz_.h: Sync from Libtool.
97577         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97578                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97580         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97582 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97584         * modules/trim: New file.
97586 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97588         * lib/trim.h: New file.
97589         * lib/trim.c: New file.
97591 2006-09-05  Bruno Haible  <bruno@clisp.org>
97593         * MODULES.html.sh (String handling): Add trim.
97595 2006-09-04  Karl Berry  <karl@gnu.org>
97597         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97598         until next release.
97600 2006-09-03  Bruno Haible  <bruno@clisp.org>
97602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97603         correctly.
97605 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97607         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97608         not gl_GETLOADAVG.  Omit unneeded semicolons.
97609         Problems reported by Ralf Wildenhues in
97610         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97611         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97612         at the end, which is the usual gnulib style.
97614         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97615         of doing all the work ourselves.
97616         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97617         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97619 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97621         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97622         Problem reported by Ralf Wildenhues in
97623         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97625         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97626         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97628 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97630         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97631         yesterday's patch by changing test -n to test -z.
97633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97635         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97636         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97637         the former is now obsolescent.
97639         * modules/chdir-long (Depends-on): Add fcntl.
97641 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97643         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97644         obsolescent, and programs should use gnulib instead.
97645         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97646         but with prefixes changed.
97648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97650         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97651         or stdbool.h, because they might not exist while configuring.
97653         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97654         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97655         does that for us.
97656         (O_DIRECTORY): Remove.
97658 2006-08-31  Eric Blake  <ebb9@byu.net>
97660         * gnulib-tool: Don't let emacs change spaces to TAB.
97662 2006-08-31  Bruno Haible  <bruno@clisp.org>
97664         * gnulib-tool: When calling func_import more than once, do it in a
97665         subshell.
97666         Reported by Eric Blake <ebb9@byu.net>.
97668 2006-08-31  Bruno Haible  <bruno@clisp.org>
97670         * gnulib-tool (nl): Remove variable.
97671         (sed_transform_lib_file): Use more robust test for config-h module.
97672         (func_import): Fix typo in 2006-08-25 patch.
97674 2006-08-31  Bruno Haible  <bruno@clisp.org>
97676         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97677         specified, augment Makefile.am variables instead of assigning them.
97679 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97681         Work around a bug in both the Linux and SunOS 64-bit kernels:
97682         nanosleep mishandles sleeps for longer than 2**31 seconds.
97683         Problem reported by Frank v Waveren in
97684         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97686         Check for nanosleep bug.
97687         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97689 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97691         Work around a bug in both the Linux and SunOS 64-bit kernels:
97692         nanosleep mishandles sleeps for longer than 2**31 seconds.
97693         Problem reported by Frank v Waveren in
97694         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97695         * lib/nanosleep.c (BILLION): New constant.
97696         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97697         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97698         implementation.
97700 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97702         * modules/nanosleep (Depends-on): Add gettime.
97704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97705         and Simon Josefsson  <jas@extundo.com>
97706         and Oskar Liljeblad  <oskar@osk.mine.nu>
97708         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97709         * gnulib-tool (func_import): New license type 'unmodifiable license
97710         text'.
97711         * modules/fdl: Use it.  Longer description.
97712         * module/gpl, module/lgpl: New files.
97714 2006-08-30  Jim Meyering  <jim@meyering.net>
97716         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97717         shadowing the parameter.
97719 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97721         Sync from Libtool:
97723         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97725         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97726         sharing with gnulib.  Report by Eric Blake.
97728 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97730         * modules/isapipe: New file.
97731         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97733 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97735         * modules/configmake (Makefile.am): Add a comment, and omit
97736         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97737         by Bruno Haible.
97739 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97741         * m4/isapipe.m4: New file.
97743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97745         * lib/isapipe.c, lib/isapipe.h: New files.
97747 2006-08-29  Jim Meyering  <jim@meyering.net>
97749         * modules/configmake (Makefile.am): Make configmake.h depend on
97750         Makefile.  Otherwise, a stale configmake.h could hang around.
97752 2006-08-29  Eric Blake  <ebb9@byu.net>
97754         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97755         resolution of upstream bug 3044.
97757 2006-08-29  Bruno Haible  <bruno@clisp.org>
97759         * modules/localcharset (Depends-on): Add configmake.
97760         (Makefile.am): Remove setting of LIBDIR through DEFS.
97762 2006-08-29  Bruno Haible  <bruno@clisp.org>
97764         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97765         defined.
97767 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97769         * modules/fcntl: New file.
97770         * modules/chdir-safer (Depends-on): Add fcntl.
97771         * modules/fts: Likewise.
97772         * modules/mkdir-p: Likewise.
97774         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97775         This undoes the most recent change, since we're now addressing the
97776         problem in a different way.
97778         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97779         into output, since the output might be called Makefile.am even
97780         if $makefile_name is something different.
97781         (func_import): Use $makefile_am rather than
97782         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97783         empty.
97785         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97789         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97790         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97791         recent change to stdint.m4, since we're now addressing the problem in a
97792         different way.
97794 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97796         * m4/fcntl_h.m4: New file.
97798 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97800         * lib/fcntl_.h: New file.
97801         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97802         the fcntl module.
97803         * lib/dirchownmod.c: Likewise.
97804         * lib/fts.c: Likewise.
97806         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97807         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97808         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97809         just before including <inttypes.h>, to avoid circular inclusion.
97811 2006-08-28  Jim Meyering  <jim@meyering.net>
97813         * doc/visibility.texi: Actually read and correct the grammar of the
97814         sentence affected by yesterday's change.
97816 2006-08-28  Eric Blake  <ebb9@byu.net>
97818         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97819         needs wrapper.
97821 2006-08-28  Eric Blake  <ebb9@byu.net>
97823         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97825 2006-08-28  Eric Blake  <ebb9@byu.net>
97827         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97829 2006-08-28  Bruno Haible  <bruno@clisp.org>
97831         * modules/c-strstr: New file, from GNU gettext.
97832         * MODULES.html.sh (String handling): Add c-strstr.
97834 2006-08-28  Bruno Haible  <bruno@clisp.org>
97836         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97837         macros.
97838         Reported by Eric Blake.
97840 2006-08-28  Bruno Haible  <bruno@clisp.org>
97842         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97843         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97844         * lib/vasprintf.c: Include errno.h, limits.h.
97845         (EOVERFLOW): New fallback definition.
97846         (vasprintf): Test here whether the string length is > INT_MAX.
97847         * lib/vsnprintf.c: Include errno.h, limits.h.
97848         (EOVERFLOW): New fallback definition.
97849         (vsnprintf): Fix bug when generated string was too long for the buffer.
97850         Test here whether the string length is > INT_MAX.
97852 2006-08-28  Bruno Haible  <bruno@clisp.org>
97854         * lib/inttypes_.h (SCNX*): Remove definitions.
97855         Reported by Eric Blake.
97857 2006-08-28  Bruno Haible  <bruno@clisp.org>
97859         * lib/c-strstr.h: New file, from GNU gettext.
97860         * lib/c-strstr.c: New file, from GNU gettext.
97862 2006-08-28  Bruno Haible  <bruno@clisp.org>
97864         * gnulib-tool: Reorder some statements.
97866 2006-08-28  Bruno Haible  <bruno@clisp.org>
97868         * gnulib-tool: New option --makefile-name.
97869         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97870         $makefile_name.
97871         (func_import): Write $makefile_name to the cache file, and read it from
97872         there unless explicitly specified. Use $makefile_name as file name
97873         instead of Makefile.am. Adjust the recommendations accordingly.
97875 2006-08-28  Bruno Haible  <bruno@clisp.org>
97877         * gnulib-tool (func_verify_module): Check against misapplying patch.
97879 2006-08-28  Bruno Haible  <bruno@clisp.org>
97881         * gnulib-tool (func_relativize, func_relconcat): New functions.
97882         Give an error if --local-dir is given with --update.
97883         Remove trailing slashes from $local_gnulib_dir.
97884         (func_import): Store the relativized $local_gnulib_dir in
97885         gnulib-cache.m4, and read it from there if not specified explicitly.
97887 2006-08-28  Bruno Haible  <bruno@clisp.org>
97889         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97890         is the current directory. Respect also $local_gnulib_dir.
97892 2006-08-28  Bruno Haible  <bruno@clisp.org>
97893             Simon Josefsson  <jas@extundo.com>
97895         BeOS portability.
97896         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97898 2006-08-27  Jim Meyering  <jim@meyering.net>
97900         * doc/visibility.texi: Remove duplicate word: "pointer".
97902 2006-08-26  Bruno Haible  <bruno@clisp.org>
97904         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97905         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97906         (Makefile.am): Create inttypes.h from inttypes_.h.
97907         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97909         * modules/imaxabs: New file.
97911         * modules/imaxdiv: New file.
97913 2006-08-26  Bruno Haible  <bruno@clisp.org>
97915         * m4/inttypes.m4: New file.
97916         * m4/_inttypes_h.m4: Remove file.
97917         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97918         PRI_MACROS_BROKEN.
97919         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97921         * m4/imaxabs.m4: New file.
97923         * m4/imaxdiv.m4: New file.
97925 2006-08-26  Bruno Haible  <bruno@clisp.org>
97927         * lib/inttypes_.h: New file.
97928         * lib/inttypes.h: Remove file.
97929         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97931         * lib/imaxabs.c: New file.
97933         * lib/imaxdiv.c: New file.
97935 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97937         New config-h module, so that "make" output needn't be cluttered
97938         by -DHAVE_CONFIG_H.
97939         * MODULES.html.sh (Support for building libraries and executables):
97940         Add config-h.
97941         * modules/config-h: New file.
97942         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97943         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97944         the config-h module is used.
97946         New configmake module, so that "make" output needn't be cluttered
97947         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97948         * MODULES.html.sh (Support for building libraries and executables):
97949         Add configmake.
97950         * modules/configmake: New file.
97952 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97954         * m4/config-h.m4: New file.
97956 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97958         * config/srclist.txt: Add elisp-comp.
97960 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97962         * MODULES.html.sh (Support for building libraries and executables):
97963         Add elisp-comp.
97964         * build-aux/elisp-comp: New file.
97965         * modules/elisp-comp: New file.
97967 2006-08-24  Bruno Haible  <bruno@clisp.org>
97969         * gnulib-tool (func_create_testdir): Use non-default values of
97970         sourcebase and m4base.
97972 2006-08-24  Bruno Haible  <bruno@clisp.org>
97974         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97975         HTML structure.
97977 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97979         * modules/openat (Depends-on): Add lchown.
97981 2006-08-23  Bruno Haible  <bruno@clisp.org>
97983         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97984         of gl_LOCK_EARLY instead of gl_LOCK.
97986 2006-08-23  Bruno Haible  <bruno@clisp.org>
97988         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97989         on OSF/1 to no.
97990         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97992 2006-08-23  Bruno Haible  <bruno@clisp.org>
97994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97995         as unusable.
97997         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97998         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97999         (gl_LOCK): New macro.
98001 2006-08-22  Simon Josefsson  <jas@extundo.com>
98003         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
98004         to md5 module.
98006 2006-08-22  Simon Josefsson  <jas@extundo.com>
98008         * MODULES.html.sh: Add "Support for maintaining and release
98009         projects".
98011         * build-aux/gnupload: New file, from coreutils.
98013 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98015         Avoid the need for AC_LIBSOURCES in m4 macros.
98016         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
98017         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
98018         * modules/check-version (EXTRA_DIST): Add check-version.h.
98019         * modules/crc (EXTRA_DIST): Add crc.h.
98020         * modules/des (EXTRA_DIST): Add des.h.
98021         * modules/gc (EXTRA_DIST): Add gc.h.
98022         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
98023         * modules/getline (EXTRA_DIST): Add getline.h.
98024         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
98025         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
98026         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
98027         * modules/md2 (EXTRA_DIST): Add md2.h.
98028         * modules/md4 (EXTRA_DIST): Add md4.h.
98029         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
98030         * modules/read-file (EXTRA_DIST): Add read-file.h.
98031         * modules/readline (EXTRA_DIST): Add readline.h.
98032         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
98033         rijndael-api-fst.h.
98035 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98037         * m4/rijndael.m4 (gl_ARCFOUR):
98038         * m4/arctwo.m4 (gl_ARCTWO):
98039         * m4/check-version.m4 (gl_CHECK_VERSION):
98040         * m4/crc.m4 (gl_CRC):
98041         * m4/des.m4 (gl_DES):
98042         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
98043         * m4/gc.m4 (gl_GC):
98044         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
98045         * m4/getline.m4 (gl_FUNC_GETLINE):
98046         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
98047         * m4/hmac-md5.m4 (gl_HMAC_MD5):
98048         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
98049         * m4/md2.m4 (gl_MD2):
98050         * m4/md4.m4 (gl_MD4):
98051         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
98052         * m4/read-file.m4 (gl_FUNC_READ_FILE):
98053         * m4/readline.m4 (gl_FUNC_READLINE):
98054         * m4/rijndael.m4 (gl_RIJNDAEL):
98055         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98056         to get the necessary .h files and whatnot.
98058 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98060         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
98061         gnulib rather than the other way around.
98062         * config/srclistvars.sh (COREUTILS): Remove.
98064 2006-08-22  Jim Meyering  <jim@meyering.net>
98066         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
98068         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
98070 2006-08-22  Eric Blake  <ebb9@byu.net>
98072         * modules/regexprops-generic: New file.
98073         * MODULES.html.sh (Support for building documentation): List it.
98075 2006-08-22  Eric Blake  <ebb9@byu.net>
98077         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
98078         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
98079         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
98080         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
98082 2006-08-22  Bruno Haible  <bruno@clisp.org>
98084         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
98085         and lib_LTLIBRARIES like the other lib_* variables.
98087 2006-08-22  Bruno Haible  <bruno@clisp.org>
98089         * build-aux/x-to-1.in: New file, from GNU gettext.
98091 2006-08-22  Bruno Haible  <bruno@clisp.org>
98093         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
98094         <utmpx.h> exists.
98096 2006-08-22  Bruno Haible  <bruno@clisp.org>
98098         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
98099         <utmpx.h> exists.
98101 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98103         BeOS portability.
98104         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
98105         exist.
98106         Problem reported by Bruno Haible.
98108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98110         Avoid the need for AC_LIBSOURCES in m4 macros.
98111         * modules/acl (EXTRA_DIST): Add acl.h.
98112         * modules/argmatch (Files): Add m4/argmatch.m4.
98113         (configure.ac): Add gl_ARGMATCH.
98114         (EXTRA_DIST): Renamed from lib_SOURCES, for
98115         consistency with the other modules.  Remove argmatch.c.
98116         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98117         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98118         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98119         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98120         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98121         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98122         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98123         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98124         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98125         * modules/closeout (EXTRA_DIST): Add closeout.h.
98126         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98127         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98128         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98129         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98130         dirname.h; remove basename.c and stripslash.c.
98131         * modules/exclude (EXTRA_DIST): Add exclude.h.
98132         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98133         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98134         * modules/file-type (EXTRA_DIST): Add file-type.h.
98135         * modules/filemode (EXTRA_DIST): Add filemode.h.
98136         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98137         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98138         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98139         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98140         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98141         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98142         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98143         * modules/getdate (EXTRA_DIST): Add getdate.c.
98144         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98145         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98146         * modules/getpass (EXTRA_DIST): Add getpass.h.
98147         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98148         * modules/group-member (EXTRA_DIST): Add group-member.h.
98149         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98150         * modules/hash (EXTRA_DIST): Add hash.h.
98151         * modules/human (EXTRA_DIST): Add human.h.
98152         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98153         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98154         * modules/lchown (EXTRA_DIST): Add lchown.h.
98155         * modules/long-options (EXTRA_DIST): Add long-options.h.
98156         * modules/lstat (EXTRA_DIST): Add lstat.h.
98157         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98158         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98159         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98160         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98161         * modules/memxor (EXTRA_DIST): Add memxor.h.
98162         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98163         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98164         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98165         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98166         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98167         * modules/physmem (EXTRA_DIST): Add physmem.h.
98168         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98169         * modules/posixver (EXTRA_DIST): Add posixver.h.
98170         * modules/quote (EXTRA_DIST): Add quote.h.
98171         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98172         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98173         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98174         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98175         regex_internal.h regexec.c.
98176         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98177         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98178         * modules/same (EXTRA_DIST): Add same.h.
98179         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98180         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98181         * modules/savedir (EXTRA_DIST): Add savedir.h.
98182         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98183         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98184         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98185         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98186         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98187         * modules/strdup (EXTRA_DIST): Add strdup.h.
98188         * modules/strftime (EXTRA_DIST): Add strftime.h.
98189         * modules/strndup (EXTRA_DIST): Add strndup.h.
98190         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98191         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98192         * modules/time_r (EXTRA_DIST): Add time_r.h.
98193         * modules/timespec (EXTRA_DIST): Add timespec.h.
98194         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98195         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98196         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98197         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98198         * modules/userspec (EXTRA_DIST): Add userspec.h.
98199         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98200         * modules/utimens (EXTRA_DIST): Add utimens.h.
98201         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98202         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98203         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98204         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98205         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98206         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98207         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98208         * modules/yesno (EXTRA_DIST): Add yesno.h.
98210 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98212         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98214         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98215         * m4/dev-ino.m4, same-inode.m4: Remove.
98217         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98218         * m4/acl.m4 (AC_FUNC_ACL):
98219         * m4/backupfile.m4 (gl_BACKUPFILE):
98220         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98221         * m4/canon-host.m4 (gl_CANON_HOST):
98222         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98224         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98225         * m4/cloexec.m4 (gl_CLOEXEC):
98226         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98227         * m4/closeout.m4 (gl_CLOSEOUT):
98228         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98229         * m4/dirname.m4 (gl_DIRNAME):
98230         * m4/exclude.m4 (gl_EXCLUDE):
98231         * m4/exitfail.m4 (gl_EXITFAIL):
98232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98233         * m4/file-type.m4 (gl_FILE_TYPE):
98234         * m4/filemode.m4 (gl_FILEMODE):
98235         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98236         * m4/fpending.m4 (gl_FUNC_FPENDING):
98237         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98238         * m4/fts.m4 (gl_FUNC_FTS):
98239         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98240         * m4/getdate.m4 (gl_GETDATE):
98241         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98242         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98243         * m4/getpass.m4 (gl_FUNC_GETPASS):
98244         * m4/gettime.m4 (gl_GETTIME):
98245         * m4/getugroups.m4 (gl_GETUGROUPS):
98246         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98247         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98248         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98249         * m4/hash.m4 (gl_HASH):
98250         * m4/idcache.m4 (gl_IDCACHE):
98251         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98252         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98253         * m4/long-options.m4 (gl_LONG_OPTIONS):
98254         * m4/lstat.m4 (gl_FUNC_LSTAT):
98255         * m4/md5.m4 (gl_MD5):
98256         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98257         * m4/memcoll.m4 (gl_MEMCOLL):
98258         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98260         * m4/memxor.m4 (gl_MEMXOR):
98261         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98262         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98263         * m4/modechange.m4 (gl_MODECHANGE):
98264         * m4/mountlist.m4 (gl_MOUNTLIST):
98265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98266         * m4/openat.m4 (gl_FUNC_OPENAT):
98267         * m4/pathmax.m4 (gl_PATHMAX):
98268         * m4/physmem.m4 (gl_PHYSMEM):
98269         * m4/posixtm.m4 (gl_POSIXTM):
98270         * m4/posixver.m4 (gl_POSIXVER):
98271         * m4/quote.m4 (gl_QUOTE):
98272         * m4/quotearg.m4 (gl_QUOTEARG):
98273         * m4/readtokens.m4 (gl_READTOKENS):
98274         * m4/readutmp.m4 (gl_READUTMP):
98275         * m4/regex.m4 (gl_REGEX):
98276         * m4/safe-read.m4 (gl_SAFE_READ):
98277         * m4/safe-write.m4 (gl_SAFE_WRITE):
98278         * m4/same.m4 (gl_SAME):
98279         * m4/save-cwd.m4 (gl_SAVE_CWD):
98280         * m4/savedir.m4 (gl_SAVEDIR):
98281         * m4/settime.m4 (gl_SETTIME):
98282         * m4/sha1.m4 (gl_SHA1):
98283         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98284         * m4/stat-macros.m4 (gl_STAT_MACROS):
98285         * m4/stat-time.m4 (gl_STAT_TIME):
98286         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98287         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98288         * m4/strdup.m4 (gl_FUNC_STRDUP):
98289         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98290         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98291         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98292         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98293         * m4/time_r.m4 (gl_TIME_R):
98294         * m4/timespec.m4 (gl_TIMESPEC):
98295         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98296         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98297         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98298         * m4/userspec.m4 (gl_USERSPEC):
98299         * m4/utimecmp.m4 (gl_UTIMECMP):
98300         * m4/utimens.m4 (gl_UTIMENS):
98301         * m4/xalloc.m4 (gl_XALLOC):
98302         * m4/xgetcwd.m4 (gl_XGETCWD):
98303         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98304         * m4/xreadlink.m4 (gl_XREADLINK):
98305         * m4/xstrtod.m4 (gl_XSTRTOD):
98306         * m4/yesno.m4 (gl_YESNO):
98307         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98308         to get the necessary .h files and whatnot.
98310 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98311             Bruno Haible  <bruno@clisp.org>
98313         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98314         /bin/sh understanding of '!' conditional negation.
98316 2006-08-21  Jim Meyering  <jim@meyering.net>
98318         * modules/openat (Depends-on): Really alphabetize.
98320         * modules/acl (Depends-on): Add error and quote.
98322         * check-module (find_included_lib_files): Add at-func.c to the
98323         ok-to-include-more-than-once white list.
98325         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98327 2006-08-21  Bruno Haible  <bruno@clisp.org>
98329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98330         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98331         Reported by Martin Lambers <marlam@marlam.de>.
98333 2006-08-21  Bruno Haible  <bruno@clisp.org>
98335         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98336         specify an installation location, don't emit a noinst_LIBRARIES or
98337         noinst_LTLIBRARIES assignment.
98339 2006-08-21  Bruno Haible  <bruno@clisp.org>
98341         BeOS portability.
98342         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98343         BeOS has mbrtowc() but no <wctype.h>.
98345 2006-08-21  Bruno Haible  <bruno@clisp.org>
98347         BeOS portability.
98348         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98349         exist.
98351 2006-08-21  Bruno Haible  <bruno@clisp.org>
98353         BeOS portability.
98354         * lib/mbchar.h: Include <wctype.h> only if it exists.
98356 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98358         Remove files that are no longer needed by their respective modules.
98359         * m4/obstack.m4: Remove.
98360         * m4/strerror_r.m4: Remove.
98361         * m4/uint32_t.m4: Remove.
98362         * m4/uintptr_t.m4: Remove.
98363         * m4/ullong_max.m4: Remove.
98364         * m4/xstrtoimax.m4: Remove.
98365         * m4/xstrtoumax.m4: Remove.
98367         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98368         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98369         dependencies now capture this.
98371         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98372         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98373         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98374         * m4/human.m4 (gl_HUMAN): Likewise.
98375         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98376         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98378         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98380         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98381         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98382         stdint.
98383         * m4/human.m4 (gl_HUMAN): Likewise.
98384         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98385         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98386         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98388         * m4/xstrtol (gl_XSTRTOL): Likewise.
98390         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98391         AC_TYPE_LONG_LONG_INT.
98392         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98393         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98394         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98395         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98397         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98398         on stdbool.
98400         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98401         (gl_PREREQ_XSTRTOUL): Remove.
98403         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98405         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98406         mode.
98408 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98410         Add and change modules to make it easier for coreutils to use
98411         gnulib-tool.
98412         * modules/backupfile (Files): Remove m4/d-ino.m4.
98413         (Depends-on): Add d-ino.
98414         * modules/cycle-check (Depends-on): Add stdint.
98415         (lib_SOURCES): Add cycle-check.h.
98416         * modules/d-ino: New module.
98417         * modules/d-type: New module.
98418         * modules/error (Files): Remove m4/strerror_r.m4.
98419         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98420         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98421         m4/inttypes_h.m4, m4/uintmax_t.m4.
98422         (Depends-on): Add stdint.
98423         (lib_SOURCES): Add fsusage.h.
98424         * modules/getcwd (Files): Remove d-ino.m4.
98425         (Depends-on): Add d-ino.
98426         * modules/getndelim2 (Depends-on): Add stdint.
98427         * modules/glob (Files): Remove m4/d-type.m4.
98428         (Depends-on): Add d-type.
98429         * modules/host-os: New module.
98430         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98431         m4/inttypes_h.m4, m4/uintmax_t.m4.
98432         * Depends-on: Add stdint.
98433         (lib_SOURCES): Add human.h.
98434         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98435         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98436         m4/uintmax_t.m4, m4/ulonglong.m4.
98437         (Depends-on): Add stdint.
98438         (EXTRA_DIST): Add inttostr.h.
98439         * modules/lchmod: New module.
98440         * modules/link-follow: New module.
98441         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98442         (Depends-on): Add lchmod.
98443         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98444         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98445         (Depends-on): Add stdint.
98446         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98447         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98448         (Depends-on): Add stdint.
98449         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98450         * modules/perl: New module.
98451         * modules/regex (Depends-on): Add stdint.
98452         * modules/rmdir-errno: New module.
98453         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98454         m4/intmax_t.m4.
98455         (Depends-on): Add stdint.
98456         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98457         m4/uintmax_t.m4.
98458         (Depends-on): Add stdint.
98459         * modules/unlink-busy: New module.
98460         * modules/utimecmp (Depends-on): Add stdint.
98461         * modules/uptime: New module.
98462         * modules/winsz-ioctl: New module.
98463         * modules/winsz-termios: New module.
98464         * modules/xnanosleep (Depends-on): Add nanosleep.
98465         * modules/ullong_max: Remove.
98466         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98467         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98468         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98469         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98470         (Depends-on): Add inttypes.
98471         (lib_SOURCES): Add xstrtol.h.
98472         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98473         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98474         * MODULES.html.sh: Move 'assert' into the assert section.
98475         Move 'dummy' into the linking section.
98476         Remove ullong_max.
98477         Add section for compatibility checks for POSIX:2001 functions,
98478         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98479         winsz-ioctl, and winsz-termios into it.
98480         Add lchmod.
98481         Add top-level Misc section and put host-os, perl, and uptime
98482         into it.
98484 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98486         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98487         now assume the stdint module.  Do not include inttypes.h.
98488         * lib/fsusage.h: Likewise.
98489         * lib/getndelim2.c: Likewise.
98490         * lib/human.h: Likewise.
98491         * lib/inttostr.h: Likewise.
98492         * lib/obstack.c: Likewise.
98493         * lib/regex_internal.h: Likewise.
98494         * lib/tempname.c: Likewise.
98495         * lib/utimecmp.c: Likewise.
98496         * lib/xstrtol.h: Likewise.
98498         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98500         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98501         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98502         * lib/xtime.h: Likewise.
98504 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98506         * modules/openat (Files): Add lib/fchmodat.c.
98507         Fixes problem reported by Jay Youngman.
98509 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98511         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98512         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98514 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98515             Bruno Haible  <bruno@clisp.org>
98517         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98518         and is a script that invokes bison. Tighten the code. Add comments.
98520 2006-08-18  Jim Meyering  <jim@meyering.net>
98522         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98523         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98524         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98525         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98527 2006-08-18  Bruno Haible  <bruno@clisp.org>
98529         * modules/bison-i18n: New file.
98530         * MODULES.html.sh (Internationalization functions): Add it.
98532 2006-08-18  Bruno Haible  <bruno@clisp.org>
98534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98535         sys/statvfs.h. When getmntinfo was found, check its declaration and
98536         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98538 2006-08-18  Bruno Haible  <bruno@clisp.org>
98540         * m4/bison-i18n.m4: New file, from bison.
98542 2006-08-18  Bruno Haible  <bruno@clisp.org>
98544         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98545         (ME_DUMMY): Treat "kernfs" as a dummy.
98546         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98548 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98550         Update from coreutils.
98552         2006-08-15  Jim Meyering  <jim@meyering.net>
98554         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98556         2006-01-17  Jim Meyering  <jim@meyering.net>
98558         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98560         2006-01-11  Jim Meyering  <jim@meyering.net>
98562         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98563         Check for the lchmod function.
98565 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98567         Update from coreutils.
98569         * lib/__fpending.h: Add copyright notice.
98570         * lib/fprintftime.h: Likewise.
98571         * lib/savedir.c: Use (C) in copyright notice.
98572         * lib/savedir.h: Likewise.
98574         2006-08-15  Jim Meyering  <jim@meyering.net>
98576         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98577         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98578         in support of the EXPECTED_ERRNO macro.
98579         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98580         definitions.  Instead, define the appropriate symbols and include
98581         "at-func.c".
98582         * lib/mkdirat.c (mkdirat): Likewise.
98583         * lib/fchmodat.c (fchmodat): Likewise.
98584         (ENOSYS): Remove definition.
98585         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98586         it.  Don't include "unistd--.h" -- it wasn't ever used.
98588         2006-01-17  Jim Meyering  <jim@meyering.net>
98590         Rewrite fts.c not to change the current working directory,
98591         by using openat, fstatat, fdopendir, etc..
98593         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98594         (HAVE_OPENAT_SUPPORT): Define.
98595         [_LIBC] (fchdir): Don't undef or define; no longer used.
98596         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98597         Now, this `function' always succeeds, and consumes its file descriptor
98598         parameter -- so callers must not close such FDs.  Update callers.
98599         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98600         (diropen): Add parameter, SP.  Adjust all callers.
98601         Implement using diropen_fd, rather than open.
98602         (fts_open): Initialize new member, fts_cwd_fd.
98603         Remove fts_rft-setting code.
98604         (fts_close): Close fts_cwd_fd, if necessary.
98605         (__opendir2): Define in terms of opendir or opendirat,
98606         depending on whether the FST_NOCHDIR flag is set.
98607         (fts_build): Since fts_safe_changedir consumes its FD, and since
98608         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98609         and close the dup'd file descriptor upon failure.
98610         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98611         (fts_safe_changedir): Tweak semantics to reflect that this function
98612         now calls cwd_advance_fd and hence consumes its FD argument.
98613         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98614         [struct FTS] (fts_rft): Remove now-unused member.
98615         [struct FTS] (fts_cycle.state): Improve comment.
98617         * lib/openat.c (openat_needs_fchdir): New function.
98618         * lib/openat.h (openat_needs_fchdir): Declare it.
98620 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98622         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98623         Problem and fix reported by Pádraig Brady in
98624         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98626 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98628         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98630 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98632         * lib/memcoll.c (memcoll): Optimize for the common case where the
98633         arguments are bytewise equal.
98635 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98637         * doc/regexprops-generic.texi: Add a copyright notice.
98639 2006-08-15  Bruno Haible  <bruno@clisp.org>
98641         * modules/tmpdir (License): Change to LGPL.
98643 2006-08-15  Bruno Haible  <bruno@clisp.org>
98645         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98646         module.
98648 2006-08-14  Simon Josefsson  <jas@extundo.com>
98650         * config/srclist.txt: Add gnupload.
98652 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98654         Change copyright notice from LGPL 2 to GPL 2, since that's the
98655         standard form used in the gnulib repository.
98656         * tests/test-lock.c: Likewise.
98657         * tests/test-stdint.c: Likewise.
98658         * tests/test-tls.c: Likewise.
98660         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98661         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98662         Add copyright notice.
98664         * check-module: Add copyright notice.  Output a copyright
98665         notice if "--version" is specified.
98666         * modules/COPYING: New file.
98667         * tests/test-getaddrinfo.c: Add copyright notice.
98668         * tests/test-verify.c: Likewise.
98670 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98672         Change copyright notice from LGPL 2 to GPL 2, since that's the
98673         standard form used in the gnulib repository.
98674         * lib/lock.c: LGPL -> GPL.
98675         * lib/lock.h: Likewise.
98676         * lib/strnlen1.c: Likewise.
98677         * lib/strnlen1.h: Likewise.
98678         * lib/tls.c: Likewise.
98679         * lib/tls.h: Likewise.
98680         * lib/tmpdir.c: Likewise.
98682         * lib/TODO: Remove; this belongs only in coreutils.
98684 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98686         Add copyright notices to long-enough files that lack them, since
98687         otherwise the files aren't clearly free.  Use the same notice that
98688         getdate.texi already uses.
98689         * doc/alloca-opt.texi: Add copyright notice.
98690         * doc/alloca.texi: Likewise.
98691         * doc/ctime.texi: Likewise.
98692         * doc/functions.texi: Likewise.
98693         * doc/gcd.texi: Likewise.
98694         * doc/gnulib-tool.texi: Likewise.
98695         * doc/inet_ntoa.texi: Likewise.
98696         * doc/visibility.texi: Likewise.
98698         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98699         * doc/quote.texi: Add copyright notice.
98701         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98702         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98703         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98704         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98705         is now obsolete, and give a pointer to the Sun list.
98706         Add copyright notice.
98708 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98710         * config/srclistvars.sh: Add copyright notice.
98712 2006-08-14  Eric Blake  <ebb9@byu.net>
98714         Import the following change from libc:
98716         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98718         Upstream bug 2997.
98719         * lib/misc/error.c: Add space between program name and message if file
98720         name is missing.
98722 2006-08-12  Karl Berry  <karl@gnu.org>
98724         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98725         remove, these originate in gnulib now.
98727 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98729         * doc/Makefile (standards.info standards.html standards.dvi):
98730         Also depend on make-stds.texi.
98732 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98734         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98735         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98737         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98738         in wchar_t.  Problem reported by Eric Blake.
98740         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98741         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98742         Also, help the compiler to keep LEN in a register.
98744 2006-08-11  Eric Blake  <ebb9@byu.net>
98746         * users.txt: Sort.  Add tar.
98748 2006-08-11  Bruno Haible  <bruno@clisp.org>
98750         * users.txt: New file.
98752 2006-08-11  Bruno Haible  <bruno@clisp.org>
98754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98755         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98757 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98759         * modules/snprintf (Depends-on): Remove minmax.
98760         (Maintainer): Add self and Bruno.
98762 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98764         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98765         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98766         (EOVERFLOW): Define if the system does not.
98767         Do not include "minmax.h"; it wasn't used.
98768         (snprintf): Don't assume size_t promotes to an unsigned type.
98769         Fix bug when generated string was too long for the buffer: the
98770         buffer's contents are supposed to be the initial prefix of the
98771         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98772         exceeds INT_MAX; do the check ourselves.
98774         Import the following changes from libc:
98776         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98778         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98779         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98780         set wc to the byte which couldn't be converted.
98781         (re_string_reconstruct): Don't clear valid_raw_len before calling
98782         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98783         tip_context using re_string_context_at.
98785         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98787         * lib/posix/regex.h: g++ still cannot handled [restrict].
98789         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98791         * lib/posix/regex.h: Remove special handling for VMS.
98793 2006-08-10  Jim Meyering  <jim@meyering.net>
98795         * modules/same-inode: New module.
98796         * modules/dev-ino: New module.
98797         * modules/cycle-check: Depend on these modules, rather than simply
98798         including their .h files.
98799         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98800         required via m4/cycle-check.m4.
98801         * modules/same: Depend on new same-inode module, rather than
98802         including same-inode.h.
98803         * modules/chdir-safer: New file.
98805         * modules/chown (Depends-on): Add stat-macros.
98807 2006-08-10  Jim Meyering  <jim@meyering.net>
98809         * m4/cycle-check.m4: New file.
98810         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98811         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98813 2006-08-10  Eric Blake  <ebb9@byu.net>
98815         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98816         in from original proposal.
98818 2006-08-10  Eric Blake  <ebb9@byu.net>
98819         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98821         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98822         namespace.
98824 2006-08-10  Bruno Haible  <bruno@clisp.org>
98826         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98827         as well.
98829 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98831         Sync from coreutils.
98833         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98835         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98836         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98838 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98840         * modules/restrict: Remove; no longer needed now that we assume
98841         Autoconf 2.59 or later.
98842         * MODULES.html.sh: Remove 'restrict'.
98843         * modules/argp (Depends-on): Remove 'restrict'.
98844         * modules/base64 (Depends-on): Likewise.
98845         * modules/gc (Depends-on): Likewise.
98846         * modules/getaddrinfo (Depends-on): Likewise.
98847         * modules/glob (Depends-on): Likewise.
98848         * modules/inet_ntop (Depends-on): Likewise.
98849         * modules/inet_pton (Depends-on): Likewise.
98850         * modules/memxor (Depends-on): Likewise.
98851         * modules/regex (Depends-on): Likewise.
98852         * modules/strtok_r (Depends-on): Likewise.
98853         * modules/time_r (Depends-on): Likewise.
98855 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98857         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98858         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98859         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98860         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98861         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98862         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98863         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98864         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98866         Merge from coreutils.
98867         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98868         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98869         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98870         * m4/time_r.m4 (gl_TIME_R): Likewise.
98872 2006-08-09  Karl Berry  <karl@gnu.org>
98874         * config/srclist.txt: no more gettext-tools, per Bruno.
98876 2006-08-08  Eric Blake  <ebb9@byu.net>
98878         * modules/verror: New module.
98879         * MODULES.html.sh: Document it.
98881 2006-08-08  Eric Blake  <ebb9@byu.net>
98883         * lib/verror.h, lib/verror.c: New files.
98885 2006-08-08  Eric Blake  <ebb9@byu.net>
98887         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98888         verror_at_line output complies with GNU Coding Standards even when
98889         file is NULL.
98891 2006-08-07  Bruno Haible  <bruno@clisp.org>
98893         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98894         versions of AIX.
98895         Reported by Ralf Wildenhues.
98897 2006-08-07  Bruno Haible  <bruno@clisp.org>
98899         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98900         in an AC_DEFUN. Needed so that the autoconf snippets can use
98901         AC_REQUIRE.
98903 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98906         Initialize pkgdata_DATA.
98907         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98908         overriding it.
98910 2006-08-06  Eric Blake  <ebb9@byu.net>
98912         * lib/error.h: Fold in some upstream changes from glibc.
98913         * lib/error.c: Likewise.
98915 2006-08-04  Bruno Haible  <bruno@clisp.org>
98917         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98918         Make the mostlyclean-local rule depend on mostlyclean-generic.
98919         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98921 2006-07-31  Bruno Haible  <bruno@clisp.org>
98923         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98924         <stdlib.h>, <string.h>.
98926 2006-07-30  Bruno Haible  <bruno@clisp.org>
98928         * modules/readlink (License): Change to LGPL.
98930 2006-07-30  Bruno Haible  <bruno@clisp.org>
98932         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98933         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98934         set PKGDATADIR to point to it.
98936 2006-07-30  Bruno Haible  <bruno@clisp.org>
98938         * modules/csharpexec (configure.ac): Comment out macro invocation.
98939         * modules/javaexec (configure.ac): Likewise.
98940         * modules/javacomp-script (configure.ac): Likewise.
98942         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98944 2006-07-30  Bruno Haible  <bruno@clisp.org>
98946         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98947         linked-list.
98949 2006-07-30  Bruno Haible  <bruno@clisp.org>
98951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98953 2006-07-30  Bruno Haible  <bruno@clisp.org>
98955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98956         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98957         get removed.
98959 2006-07-29  Bruno Haible  <bruno@clisp.org>
98961         Make it possible for gnulib-tool to work with locally modified or
98962         augmented gnulib repositories.
98963         * gnulib-tool (func_usage): Document --local-dir option.
98964         (local_gnulib_dir): New variable.
98965         Handle --local-dir option.
98966         (func_lookup_file): New function.
98967         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98968         (func_get_description, func_get_filelist, func_get_description,
98969         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98970         func_get_automake_snippet, func_get_include_directive,
98971         func_get_license, func_get_maintainer): Use func_lookup_file.
98972         (func_import, func_create_testdir): Use func_lookup_file.
98974 2006-07-29  Bruno Haible  <bruno@clisp.org>
98976         * modules/setenv (Depends-on): Add unistd.
98978 2006-07-29  Bruno Haible  <bruno@clisp.org>
98980         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98982 2006-07-29  Bruno Haible  <bruno@clisp.org>
98984         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98986 2006-07-29  Bruno Haible  <bruno@clisp.org>
98988         * gnulib-tool (import, update): If there is no Makefile.am, look at
98989         aclocal.m4, instead of bailing out.
98991 2006-07-29  Bruno Haible  <bruno@clisp.org>
98993         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98994         Categorize the options by when they are useful.
98996 2006-07-29  Bruno Haible  <bruno@clisp.org>
98998         * gnulib-tool (func_usage): Document option --no-libtool.
98999         Handle option --no-libtool.
99000         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
99001         for changed semantics of $libtool variable.
99002         (func_import): Likewise. If libtool is not used, show this through
99003         an option --no-libtool.
99004         (func_create_testdir): Update.
99006 2006-07-29  Bruno Haible  <bruno@clisp.org>
99008         * gnulib-tool (func_import): Extend error message about missing
99009         --doc-base.
99011 2006-07-29  Bruno Haible  <bruno@clisp.org>
99013         * gnulib-tool (func_import): Don't create the $docbase directory if
99014         there is no file to store there.
99016 2006-07-29  Bruno Haible  <bruno@clisp.org>
99018         * gnulib-tool (autoconf_minversion): If a --dir option is given and
99019         relevant, look for configure.ac there, not in the current directory.
99020         Also use a simple search for AC_PREREQ, not "autoconf --trace".
99022 2006-07-29  Bruno Haible  <bruno@clisp.org>
99024         * gnulib-tool (SORT): New variable.
99025         (func_usage): Undocument --assume-autoconf option.
99026         Remove --assume-autoconf option handling.
99027         (autoconf_minversion): Determine from the contents of configure.ac.
99028         (func_import): Remove autoconf_minversion handling.
99029         Suggested by Eric Blake.
99031 2006-07-29  Bruno Haible  <bruno@clisp.org>
99033         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
99035 2006-07-29  Bruno Haible  <bruno@clisp.org>
99037         * config/srclist.txt (*setenv.[ch]): Remove rules.
99039 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99041         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
99043 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99045         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
99046         arpa/inet.h.
99048 2006-07-28  Simon Josefsson  <jas@extundo.com>
99050         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
99051         * modules/inet_pton (Depends-on): Likewise.
99053 2006-07-28  Simon Josefsson  <jas@extundo.com>
99055         * m4/netinet_in_h.m4: New file.
99057 2006-07-28  Simon Josefsson  <jas@extundo.com>
99059         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
99060         #include's.
99062 2006-07-28  Simon Josefsson  <jas@extundo.com>
99064         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
99065         #include's.
99067 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
99069         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
99070         setgid on directories only if they set these bits.
99071         * lib/modechange.h: Remove obsolete comment about masks.
99073 2006-07-28  Eric Blake  <ebb9@byu.net>
99075         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
99076         macro expansion.
99078 2006-07-28  Bruno Haible  <bruno@clisp.org>
99080         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
99082 2006-07-28  Bruno Haible  <bruno@clisp.org>
99084         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
99086 2006-07-28  Bruno Haible  <bruno@clisp.org>
99088         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
99089         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
99090         Define fallbacks.
99091         Avoids link error on FreeBSD 4.x.
99092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99094         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
99095         encoding.
99096         * lib/mbswidth.c (iswcntrl): Likewise.
99098 2006-07-27  Bruno Haible  <bruno@clisp.org>
99100         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
99101         test.
99103 2006-07-27  Bruno Haible  <bruno@clisp.org>
99105         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99106         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99107         defined.
99109 2006-07-26  Eric Blake  <ebb9@byu.net>
99111         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99113 2006-07-26  Eric Blake  <ebb9@byu.net>
99115         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99116         like mingw that lack mkstemp.
99117         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99118         avoid compilation warning on mingw.
99120 2006-07-26  Bruno Haible  <bruno@clisp.org>
99122         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99123         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99124         INT_FAST*_MIN, INTPTR_MIN.
99126 2006-07-25  Bruno Haible  <bruno@clisp.org>
99128         * modules/version-etc (Depends-on): Add stdarg.
99130 2006-07-25  Bruno Haible  <bruno@clisp.org>
99132         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99133         complex commands.
99135 2006-07-25  Bruno Haible  <bruno@clisp.org>
99137         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99138         defined in <stdarg.h> or config.h.
99140 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99142         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99143         (gl_STDIO_SAFER): Remove.
99145 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99147         * MODULES.html.sh (File stream based Input/Output):
99148         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99149         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99150         * modules/fopen-safer, modules/tmpfile-safer: New files.
99151         * modules/stdio-safer: Remove.
99153 2006-07-24  Bruno Haible  <bruno@clisp.org>
99155         * modules/tmpdir: New file.
99156         * MODULES.html.sh (File system functions): Add it.
99158 2006-07-24  Bruno Haible  <bruno@clisp.org>
99160         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99161         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99163 2006-07-24  Bruno Haible  <bruno@clisp.org>
99165         * modules/clean-temp: New file.
99167 2006-07-24  Bruno Haible  <bruno@clisp.org>
99169         * m4/tmpdir.m4: New file, from GNU gettext.
99171 2006-07-24  Bruno Haible  <bruno@clisp.org>
99173         * lib/tmpdir.h: New file, from GNU gettext.
99174         * lib/tmpdir.c: New file, from GNU gettext.
99176 2006-07-24  Bruno Haible  <bruno@clisp.org>
99178         * lib/clean-temp.h: New file, from GNU gettext.
99179         * lib/clean-temp.c: New file, from GNU gettext.
99181 2006-07-23  Eric Blake  <ebb9@byu.net>
99183         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99184         (Depends-on): Add binary-io.
99186 2006-07-23  Eric Blake  <ebb9@byu.net>
99188         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99190 2006-07-23  Eric Blake  <ebb9@byu.net>
99192         * lib/tmpfile-safer.c: New file.
99193         * lib/stdio-safer.h (fopen_safer): Add prototype.
99194         * lib/stdio--.h (tmpfile): Make safer.
99196 2006-07-23  Bruno Haible  <bruno@clisp.org>
99198         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99199         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99200         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99201         gl_linked_remove_at): Use it.
99203 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99204         and Simon Josefsson <jas@extundo.com>
99206         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99208         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99212         * modules/close-stream: New file.
99213         * modules/closeout (Description): Make it clear that it exits
99214         with a diagnostic on error.
99215         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99216         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99218 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99220         * m4/close-stream.m4: New file.
99222 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99224         * lib/close-stream.c, lib/close-stream.h: New files.
99226 2006-07-22  Bruno Haible  <bruno@clisp.org>
99228         Merge from GNU gettext 0.15.
99230         2006-05-01  Bruno Haible  <bruno@clisp.org>
99232                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99234         2006-07-22  Bruno Haible  <bruno@clisp.org>
99236                 * modules/javaversion: New file.
99237                 * MODULES.html.sh (Java): Add javaversion.
99239         2006-03-12  Bruno Haible  <bruno@clisp.org>
99241                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99243         2005-12-04  Bruno Haible  <bruno@clisp.org>
99245                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99246                 (untested).
99248         2006-06-21  Bruno Haible  <bruno@clisp.org>
99250                 Avoid warnings from recent versions of mcs.
99251                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99252                 -o, -L, -r any more. Use options documented since mcs-1.0
99253                 instead. Similarly for -g.
99255         2005-12-04  Bruno Haible  <bruno@clisp.org>
99257                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99258                 .resources, not .resource.
99260         2005-07-09  Bruno Haible  <bruno@clisp.org>
99262                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99263                 add a .dll suffix.
99264                 Reported by Mark Junker <mjscod@gmx.de>.
99266         2006-07-22  Bruno Haible  <bruno@clisp.org>
99268                 * modules/gettext: Upgrade to gettext-0.15.
99269                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99270                 m4/visibility.m4.
99271                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99273 2006-07-22  Bruno Haible  <bruno@clisp.org>
99275         Merge from GNU gettext 0.15.
99277         2006-03-25  Bruno Haible  <bruno@clisp.org>
99279                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99281         2006-07-21  Bruno Haible  <bruno@clisp.org>
99283                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99284                 "1.1".
99286         2006-05-09  Bruno Haible  <bruno@clisp.org>
99288                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99289                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99290                 for the conftestver execution.
99292         2006-05-01  Bruno Haible  <bruno@clisp.org>
99294                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99295                 optional target-version argument. Verify that the compiler
99296                 groks source of the specified source-version, or add -source
99297                 option as necessary. Verify that the compiler produces
99298                 bytecode in the specified target-version, or add -target and
99299                 -source options as necessary. Make the result of the test
99300                 available as variable CONF_JAVAC. Also log error output in
99301                 config.log.
99303         2006-03-11  Bruno Haible  <bruno@clisp.org>
99305                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99307         2006-05-09  Bruno Haible  <bruno@clisp.org>
99309                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99310                 CLASSPATH_SEPARATOR to a semicolon.
99312         2006-03-12  Bruno Haible  <bruno@clisp.org>
99314                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99315                 available as variable CONF_JAVA, for subsequent autoconf
99316                 tests. Also log error output in config.log.
99318         2006-07-19  Bruno Haible  <bruno@clisp.org>
99320                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99321                 that getline works on glibc2 systems. Needed to avoid trouble
99322                 in relocatable.c.
99323                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99325         2005-12-04  Bruno Haible  <bruno@clisp.org>
99327                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99328                 launcher (untested).
99330         2005-12-04  Bruno Haible  <bruno@clisp.org>
99332                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99334         2006-07-22  Bruno Haible  <bruno@clisp.org>
99336                 * gettext.m4: Update from GNU gettext-0.15.
99337                 * nls.m4: Likewise.
99338                 * po.m4: Likewise.
99339                 * inttypes-pri.m4: Likewise.
99340                 * inttypes-h.m4: Renamed from inttypes.m4.
99341                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99343 2006-07-22  Bruno Haible  <bruno@clisp.org>
99345         Merge from GNU gettext 0.15.
99347         2005-07-05  Bruno Haible  <bruno@clisp.org>
99349                 * printf-args.c (printf_fetchargs): Work around broken
99350                 definition of wint_t on mingw.
99352         2005-02-12  Bruno Haible  <bruno@clisp.org>
99354                 * xallocsa.h: Add extern "C" for C++.
99356         2006-05-17  Bruno Haible  <bruno@clisp.org>
99358                 Cygwin portability.
99359                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99361         2006-04-30  Bruno Haible  <bruno@clisp.org>
99363                 * progreloc.c: Include <mach-o/dyld.h> if available.
99364                 (find_executable): Use _NSGetExecutablePath when possible.
99366         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99368                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99369                 function.
99371         2005-12-29  Bruno Haible  <bruno@clisp.org>
99373                 * progreloc.c (set_program_name_and_installdir): Fix
99374                 compilation error.
99376         2005-12-04  Bruno Haible  <bruno@clisp.org>
99378                 Cygwin portability.
99379                 * progreloc.c: Include <windows.h> also on Cygwin.
99380                 (find_executable): Add support for Cygwin.
99381                 (set_program_name_and_installdir): Handle also platforms with
99382                 nonempty EXEEXT.
99384         2006-07-11  Bruno Haible  <bruno@clisp.org>
99386                 * javacomp.c: Fix a comment.
99387                 Reported by Jim Meyering.
99389         2006-04-30  Bruno Haible  <bruno@clisp.org>
99391                 * javacomp.h (compile_java_class): Add source_version,
99392                 target_version arguments.
99393                 * javacomp.c: Rewritten to choose only a compiler that
99394                 respects the specified source_version and target_version.
99396         2006-06-27  Bruno Haible  <bruno@clisp.org>
99398                 Assume correct S_ISDIR macro.
99399                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99401         2006-07-22  Bruno Haible  <bruno@clisp.org>
99403                 * javaversion.h: New file, from GNU gettext.
99404                 * javaversion.c: New file, from GNU gettext.
99405                 * javaversion.java: New file, from GNU gettext.
99406                 * javaversion.class: New file, from GNU gettext.
99408         2006-05-17  Bruno Haible  <bruno@clisp.org>
99410                 Cygwin portability.
99411                 * javaexec.c (execute_java_class): Test for jview program
99412                 also on Cygwin.
99414         2006-04-09  Bruno Haible  <bruno@clisp.org>
99416                 * fatal-signal.c: Don't include string.h.
99417                 (at_fatal_signal): Use a copying loop instead of memcpy.
99419         2005-12-04  Bruno Haible  <bruno@clisp.org>
99421                 * csharpexec.c: Add support for 'clix' launcher (untested).
99422                 (execute_csharp_using_sscli): New function.
99423                 (execute_csharp_program): Call it.
99425         2006-06-21  Bruno Haible  <bruno@clisp.org>
99427                 Avoid warnings from recent versions of mcs.
99428                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99429                 -o, -L, -r any more. Use options documented since mcs-1.0
99430                 instead. Similarly for -g.
99432         2005-07-09  Bruno Haible  <bruno@clisp.org>
99434                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99435                 add a .dll suffix.
99436                 Reported by Mark Junker <mjscod@gmx.de>.
99438         2006-06-17  Bruno Haible  <bruno@clisp.org>
99440                 * config.charset: Update for NetBSD 3.0.
99442         2006-05-17  Bruno Haible  <bruno@clisp.org>
99444                 Cygwin portability.
99445                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99447         2006-05-16  Bruno Haible  <bruno@clisp.org>
99449                 * localcharset.c [CYGWIN]: Include <windows.h>.
99450                 (get_charset_aliases): For Cygwin, return the same CPxxx
99451                 aliases list as under WIN32.
99452                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99453                 the environment variables. Fall back to GetACP().
99455         2006-04-05  Bruno Haible  <bruno@clisp.org>
99457                 * config.charset: Update Juan Manuel Guerrero's address.
99459         2005-02-12  Bruno Haible  <bruno@clisp.org>
99461                 * allocsa.h: Add extern "C" for C++.
99463         2005-02-10  Bruno Haible  <bruno@clisp.org>
99465                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99466                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99468         2006-07-22  Bruno Haible  <bruno@clisp.org>
99470                 * gettext.h: Update to GNU gettext-0.15.
99472 2006-07-22  Bruno Haible  <bruno@clisp.org>
99474         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99475         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99476         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99478 2006-07-21  Eric Blake  <ebb9@byu.net>
99480         * modules/stdlib-safer: New file.
99481         * MODULES.html.sh (File stream based Input/Output): Add
99482         stdlib-safer.
99484 2006-07-21  Eric Blake  <ebb9@byu.net>
99486         * lib/stdlib-safer.h: New file from coreutils, required by
99487         stdlib--.h.
99489 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99491         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99493 2006-07-20  Bruno Haible  <bruno@clisp.org>
99495         * gnulib-tool: Recognize new option --assume-autoconf.
99496         (autoconf_minversion): New variable.
99497         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99499 2006-07-20  Bruno Haible  <bruno@clisp.org>
99501         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99503 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99505         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99506         Reindent and repaginate.
99508 2006-07-19  Derek Price  <derek@ximbiot.com>
99510         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99511         Correct grammar.
99513 2006-07-17  Bruno Haible  <bruno@clisp.org>
99515         * modules/list: New file.
99516         * modules/array-list: New file.
99517         * modules/carray-list, modules/carray-list-tests: New files.
99518         * modules/linked-list, modules/linked-list-tests: New files.
99519         * modules/avltree-list, modules/avltree-list-tests: New files.
99520         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99521         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99522         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99523         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99524         * modules/oset: New file.
99525         * modules/array-oset: New file.
99526         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99527         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99528         * tests/test-carray_list.c: New file.
99529         * tests/test-linked_list.c: New file.
99530         * tests/test-avltree_list.c: New file.
99531         * tests/test-rbtree_list.c: New file.
99532         * tests/test-linkedhash_list.c: New file.
99533         * tests/test-avltreehash_list.c: New file.
99534         * tests/test-rbtreehash_list.c: New file.
99535         * tests/test-avltree_oset.c: New file.
99536         * tests/test-rbtree_oset.c: New file.
99537         * MODULES.html.sh (Container data structures): New section.
99539 2006-07-17  Bruno Haible  <bruno@clisp.org>
99541         * m4/gl_list.m4: New file.
99543 2006-07-17  Bruno Haible  <bruno@clisp.org>
99545         * lib/gl_list.h: New file.
99546         * lib/gl_list.c: New file.
99547         * lib/gl_array_list.h: New file.
99548         * lib/gl_array_list.c: New file.
99549         * lib/gl_carray_list.h: New file.
99550         * lib/gl_carray_list.c: New file.
99551         * lib/gl_linked_list.h: New file.
99552         * lib/gl_linked_list.c: New file.
99553         * lib/gl_anylinked_list1.h: New file.
99554         * lib/gl_anylinked_list2.h: New file.
99555         * lib/gl_avltree_list.h: New file.
99556         * lib/gl_avltree_list.c: New file.
99557         * lib/gl_anyavltree_list1.h: New file.
99558         * lib/gl_anyavltree_list2.h: New file.
99559         * lib/gl_rbtree_list.h: New file.
99560         * lib/gl_rbtree_list.c: New file.
99561         * lib/gl_anyrbtree_list1.h: New file.
99562         * lib/gl_anyrbtree_list2.h: New file.
99563         * lib/gl_anytree_list1.h: New file.
99564         * lib/gl_anytree_list2.h: New file.
99565         * lib/gl_linkedhash_list.h: New file.
99566         * lib/gl_linkedhash_list.c: New file.
99567         * lib/gl_anyhash_list1.h: New file.
99568         * lib/gl_anyhash_list2.h: New file.
99569         * lib/gl_avltreehash_list.h: New file.
99570         * lib/gl_avltreehash_list.c: New file.
99571         * lib/gl_rbtreehash_list.h: New file.
99572         * lib/gl_rbtreehash_list.c: New file.
99573         * lib/gl_anytreehash_list1.h: New file.
99574         * lib/gl_anytreehash_list2.h: New file.
99576         * lib/gl_oset.h: New file.
99577         * lib/gl_oset.c: New file.
99578         * lib/gl_array_oset.h: New file.
99579         * lib/gl_array_oset.c: New file.
99580         * lib/gl_avltree_oset.h: New file.
99581         * lib/gl_avltree_oset.c: New file.
99582         * lib/gl_rbtree_oset.h: New file.
99583         * lib/gl_rbtree_oset.c: New file.
99584         * lib/gl_anytree_oset.h: New file.
99586 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99588         * m4/mkancesdirs.m4: New file.
99589         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99590         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99591         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99592         it.
99594 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99596         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99597         * lib/mkancesdirs.h: New files.
99598         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99599         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99600         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99601         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99602         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99603         callers changed.  Revamp internals significantly, by not
99604         attempting to create directories that are temporarily more
99605         permissive than the final results.  Do not attempt to use
99606         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99607         This removes some race conditions, fixes some bugs, and simplifies
99608         things.  Use new dirchownmod function to do owner and mode changes.
99609         * lib/mkdir-p.h: Likewise.
99610         * lib/modechange.c (octal_to_mode): New function.
99611         (struct mode_change): New member mentioned.
99612         (make_node_op_equals): New arg mentioned.  All callers changed.
99613         (mode_compile): Keep track of which mode bits the user has explicitly
99614         mentioned.
99615         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99616         New arg PMODE_BITS, to keep track of which mode bits the user
99617         mentioned; it treats S_ISUID and S_ISGID speciall.
99618         All callers changed.
99619         * lib/modechange.h: Likewise.
99621 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99623         * MODULES.html.sh: Add mkancestors.
99624         * modules/mkancesdirs: New module.
99625         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99626         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99627         The chdir-safer and afs files are now orphans; I'll remove them
99628         unless someone speaks up.
99629         Add lib/dirchownmod.c, lib/dirchownmod.h.
99630         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99631         Add lchown, mkancesdirs.
99632         (Maintainer): Add self.
99634 2006-07-15  Karl Berry  <karl@gnu.org>
99636         * gnulib-tool: help message wording/arrangement.
99638 2006-07-14  Simon Josefsson  <jas@extundo.com>
99640         * doc/gnulib.texi (Libtool and Windows): New section.
99642 2006-07-12  Simon Josefsson  <jas@extundo.com>
99644         * modules/gendocs (License): Fix license, approved by Karl.
99646 2006-07-12  Eric Blake  <ebb9@byu.net>
99648         * MODULES.html.sh: Add gendocs.
99650 2006-07-11  Eric Blake  <ebb9@byu.net>
99652         * modules/fdl: New module, to install doc/fdl.texi.
99653         * MODULES.html.sh: Add new section for documentation modules.
99654         * gnulib-tool: Avoid space-tab.
99655         (--doc-base): New option, to manage files from doc.
99657 2006-07-11  Eric Blake  <ebb9@byu.net>
99659         * m4/absolute-header.m4: Fix comments to match recent change.
99661 2006-07-11  Eric Blake  <ebb9@byu.net>
99663         * gnulib-tool: List --doc-base before --tests-base.
99665 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99667         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99669 2006-07-11  Bruno Haible  <bruno@clisp.org>
99671         * README: Mention where to put documentation.
99673 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99675         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99677 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99680         to stdint.m4.
99682 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99684         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99685         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99686         "no/such/file/stdint.h" when there is no such file, so that
99687         the resulting C code can be parsed by dodgy compilers.
99688         Problems reported by Bob Proulx.
99690 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99692         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99693         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99694         macros into the GNU _D_EXACT_NAMLEN.
99695         * lib/savedir.c:  Likewise.
99696         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99698 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99699         and Paul Eggert  <eggert@cs.ucla.edu>
99701         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99702         * m4/savedir.m4:
99703         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99704         macros into the GNU _D_EXACT_NAMLEN.
99706 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99708         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99709         around the absolute name, to work around a problem with the HP-UX
99710         11.23 native C compiler, reported by Bob Proulx.
99712 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99714         * doc/maintain.texi, make-stds.texi: Sync from
99715         <http://savannah.gnu.org/projects/gnustandards>.
99717 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99719         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99721 2006-07-09  Jim Meyering  <jim@meyering.net>
99723         * m4/glob.m4: Remove a doubled word in a comment.
99725 2006-07-09  Jim Meyering  <jim@meyering.net>
99727         * lib/argp-pv.c: Remove a doubled word in a comment.
99728         * lib/check-version.c (check_version): Likewise.
99729         * lib/javacomp.c (compile_java_class): Likewise.
99731 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99733         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99734         for the benefit of people using Autoconf 2.60.  If you want to
99735         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99736         (or m4/onceonly.m4, if pre-2.57) manually.
99738 2006-07-08  Jim Meyering  <jim@meyering.net>
99740         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99741         comment.
99742         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99743         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99744         comment.
99746 2006-07-08  Jim Meyering  <jim@meyering.net>
99748         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99750 2006-07-07  Simon Josefsson  <jas@extundo.com>
99752         * tests/test-crc.c: Change expected crc value, the test vector
99753         were probably computed using the old broken crc.c?
99755 2006-07-06  Simon Josefsson  <jas@extundo.com>
99757         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99758         now the canonical place for the M4 file).
99760         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99761         from the sys_socket dependency now.
99763         * modules/inet_pton (Files): Ditto.
99765         * modules/inet_ntop (Files): Ditto.
99767 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99769         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99770         not gl_PREREQ_GETUSERSHELL.
99772 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99774         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99775         with only one argument, for Autoconf 2.60.
99776         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99777         expand to nothing, so add a shell command to avoid syntax error.
99778         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99780 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99782         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99786         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99787         no longer needed.  Check for isblank decl.
99788         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99789         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99790         of existence.
99792 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99794         * lib/getloadavg.c: Use __VMS, not VMS.
99795         * lib/getopt.c: Likewise.
99796         * lib/getpagesize.h: Likewise.
99797         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99798         and probably does not work.
99800 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99802         * lib/.cppi-disable: Add wcwidth.
99803         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99804         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99805         (ISGRAPH): Remove.  All uses changed to isgraph.
99806         (FOLD) [!defined _LIBC]: Remove special case.
99807         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99808         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99809         HAVE_ISBLANK.
99810         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99811         case.
99813 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99815         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99816         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99817         brackets.  Other minor changes to suppress some compiler
99818         warnings.
99820 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99821         and Paul Eggert  <eggert@cs.ucla.edu>
99823         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99824         of invoking obsolescent AC_HEADER_DIRENT macro.
99825         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99826         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99827         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99829         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99830         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99831         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99832         * m4/readdir.m4: Remove; no longer needed.
99834 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99835         and Paul Eggert  <eggert@cs.ucla.edu>
99837         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99838         Don't worry about this obsolete case any more.
99839         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99840         directories.
99841         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99842         worry about this obsolete case any more.
99843         * lib/fts.c: Likewise.
99844         * lib/getcwd.c: Likewise.
99845         * lib/glob.h: Likewise.
99846         * lib/savedir.c: Likewise.
99848 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99851         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99853         needed.
99854         All uses removed.
99855         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99856         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99857         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99858         needed.
99859         * m4/getdate.m4 (gl_GETDATE): Likewise.
99860         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99861         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99862         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99863         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99864         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99866         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99867         needed.
99869 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99871         * lib/memcasecmp.c: Include <limits.h>.
99872         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99873         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99874         Don't assume isdigit succeeds only on '0' through '9'.
99876 2006-07-05  Eric Blake  <ebb9@byu.net>
99878         * modules/getaddrinfo (Depends-on): Add snprintf.
99880 2006-07-05  Eric Blake  <ebb9@byu.net>
99882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99883         to avoid 'header present but could not be compiled' on cygwin.
99885 2006-07-05  Eric Blake  <ebb9@byu.net>
99887         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99888         missing from netdb.h.
99889         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99891 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99893         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99894         no longer needed.
99895         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99896         * m4/getdate.m4 (gl_GETDATE): Likewise.
99897         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99898         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99899         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99900         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99901         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99903 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99905         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99906         All uses of is_space replaced by isspace.
99907         * lib/exit.h: Don't talk about STDC_HEADERS.
99908         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99909         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99910         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99911         replaced by isprint etc.
99912         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99913         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99914         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99915         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99916         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99917         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99919 2006-07-05  Bruno Haible  <bruno@clisp.org>
99921         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99922         the function exists, before testing against AIX.
99923         Reported by Martin Lambers <marlam@marlam.de>.
99925 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99927         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99928         From Mark D. Baushke.
99930 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99933         to the absolute name, not just one, to bypass Sun C 5.8's
99934         "warning: #include of /usr/include/... may be non-portable".
99936 2006-07-04  Eric Blake  <ebb9@byu.net>
99938         * modules/dirname-tests: New test module.
99939         * tests/test-dirname.c: New file, replacing dirname.c
99940         TEST_DIRNAME section that was recently deleted.
99942 2006-07-04  Bruno Haible  <bruno@clisp.org>
99944         Assume ANSI C header files and <ctype.h> functions.
99945         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99946         (mbsnwidth): Use isprint, iscntrl instead.
99948 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99950         Merge from coreutils.
99951         * MODULES.html.sh: Add xstrtold.
99952         * modules/xstrtold: New file.
99953         * modules/cycle-check (Files): Add lib/same-inode.h.
99954         * modules/dirname (Files): Add m4/double-slash-root.m4.
99955         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99956         * modules/mkdir-p (Files): Add lib/same-inode.h.
99957         * modules/same (Files): Add lib/same-inode.h.
99959 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99961         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99962         This is to keep the terminology clean; POSIX talks about
99963         "absolute pathnames", not "full pathnames", but the GNU
99964         Coding Standards say to use "path" for something else;
99965         so use "absolute" to keep both sides happy.
99966         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99967         Set gl_absolute_header, not gl_full_header_path.
99968         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99969         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99970         All uses changed.
99972         Merge from coreutils.
99974         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99976         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99977         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99978         want to require the building of c-strtod.o.
99979         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99980         needs -lm directly.
99981         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99983         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99985         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99986         --as-needed option if available.  Problem reported by Albert Chin in
99987         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99988         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99989         cc merely issues a bunch of annoying warnings for --as-needed
99990         (this problem was reported by Bob Proulx).  Also, try linking with
99991         -lm to detect a bug in binutils 2.16 (this problem was reported
99992         by Ralf Wildenhues).
99994         2006-06-18  Jim Meyering  <jim@meyering.net>
99996         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99997         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99998         macro.
99999         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
100000         also check for glibc-2.4's abort-inducing bug.
100002         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
100003         Low-probability clean-up should be to use rmdir to get rid of
100004         the just-created directory, not unlink.
100006         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
100007         configure fail, and request a bug report to inform us about it.
100008         Add a comment that, barring reports to the contrary, in 2007 we'll
100009         assume ftruncate is universally available.
100011         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100013         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
100015         2006-03-12  Jim Meyering  <jim@meyering.net>
100017         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
100018         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
100019         * m4/same.m4 (gl_SAME): Likewise.
100020         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
100022         2006-03-11  Eric Blake  <ebb9@byu.net>
100024         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
100025         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
100026         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
100027         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
100029 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100031         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
100032         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
100033         reported by Mark D. Baushke, one in
100034         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
100036         Merge from coreutils.
100038         * lib/.cppi-disable: Add stdint_.h.
100039         * lib/.cvsignore: Add stdint.h.
100041         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100043         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
100044         both double and long double versions.
100045         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
100046         * lib/xstrtold.c: New file.
100047         * lib/xstrtod.h (xstrtold): New decl.
100049         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100051         * lib/filemode.c (setst): Remove.
100052         (strmode): Rewrite to avoid setst.  This makes the code shorter,
100053         (arguably) clearer, and the generated code is a bit smaller on my
100054         Debian GNU/Linux stable x86 host.
100056         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100058         * lib/filemode.c: Include "filemode.h" first, to test the interface.
100059         Assume that filemode.h includes sys/types.h and sys/stat.h.
100060         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
100061         (ftypelet): Reorder to put common cases first, for efficiency.
100062         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
100063         to do 'M'.
100064         (strmode): Renamed from mode_string, and now stores 12 bytes instead
100065         of 10, for compatibility with FreeBSD.  All callers changed.
100066         (filemodestring): Now stores 12 bytes instead of 10, and sets file
100067         types that can't be deduced solely from st_mode.  First arg is now a
100068         const pointer.
100069         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
100070         (strmode): Renamed from mode_string.
100071         (filemodestring): New decl.
100072         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
100073         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
100074         needed.
100075         (S_ISPORT, S_ISWHT): New macros, if not already defined.
100077         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100079         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
100080         fsusage.h now does that.  Include fsusage.h first, to test interface.
100081         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
100082         at most one method (the old code could have generated decls that
100083         didn't conform to C89, not that this was ever exercised).
100084         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
100086         2006-03-19  Jim Meyering  <jim@meyering.net>
100088         Work even in a chroot where d_ino values for entries in "/"
100089         don't match the stat.st_ino values for the same names.
100090         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
100091         number, iterate through all entries again, using lstat instead.
100092         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
100093         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
100095         * lib/getcwd.c (__getcwd): Clarify a comment.
100096         Use memcpy in place of a call to strcpy.
100098         2006-03-12  Jim Meyering  <jim@meyering.net>
100100         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
100101         matches that of the current directory (which we're about to chdir ".."
100102         out of), then save the dev-ino of the parent, instead.
100104         * lib/same-inode.h (SAME_INODE): New file/macro.
100105         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100106         Include "same-inode.h", instead.
100107         * lib/same.c: Likewise.
100108         * lib/cycle-check.h: Include "same-inode.h".
100109         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100110         * lib/cycle-check.c (SAME_INODE): Remove definition.
100111         * lib/root-dev-ino.h: Include "same-inode.h".
100113         2006-03-11  Eric Blake  <ebb9@byu.net>
100115         * lib/same.c (same_name): s/base_name/last_component/
100116         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100117         * lib/filenamecat.c (file_name_concat): Likewise.
100119         2006-03-11  Eric Blake  <ebb9@byu.net>,
100120                     Paul Eggert  <eggert@cs.ucla.edu>
100122         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100123         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100124         drive prefix.
100125         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100126         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100127         (last_component): New method.
100128         * lib/dirname.c (dir_len): Determine when drive letters need a
100129         subsequent slash.  Preserve // when it is special.
100130         (dir_name): Don't append dot when drive letter is absolute.
100131         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100132         * lib/basename.c (base_name): New semantics - malloc the result.
100133         Preserve // when it is special.  Preserve relative files that look
100134         like drive letters.
100135         (base_len): Preserve // when it is special.
100136         (last_component): New method, similar to old base_name semantics.
100137         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100138         base_name.  Strip redundant slashes from ///.
100140 2006-07-03  Jim Meyering  <jim@meyering.net>
100142         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100143         macro is used before the first cycle_check call.
100145 2006-07-03  Eric Blake  <ebb9@byu.net>
100147         * modules/dirname (Depends-on): Add xstrndup.
100149 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100151         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100152         test cases, so that config.log is a bit easier to follow.
100154 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100156         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100157         both are 64 bits, since this seems to be the tradition, and this
100158         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100159         we ever run into a host that prefers long long to long in this
100160         case, we'll need another configure-time test.  Problem reported by
100161         Jim Meyering.
100163 2006-07-02  Eric Blake  <ebb9@byu.net>
100165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100167 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100169         * modules/inttypes (Depends-on): No longer depends on stdint.
100170         * modules/stdint (Description): Say more about assumptions.
100171         Say that the fast types might differ.  Say macros are used.
100172         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100173         (Makefile.am): Revise list of substituted symbols to match
100174         new stdint.m4.
100175         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100176         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100177         * tests/test-stdint.c (verify_same_types)
100178         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100179         the code conforms to C99/C89.
100180         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100181         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100183 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100185         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100186         but fix a bug, by requiring at least 64 bits.
100187         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100188         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100189         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100190         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100192         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100193         changes.  Make 2.59 a prerequisite.  Check and substitute for
100194         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100195         inttypes.h.  Do not use special include files; just use the
100196         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100197         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100198         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100199         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100200         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100201         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100202         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100203         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100204         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100205         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100206         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100207         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100208         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100209         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100210         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100211         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100212         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100213         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100214         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100215         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100216         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100217         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100218         not check for things that C99 does not require, e.g., int8_t.  If
100219         a test isn't needed unless <stdint.h> isn't working, and is
100220         unlikely to be needed for any other reason, then don't do it
100221         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100222         size_t, since we assume C89 freestanding at least.  Do not check
100223         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100224         the right thing even if the types are not defined.  Instead use:
100225         (gl_STDINT_TYPE_PROPERTIES): New macro.
100226         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100227         testing whether <sys/types.h> clashes, as Autoconf does this for
100228         us now.  All uses removed.
100229         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100230         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100231         (gl_CHECK_TYPE_SAME):
100232         Remove; no longer needed.
100233         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100234         exists, since we'll return 0 anyway in that case.
100235         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100237 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100239         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100240         possible collision with system files.
100241         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100242         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100243         WCHAR_MIN and WCHAR_MAX in this case.
100244         (<stddef.h>): Do not include; no longer needed.
100245         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100246         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100247         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100248         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100249         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100250         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100251         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100252         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100253         !defined(__c99))]: Include in this case too, since it's harmless
100254         now.
100255         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100256         dangerous to do so.
100257         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100258         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100259         (_STDINT_MIN, _STDINT_MAX): New macros.
100260         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100261         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100262         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100263         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100264         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100265         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100266         macros, not typedefs; this simplifies things quite a bit.
100267         Use long int for all types narrower than int64_t.
100268         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100269         Define in terms of long long int or int64_t or long int,
100270         not int64_t or int32_t.  This saves some compile-time testing.
100271         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100272         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100273         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100274         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100275         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100276         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100277         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100278         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100279         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100280         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100281         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100282         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100283         undef any previous version and define our own version, for
100284         simplicity and consistency with the new macros for types.
100285         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100286         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100287         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100288         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100289         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100290         @WINT_T_SUFFIX@ to keep things simple here.
100291         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100292         Simplify by assuming typical 8/16/32/64 host, since we're
100293         already doing that elsewhere anyway.
100294         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100295         and assume long long int is 64 bits if available.  This
100296         speeds up 'configure'.
100298 2006-07-01  Eric Blake  <ebb9@byu.net>
100300         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100301         Reported by Andreas Buening.
100303 2006-07-01  Eric Blake  <ebb9@byu.net>
100305         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100307 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100309         * lib/getaddrinfo.c: fixed typo
100311 2006-06-29  Jim Meyering  <jim@meyering.net>
100313         * modules/strftime (Maintainer): Add my name, since with the
100314         FPRINTFTIME changes strftime.c has forked from glibc.
100316 2006-06-29  Eric Blake  <ebb9@byu.net>
100318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100320 2006-06-29  Eric Blake  <ebb9@byu.net>
100322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100324 2006-06-29  Eric Blake  <ebb9@byu.net>
100326         * lib/stat_.h: New file.
100328 2006-06-29  Eric Blake  <ebb9@byu.net>
100330         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100331         unused static function.
100333 2006-06-29  Eric Blake  <ebb9@byu.net>
100335         * doc/functions.texi (Function Portability): Document missing lstat
100336         on mingw.
100338 2006-06-29  Eric Blake  <ebb9@byu.net>
100340         * MODULES.html.sh: Add sys_stat.
100341         * modules/sys_stat: New module.
100342         * modules/mkstemp (Depends-on): Add sys_stat.
100344 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100346         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100348 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100350         * m4/c-bs-a.m4: Removed.
100352 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100354         * lib/strftime.c: Assume strftime() exists.
100356 2006-06-29  Derek Price  <derek@ximbiot.com>
100358         * modules/c-bs-a: Removed - \a is C89.
100359         * MODULES.html.sh: Remove c-bs-a.
100361 2006-06-29  Bruno Haible  <bruno@clisp.org>
100363         * modules/wcwidth (License): Change to LGPL.
100365 2006-06-28  Simon Josefsson  <jas@extundo.com>
100367         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100368         on _WIN32.
100370         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100371         getnameinfo.
100373 2006-06-28  Simon Josefsson  <jas@extundo.com>
100375         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100377 2006-06-28  Simon Josefsson  <jas@extundo.com>
100379         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100380         functions there.  It will succeed on Windows XP, but on Windows
100381         2000 and (presumably) earlier, it will fail, and use the internal
100382         re-implementation.
100383         (use_win32_p): New function.
100384         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100385         Support AI_NUMERICSERV to disable getservbyname.
100386         (getnameinfo): New function, only supports
100387         NI_NUMERICHOST|NI_NUMERICSERV for now.
100389         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100390         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100391         getnameinfo.
100393 2006-06-28  Eric Blake  <ebb9@byu.net>
100395         * modules/wcwidth: New file.
100396         * modules/mbchar (Depends-on): Add wcwidth.
100397         * modules/mbswidth (Depends-on): Add wcwidth.
100398         * MODULES.html.sh: Add wcwidth.
100400 2006-06-28  Eric Blake  <ebb9@byu.net>
100402         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100405 2006-06-28  Eric Blake  <ebb9@byu.net>
100407         * lib/xvasprintf.h: Fix comments.
100409 2006-06-28  Eric Blake  <ebb9@byu.net>
100411         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100412         * lib/mbswidth.c (wcwidth): Move from here...
100413         * lib/wcwidth.h: ...to this new file.
100415 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100417         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100419         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100420         it's obsolete.
100421         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100423 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100425         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100426         Autoconf 2.60 says this stuff was obsolete.
100428 2006-06-28  Bruno Haible  <bruno@clisp.org>
100430         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100432 2006-06-28  Bruno Haible  <bruno@clisp.org>
100434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100435         gt_TYPE_WCHAR_T.
100437 2006-06-28  Bruno Haible  <bruno@clisp.org>
100439         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100440         declaration for wcwidth.
100441         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100443 2006-06-28  Bruno Haible  <bruno@clisp.org>
100445         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100446         (mkdir): Define using _mkdir.
100448 2006-06-28  Bruno Haible  <bruno@clisp.org>
100450         * lib/getaddrinfo.h: Fix POSIX URL.
100451         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100452         _WIN32.
100453         (use_win32_p): Make static.
100454         (getaddrinfo): Reject service name if it is empty or does not consist
100455         solely of decimal digits, or if its value is > 65535.
100456         (getnameinfo): Remove useless casts.
100458 2006-06-27  Simon Josefsson  <jas@extundo.com>
100460         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100461         Eggert and Martin Lambers.
100463 2006-06-27  Simon Josefsson  <jas@extundo.com>
100465         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100466         Eggert and Martin Lambers.
100468 2006-06-27  Bruno Haible  <bruno@clisp.org>
100470         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100471         result to 0, not to empty.
100472         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100474 2006-06-27  Bruno Haible  <bruno@clisp.org>
100476         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100478 2006-06-26  Simon Josefsson  <jas@extundo.com>
100480         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100481         present.
100483 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100485         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100486         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100487         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100489 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100491         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100493 2006-06-26  Bruno Haible  <bruno@clisp.org>
100495         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100497 2006-06-26  Bruno Haible  <bruno@clisp.org>
100499         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100501 2006-06-26  Bruno Haible  <bruno@clisp.org>
100503         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100504         SGI C compiler in pre-C99 mode.
100505         Suggested by Mark D. Baushke and Larry Jones.
100507 2006-06-26  Bruno Haible  <bruno@clisp.org>
100509         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100510         WCHAR_MAX.
100511         Reported by Mark D. Baushke and Larry Jones.
100513 2006-06-26  Bruno Haible  <bruno@clisp.org>
100515         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100516         in pre-C99 mode.
100517         Suggested by Mark D. Baushke and Larry Jones.
100519 2006-06-23  Simon Josefsson  <jas@extundo.com>
100520             Bruno Haible  <bruno@clisp.org>
100522         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100523         Emit mostlyclean-local rule.
100524         (func_emit_tests_Makefile_am): Likewise.
100525         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100527 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100529         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100531 2006-06-23  Bruno Haible  <bruno@clisp.org>
100533         * tests/test-stdint.c: Update to match ISO C 99 Technical
100534         Corrigendum 1.
100536 2006-06-23  Bruno Haible  <bruno@clisp.org>
100538         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100540 2006-06-23  Bruno Haible  <bruno@clisp.org>
100542         * lib/stdint_.h: Treat IRIX like OpenBSD.
100544 2006-06-23  Bruno Haible  <bruno@clisp.org>
100546         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100547         ISO C 99 Technical Corrigendum 1.
100549 2006-06-22  Simon Josefsson  <jas@extundo.com>
100551         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100552         MinGW.
100554 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100556         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100557         needed.  Some compiler complained about some of them.  Problem reported
100558         by Larry Jones in
100559         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100561 2006-06-21  Simon Josefsson  <jas@extundo.com>
100563         * tests/test-getaddrinfo.c: New file.
100565         * modules/getaddrinfo-tests: New file.
100567         * MODULES.html.sh: Add inet_pton.
100569         * modules/inet_pton: New file.
100571 2006-06-21  Simon Josefsson  <jas@extundo.com>
100573         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100574         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100575         of using the (limited) gnulib implementation on Windows XP.
100577         * m4/inet_pton.m4: New file.
100579 2006-06-21  Simon Josefsson  <jas@extundo.com>
100581         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100582         variable.
100584         * lib/socket_.h: Don't define WINVER.
100586         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100587         slightly modified to work in gnulib.
100589 2006-06-21  Simon Josefsson  <jas@extundo.com>
100591         * doc/gnulib.texi (Windows sockets): Add.
100593 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100595         * lib/read-file.c (fread_file): Start with buffer allocation of
100596         0 bytes rather than 1 byte; this simplifies the code.
100597         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100598         code to free buffer and save/restore errno.
100599         (internal_read_file): Remove unused local.
100601 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100603         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100604         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100605         Problem reported by Denis Excoffier in
100606         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100608 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100610         * modules/sys_socket, modules/socklen: Include sys/types since
100611         FreeBSD 4.x's sys/socket.h needs it.
100613 2006-06-19  Simon Josefsson  <jas@extundo.com>
100615         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100617 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100619         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100621 2006-06-19  Bruno Haible  <bruno@clisp.org>
100623         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100624         and FULL_PATH_INTTYPES_H in angle brackets.
100625         Reported by Mark D. Baushke <mdb@gnu.org>.
100627 2006-06-17  Eric Blake  <ebb9@byu.net>
100629         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100630         errno.
100632 2006-06-17  Bruno Haible  <bruno@clisp.org>
100634         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100635         <sys/inttypes.h>.
100637 2006-06-17  Bruno Haible  <bruno@clisp.org>
100639         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100640         whether errno is declared. Assume <errno.h> declares errno.
100642 2006-06-17  Bruno Haible  <bruno@clisp.org>
100644         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100646 2006-06-17  Bruno Haible  <bruno@clisp.org>
100648         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100649         problem on Solaris 2.5.1.
100651 2006-06-16  Eric Blake  <ebb9@byu.net>
100653         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100654         * lib/unicodeio.c [!defined errno]: Likewise.
100655         * lib/strtol.c [!defined errno]: Likewise.
100656         * lib/strtod.c [!defined errno]: Likewise.
100658 2006-06-15  Eric Blake  <ebb9@byu.net>
100660         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100662 2006-06-15  Eric Blake  <ebb9@byu.net>
100664         * config/srclist.txt (ssize_t.m4): Lose sync.
100666 2006-06-15  Bruno Haible  <bruno@clisp.org>
100668         * modules/stdint (Files): Include m4/full-header-path.m4,
100669         m4/size_max.m4, m4/wchar_t.m4.
100670         (Makefile.am): Many more substitutions.
100671         * modules/stdint-tests: New file.
100672         * tests/test-stdint.c: New file.
100674 2006-06-15  Bruno Haible  <bruno@clisp.org>
100676         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100677         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100678         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100679         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100680         gl_CHECK_TYPE_SAME): New macros.
100682 2006-06-15  Bruno Haible  <bruno@clisp.org>
100684         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100686 2006-06-15  Bruno Haible  <bruno@clisp.org>
100688         * lib/stdint_.h: Rewritten to be fully auto-configured.
100689         Fixes bug on HP-UX/IA64.
100691 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100693         * lib/getdate.y (__attribute__): Don't define if already defined.
100694         Problem reported by Larry Jones.
100695         * lib/utimens.c (__attribute__): Likewise.
100697 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100699         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100700         reported by Andreas Schwab.
100702 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100703             Bruno Haible  <bruno@clisp.org>
100705         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100706         check for the declaration of strnlen and a run test that exposes the
100707         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100708         rpl_strndup.
100710 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100711             Bruno Haible  <bruno@clisp.org>
100713         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100715 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100717         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100718         compile test, for Tru64 4.0D.
100720 2006-05-28  Karl Berry  <karl@gnu.org>
100722         * config/srclist.txt (printf-args.c): lose sync.
100724 2006-05-26  Martin Lambers  <marlam@marlam.de>
100726         * lib/getpass.c: Updates the test for the native W32 API, and adds
100727         missing includes, thus fixing compilation warnings.
100729 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100731         * lib/exclude.c (exclude_fnmatch): New function.
100732         (excluded_file_name): Call exclude_fnmatch.
100733         * lib/exclude.h (excluded_file_name): New prototype
100735 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100737         * lib/tempname.c (small_open, large_open): New macros.
100738         (__open, __open64) [!_LIBC]: Remove.
100739         (__gen_tempname): Use small_open and large_open instead of __open
100740         and __open64.  This fixes a portability bug on HP-UX 11.11i
100741         reported by Simon Wing-Tang in
100742         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100744 2006-05-24  Bruno Haible  <bruno@clisp.org>
100746         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100747         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100748         Reported by Thorsten Maerz <torte@netztorte.de> via
100749         Aaron Stone <aaron@serendipity.cx>.
100751 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100754         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100755         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100756         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100757         not really conditional on the cache.
100758         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100760 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100762         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100763         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100764         (my_usleep): Don't mishandle maximum value.
100766 2006-05-19  Jim Meyering  <jim@meyering.net>
100768         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100770 2006-05-17  Bruno Haible  <bruno@clisp.org>
100772         Cygwin portability.
100773         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100775 2006-05-17  Bruno Haible  <bruno@clisp.org>
100777         * lib/stdint_.h: Fix recognition of Cygwin.
100779 2006-05-15  Bruno Haible  <bruno@clisp.org>
100781         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100782         on libtool patch by Ralf Wildenhues.
100784 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100787         test for C99 conformance; (bool) 0.5 is an integer constant
100788         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100789         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100791 2006-05-11  Simon Josefsson  <jas@extundo.com>
100793         * m4/xvasprintf.m4: Fix obvious typo.
100795 2006-05-11  Jim Meyering  <jim@meyering.net>
100797         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100798         James Lemley.
100800 2006-05-10  Simon Josefsson  <jas@extundo.com>
100802         * lib/md4.c: Typo fix, update copyright years.
100803         (K1, K2): Don't use L because it turn computations into 64-bit on
100804         64-bit platforms.
100806 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100808         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100809         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100810         unwanted sign propagation, e.g., on hosts with 64-bit int.
100811         There still are some problems with reeelly weird theoretical hosts
100812         (e.g., 33-bit int) but it's not worth worrying about now.
100813         * lib/sha1.c (rol): Likewise.
100814         (K1, K2, K3, K4): Remove unnecessary L suffix.
100816 2006-05-10  Bruno Haible  <bruno@clisp.org>
100818         * lib/des.c: Cast to avoid warnings.
100820 2006-05-09  Bruno Haible  <bruno@clisp.org>
100822         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100823         (Depends-on): Depend also on xsize, stdarg.
100824         (configure.ac): Add gl_XVASPRINTF.
100826 2006-05-09  Bruno Haible  <bruno@clisp.org>
100828         * m4/xvasprintf.m4: New file.
100830 2006-05-09  Bruno Haible  <bruno@clisp.org>
100832         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100833         (EOVERFLOW): Define fallback value.
100834         (xstrcat): New function.
100835         (xvasprintf): Recognize the special case of a string concatenation.
100837 2006-05-08  Eric Blake  <ebb9@byu.net>
100839         * gnulib-tool (func_version): Base copyright year on CVS date.
100840         (func_emit_copyright_notice): New function.
100841         (func_emit_lib_Makefile_am): Use it.
100842         (func_emit_tests_Makefile_am): Likewise.
100843         (func_import): Likewise.
100845 2006-05-08  Bruno Haible  <bruno@clisp.org>
100847         * modules/stdarg: New file.
100848         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100850 2006-05-08  Bruno Haible  <bruno@clisp.org>
100852         * m4/stdarg.m4: New file, from GNU gettext.
100854 2006-05-08  Bruno Haible  <bruno@clisp.org>
100856         * config/srclist.txt (build-aux/config.rpath): different from latest
100857         release.
100859 2006-05-08  Bruno Haible  <bruno@clisp.org>
100861         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100863 2006-05-05  Jim Meyering  <jim@meyering.net>
100865         * m4/warning.m4: New file, derived from bison's file by the same name.
100867 2006-05-03  Bruno Haible  <bruno@clisp.org>
100869         * lib/stdint_.h: Shorter URL.
100870         * lib/inttypes.h: Likewise.
100872 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100874         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100876 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100878         * lib/verify.h: Document the internals better.  Most of this change
100879         was written by Bruno Haible.
100881 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100883         * doc/verify.texi: New file, partly based on a proposal by
100884         Bruno Haible.
100886 2006-05-02  Bruno Haible  <bruno@clisp.org>
100888         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100889         test from here...
100890         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100892 2006-04-29  Bruno Haible  <bruno@clisp.org>
100894         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100895         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100897 2006-04-29  Bruno Haible  <bruno@clisp.org>
100899         * gnulib-tool: Make --update option actually work.
100901 2006-04-29  Bruno Haible  <bruno@clisp.org>
100903         * doc/gcd.texi: New file.
100904         * doc/gnulib.texi: Include it.
100906 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100908         * lib/getdate.y (get_date): When adding relative date, start with the
100909         initial time, not with the result of the first mktime call.
100911 2006-04-25  Bruno Haible  <bruno@clisp.org>
100913         * gnulib-tool (func_import): Output the include directives in three
100914         blocks, sorted separately.
100915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100917 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100919         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100920         to define main with arguments, for C++.  Reported by Eric Blake.
100921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100922         Prefer 'int main ()' to 'int main (void)', for C++.
100923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100925         for 'main', for C99 and C++.
100927 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100929         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100930         Don't assume that exit status -1 is valid.
100931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100932         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100933         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100934         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100935         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100936         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100937         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100938         functions can be used without declaring them, or that you can
100939         exit with status -1.
100940         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100942 2006-04-24  Karl Berry  <karl@gnu.org>
100944         * config/srclist.txt (longdouble.m4): sync lost.
100946 2006-04-24  Eric Blake  <ebb9@byu.net>
100948         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100950 2006-04-24  Bruno Haible  <bruno@clisp.org>
100952         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100953         poll() implementation in AIX.
100954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100956 2006-04-24  Bruno Haible  <bruno@clisp.org>
100958         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100959         assigned exactly once.
100961 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100962             Bruno Haible  <bruno@clisp.org>
100964         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100965         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100966         for AM_CPPFLAGS.
100968 2006-04-23  Bruno Haible  <bruno@clisp.org>
100970         * modules/copy-file: Depend on unistd.
100971         * modules/execute: Likewise.
100972         * modules/fatal-signal: Likewise.
100973         * modules/findprog: Likewise.
100974         * modules/mkdtemp : Likewise.
100975         * modules/pipe: Likewise.
100976         * modules/wait-process: Likewise.
100978 2006-04-23  Bruno Haible  <bruno@clisp.org>
100980         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100981         condition was already detected.
100982         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100984 2006-04-23  Bruno Haible  <bruno@clisp.org>
100986         * lib/copy-file.c: Include <unistd.h> unconditionally.
100987         * lib/execute.c: Likewise.
100988         * lib/fatal-signal.c: Likewise.
100989         * lib/findprog.c: Likewise.
100990         * lib/mkdtemp.c: Likewise.
100991         * lib/pipe.h: Likewise.
100992         * lib/pipe.c: Likewise.
100993         * lib/wait-process.h: Likewise.
100995 2006-04-23  Bruno Haible  <bruno@clisp.org>
100997         * gnulib-tool (func_usage): Fix --import description. Document
100998         --update.
100999         (func_import): Create temporary file in a temporary directory, if
101000         --dry-run is specified. Silence errors from 'grep' when there are no
101001         m4 files in $m4dir.
101002         (func_create_testdir): Silence errors from 'grep' when there are no
101003         m4 files in $m4dir.
101004         Reported by Karl Berry <karl@freefriends.org>.
101006 2006-04-20  Bruno Haible  <bruno@clisp.org>
101008         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
101009         one argument, so that the code will be portable to Autoconf 2.60.
101010         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
101011         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
101012         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
101014 2006-04-19  Derek Price  <derek@ximbiot.com>
101015             Eric Blake  <ebb9@byu.net>
101017         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
101018         rather than "/full/path.h".  Update comment to match.  Shorten &
101019         generalize m4_translit call via AS_TR_CPP.
101021 2006-04-19  Derek Price  <derek@ximbiot.com>
101022             Eric Blake  <ebb9@byu.net>
101024         * lib/inttypes.h: Correct grammar in comment.
101026 2006-04-18  Derek Price  <derek@ximbiot.com>
101027             Paul Eggert  <eggert@cs.ucla.edu>
101029         * modules/inttypes: New file.
101030         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
101032 2006-04-18  Derek Price  <derek@ximbiot.com>
101033             Paul Eggert  <eggert@cs.ucla.edu>
101035         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
101036         New files.
101038 2006-04-18  Derek Price  <derek@ximbiot.com>
101039             Paul Eggert  <eggert@cs.ucla.edu>
101041         * lib/inttypes.h: New file.
101042         * lib/strtoimax.c: Assume <inttypes.h>.
101044 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
101046         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
101047         isn't mounted.  Problem reported by Kir Kolyshkin.
101049 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101051         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
101052         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
101053         Derek R. Price.
101054         * lib/regex.h (RE_DUP_MAX): Update comment to match current
101055         implementation.
101057 2006-04-12  Eric Blake  <ebb9@byu.net>
101059         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
101060         is now done automatically by the corresponding Autoconf macro.
101062 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
101064         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
101065         time_r.h.
101067 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101069         Merge regex changes from libc, removing some of our
101070         POSIX-conformance changes that were rejected and redoing them in a
101071         less-intrusive way.
101073         * lib/regcomp.c (re_compile_internal, init_dfa):
101074         Length arg is now size_t, not Idx.  All uses changed.
101075         (peek_token): Forward decl now says internal_function.
101076         (__re_error_msgid, __re_error_msgid_idx):
101077         Now static rather than extern with attribute_hidden.
101078         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
101079         For some reason libc prefers K&R style defns for external functions.
101080         (regerror) [!defined _LIBC]: Likewise.
101081         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
101082         (seek_collating_symbol_entry, lookup_collation_sequence_value):
101083         (build_range_exp, build_collating_symbol):
101084         Use K&R-style defn.
101085         (re_compile_fastmap): Use '\0' to memset, not 0.
101086         (utf8_sb_map): Make the calculations more obvious.
101087         (init_dfa, parse_bracket_exp, build_charclass_op):
101088         Call calloc and cast result, as glibc does.
101089         (init_word_char, fetch_token, peek_token, peek_token_bracket):
101090         (build_range_exp, build_collating_symbol):
101091         Now internal functions.
101093         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
101095         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
101096         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
101097         Don't depend on VMS; depend on __VMS instead, for POSIX
101098         namespace cleanness.
101099         (regoff_t): Define to ssize_t, not long int.
101101         Remove the REG_ macros named below.  Instead, make the old names
101102         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
101103         __USE_GNU_REGEX.
101104         (REG_BACKSLASH_ESCAPE_IN_LISTS):
101105         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101106         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101107         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101108         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101109         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101110         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101111         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101112         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101113         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101114         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101115         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101116         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101117         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101118         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101119         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101120         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101121         (REG_NREGS):
101122         Remove.  All uses replaced by the old RE_* names.
101123         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101124         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101125         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101126         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101127         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101128         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101129         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101130         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101131         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101132         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101133         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101134         Don't bother having these macros be independent of each others'
101135         values, since they no longer exist in the POSIX name space.
101137         Rename the following member names back to their old names,
101138         unless !__USE_GNU_REGEX.  All uses changed back.
101139         (buffer): Renamed from re_buffer.
101140         (allocated): Renamed from re_allocated.
101141         (used): Renamed from re_used.
101142         (syntax): Renamed from re_syntax.
101143         (fastmap): Renamed from re_fastmap.
101144         (translate): Renamed from re_translate.
101145         (can_be_null): Renamed from re_can_be_null.
101146         (regs_allocated): Renamed from re_regs_allocated.
101147         (fastmap_accurate): Renamed from re_fastmap_accurate.
101148         (no_sub): Renamed from re_no_sub.
101149         (not_bol): Renamed from re_not_bol.
101150         (not_eol): Renamed from re_not_eol.
101151         (newline_anchor): Renamed from re_newline_anchor.
101152         (num_regs): Renamed from rm_num_regs.
101153         (start): Renamed from rm_start.
101154         (end): Renamed from rm_end.
101156         (free_state): Move up a bit.
101158         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101159         #define to be empty.
101160         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101161         when that is what is intended.
101162         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101163         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101164         (MAX): New macro.
101165         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101166         All uses changed back to re_malloc, etc.  It's now the caller's
101167         responsibility to check for overflow; all callers changed.
101168         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101169         (re_x2nrealloc): Remove.
101170         (free_state): Remove decl.
101172         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101173         (re_set_registers, re_exec):
101174         Use K&R-style defn.
101176         2006-01-31  Roland McGrath  <roland@redhat.com>
101178         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101179         Reported by Mike Frysinger <vapier@gentoo.org>.
101181         2006-01-15  Andreas Jaeger  <aj@suse.de>
101183         [BZ #1950]
101184         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101185         build_wcs_upper_buffer change.
101186         (build_wcs_upper_buffer): Change return type.
101188         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101190         * lib/regex_internal.h: Include <stdint.h> if available.
101192         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101194         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101196         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101198         * lib/regcomp.c: Adjust for changed secondary hash function.
101200         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101202         * lib/regex.h: Pretty printing.
101203         Clean up namespace a bit.
101205         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101207         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101208         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101210         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101211                     Ulrich Drepper  <drepper@redhat.com>
101213         [BZ #1302]
101214         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101215         changed.
101216         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101218         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101220         [BZ #281]
101221         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101222         * lib/regcomp.c: Remove unnecessary uses of
101223         unsigned RE_TRANSLATE_TYPE.
101224         * lib/regex_internal.h: Likewise.
101225         * lib/regex_internal.c: Likewise.
101226         * lib/regexec.c: Likewise.
101227         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101229         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101231         * lib/regexec.c (find_recover_state): Remove unnecessary
101232         initialization.
101233         (transit_state_bkref): Make DFA a const pointer.
101234         (get_subexp): Likewise.
101235         (check_arrival): Likewise.
101236         (update_cur_sifted_state): Likewise.
101237         (re_search_internal): Likewise.
101238         (prune_impossible_nodes): Likewise.
101239         (acquire_init_state_context): Likewise.
101240         (proceed_next_node): Likewise.
101241         (set_regs): Likewise.
101242         (free_fail_stack_return): Likewise.
101243         (check_arrival_expand_ecl): Mark DFA parameter as const.
101244         (check_arrival_expand_ecl_sub): Likewise.
101245         (check_subexp_limits): Likewise.
101246         (sub_epsilon_src_nodes):  Likewise.
101247         (add_epsilon_src_nodes):  Likewise.
101248         (merge_state_array): Likewise.
101249         (update_regs): Likewise.
101250         (build_trtable): Likewise.
101251         (sift_states_backward): Mark MCTX parameter as const.
101252         (build_sifted_states): Likewise.
101253         (update_cur_sifted_state): Likewise.
101254         (sift_states_mkref): Likewise.
101255         (check_arrival_expand_ecl): Mark eclosure as const.
101256         (check_dst_limits_calc_pos_1): Likewise.
101257         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101258         pointer.
101260         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101262         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101263         (transit_state_sb): Likewise.
101264         (transit_state_mb): Likewise.
101265         (sift_states_iter_mb): Likewise.
101266         (check_arrival_add_next_nodes): Likewise.
101267         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101268         [_LIBC] (re_search_2_stub): Use mempcpy.
101270         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101271         mbrtowc for very simple UTF-8 case.
101273         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101274         a pointer-to-const.
101275         (re_acquire_state_context): Likewise.
101276         * lib/regex_internal.h: Adjust prototypes.
101278         * lib/regex.c: Prevent using C++ compilers.
101280         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101281         (re_acquire_state_context): Likewise.
101283 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101285         * modules/regex (Depends-on): Add ssize_t.
101287 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101289         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101290         translation table.
101292 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101294         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101296 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101297             Bruno Haible  <bruno@clisp.org>
101299         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101300         <sys/types.h> and <inttypes.h>.
101302 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101304         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101305         `__error_t_defined', so argp.h will not typedef the former.
101307 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101309         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101310         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101311         glibc names.  Even if glibc is changed to conform to POSIX, the
101312         traditional names will be available anyway, since regex depends on
101313         the extensions module.  Also, fix a longstanding typo in the
101314         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101315         reported by Emanuele Giaquinta.  Also, change sense of cached
101316         variable, so that the message makes sense.
101318 2006-03-24  Simon Josefsson  <jas@extundo.com>
101320         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101321         including some doc fixes.
101322         (base64_encode_alloc): Fix +1 bug on allocation failures.
101324 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101326         * lib/base64.c (base64_encode): Do not read past end of array with
101327         unsanitized input on systems with CHAR_BIT > 8.
101329 2006-03-24  Eric Blake  <ebb9@byu.net>
101331         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101333 2006-03-22  Karl Berry  <karl@gnu.org>
101335         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101336         * config/srclistvars.sh (COREUTILS): new var.
101338 2006-03-17  Jim Meyering  <jim@meyering.net>
101340         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101341         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101343 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101345         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101346         no longer needs it.  Instead, check that regoff_t is as least
101347         as wide as ptrdiff_t.
101349         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101350         so that our regex.h stays compatible with the installed regex.
101351         This is helpful for installers who configure --without-included-regex.
101352         Problem reported by Emanuele Giaquinta.
101354 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101356         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101357         Typedef to long int, not to off_, as POSIX will likely change
101358         in that direction.
101360 2006-03-15  Eric Blake  <ebb9@byu.net>
101362         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101364 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101366         * lib/argp-help.c (validate_uparams): Fix typo
101367         * lib/argp-parse.c (argp_default_options): Consistently begin help
101368         messages with a lowercase letter.
101370 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101372         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101373         overrun buffers and shouldn't be used (much as gets shouldn't be
101374         used).
101375         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101377 2006-03-08  Simon Josefsson  <jas@extundo.com>
101379         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101380         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101382 2006-03-08  Simon Josefsson  <jas@extundo.com>
101384         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101385         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101387 2006-03-08  Simon Josefsson  <jas@extundo.com>
101389         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101390         signal that configure disabled the device.
101392 2006-03-08  Simon Josefsson  <jas@extundo.com>
101394         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101395         languages.
101397 2006-03-07  Simon Josefsson  <jas@extundo.com>
101399         * modules/getopt (Depends-on): Add unistd.
101401         * modules/unistd: New file.
101403 2006-03-07  Simon Josefsson  <jas@extundo.com>
101405         * modules/gc-random: New file.
101407 2006-03-07  Simon Josefsson  <jas@extundo.com>
101409         * m4/unistd_h.m4: New file.
101411 2006-03-07  Simon Josefsson  <jas@extundo.com>
101413         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101414         test to be side-effect free by storing the result in the cache
101415         variable gl_cv_lib_readline, and moving the assignment of
101416         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101417         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101419 2006-03-07  Simon Josefsson  <jas@extundo.com>
101421         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101422         error on missing devices (the functions will return an error).
101424         * m4/gc.m4: Move random stuff to gc-random.m4
101426 2006-03-07  Simon Josefsson  <jas@extundo.com>
101428         * lib/unistd_.h: New file.
101430 2006-03-07  Simon Josefsson  <jas@extundo.com>
101432         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101434 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101436         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101437         Problem reported by Juan Manuel Guerrero.
101439 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101441         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101442         the unistd module.
101443         * lib/getlogin_r.c: Likewise.
101444         * lib/getlogin_r.h: Likewise.
101445         * lib/glob.c: Likewise.
101446         * lib/pagealign_alloc.c: Likewise.
101447         * lib/unistd_.h: Remove; no longer needed.
101449 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101451         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101452         Add unistd.
101453         * modules/c-stack (Depends-on): Add unistd.
101454         * modules/getlogin_r: Likewise.
101455         * modules/glob: Likewise.
101456         * modules/pagealign_alloc: Likewise.
101457         * modules/unistd (Files): Remove lib/unistd_.h.
101458         (EXTRA_DIST): Remove.
101459         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101460         need unistd_.h.
101461         (MOSTLYCLEANFILES): Remove unistd.h-t.
101463 2006-03-03  Simon Josefsson  <jas@extundo.com>
101465         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101467 2006-03-03  Simon Josefsson  <jas@extundo.com>
101469         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101470         libidn and bison.
101472 2006-03-03  Simon Josefsson  <jas@extundo.com>
101474         * build-aux/maint.mk: Add indent target.
101476 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101478         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101479         our replacement poll.h in any case, to avoid a differing
101480         declaration from a system header.  Seen on AIX.
101482 2006-03-01  Simon Josefsson  <jas@extundo.com>
101484         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101485         <kasal@ucw.cz>.
101487 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101489         * modules/gettime (Depends-on): Add extensions module.
101490         * modules/nanosleep (Depends-on): Likewise.
101491         * modules/settime (Depends-on): Likewise.
101493 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101495         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101496         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101497         pedantically.
101498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101499         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101501         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101502         not "==".  Reported by Ralf Wildenhues.
101504 2006-03-01  Karl Berry  <karl@gnu.org>
101506         * doc/Copyright/request-*: new files, synced from gnuorg.
101508 2006-03-01  Karl Berry  <karl@gnu.org>
101510         * config/srclist.txt (Copyright/*): new entries.
101512 2006-02-28  Simon Josefsson  <jas@extundo.com>
101514         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101516 2006-02-27  Simon Josefsson  <jas@extundo.com>
101518         * lib/base64.h: Indent #define's.  From Jim Meyering
101519         <jim@meyering.net>.
101521 2006-02-27  Jim Meyering  <jim@meyering.net>
101523         Revert the change of 2006-02-24, so these files can continue
101524         to be sync'd from gettext.
101525         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101526         of `config.h'.
101528 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101530         * modules/intprops: New file.
101531         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101532         Add intprops.
101533         * modules/getloadavg (Files): Remove lib/intprops.h.
101534         (Depends-on): Add intprops.
101535         * modules/human: Likewise.
101536         * modules/inttostr: Likewise.
101537         * modules/openat: Likewise.
101538         * modules/sig2str: Likewise.
101539         * modules/userspec: Likewise.
101540         * modules/utimecmp: Likewise.
101541         * modules/xnanosleep: Likewise.
101542         * modules/xstrtol: Likewise.
101544 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101546         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101547         * modules/lock-tests (TESTS): Use $(EXEEXT).
101548         * modules/tls-tests: Likewise.
101549         * modules/argp-tests: Likewise.
101550         (check_PROGRAMS): New var, replacing...
101551         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101553 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101555         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101556         `config.h'.
101558 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101560         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101562 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101564         Sync from coreutils.
101565         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101566         gl_CHDIR_SAFER.
101568 2006-02-22  Jim Meyering  <jim@meyering.net>
101570         Sync from coreutils.
101571         * m4/chdir-safer.m4: New file.
101573 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101575         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101576         AT_FDCWD exceeds INT_MAX.
101577         * lib/openat.h (AT_FDCWD): Likewise.
101579 2006-02-17  Eric Blake  <address@hidden>
101581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101583 2006-02-16  Simon Josefsson  <jas@extundo.com>
101585         * modules/getaddrinfo (Depends-on): Add sys_socket.
101587 2006-02-15  Simon Josefsson  <jas@extundo.com>
101589         * build-aux/maint.mk: Add dsyntax-check rule.
101591 2006-02-15  Eric Blake  <ebb9@byu.net>
101593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101594         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101595         'present but cannot compile' warnings on cygwin.
101596         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101597         use ws2tcpip.h if sys/socket.h works.
101598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101599         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101601 2006-02-14  Simon Josefsson  <jas@extundo.com>
101603         * modules/maintainer-makefile (Files): Rename.
101605         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101606         and (the local) Makefile.cfg to maint-cfg.mk.
101608         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101609         to the latter.
101611         * modules/maintainer-makefile: New module.
101613         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101614         severaly stripped to make it possible to build it up from scratch
101615         with reliable tests.
101617         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101618         fixes to permit overriding the default actions when configure and
101619         makefile are not available.
101621 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101623         Sync from coreutils.
101624         * modules/lstat (Depends-on): Don't depend on xalloc.
101625         (License): Change from GPL to LGPL, since this is now simply a
101626         replacement for a libc function.
101628 2006-02-14  Jim Meyering  <jim@meyering.net>
101630         Sync from coreutils.
101632         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101633         failure on deficient systems, and simplify gnulib lgpl dependencies.
101634         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101635         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101637         * lib/xalloc-die.c: Remove unused definition of N_.
101639 2006-02-14  Jim Meyering  <jim@meyering.net>
101641         Sync from coreutils.
101642         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101643         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101644         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101645         double-quote uses of that variable, to accommodate the rare case in
101646         which getmntent is available in none of the libraries checked.  This
101647         happens at least on FreeBSD 5.0.
101649 2006-02-13  Simon Josefsson  <jas@extundo.com>
101651         * gnulib-tool (Usage): Fix --import, from
101652         karl@freefriends.org (Karl Berry).
101654 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101656         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101658 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101660         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101661         "autoupdate" on 2005-12-12.
101663 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101665         * modules/closeout (Depends-on): Remove atexit.
101667 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101669         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101670         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101672 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101675         __EXTENSIONS__ if this causes compilation to fail.  Problem
101676         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101677         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101679 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101681         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101682         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101683         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101684         All uses changed.
101686 2006-01-26  Simon Josefsson  <jas@extundo.com>
101688         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101689         prototype is visible on mingw32.
101691         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101692         for mingw32.
101694         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101695         mingw32).
101697 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101699         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101700         attempt to open for write; this always fails, at least on POSIX
101701         hosts.  This reinstates the 2006-01-09 change, which was
101702         inadvertently removed.
101704 2006-01-26  Bruno Haible  <bruno@clisp.org>
101706         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101707         Reported by Paul Eggert.
101709 2006-01-26  Bruno Haible  <bruno@clisp.org>
101710             Paul Eggert  <eggert@cs.ucla.edu>
101712         * lib/stdbool_.h (_Bool)
101713         [(! (defined __cplusplus || defined __BEOS__)
101714           && !defined __GNUC__
101715           && !(defined __HP_cc || defined __xlc__
101716                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101717                || defined __sgi))]:
101718         #define to signed char in these cases too; this simplifies
101719         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101720         etc., separately) and makes it more conservative.
101722 2006-01-25  Simon Josefsson  <jas@extundo.com>
101724         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101725         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101726         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101728 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101730         * lib/argp-namefrob.h: Bugfix. Remove stray #
101732 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101735         so that we test the test.
101736         Check for yet another HP-UX cc bug involving *bool |= bool.
101738 2006-01-25  Karl Berry  <karl@gnu.org>
101740         * config/srclist.txt (vasnprintf.c): sync lost.
101742 2006-01-25  Jim Meyering  <jim@meyering.net>
101744         Sync from the stable (b5) branch of coreutils:
101746         * lib/fts.c (fts_children): Don't let close() clobber errno from
101747         failed fchdir().
101749         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101750         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101751         a dangling symlink.  That can also happen at least for ELOOP.
101752         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101753         FYI, this bug predates the inclusion of fts.c in coreutils.
101755         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101756         in their own block, so pre-c99 compilers don't object.
101758         Avoid the double-free (first in fts_read, second in fts_close) that
101759         would occur when an `active' directory is made inaccessible (e.g.,
101760         via chmod a-x) during a traversal.
101761         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101762         before returning.  Reproduce this failure by
101763         mkdir -p a/b; cd a; chmod a-x . b
101764         Reported by Stavros Passas.
101766 2006-01-25  Jim Meyering  <jim@meyering.net>
101768         * lib/fileblocks.c: Remove more useless parentheses.
101769         * lib/readutmp.h: Likewise.
101771 2006-01-25  Bruno Haible  <bruno@clisp.org>
101773         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101774         warnings.
101775         Reported by Paul Eggert.
101777 2006-01-25  Bruno Haible  <bruno@clisp.org>
101779         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101780         rid of a trap command. For Solaris sh.
101781         Reported by Mark D. Baushke <mdb@gnu.org>.
101783 2006-01-24  Simon Josefsson  <jas@extundo.com>
101785         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101786         Bruno.
101788 2006-01-24  Karl Berry  <karl@gnu.org>
101790         * config/srclist.txt (argp-namefrob.h): sync lost.
101792 2006-01-24  Jim Meyering  <jim@meyering.net>
101794         * modules/openat (Files): Add lib/intprops.h.
101795         From Mark D. Baushke.
101797 2006-01-24  Jim Meyering  <jim@meyering.net>
101799         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101800         Reported by Mark D. Baushke.
101802 2006-01-24  Jim Meyering  <jim@meyering.net>
101804         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101806 2006-01-24  Bruno Haible  <bruno@clisp.org>
101808         * modules/strnlen (Maintainer): Change from glibc to all.
101810 2006-01-24  Bruno Haible  <bruno@clisp.org>
101812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101813         Patch by Paul Eggert.
101815 2006-01-24  Bruno Haible  <bruno@clisp.org>
101817         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101818         already has it.
101819         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101820         2005-11-26.
101822         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101823         'signed char' to avoid problems with the built-in _Bool type.
101824         Reported by Paul Eggert on 2005-11-26.
101826 2006-01-24  Bruno Haible  <bruno@clisp.org>
101828         * gnulib-tool (func_import): Avoid constructing complicated sed
101829         expressions inside backquote.
101830         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101832 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101834         These changes imported from libc.
101835         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101836         test and two separate function calls.
101837         * lib/strndup.c (__strndup): Add libc_hidden_def.
101839 2006-01-23  Simon Josefsson  <jas@extundo.com>
101841         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101842         Remove the test_*_SOURCES variable: automake infers it by default.
101843         * modules/tls-tests: Likewise.
101845 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101847         Work around porting bugs reported by Dieter in
101848         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101849         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101850         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101851         Include "getopt.h" first, to check interface.
101852         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101853         !HAVE_DECL_GETENV.
101854         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101855         (__strndup): Revert to K&R-style function dfns, the glibc style.
101856         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101857         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101858         Include strnlen.h first, to get prototype properly.
101859         (strnlen): Renamed from __strnlen.
101860         Remove weak alias.
101862 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101864         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101866 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101868         * config/srclist.txt: Adjust to reflect glibc reorganization.
101869         This affects only comments.
101871 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101873          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101874          Reported by Bruce Korb <bkorb@gnu.org>.
101876 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101878         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101879         to pacify gcc -Wswitch-default.
101881 2006-01-22  Bruno Haible  <bruno@clisp.org>
101883         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101884         temporary buffer for sprintf, take into account the precision also
101885         for 'd', 'i', 'u', 'o', 'x', 'X'.
101887 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101889         * modules/argp-tests: New module
101890         * tests/test-argp.c: New file
101891         * tests/test-argp-2.sh: New file
101893 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101895         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101896         (__argp_base_name): Removed
101897         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101898         typo.
101899         (__argp_base_name): Provide macro definition or extern declaration
101900         depending on the configuration
101902 2006-01-20  Simon Josefsson  <jas@extundo.com>
101904         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101906 2006-01-20  Simon Josefsson  <jas@extundo.com>
101908         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101910 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101912         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101913         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101914         Suggested by Bruno Haible.
101916 2006-01-20  Karl Berry  <karl@gnu.org>
101918         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101919         until changes propagate, I guess.
101921 2006-01-19  Simon Josefsson  <jas@extundo.com>
101923         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101925 2006-01-19  Simon Josefsson  <jas@extundo.com>
101927         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101929 2006-01-19  Simon Josefsson  <jas@extundo.com>
101931         * gnulib-tool: Set check_PROGRAMS.
101933         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101934         modules/des-tests, modules/gc-arcfour-tests,
101935         modules/gc-arctwo-tests, modules/gc-des-tests,
101936         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101937         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101938         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101939         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101940         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101941         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101942         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101943         test_*_SOURCES.
101945 2006-01-18  Simon Josefsson  <jas@extundo.com>
101947         * modules/socklen (Depends-on): Depend on sys_socket.
101949 2006-01-18  Simon Josefsson  <jas@extundo.com>
101951         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101952         modules/des-tests, modules/gc-arcfour-tests,
101953         modules/gc-arctwo-tests, modules/gc-des-tests,
101954         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101955         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101956         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101957         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101958         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101959         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101960         $(EXEEXT) to automake TESTS variable, for mingw32.
101962 2006-01-17  Simon Josefsson  <jas@extundo.com>
101964         * modules/socklen (Include): Need sys/socket.h.
101966 2006-01-17  Bruno Haible  <bruno@clisp.org>
101968         * modules/ssize_t (Include): Add <sys/types.h>.
101970 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101972         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101973         it's not portable and it doesn't work with cross-compiles.
101974         Problem reported by Bruno Haible.  Fix missing-$ typo in
101975         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101976         -zignore from being used with Sun's C compiler.
101978 2006-01-12  Simon Josefsson  <jas@extundo.com>
101980         * lib/base64.c: Fix warning, reported by Bruno Haible
101981         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101983 2006-01-12  Bruno Haible  <bruno@clisp.org>
101985         * modules/ldd: New file.
101986         * build-aux/ldd.sh.in: New file.
101987         * MODULES.html.sh (Support for building libraries and executables): Add
101988         ldd.
101990 2006-01-12  Bruno Haible  <bruno@clisp.org>
101992         * m4/ldd.m4: New file.
101994 2006-01-12  Bruno Haible  <bruno@clisp.org>
101996         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101997         endless loop while replacing $auxdir with build-aux.
101999 2006-01-11  Simon Josefsson  <jas@extundo.com>
102001         * lib/stdint_.h (SIZE_MAX): Add missing (.
102003 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
102005         Sync from coreutils.
102006         * lib/md5.c: Fix commentary typos.
102007         (alignof, UNALIGNED_P): No need for a GCC-specific version.
102008         * lib/md5.h (__attribute__): Remove; unused.
102009         * lib/sha1.c: Fix commentary to match md5 better.
102010         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
102011         so that we don't need to worry about alignment.  All uses changed.
102012         This merges the 2005-10-28 md5 change into sha1.
102014 2006-01-11  Jim Meyering  <jim@meyering.net>
102016         Sync from coreutils.
102017         * lib/md5.c (OP): Fix spacing.
102019 2006-01-11  Bruno Haible  <bruno@clisp.org>
102021         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102022         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
102023         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
102025 2006-01-11  Bruno Haible  <bruno@clisp.org>
102027         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102028         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
102029         the "early" section as well.
102031 2006-01-11  Bruno Haible  <bruno@clisp.org>
102033         Avoid "ar: no archive members specified" error on MacOS X.
102034         * gnulib-tool (func_modules_add_dummy): New function.
102035         (func_import, func_create_testdir): Invoke it.
102037 2006-01-11  Bruno Haible  <bruno@clisp.org>
102039         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
102040         with $auxdir in AC_CONFIG_FILES statements.
102042 2006-01-11  Bruno Haible  <bruno@clisp.org>
102044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102045         Initialize also noinst_HEADERS to empty.
102047 2006-01-11  Bruno Haible  <bruno@clisp.org>
102049         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
102050         variables.
102051         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
102052         autoreconf.
102054 2006-01-11  Bruno Haible  <bruno@clisp.org>
102056         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
102057         overridable by the user.
102058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102060 2006-01-10  Simon Josefsson  <jas@extundo.com>
102062         * modules/sys_socket: New file.
102064 2006-01-10  Simon Josefsson  <jas@extundo.com>
102066         * m4/sys_socket_h.m4: New file.
102068 2006-01-10  Simon Josefsson  <jas@extundo.com>
102070         * lib/socket_.h: New file.
102072 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102074         * modules/readutmp (Maintainer): Add myself.
102076 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102078         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
102079         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
102080         People who are still concerned with buggy memcmp implementations
102081         can invoke gl_FUNC_MEMCMP themselves.
102083 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102085         * lib/regex_internal.h (BITSET_WORD_BITS):
102086         Work around a bug in 64-bit PGC (before version 6.1-2), where the
102087         preprocessor mishandles large unsigned values as if they were signed.
102088         Problem reported by Claudio Fontana in
102089         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
102091 2006-01-10  Jim Meyering  <jim@meyering.net>
102093         Avoid the double-free (first in fts_read, second in fts_close) that
102094         would occur when an `active' directory is made inaccessible (e.g.,
102095         via chmod a-x) during a traversal.
102096         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102097         before returning.  Reproduce this failure by
102098         mkdir -p a/b; cd a; chmod a-x . b
102099         Reported by Stavros Passas.
102101         Sync from coreutils.
102102         * lib/sha1.c: Tweak grammar in a comment.
102104 2006-01-10  Jim Meyering  <jim@meyering.net>
102106         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102107         Patch by Joerg Sonnenberger.
102109 2006-01-10  Bruno Haible  <bruno@clisp.org>
102111         * modules/readutmp: Depend on module free.
102112         * modules/strtok_r: Depend on module restrict.
102114 2006-01-10  Bruno Haible  <bruno@clisp.org>
102116         * modules/gettext (configure.ac): Add an invocation of
102117         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102119 2006-01-10  Bruno Haible  <bruno@clisp.org>
102121         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102122         Reported by Werner Lemberg <wl@gnu.org>.
102124 2006-01-10  Bruno Haible  <bruno@clisp.org>
102126         * lib/localcharset.c: Update from GNU gettext.
102128 2006-01-10  Bruno Haible  <bruno@clisp.org>
102130         * lib/argp.h (__const): Remove macro. Use const instead.
102131         * lib/argp-fmtstream.h (__const): Likewise.
102132         * lib/glob_.h (__const): Remove macro.
102133         * lib/glob-libc.h: Use const instead of __const.
102135 2006-01-10  Bruno Haible  <bruno@clisp.org>
102137         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102138         variable.
102139         Needed to avoid an automake error regarding the 'gettext' module.
102141 2006-01-09  Simon Josefsson  <jas@extundo.com>
102143         * modules/inet_ntop (Depends-on): Add restrict.
102145 2006-01-09  Simon Josefsson  <jas@extundo.com>
102147         * modules/gc-rijndael-tests (License): Put under LGPL.
102149         * modules/gc-des-tests (License): Likewise.
102151         * modules/gc-arcfour-tests (License): Likewise.
102153         * modules/gc-arctwo-tests (License): Likewise.
102155         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102157         * modules/gc-hmac-sha1-tests (Files): Likewise.
102159         * modules/gc-hmac-md5-tests (License): Likewise.
102161         * modules/gc-sha1-tests (License): Likewise.
102163         * modules/gc-md5-tests (License): Likewise.
102165         * modules/gc-md4-tests (License): Likewise.
102167         * modules/gc-md2-tests (License): Likewise.
102169         * modules/gc-tests (License): Likewise.
102171         * modules/des-tests (License): Likewise.
102173         * modules/md4-tests (License): Likewise.
102175         * modules/md2-tests (License): Likewise.
102177 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102179         Sync from coreutils:
102181         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102182         * modules/lib-ignore: New file.
102183         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102184         chdir-safer.m4, lchmod.m4.
102185         * modules/openat: Add mkdirat.c, openat-priv.h.
102187 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102189         Sync from coreutils.
102190         * m4/lib-ignore.m4: New file.
102191         * m4/lchmod.m4: New file.
102193 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102195         Sync from coreutils.
102196         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102197         for write access: POSIX says that must fail.
102198         * lib/fts.c (diropen): Likewise.
102199         * lib/save-cwd.c (save_cwd): Likewise.
102200         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102201         well, for minor improvements on hosts that lack O_DIRECTORY.
102202         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102203         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102204         Fall back on chown if open failed with EACCES.
102206         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102207         Report an error at compile-time if only a 1-second nominal clock
102208         resolution is found.
102210         * lib/lchmod.h: New file.
102211         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102212         (make_dir_parents): Use lchown rather than chown, and
102213         lchmod rather than chmod.
102215         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102216         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102217         "proc" reported by n0dalus.
102219         * lib/mountlist.c: Include <limits.h>.
102220         (dev_from_mount_options)
102221         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102222         New function.  It no longer assumes "dev=" has the System V meaning
102223         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102224         (read_file_system_list)
102225         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102226         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102227         dev= in that case.
102229         * lib/posixtm.h (PDS_PRE_2000): New macro.
102230         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102231         allow_century.  All usages changed.  Reject dates outside the range
102232         1969-1999 if PDS_PRE_2000 is used.
102234 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102236         Sync from coreutils.
102237         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102238         (Time of day items): Mention the possibility of leap seconds.
102239         Problem reported by Dr. David Alan Gilbert.
102241 2006-01-09  Jim Meyering  <jim@meyering.net>
102243         Sync from coreutils.
102245         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102247         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102249         * lib/modechange.c (mode_compile): Reject an invalid mode string
102250         that starts with an octal digit.  From Andreas Gruenbacher.
102252         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102253         and dup to open_safer and dup_safer, respectively.
102254         (openat_permissive): Fix typo in comment.
102256         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102257         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102258         (_): Remove; no longer needed.
102259         (openat): Renamed from rpl_openat; no need for rpl_openat
102260         since openat.h renames openat for us.
102261         Replace most of the body with a call to openat_permissive,
102262         to avoid duplicate code.
102263         Port to (probably hypothetical) environments were mode_t is
102264         wider than int.
102265         (openat_permissive): Require mode arg, so that we can check
102266         types better.  Put it just after flags.  Change cwd failure
102267         indicator from pointer-to-bool to pointer-to-errno-value.
102268         All callers changed.
102269         Invoke openat_save_fail and/or openat_restore_fail if
102270         cwd_errno is null, so that openat can call us.
102271         (openat_permissive, fdopendir, fstatat, unlinkat):
102272         Simplify errno handling to avoid some duplicate code,
102273         as it's OK to set errno on success.
102274         * lib/openat.h: Revamp code so that function macros depend on
102275         __OPENAT_PREFIX only, not also on AT_FDCWD.
102276         (openat_ro): Remove.  Caller changed to use openat_permissive.
102277         (openat_permissive): Now a macro, if not a function.
102278         (openat_restore_fail, openat_save_fail): Now always functions,
102279         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102281         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102282         and openat.c.
102283         * lib/mkdirat.c: Include openat-priv.h.
102284         Remove definitions of macros defined therein.
102285         * lib/openat.c: Likewise.
102287         * lib/mkdirat.c (mkdirat): New file and function.
102288         * lib/openat.h (mkdirat): Declare.
102290         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102292         * lib/openat.h (openat_permissive): Declare.
102293         (openat_ro): Define.
102295         * lib/openat.c (EXPECTED_ERRNO): New macro.
102296         (openat_permissive): New function -- used in remove.c rewrite.
102297         (all functions): Set errno just before returning, only if there
102298         was an actual failure.
102299         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102301         Emulate openat-family functions using Linux's procfs, if possible.
102302         Idea and some code based on Ulrich Drepper's glibc changes.
102304         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102305         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102306         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102307         before falling back on save_cwd and restore_cwd.
102308         (fdopendir, fstatat, unlinkat): Likewise.
102310         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102311         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102313         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102314         as second argument to va_arg.  Otherwise, some versions of gcc
102315         warn that `if this code is reached, the program will abort'.
102317 2006-01-09  Jim Meyering  <jim@meyering.net>
102319         Sync from coreutils.
102320         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102321         Require openat-priv.h.
102323 2006-01-09  Bruno Haible  <bruno@clisp.org>
102325         * modules/strnlen (Include): Use strnlen.h.
102327 2006-01-09  Bruno Haible  <bruno@clisp.org>
102329         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102331 2006-01-09  Bruno Haible  <bruno@clisp.org>
102333         * lib/sysexit_.h (EX_OK): New macro.
102334         Suggested by Martin Lambers <marlam@marlam.de>.
102336 2006-01-09  Bruno Haible  <bruno@clisp.org>
102338         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102339         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102341 2006-01-09  Bruno Haible  <bruno@clisp.org>
102343         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102344         numbers.
102346 2006-01-09  Bruno Haible  <bruno@clisp.org>
102348         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102349         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102350         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102351         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102353 2006-01-09  Bruno Haible  <bruno@clisp.org>
102355         * build-aux/javacomp.sh.in: New file, moved from lib/.
102356         * modules/javacomp-script (Files): Update.
102357         (configure.ac): Add AC_CONFIG_FILES invocation.
102358         (EXTRA_DIST): Remove variable.
102360         * build-aux/javaexec.sh.in: New file, moved from lib/.
102361         * modules/javaexec (Files): Update.
102362         (configure.ac): Add AC_CONFIG_FILES invocation.
102363         (EXTRA_DIST): Remove javaexec.sh.in.
102365         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102366         * modules/csharpcomp-script (Files): Update.
102367         (configure.ac): Add AC_CONFIG_FILES invocation.
102368         (EXTRA_DIST): Remove variable.
102370         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102371         * modules/csharpexec (Files): Update.
102372         (configure.ac): Add AC_CONFIG_FILES invocation.
102373         (EXTRA_DIST): Remove csharpexec.sh.in.
102375 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102377         Sync from coreutils.
102379         Add POSIX ACL support
102380         * lib/acl.h (copy_acl, set_acl): Add declarations.
102381         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102382         systems other than Linux.
102383         (chmod_or_fchmod): New function: use fchmod when possible,
102384         and chmod otherwise.
102385         (file_has_acl): Add a POSIX ACL implementation, with a
102386         Linux-specific subcase.
102387         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102388         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102389         acls are unsupported.
102390         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102391         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102392         are unsupported.
102394 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102396         Sync from coreutils.
102397         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102399 2006-01-07  Bruno Haible  <bruno@clisp.org>
102401         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102402         gl_EARLY.
102404 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102406         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102407         Problem reported for Mingw by Mark Junker.
102409 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102411         * README: Gnulib normally doesn't generate a tarball.
102413 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102415         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102416         long int, not int, for nanosecond counts, so that people who are
102417         used to POSIX struct timespec won't be surprised.  Reported by Jim
102418         Meyering.
102420 2005-12-28  Bruno Haible  <bruno@clisp.org>
102422         * build-aux/config.rpath: Update from GNU gettext.
102424 2005-12-16  Jim Meyering  <jim@meyering.net>
102426         * modules/fprintftime: New module.
102427         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102429 2005-12-16  Jim Meyering  <jim@meyering.net>
102431         * m4/fprintftime.m4: New file.
102433 2005-12-16  Jim Meyering  <jim@meyering.net>
102435         * lib/fprintftime.c, lib/fprintftime.h: New files.
102437 2005-12-15  Simon Josefsson  <jas@extundo.com>
102439         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102440         new m4/socklen.m4.
102442 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102444         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102445         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102447 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102449         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102450         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102451         struct uparams is valid. Fall back to the default values if it is
102452         not.
102454 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102456         * modules/argp (Files): Add argp-pin.c
102457         (Depends-on): dirname
102458         (lib_SOURCES): Add argp-pin.c
102460 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102462         * m4/argp.m4:  Check if program_invocation_name and
102463         program_invocation_short_name are declared and define appropriate
102464         macros if they are not.
102466 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102468         * lib/argp-help.c (__argp_base_name): New function
102469         (__argp_short_program_name): Rewrite using __argp_base_name
102470         * lib/argp-namefrob.h: Define program_invocation_name and
102471         program_invocation_short_name if requested
102472         (__argp_base_name): Add prototype
102473         * lib/argp-parse.c (argp_def): Use gettext wrappers
102474         (argp_default_parser): Use __argp_base_name
102475         * lib/argp-pin.c: New file. Defines program_invocation_name and
102476         program_invocation_short_name on systems that lack them.
102478 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102480         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102481         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102482         porting problem reported by Georg Schwarz in
102483         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102485 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102487         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102488         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102489         porting problem reported by Georg Schwarz in
102490         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102492 2005-12-05  Bruno Haible  <bruno@clisp.org>
102494         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102495         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102496         Reported by Mark Junker <mjscod@gmx.de>.
102498 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102500         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102501         Use implementation from Albert Chin, with some
102502         comments/corrections by Stepan Kasal and myself.
102504 2005-12-02  Bruno Haible  <bruno@clisp.org>
102506         * gnulib-tool (func_import): Accept GPLed build tool modules when
102507         --lgpl is given.
102508         * modules/csharpcomp-script: New file.
102509         * modules/csharpcomp: Depend on it.
102510         * modules/javacomp-script: New file.
102511         * modules/javacomp: Depend on it.
102512         Suggested by Simon Josefsson.
102514 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102516         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102517         statement, to work around an HP-UX 10.20 compiler bug reported by
102518         Peter O'Gorman.
102520 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102522         * modules/savedir (Depends-on): Add openat.
102524 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102526         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102527         (uintmax_t) [defined uintmax_t]: Do not declare.
102528         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102529         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102530         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102531         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102532         sake of portability to weird hosts that C allows (though we don't
102533         know of any practical examples).
102535         * lib/savedir.h (fdsavedir): New decl.
102536         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102537         contains most of the former guts of savedir.
102538         (savedir): Use savedirstream.
102539         Include "openat.h".
102541 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102543         * modules/obstack (Files): Add m4/ulonglong.m4.
102544         Problem reported by Davide Angelocola.
102546 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102548         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102549         coreutils no longer futzes with rounding modes.
102551 2005-11-14  Jim Meyering  <jim@meyering.net>
102553         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102554         replacement of mkstemp.
102556 2005-11-10  Simon Josefsson  <jas@extundo.com>
102558         * lib/readline.c: Remove EOL.
102560 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102562         * modules/gethrxtime (Depends-on): Add gettime.
102564 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102566         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102567         or gettimeofday; no longer needed.
102569 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102571         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102572         time business.
102573         (gethrxtime) [! (HAVE_NANOUPTIME
102574         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102575         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102576         our own approximation.
102578 2005-11-08  Eric Blake  <ebb9@byu.net>
102580         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102582 2005-11-08  Eric Blake  <ebb9@byu.net>
102584         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102586 2005-11-04  Bruno Haible  <bruno@clisp.org>
102588         * gnulib-tool: Implement --update mode.
102590 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102592         Fix porting problem reported by Theodoros V. Kalamatianos.
102593         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102594         Don't assume that futimes failing means we must fail.
102596 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102598         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102599         variables to suggest the intended function of the PATH_MAX check.
102601 2005-10-30  Kean Johnston  <jkj@sco.com>
102603         Trivial changes to support SCO systems.
102604         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102605         as PATH_MAX.
102606         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102607         where __ptr is null when no I/O is pending.
102609 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102611         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102612         leave errno alone.  Problem reported by Dmitry V. Levin.
102614 2005-10-28  Simon Josefsson  <jas@extundo.com>
102616         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102617         Test more.
102619         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102621         * modules/md2, modules/md2-tests: New files.
102623 2005-10-28  Simon Josefsson  <jas@extundo.com>
102625         * m4/inet_ntop.m4: More tests.
102627         * m4/gc-md2.m4, md2.m4: New file.
102629 2005-10-28  Simon Josefsson  <jas@extundo.com>
102631         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102632         "restrict" keywords, as per POSIX.  Protect the function
102633         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102634         Don't use K&R prototypes.  Check the sprintf return values.
102635         Re-define EAFNOSUPPORT if not present.  Indent.
102637         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102638         suggested by Bruno Haible <bruno@clisp.org>.
102640         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102642         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102644         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102645         libgcrypt).
102647         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102649         * lib/md2.h, lib/md2.c: New files.
102651 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102653         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102654         errno alone.  Problem reported by Frederic Jolliton.
102656 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102658         * modules/verify (License): Change from GPL to LGPL.  This is a
102659         tiny module and there are apparently near-equivalents that are
102660         under the BSD license.
102662 2005-10-24  Simon Josefsson  <jas@extundo.com>
102664         * modules/sha1: Relicense to LGPL.
102666 2005-10-24  Simon Josefsson  <jas@extundo.com>
102668         * lib/md4.h: Shrink buffer size, now that we changed the type.
102670 2005-10-23  Simon Josefsson  <jas@extundo.com>
102672         * gnulib-tool (func_import): Fix --tests-base.
102674 2005-10-22  Simon Josefsson  <jas@extundo.com>
102676         * modules/arcfour (Depends-on): Need stdint.
102678 2005-10-22  Simon Josefsson  <jas@extundo.com>
102680         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102681         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102683 2005-10-22  Simon Josefsson  <jas@extundo.com>
102685         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102686         suggested by Bruno Haible <bruno@clisp.org>.
102688 2005-10-22  Simon Josefsson  <jas@extundo.com>
102690         * lib/crc.h: Include stddef.h, for size_t.
102692 2005-10-22  Simon Josefsson  <jas@extundo.com>
102694         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102695         arcfour_context struct (simplify test vector testing in GNU
102696         Shishi).
102698 2005-10-21  Simon Josefsson  <jas@extundo.com>
102700         * modules/des, modules/des-tests: New files.
102702         * modules/gc-des, modules/gc-des-tests: New files.
102704         * tests/test-des.c, tests/test-gc-des.c: New file.
102706 2005-10-21  Simon Josefsson  <jas@extundo.com>
102708         * modules/arctwo, modules/arctwo-tests: New files.
102710         * tests/test-arctwo.c: New file.
102712         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102714         * tests/test-gc-arctwo.c: New file.
102716 2005-10-21  Simon Josefsson  <jas@extundo.com>
102718         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102719         Bruno Haible <bruno@clisp.org>.
102721         * m4/gc-des.m4: New file.
102723 2005-10-21  Simon Josefsson  <jas@extundo.com>
102725         * m4/arctwo.m4: New file.
102727         * m4/gc-arctwo.m4: New file.
102729 2005-10-21  Simon Josefsson  <jas@extundo.com>
102731         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102732         block.
102734 2005-10-21  Simon Josefsson  <jas@extundo.com>
102736         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102737         <bruno@clisp.org>.
102739         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102741         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102742         Bruno Haible <bruno@clisp.org>.
102744         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102745         <bruno@clisp.org>.
102747 2005-10-21  Simon Josefsson  <jas@extundo.com>
102749         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102751 2005-10-21  Simon Josefsson  <jas@extundo.com>
102753         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102755 2005-10-21  Simon Josefsson  <jas@extundo.com>
102757         * lib/des.h, lib/des.c: New files.
102759         * lib/gc-gnulib.c: Support DES.c
102761 2005-10-21  Simon Josefsson  <jas@extundo.com>
102763         * lib/arctwo.h, lib/arctwo.c: New files.
102765         * lib/gc-gnulib.c: Support ARCTWO.
102767 2005-10-21  Simon Josefsson  <jas@extundo.com>
102769         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102770         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102772 2005-10-21  Simon Josefsson  <jas@extundo.com>
102774         * gnulib-tool (func_import, func_create_testdir): Define automake
102775         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102776         Makefile.am snippet),
102777         suggested by Bruno Haible <bruno@clisp.org>.
102779         * modules/gc (Makefile.am): Use it.
102781 2005-10-21  Bruno Haible  <bruno@clisp.org>
102783         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102784         patch.
102786 2005-10-19  Simon Josefsson  <jas@extundo.com>
102788         * tests/test-gc-rijndael.c: New file.
102790         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102792 2005-10-19  Simon Josefsson  <jas@extundo.com>
102794         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102795         interface too.
102797 2005-10-19  Simon Josefsson  <jas@extundo.com>
102799         * tests/test-gc-arcfour.c: New file.
102801         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102803 2005-10-19  Simon Josefsson  <jas@extundo.com>
102805         * modules/gc-md4, modules/gc-md4-tests: New file.
102807         * tests/test-gc-md4.c: New file.
102809 2005-10-19  Simon Josefsson  <jas@extundo.com>
102811         * m4/gc-md4.m4: New file.
102813 2005-10-19  Simon Josefsson  <jas@extundo.com>
102815         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102816         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102817         <kasal@ucw.cz>.
102819 2005-10-19  Simon Josefsson  <jas@extundo.com>
102821         * m4/gc-arcfour.m4: New file.
102823         * m4/gc-rijndael.m4: New file.
102825 2005-10-19  Simon Josefsson  <jas@extundo.com>
102827         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102829 2005-10-19  Simon Josefsson  <jas@extundo.com>
102831         * lib/gc-gnulib.c: Support ARCFOUR.
102833 2005-10-19  Simon Josefsson  <jas@extundo.com>
102835         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102836         support.
102838         * lib/gc.h: Add ECB enum type.
102840         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102842 2005-10-18  Simon Josefsson  <jas@extundo.com>
102844         * tests/test-md5.c: New file.
102846         * modules/md5-tests: New file.
102848 2005-10-18  Simon Josefsson  <jas@extundo.com>
102850         * tests/test-md4.c: New file.
102852         * modules/md4, modules/md4-tests: New files.
102854 2005-10-18  Simon Josefsson  <jas@extundo.com>
102856         * m4/md4.m4: New file.
102858 2005-10-18  Simon Josefsson  <jas@extundo.com>
102860         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102862 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102864         * gnulib-tool (func_create_testdir): Omit the second check whether
102865         BUILT_SOURCES in nonempty.
102867 2005-10-17  Simon Josefsson  <jas@extundo.com>
102869         * tests/test-rijndael.c: New file.
102871 2005-10-17  Simon Josefsson  <jas@extundo.com>
102873         * modules/sha1: Depend on stdint instead of md5.
102875         * modules/md5: Depend on stdint, remove uint32_t.
102877 2005-10-17  Simon Josefsson  <jas@extundo.com>
102879         * modules/gc-sha1-tests: New file.
102881         * tests/test-gc-sha1.c: New file.
102883 2005-10-17  Simon Josefsson  <jas@extundo.com>
102885         * m4/md5.m4: Remove call to uint32_t.m4.
102887 2005-10-17  Simon Josefsson  <jas@extundo.com>
102889         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102891         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102892         md5.h.
102894         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102896         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102898 2005-10-17  Simon Josefsson  <jas@extundo.com>
102900         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102902 2005-10-17  Simon Josefsson  <jas@extundo.com>
102904         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102906 2005-10-17  Simon Josefsson  <jas@extundo.com>
102908         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102910         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102912 2005-10-17  Bruno Haible  <bruno@clisp.org>
102914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102915         that it can also be used in a test.
102917 2005-10-16  Bruno Haible  <bruno@clisp.org>
102919         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102920         TESTS_ENVIRONMENT, so that individual tests can augment it.
102922         * gnulib-tool (func_create_testdir): Use an intermediate target for
102923         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102924         macros, like $(ALLOCA_H), which cannot be passed through the command
102925         line.
102927 2005-10-15  Simon Josefsson  <jas@extundo.com>
102929         * modules/rijndael-tests: New file.
102931         * modules/rijndael: New file.
102933 2005-10-15  Simon Josefsson  <jas@extundo.com>
102935         * m4/rijndael.m4: New file.
102937 2005-10-15  Simon Josefsson  <jas@extundo.com>
102939         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102941         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102943 2005-10-14  Simon Josefsson  <jas@extundo.com>
102945         * tests/test-arcfour.c: New file.
102947         * modules/arcfour, modules/arcfour-tests: New files.
102949 2005-10-14  Simon Josefsson  <jas@extundo.com>
102951         * m4/arcfour.m4: New file.
102953 2005-10-14  Simon Josefsson  <jas@extundo.com>
102955         * lib/arcfour.h, lib/arcfour.c: New files.
102957 2005-10-14  Roland McGrath  <roland@redhat.com>
102959         Import from libc.  [BZ #1331]
102960         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102961         macro argument.
102962         Reported by Matej Vela <vela@debian.org>.
102964 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102966         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102967         include <wchar.h>; no longer needed.
102969 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102971         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102973 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102974         and  Ulrich Drepper  <drepper@redhat.com>
102976         Import from libc.
102977         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102978         instead of inline stream orientation test and two separate
102979         function calls.  Pay no attention to USE_IN_LIBIO.
102981 2005-10-13  Simon Josefsson  <jas@extundo.com>
102983         * modules/gc-hmac-md5-tests: New file.
102985         * tests/test-gc-hmac-sha1.c: New file.
102987         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102989         * modules/gc-hmac-md5-tests: New file.
102991         * tests/test-gc-md5.c: New file.
102993         * modules/gc-md5-tests: New file.
102995 2005-10-13  Simon Josefsson  <jas@extundo.com>
102997         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102998         Move memory allocation outside of loop.
103000 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
103002         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
103003         intermediate directory is in a read-only file system.  Problem
103004         reported by Eric Blake.
103006 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
103008         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
103010 2005-10-12  Simon Josefsson  <jas@extundo.com>
103012         * tests/test-hmac-sha1.c: New file.
103014         * modules/hmac-sha1-tests: New file.
103016         * modules/hmac-sha1: New file.
103018 2005-10-12  Simon Josefsson  <jas@extundo.com>
103020         * modules/gc-sha1: New file.
103022 2005-10-12  Simon Josefsson  <jas@extundo.com>
103024         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
103026         * tests/test-gc-pbkdf2-sha1.c: New file.
103028 2005-10-12  Simon Josefsson  <jas@extundo.com>
103030         * modules/gc-md5, modules/gc-hmac-md5: New files.
103032         * modules/gc (Files): Remove md5, memxor and hmac files.
103034 2005-10-12  Simon Josefsson  <jas@extundo.com>
103036         * m4/gc-pbkdf2-sha1.m4: New file.
103038         * m4/gc-hmac-sha1.m4: New file.
103040         * m4/gc-sha1: New file.
103042         * m4/hmac-sha1.m4: New file.
103044 2005-10-12  Simon Josefsson  <jas@extundo.com>
103046         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
103048         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
103050 2005-10-12  Simon Josefsson  <jas@extundo.com>
103052         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
103053         suggested by Bruno Haible <bruno@clisp.org>.
103055 2005-10-12  Simon Josefsson  <jas@extundo.com>
103057         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
103059 2005-10-12  Simon Josefsson  <jas@extundo.com>
103061         * lib/gc-pbkdf2-sha1.c: New file.
103063         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
103065 2005-10-12  Simon Josefsson  <jas@extundo.com>
103067         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
103069         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
103071 2005-10-12  Simon Josefsson  <jas@extundo.com>
103073         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
103074         GC_USE_HMAC_MD5, respectively.
103076         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
103077         (gc_md5): Fix typo.
103079         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
103081         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
103083         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
103085 2005-10-12  Bruno Haible  <bruno@clisp.org>
103087         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
103088         Reported by Stepan Kasal <kasal@ucw.cz>.
103090 2005-10-11  Simon Josefsson  <jas@extundo.com>
103092         * tests/test-crc.c: New file.
103094         * modules/crc, modules/crc-tests: New files.
103096 2005-10-11  Simon Josefsson  <jas@extundo.com>
103098         * m4/crc.m4: New file.
103100 2005-10-11  Simon Josefsson  <jas@extundo.com>
103102         * lib/gc.h: Add gc_hash and gc_hash_buffer.
103104         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103106         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103108 2005-10-11  Simon Josefsson  <jas@extundo.com>
103110         * lib/crc.h, lib/crc.c: New files.
103112         * lib/gc.h (gc_hash_buffer): Add doc.
103114 2005-10-11  Bruno Haible  <bruno@clisp.org>
103116         * modules/c-strcasestr: New file.
103117         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103119 2005-10-11  Bruno Haible  <bruno@clisp.org>
103121         * modules/c-strcase: New file.
103122         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103124 2005-10-11  Bruno Haible  <bruno@clisp.org>
103126         * lib/strcasecmp.c: Include limits.h.
103127         (strcasecmp): Avoid integer overflow on exotic platforms.
103128         * lib/strncasecmp.c: Include limits.h.
103129         (strncasecmp): Avoid integer overflow on exotic platforms.
103130         Reported by Paul Eggert.
103132 2005-10-11  Bruno Haible  <bruno@clisp.org>
103134         * lib/c-strcasestr.h: New file, from GNU gettext.
103135         * lib/c-strcasestr.c: New file, from GNU gettext.
103137 2005-10-11  Bruno Haible  <bruno@clisp.org>
103139         * lib/c-strcase.h: New file, from GNU gettext.
103140         * lib/c-strcasecmp.c: New file, from GNU gettext.
103141         * lib/c-strncasecmp.c: New file, from GNU gettext.
103143 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103145         * modules/mempcpy (License): GPL -> LGPL.
103146         * modules/strchrnul (License): Likewise.
103147         * modules/sysexits (License): Likewise.
103149 2005-10-08  Simon Josefsson  <jas@extundo.com>
103151         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103153 2005-10-07  Simon Josefsson  <jas@extundo.com>
103155         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103157 2005-10-06  Simon Josefsson  <jas@extundo.com>
103159         * tests/test-hmac-md5.c: New file.
103161         * modules/hmac-md5-tests: New file.
103163         * modules/hmac-md5: New file.
103165 2005-10-06  Simon Josefsson  <jas@extundo.com>
103167         * m4/hmac-md5.m4: New file.
103169         * m4/memxor.m4: Require gl_C_RESTRICT.
103171 2005-10-06  Simon Josefsson  <jas@extundo.com>
103173         * lib/memxor.c (memxor): Avoid casts and warnings.
103175 2005-10-06  Simon Josefsson  <jas@extundo.com>
103177         * lib/hmac-md5.c: New file.
103179         * lib/hmac.h: New file.
103181 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103184         promotes to int, not unsigned int, to catch the AIX 5.3
103185         compiler bug.
103187 2005-10-05  Simon Josefsson  <jas@extundo.com>
103189         * modules/memxor: New file.
103191         * modules/iconv (Files): Move config.rpath to havelib, it is used
103192         there.
103194         * modules/havelib (Files): Add config.rpath.
103196 2005-10-05  Simon Josefsson  <jas@extundo.com>
103198         * m4/memxor.m4: New file.
103200 2005-10-05  Simon Josefsson  <jas@extundo.com>
103202         * lib/memxor.c (memxor): Fix compiler error.
103204         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103205         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103207         * lib/memxor.h, lib/memxor.c: New files.
103209         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103210         we assume all systems have it, suggested by Jim Meyering
103211         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103212         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103213         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103214         same reasons.
103216 2005-10-05  Simon Josefsson  <jas@extundo.com>
103218         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103220 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103223         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103224         needed, since the source code now assumes these .h files.
103226 2005-10-05  Derek Price  <derek@ximbiot.com>
103228         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103230 2005-10-05  Bruno Haible  <bruno@clisp.org>
103232         * modules/stdint (License): Change to LGPL.
103234 2005-10-04  Simon Josefsson  <jas@extundo.com>
103236         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103237         D. Baushke" <mdb@gnu.org>.
103239 2005-10-04  Bruno Haible  <bruno@clisp.org>
103241         * lib/verify.h (verify_true): Provide alternative definition for C++.
103243 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103245         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103246         (SSIZE_MAX): New macro, if not already defined.
103247         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103248         than 2 GiB.
103250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103252         Sync from coreutils.
103253         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103254         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103255         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103256         ULLONG_MAX doesn't work with 2.7.2.1.
103258 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103260         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103261         From Ben Pfaff.
103263         * modules/exclude (Depends-on): Depend on verify.
103264         * modules/strtoimax (Depends-on): Likewise.
103265         * modules/utimecmp (Depends-on): Likewise.
103267 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103269         * lib/exclude.c: Include verify.h.
103270         (verify): Remove.  All callers changed to use verify.h's version.
103271         * lib/strtoimax.c: Likewise.
103272         * lib/utimecmp.c: Likewis.e
103274         Sync from coreutils.
103275         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103276         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103277         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103278         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103279         bother returning ENOSYS if settimeofday or stime fails; just let
103280         them return whatever errno they want to return.
103281         * lib/utimens.c: Include unistd.h, for dup2.
103282         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103283         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103285 2005-10-02  Jim Meyering  <jim@meyering.net>
103287         Sync from coreutils.
103288         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103289         from glibc-2.2.5 that fails for read-only files.
103291 2005-10-02  Jim Meyering  <jim@meyering.net>
103293         Sync from coreutils.
103294         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103295         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103296         `#if HAVE_CONFIG_H'.
103297         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103298         Remove AT_FDCWD test.
103299         Do not consume the fd unless successful.
103300         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103301         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103302         block, so that we don't even try to compile it if settimeofday is
103303         available.  This works around a compilation failure on OSF1 V5.1,
103304         due to stime requiring a `long int*' while tv_sec is `int'.
103306 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103308         Sync from coreutils.
103309         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103310         against `yes', rather than just testing for nonempty.
103312 2005-10-01  Simon Josefsson  <jas@extundo.com>
103314         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103315         and Darwin.
103317         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103318         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103319         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103320         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103321         Check if struct addrinfo is declared.
103323 2005-10-01  Simon Josefsson  <jas@extundo.com>
103325         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103326         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103327         AI_* and EAI_* definitions.  Protect function declarations.
103329 2005-10-01  Jim Meyering  <jim@meyering.net>
103331         Sync from coreutils.
103333         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103334         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103335         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103337         in the inet and nsl libraries.  Required on Solaris 5.7.
103339 2005-10-01  Jim Meyering  <jim@meyering.net>
103341         Sync from coreutils.
103342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103343         in the inet and nsl libraries.  Required on Solaris 5.7.
103345 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103347         * lib/getdelim.c (getdelim): Remove unused variables.
103349 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103351         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103352         so that the code works even with ancient cpp.  Portability problem
103353         with GCC 2.7.2.1 reported by Thomas M.Ott.
103355 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103357         * modules/regex (Depends-on): Add strcase.
103359         * modules/gethostname (Licence): Change from GPL to LGPL, since
103360         gethostname.c is a trivial implementation of a standard library
103361         function.
103362         * modules/poll (License): Change from GPL to LGPL, since it's
103363         derived from LGPL code.
103365 2005-09-27  Jim Meyering  <jim@meyering.net>
103367         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103368         HAVE_CONFIG_H.
103370         * lib/intprops.h (signed_type_or_expr__): Define.
103371         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103372         for unsigned types.
103374 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103376         * lib/verify.h (verify_expr): Remove, replacing with:
103377         (verify_true): New macro that returns true instead of void.
103378         (verify_type__): Remove.
103379         (verify): Use verify_true rather than verify_type__.
103381 2005-09-26  Bruno Haible  <bruno@clisp.org>
103383         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103384         is necessary.
103385         (lib_SOURCES): Remove mbchar.c.
103386         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103387         (Files): Add m4/mbrtowc.m4.
103388         * modules/mbiter: Likewise.
103389         * modules/mbuiter: Likewise.
103391 2005-09-26  Bruno Haible  <bruno@clisp.org>
103393         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103394         compile mbchar.c if they are not both present.
103395         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103396         * m4/mbiter.m4 (gl_MBITER): Likewise.
103397         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103398         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103399         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103401 2005-09-25  Jim Meyering  <jim@meyering.net>
103403         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103404         also uses socklen_t.
103406 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103408         * lib/utimens.c (ENOSYS): Define if not already defined.
103409         (futimens): Support having a null PATH if the file descriptor
103410         is nonnegative.
103412         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103413         Remove.
103414         (__attribute): Define to empty unless GCC 3.1 or later.
103415         This works around a core dump on OpenBSD 3.4, which has GCC
103416         2.95.3, which dumps core when given __attribute__(()).  It also
103417         simplifies other tests, since we really don't want to bother with
103418         worrying about which ancient version of GCC supported what.
103419         Original problem reported by Yoann Vandoorselaere, with part of
103420         the fix suggested by Derek Price.
103422 2005-09-24  Jim Meyering  <jim@meyering.net>
103424         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103425         so we can once again use a positive bitfield width of 1 -- now we
103426         don't have to explain why we were using a bitfield width of 2.
103428 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103430         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103431         and similarly for the other external symbols.  Problem reported
103432         by James Gallager.
103434         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103435         bug reported by Jim Meyering.
103437         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103439         not needed, since socklen is a prerequisite module.
103441 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103443         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103444         Problem reported by Eric Blake.
103445         (getaddrinfo): Initialize se so that it's not garbage.
103446         Redo internal storage allocation so that it doesn't make unportable
103447         assumptions about alignment.
103448         Fix a memory leak.
103450         * lib/utimens.c (futimens): Use futimesat if available.
103451         Prefer it to futimes since it doesn't have the futimes bug.
103453         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103454         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103455         Instead, declare a function that returns a pointer to an array,
103456         and use verify_type__ to declare the size of the array.
103457         Problem and germ of a solution reported by Bruno Haible.
103458         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103459         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103461 2005-09-23  Jim Meyering  <jim@meyering.net>
103463         Sync from coreutils.
103464         Correct build failure (socklen_t not defined) on at least
103465         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103468 2005-09-23  Jim Meyering  <jim@meyering.net>
103470         * modules/getaddrinfo (Depends-on): Add socklen.
103472 2005-09-23  Bruno Haible  <bruno@clisp.org>
103474         * tests/test-verify.c: New file.
103476 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103478         Sync from coreutils.
103480         * modules/argmatch (Depends-on): Add verify.
103481         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103482         unistd-safer.
103483         * modules/save-cwd (Depends-on): Likewise.
103485         * modules/openat (Files): Add lib/openat-die.c.
103486         (Depends-on): Remove error, exitfail.
103487         Add dirname.
103489         * modules/verify: New file.
103490         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103491         with "verify" module.
103493 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103495         Sync from coreutils.
103497         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103498         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103499         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103500         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103501         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103502         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103503         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103504         Don't bother checking for string.h, stdlib.h, unistd.h.
103505         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103506         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103507         module's job.
103508         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103509         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103511         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103512         (gl_GETDATE): Use it.
103514         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103516 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103518         Sync from coreutils.
103520         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103521         stat-time.h.
103522         * lib/argmatch.h: Include verify.h
103523         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103524         (ARGMATCH_ASSERT): Remove; unused.
103525         * lib/canonicalize.c: Assume STDC_HEADERS.
103526         * lib/exclude.c: Include "strcase.h".
103527         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103528         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103529         and stdio-safer.h.
103530         (getusershell): Call fopen, not fopen_safer.
103531         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103532         Do not include unistd-safer.h.
103533         (save_cwd): Don't call fd_safer; no longer needed
103534         now that we include fcntl--.h.
103536         * lib/getdate.y (relative_time): New type.
103537         (RELATIVE_TIME_0): New constant.
103538         (parser_control): Use relative_time instead of doing it ourselves.
103539         (%union): Add new relative_time rel member.
103540         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103541         Now typeless.
103542         (relunit, relunit_snumber): Now of type rel.
103543         (zone, rel, relunit, get_date): Adjust to above changes.
103545         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103546         Do not include unistd-safer.h.
103547         (getloadavg): Don't call fd_safer; no longer needed
103548         now that we include fcntl--.h.
103550         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103551         (make_dir_parents): Treat ENOSYS like EEXIST.
103553         Improve quality of diagnostics on restore_cwd failure.
103554         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103555         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103556         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103557         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103558         each time through the loop.  Do not diagnose restore_cwd failure;
103559         that is the caller's job (and perhaps the caller does not care).
103561         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103562         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103563         If the file already exists but is not a directory, don't bother
103564         to try to make its parents.
103565         Close potential file descriptor leak if we can't chdir("/") (!).
103566         Don't always return true if chdir($PWD) fails; return true only
103567         if the requested action was done successfully (except for the
103568         chdir($PWD)).
103569         Don't log final directory unless we actually made it.
103570         Refactor to avoid duplicate code to fix up permissions.
103571         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103573         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103574         to make it a bit faster and (I hope) clearer.
103575         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103576         Fix bug in formats like %2N.
103578         * lib/verify.h: New file.
103580 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103582         Sync from coreutils.
103583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103585 2005-09-22  Jim Meyering  <jim@meyering.net>
103587         Sync from coreutils.
103589         * m4/lstat.m4 (gl_FUNC_LSTAT):
103590         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103591         Remove obsolete comment.
103592         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103593         * m4/xstrtod.m4: Likewise.
103595         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103597 2005-09-22  Jim Meyering  <jim@meyering.net>
103599         Sync from coreutils.
103601         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103603         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103604         the .tm_year member, since otherwise gcc-4.0 would now warn about
103605         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103607         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103608         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103610         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103611         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103612         when run in a time zone for which daylight savings time is in effect
103613         for the starting date.
103615         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103616         stop us from restricting permissions of just-created absolute-named
103617         directories.
103618         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103619         to restore initial working directory.
103620         * lib/mkdir-p.c (make_dir_parents): New parameter:
103621         different_working_dir, to tell caller if/when we change the working
103622         directory and are unable to return to the initial one.
103623         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103624         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103625         `return false'.  This fixes a bug introduced on 2004-07-30.
103627         * lib/openat.c (fdopendir): Be sure to close the supplied
103628         file descriptor before returning.  This makes our replacement
103629         implementation a little closer to Solaris's, where fdopendir
103630         ties the file descriptor to the returned DIR* pointer.
103631         * lib/openat.c (unlinkat): New function.
103632         * lib/openat.h (unlinkat): Add prototype.
103633         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103634         (openat_restore_fail): Rename from openat_restore_die.
103635         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103637         Provide an alternative to exiting immediately upon save_cwd or
103638         restore_cwd failure.  Now, an application can arrange e.g.,
103639         to perform a longjump in that case.
103640         * lib/openat.c: Include dirname.h.
103641         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103642         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103643         and openat_restore_die rather than calling error directly.
103644         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103646         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103647         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103648         define.
103650         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103651         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103652                             int utc, int nanoseconds);
103653         Background:
103654         date should not have to allocate a megabyte of virtual memory to
103655         handle a format argument like +%1048575T.  When implemented with
103656         strftime, it must allocate such a buffer, use strftime to fill it
103657         in, print it, then free it.
103658         With fprintftime, it simply prints everything and exits.
103659         With no need for memory allocation, that's one fewer way to fail.
103660         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103661         optional field width, not before, so we accept %9:z, not %:9z.
103662         (my_strftime): Be sure to use L_('x') for literals.
103664         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103665         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103666         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103667         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103668         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103669         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103670         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103671         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103672         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103673         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103674         * lib/xgethostname.c, lib/xreadlink.c:
103675         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103677         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103678         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103679         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103680         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103681         and don't include <sys/file.h>).
103683 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103685         Sync from coreutils.
103687         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103688         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103689         [!LDAV_DONE]: Avoid unused variable warning.
103691 2005-09-21  Bruno Haible  <bruno@clisp.org>
103693         * lib/unicodeio.h (unicode_to_mb): New declaration.
103695 2005-09-20  Derek Price  <derek@ximbiot.com>
103697         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103698         getaddrinfo.h.
103700 2005-09-20  Bruno Haible  <bruno@clisp.org>
103702         * gnulib-tool: Remove trailing slashes from the values specified for
103703         --source-base, --m4-base, --tests-base, --aux-dir.
103704         Suggested by Simon Josefsson <jas@extundo.com>.
103706 2005-09-20  Bruno Haible  <bruno@clisp.org>
103708         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103709         func_modules_to_filelist, func_import, func_create_testdir): Make all
103710         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103711         change when gnulib-tool is invoked in a different locale.
103713 2005-09-19  Simon Josefsson  <jas@extundo.com>
103715         * m4/socklen.m4: Fix typo.
103717 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103719         Use a consistent style for including <config.h>.
103720         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103721         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103722         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103723         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103724         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103725         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103726         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103727         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103728         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103729         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103730         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103731         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103732         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103733         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103734         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103735         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103736         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103737         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103738         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103739         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103740         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103741         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103742         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103743         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103744         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103745         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103746         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103747         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103748         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103749         lib/xstrtoumax.c, lib/yesno.c:
103750         Standardize inclusion of config.h.
103751         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103752         lib/inttostr.h:  Removed inclusion of config.h from header files.
103753         * lib/inttostr.c:  Adjusted in-tree users.
103754         * lib/timespec.h: Remove superfluous warning to include config.h.
103755         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103756         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103757         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103758         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103759         config.h with HAVE_CONFIG_H.
103761 2005-09-19  Jim Meyering  <jim@meyering.net>
103763         * modules/pathmax (License): Change to LGPL.
103765 2005-09-19  Derek Price  <derek@ximbiot.com>
103767         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103769 2005-09-19  Bruno Haible  <bruno@clisp.org>
103771         * gnulib-tool (import): Provide default for --tests-base.
103773 2005-09-19  Bruno Haible  <bruno@clisp.org>
103775         * doc/quote.texi: New file, extracted from gnulib.texi.
103776         * doc/ctime.texi: New file, extracted from gnulib.texi.
103777         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103778         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103779         * doc/gnulib.texi: Include them.
103781 2005-09-18  Bruno Haible  <bruno@clisp.org>
103783         Portability fix.
103784         * gnulib-tool (func_readlink): New function.
103785         (func_ln_if_changed): Use it.
103787 2005-09-18  Bruno Haible  <bruno@clisp.org>
103789         * gnulib-tool: Support --with-tests also with --import.
103790         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103791         (func_import): Use variables $testsbase and $inctests. Emit a
103792         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103793         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103794         SUBDIRS += $testsdir.
103795         (func_create_testdir): Update.
103797 2005-09-18  Bruno Haible  <bruno@clisp.org>
103799         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103800         instead of $dry_run.
103801         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103802         (func_ln_if_changed): Don't handle dry-run here.
103803         (func_import): In dry-run mode, detect more precisely which actions
103804         would be performed, and don't use "...ing" verbs.
103806 2005-09-18  Bruno Haible  <bruno@clisp.org>
103808         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103809         (func_import): Use join on two temporary files instead of three nested
103810         loops, in order to determine which files are new or old.
103812 2005-09-18  Bruno Haible  <bruno@clisp.org>
103814         * gnulib-tool (func_import): Comment out code that spits out the
103815         new files with --dry-run.
103817 2005-09-18  Bruno Haible  <bruno@clisp.org>
103819         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103821 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103823         * lib/stat-time.h: New file.
103824         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103825         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103826         in a different way.
103827         (timespec_cmp): New function.
103828         * lib/utimecmp.c: Include stat-time.h.
103829         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103830         members exist, not on the obsolescent ST_MTIM_NSEC.
103831         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103833 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103835         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103837 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103839         * MODULES.html.sh (File system functions): Add stat-time.
103840         * modules/stat-time: New file.
103841         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103842         is now done in a different way, by the stat-time module.
103843         * modules/utimecmp (Depends-on): Add stat-time.
103845 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103847         * m4/st_mtim.m4: Remove.  Superseded by...
103848         * m4/stat-time.m4: New file.
103849         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103850         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103852 2005-09-15  Derek Price  <derek@ximbiot.com>
103854         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103856 2005-09-15  Derek Price  <derek@ximbiot.com>
103858         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103859         * lib/regex_internal.c: Ditto, using this...
103860         (__GNUC_PREREQ): ...new macro.
103861         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103862         using...
103863         (__GNUC_PREREQ): ...this new macro.
103865         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103867 2005-09-15  Derek Price  <derek@ximbiot.com>
103868             Paul Eggert  <eggert@cs.ucla.edu>
103870         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103871         changes, consolidating in...
103872         * lib/regex_internal.h: ...this file.
103874 2005-09-13  Jim Meyering  <jim@meyering.net>
103876         * lib/canon-host.c: Filter through gnu indent and reword comments
103877         slightly.
103878         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103880 2005-09-13  Derek Price  <derek@ximbiot.com>
103882         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103883         failure.
103884         Reported by Jim Meyering  <jim@meyering.net>.
103886 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103888         * lib/base64.c: Typo.
103889         (base64_encode): Put b64str in initialized data section.
103891 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103893         Merge glibc and coreutils changes into gnulib, plus a few
103894         extra fixes.
103895         * lib/md5.c: Use #error rather than a string.
103896         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103897         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103898         (__attribute__): Define to empty for non recent-GCC.
103899         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103900         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103901         Renamed from their non-__ counterparts, with new macros replacing
103902         them if not _LIBC.  Add __THROW attribute.
103903         (rol): Remove.
103904         (struct md5_ctx): Align buffer if using GCC.
103905         * lib/sha1.h (struct sha1_ctx): Likewise.
103906         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103907         The old name was backwards.
103908         (NOTSWAP): Remove; not used.
103909         (rol): New macro, moved here from md5.h.
103910         (sha1_process_block): Remove a FIXME that doesn't make sense.
103912 2005-09-12  Derek Price  <derek@ximbiot.com>
103914         Return usable errors from canon-host.
103915         * lib/canon-host.h: New file.
103916         * lib/canon-host.c (canon_host): Wrap...
103917         (canon_host_r): ...this new function, which now relies exclusively on
103918         getaddrinfo.
103919         (ch_strerror): New function.
103920         (last_cherror): New global.
103921         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103922         interface.
103923         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103924         void *.
103925         (freeaddrinfo): Free ai->ai_canonname when set.
103927 2005-09-12  Derek Price  <derek@ximbiot.com>
103929         Make canon-host require getaddrinfo.
103930         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103931         AC_LIBSOURCE canon-host.h.  Call...
103932         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103933         gl_GETADDRINFO.
103934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103936 2005-09-12  Derek Price  <derek@ximbiot.com>
103938         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103939         LGPL.
103940         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103942 2005-09-12  Derek Price  <derek@ximbiot.com>
103944         * lib/gai_strerror.c: Include config.h when available.  Include
103945         getaddrinfo.h before other headers to test interface.
103946         Reported by Larry Jones <lawrence.jones@ugs.com>.
103948 2005-09-12  Derek Price  <derek@ximbiot.com>
103949             Paul Eggert  <eggert@cs.ucla.edu>
103951         * modules/glob (Files): Add glob-libc.h.
103953 2005-09-12  Derek Price  <derek@ximbiot.com>
103954             Paul Eggert  <eggert@cs.ucla.edu>
103956         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103957         glob_.h, glob-libc.h.
103958         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103960 2005-09-12  Derek Price  <derek@ximbiot.com>
103961             Paul Eggert  <eggert@cs.ucla.edu>
103963         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103964         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103965         protecting things that should be done only in gnulib contexts.
103966         * lib/glob_.h: New file, containing only the glob things needed for
103967         gnulib.
103968         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103969         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103970         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103971         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103972         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103973         and to respect the namespace rules better.
103975 2005-09-08  Simon Josefsson  <jas@extundo.com>
103977         * modules/socklen: New file.
103979 2005-09-08  Simon Josefsson  <jas@extundo.com>
103981         * m4/socklen.m4: New file.
103983 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103985         * modules/utimens (Files): Add m4/utimbuf.m4, since
103986         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103987         Reported by Sergey Poznyakoff.
103989 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103991         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103992         definitions, since that's the preferred style in glibc.
103993         Fix a minor spacing issue, and update copyright notice to match
103994         glibc's.
103996 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103998         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
104000 2005-09-06  Simon Josefsson  <jas@extundo.com>
104002         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
104003         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
104005 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104007         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
104008         warning.
104010 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104012         * config/srclist.txt: Add glibc bug 1302.
104014 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
104016         Change bitset word type from unsigned int to unsigned long int,
104017         as this has better performance on typical 64-bit hosts.
104018         Port bitset code to hosts with unusual word sizes.
104019         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
104020         (build_collating_symbol):
104021         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
104022         argument is a bitset.  This is merely a style issue, but it makes
104023         it clearer that an entire array is expected.
104024         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
104025         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
104026         Port to the case where bitset_word is not the same as unsigned int.
104027         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104028         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
104029         Likewise.
104030         * lib/regexec.c (check_dst_limits_calc_pos_1,
104031         check_subexp_matching_top):
104032         (build_trtable, group_nodes_into_DFAstates):
104033         Likewise.
104034         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
104035         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
104036         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
104037         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
104038         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
104039         * lib/regcomp.c (optimize_subexps, lower_subexp):
104040         Work even if bitset_word has holes in its bitwise representation.
104041         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
104042         * lib/regexec.c (check_dst_limits_calc_pos_1,
104043         check_subexp_matching_top):
104044         Likewise.
104045         * lib/regex_internal.c (re_string_reconstruct):
104046         Don't assume UCHAR_MAX == 255.
104047         * lib/regex_internal.h (bitset_set_all): Likewise.
104048         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
104049         All uses changed.
104050         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
104051         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
104052         All uses changed.
104053         (BITSET_WORD_MAX): New macro.
104054         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
104055         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
104056         (bitset_empty, bitset_copy):
104057         Prefer sizeof (bitset) to multiplying it out ourselves.
104058         (bitset_not_merge): Remove; unused.
104059         (bitset_contain): Return bool, not unsigned int with one bit on.
104060         All callers changed.
104061         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
104062         alignment than re_node_set; do this by defining a new internal
104063         type struct dests_alloc and using it to allocate memory.
104065 2005-09-05  Bruno Haible  <bruno@clisp.org>
104067         * gnulib-tool (func_import): Fix comparison in handling of symbolic
104068         links.
104070 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
104072         * modules/size_max (Makefile.am): Add size_max.h
104074 2005-09-04  Derek Price  <derek@ximbiot.com>
104076         * gnulib-tool (func_import): Fix reversed $symbolic logic.
104078 2005-09-03  Simon Josefsson  <jas@extundo.com>
104080         * gnulib-tool: Fix typo.
104082 2005-09-03  Simon Josefsson  <jas@extundo.com>
104084         * config/srclist.txt: Add glibc bug 1293.
104086 2005-09-03  Derek Price  <derek@ximbiot.com>
104088         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
104089         From Larry Jones <lawrence.jones@ugs.com>.
104091 2005-09-02  Simon Josefsson  <jas@extundo.com>
104093         * modules/socklen: New file.
104095 2005-09-02  Simon Josefsson  <jas@extundo.com>
104097         * modules/havelib: New module.
104099         * modules/gettext, modules/iconv, modules/lock, modules/readline:
104100         Use havelib.
104102 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104104         Check for arithmetic overflow when calculating sizes, to prevent
104105         some buffer-overflow issues.  These patches are conservative, in the
104106         sense that when I couldn't determine whether an overflow was possible,
104107         I inserted a run-time check.
104108         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104109         macros.
104110         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104111         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104112         (re_xnrealloc, re_x2nrealloc): New inline functions.
104113         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104114         parse_bracket_exp):
104115         (build_equiv_class, build_charclass): Check for arithmetic overflow
104116         in size expression calculations.
104117         * lib/regex_internal.c (re_string_realloc_buffers):
104118         (build_wcs_upper_buffer, re_node_set_add_intersect):
104119         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104120         (re_dfa_add_node, register_state): Likewise.
104121         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104122         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104123         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104124         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104126 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104128         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104129         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104131 2005-09-02  Bruno Haible  <bruno@clisp.org>
104133         Support for lib vs. lib64 distinction on biarch platforms.
104134         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104135         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104138 2005-09-02  Bruno Haible  <bruno@clisp.org>
104140         * gnulib-tool (import): In the other first-use case, provide defaults
104141         as well.
104143 2005-09-02  Bruno Haible  <bruno@clisp.org>
104145         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104146         patches not yet found in the latest gettext release.
104148 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104150         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104151         to avoid a collision with bits/local_lim.h in glibc.
104152         All uses changed.  Problem reported by Dmitry V. Levin in
104153         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104155         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104156         bugs in int versus size_t comparisons.
104157         (re_string_context_at): Fix bug where the code assumed that
104158         Idx is signed.
104160         Use bool where appropriate.
104161         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104162         All callers changed.
104163         (calc_eclosure_iter): Likewise, for ROOT arg.
104164         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104165         (build_charclass_op): Likewise, for NON_MATCH arg.
104166         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104167         (re_string_construct_common): Likewise, for ICASE arg.
104168         * lib/regexec.c (re_search_2_stub, re_search_stub):
104169         Likewise, for RET_LEN arg.
104170         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104171         (set_regs): Likewise, for FL_BACKTRACK arg.
104172         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104173         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104174         (calc_eclosure_iter, parse_bracket_exp):
104175         Use bool for internal variables that are booleans.
104176         * lib/regexec.c (re_search_internal, check_matching,
104177         proceed_next_node):
104178         (set_regs, build_sifted_states, sift_states_bkref):
104179         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104180         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104181         (find_collation_sequence_value):
104182         Likewise.
104183         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104184         (re_node_set_compare):
104185         Return bool, not int. All callers changed.
104186         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104187         (build_trtable, check_node_accept): Likewise.
104188         * lib/regex_internal.h: Include stdbool.h.
104190         Fix bugs uncovered when converting to bool.
104191         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104192         failure instead of charging ahead blindly.
104193         * lib/regex_internal.c (register_state): Likewise.
104194         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104195         for freeing internal storage.
104196         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104197         bitset pieces used as boolean, to avoid undefined behavior
104198         on hosts that do int overflow checking.
104200 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104202         * config/srclist.txt: Add glibc bugs 1285-1287.
104204 2005-09-01  Jim Meyering  <jim@meyering.net>
104206         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104207         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104208         Require gl_STAT_MACROS, too.
104210 2005-09-01  Bruno Haible  <bruno@clisp.org>
104212         * gnulib-tool (import): In the first-use case, provide defaults.
104214 2005-09-01  Bruno Haible  <bruno@clisp.org>
104216         * gnulib-tool (func_import): Remove the .tmp files.
104218 2005-09-01  Bruno Haible  <bruno@clisp.org>
104220         * gnulib-tool (func_import): Fix handling of symbolic links.
104222 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104224         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104225         old glibc regex code mishandles strings longer than 2**31 bytes.
104226         This patch fixes this when the regex code is used in gnulib
104227         (i.e., outside glibc).
104229         This patch should not affect the use of the regex code inside
104230         glibc.  No doubt this problem also needs to be handled for glibc
104231         as well, but the result will be an incompatible change to the
104232         glibc ABI, and the old ABI will have to be supported too.  That
104233         can be the subject for another patch.
104235         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104236         governing whether the rest of this patch is active.  By default,
104237         the macro is disabled and the patch has no effect.
104238         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104239         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104240         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104241         (re_match_2, re_set_registers): Use the new types.
104242         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104243         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104244         New macros.
104245         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104246         (re_string_context_at, bin_tree_t, re_dfastate_t):
104247         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104248         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104249         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104250         (re_string_char_size_at, re_string_wchar_at):
104251         (re_string_elem_size_at):
104252         Use the new types and macros to port to 64-bit hosts.
104253         Use unsigned types for internal values, so that the code
104254         mostly works even for arrays larger than SSIZE_MAX.
104255         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104256         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104257         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104258         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104259         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104260         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104261         (calc_inveclosure, parse_dup_op, build_range_exp):
104262         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104263         (fetch_number, create_token_tree, mark_opt_subexp):
104264         Likewise.
104265         * lib/regex_internal.c (re_string_construct_common,
104266         create_ci_newstate):
104267         (create_cd_newstate, re_string_allocate, re_string_construct):
104268         (re_string_realloc_buffers, build_wcs_upper_buffer):
104269         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104270         (re_string_reconstruct, re_string_peek_byte_case):
104271         (re_string_fetch_byte_case, re_string_context_at):
104272         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104273         (re_node_set_init_copy, re_node_set_add_intersect):
104274         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104275         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104276         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104277         (re_acquire_state, re_acquire_state_context, register_state):
104278         Likewise.
104279         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104280         search_cur_bkref_entry):
104281         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104282         (re_search_internal, re_search_2_stub, re_search_stub)
104283         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104284         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104285         (update_cur_sifted_state, check_dst_limits):
104286         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104287         (check_subexp_limits, sift_states_bkref, merge_state_array):
104288         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104289         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104290         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104291         (expand_bkref_cache, check_node_accept_bytes):
104292         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104293         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104294         (acquire_init_state_context, check_halt_node_context):
104295         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104296         (sift_states_backward, clean_state_log_if_needed):
104297         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104298         (find_recover_state, transit_state_sb, transit_state_mb):
104299         (transit_state_bkref, build_trtable, match_ctx_clean):
104300         Likewise.
104301         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104302         to work around an assumption that REG_MISSING is negative.
104304         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104305         (seek_collating_symbol_entry) [defined _LIBC]:
104306         (lookup_collation_sequence_value) [defined _LIBC]:
104307         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104308         Use prototypes rather than old-style function definitions.
104309         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104310         (transit_state_sb) [0]:
104311         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104313         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104314         rm_eo.
104316         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104317         (optimize_subexps, lower_subexp):
104318         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104319         since the signed shift might overflow.  Use 1u<<31 instead.
104320         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104321         Likewise.
104322         * lib/regexec.c (check_dst_limits_calc_pos_1,
104323         check_subexp_matching_top): Likewise.
104325         * lib/regcomp.c (optimize_subexps, lower_subexp):
104326         Use CHAR_BIT rather than 8, for clarity.
104327         * lib/regexec.c (check_dst_limits_calc_pos_1):
104328         (check_subexp_matching_top): Likewise.
104329         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104330         have to worry about portability issues when shifting it left.
104331         Remove no-longer-needed test for table_size > 0.
104332         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104333         in a word, as the resulting behavior is undefined.
104334         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104335         in one case, a <= should have been an <, and in another case the
104336         whole test was missing.
104337         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104338         the standard name CHAR_BIT.
104339         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104340         this is not true on one's complement and signed-magnitude hosts.
104342         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104343         next_last_offset.
104344         (struct re_dfa_t): Remove unused member states_alloc.
104345         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104347 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104349         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104350         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104351         and large-file glibc and in 32-bit large-file Solaris.
104353 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104355         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104356         lengths fit in regoff_t; this isn't true if regoff_t is the same
104357         width as size_t.
104358         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104359         (= START + RANGE) instead of RANGE.  This avoids overflow
104360         problems when regoff_t is the same width as size_t.
104361         All callers changed.
104362         (re_search_2_stub): Check for overflow when adding the
104363         sizes of the two strings.
104364         (re_search_stub): Check for overflow when adding START
104365         to RANGE; if it occurs, substitute the extreme value.
104367 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104369         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104371 2005-08-31  Jim Meyering  <jim@meyering.net>
104373         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104374         a pointer-to-const.
104375         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104376         (register_state): Likewise.
104377         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104378         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104379         (group_nodes_into_DFAstates): Likewise.
104381 2005-08-31  Jim Meyering  <jim@meyering.net>
104383         * check-module: Add a FIXME comment.
104385 2005-08-31  Eric Blake  <ebb9@byu.net>
104387         * modules/unistd-safer (Files): Add unistd--.h.
104388         * modules/stdio-safer (Files): Add stdio--.h.
104390 2005-08-31  Derek Price  <derek@ximbiot.com>
104392         * lib/getdelim.c (getdelim): Return EOF on EOF.
104393         Reported by Larry Jones <lawrence.jones@ugs.com>.
104395 2005-08-31  Bruno Haible  <bruno@clisp.org>
104397         Avoid unnecessary diffs in the generated lib/Makefile.am.
104398         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104399         the generated files.
104400         (func_import): Don't set cmd.
104402 2005-08-31  Bruno Haible  <bruno@clisp.org>
104404         * lib/strstr.c: Include <stddef.h>, for NULL.
104405         * lib/strcasestr.c: Likewise.
104406         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104408 2005-08-31  Bruno Haible  <bruno@clisp.org>
104410         * gnulib-tool: New option --macro-prefix.
104411         (func_import): Use macro_prefix.
104412         (import): Handle option --macro-prefix.
104414 2005-08-31  Bruno Haible  <bruno@clisp.org>
104416         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104417         Also use new variables cached_lgpl, cached_libtool.
104419 2005-08-31  Bruno Haible  <bruno@clisp.org>
104421         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104422         always instantiating them.
104424 2005-08-31  Bruno Haible  <bruno@clisp.org>
104426         * gnulib-tool (func_import): Read the previous cached settings
104427         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104428         earlier added by gnulib but are now dropped. Warn when a gnulib file
104429         overwrites a non-gnulib file.
104431 2005-08-31  Bruno Haible  <bruno@clisp.org>
104433         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104434         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104435         projects that don't keep autogenerated files in CVS. Put into
104436         actioncmd only the specified modules, not the transitive closure.
104438 2005-08-31  Bruno Haible  <bruno@clisp.org>
104440         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104441         Create directories that shall be filled.
104442         (import): Don't look for gl_* macros in configure.ac. Recurse across
104443         all directories containing a gnulib-cache.m4 files, if meaningful.
104445 2005-08-31  Bruno Haible  <bruno@clisp.org>
104447         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104448         (import): Set seen_libtool when we see gl_LIBTOOL.
104450 2005-08-31  Bruno Haible  <bruno@clisp.org>
104452         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104453         declaration macro definitions from generated gnulib.m4.
104455 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104457         * lib/iconvme.h: Add prototype for iconv_alloc.
104459 2005-08-29  Simon Josefsson  <jas@extundo.com>
104461         * lib/iconvme.c: Fix errno.
104463 2005-08-29  Bruno Haible  <bruno@clisp.org>
104465         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104466         that it works when the directory contains spaces.
104468 2005-08-29  Bruno Haible  <bruno@clisp.org>
104470         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104472 2005-08-29  Bruno Haible  <bruno@clisp.org>
104474         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104475         Emit more advice.
104477 2005-08-29  Bruno Haible  <bruno@clisp.org>
104478         and Stepan Kasal  <kasal@ucw.cz>
104480         * check-module: If more parameters are given, check each of them
104481         separately; add more exceptions, as noted by Jim Meyering.
104482         (check_module): New procedure.
104483         (%exempt_header): Now contains all exceptions.
104485 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104487         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104489 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104491         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104493 2005-08-28  Bruno Haible  <bruno@clisp.org>
104495         * m4/gnulib-tool.m4: New file.
104497 2005-08-27  Jim Meyering  <jim@meyering.net>
104499         * modules/unistd-safer (Files): Add pipe-safer.c.
104500         * modules/fcntl-safer (Files): Add creat-safer.c.
104502 2005-08-27  Jim Meyering  <jim@meyering.net>
104504         * m4/stdlib-safer.m4: New file.  From coreutils.
104505         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104506         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104507         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104508         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104509         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104511 2005-08-27  Jim Meyering  <jim@meyering.net>
104513         * lib/fopen-safer.c: Merge minor changes from coreutils.
104514         * lib/dup-safer.c: Likewise.
104515         * lib/fd-safer.c: Likewise.
104517         Merge from coreutils.
104518         * lib/stdio--.h: New file.
104519         * lib/stdlib--.h: New file.
104520         * lib/mkstemp-safer.c: New file.
104522         GNU tar needs these.
104523         * lib/pipe-safer.c: New file.
104524         * lib/creat-safer.c: New file.
104525         * lib/fcntl--.h (creat): Define to creat_safer.
104526         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104527         * lib/unistd--.h (pipe): Define to pipe_safer.
104528         * lib/unistd-safer.h: Declare pipe_safer.
104530 2005-08-26  Simon Josefsson  <jas@extundo.com>
104532         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104533         Haible <bruno@clisp.org>.
104535 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104537         * lib/regex_internal.h: Remove all references to
104538         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104539         or better.
104540         (bitset_not, bitset_merge, bitset_not_merge):
104541         (bitset_mask, re_string_allocate, re_string_construct):
104542         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104543         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104544         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104545         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104546         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104547         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104548         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104549         (re_acquire_state_context):
104550         Remove unnecessary forward decls.
104551         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104552         Put __attribute at function definition,
104553         now that the function decl has been removed.
104554         * lib/regex_internal.c (re_string_peek_byte_case):
104555         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104556         Likewise.
104558 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104560         * m4/regex.m4: Add AC_PREREQ(2.50).
104561         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104563 2005-08-25  Simon Josefsson  <jas@extundo.com>
104565         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104566         __fsetlocking.
104568 2005-08-25  Simon Josefsson  <jas@extundo.com>
104570         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104571         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104572         GLIBC specific code.
104574 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104576         Make regex safe for g++.  This fixes one real bug (an "err"
104577         that should have been "*err").  g++ problem reported by
104578         Sam Steingold.
104579         * lib/regex_internal.h (re_calloc): New macro, consistent with
104580         re_malloc etc.  All callers of calloc changed to use re_calloc.
104581         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104582         not int.  All callers changed.
104583         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104584         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104585         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104586         (find_recover_state): Change "err" to "*err"; this fixes what
104587         appears to be a real bug.
104588         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104589         versus int.
104591 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104593         * modules/regex (Depends-on): Add malloc, since the code
104594         assumes that !malloc(0) means failure.
104596 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104598         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104600         alloca modernization/simplification for regex.
104601         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104602         needs to be at the start of the file, and can be moved into
104603         regex_internal.h and simplified.
104604         * lib/regex_internal.h: Include <alloca.h>.
104605         (__libc_use_alloca) [!defined _LIBC]: New macro.
104606         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104607         now works outside glibc.
104609 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104611         * config/srclist.txt: Add glibc bugs 1241, 1245.
104613 2005-08-25  Jim Meyering  <jim@meyering.net>
104615         * lib/open-safer.c: Include <config.h>.
104616         Otherwise, we'd lose LARGEFILE support in any file using
104617         e.g. "fcntl--.h"
104619 2005-08-25  Bruno Haible  <bruno@clisp.org>
104621         * m4/minmax.m4: Require autoconf 2.52.
104622         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104623         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104624         alternatives of translit over the alphabet.
104625         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104627 2005-08-24  Simon Josefsson  <jas@extundo.com>
104629         * tests/test-getpass.c: New file.
104631 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104633         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104634         for GNU regex features.
104636 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104638         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104639         * lib/regex.h (regerror): Likewise.
104641         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104642         requires this.  (The code never needed it.)
104644         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104645         All uses of recently-renamed identifiers changed to use the new,
104646         POSIX-compliant names.  The code will build and run just fine
104647         without these changes, but it's better to eat our own dog food
104648         and use the standard-conforming names.
104650         * lib/regex.h: Fix a multitude of POSIX name space violations.
104651         These changes have an effect only for programs that define
104652         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104653         do not change anything for programs compiled in the normal way.
104654         Also, there is no effect on the ABI.
104656         (_REGEX_SOURCE): New macro.
104657         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104658         defined and _GNU_SOURCE is not; this fixes a name space violation.
104660         Rename the following macros to obey POSIX requirements.
104661         The old names are still visible as macros if _REGEX_SOURCE is defined.
104662         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104663         RE_BACKSLASH_ESCAPE_IN_LISTS.
104664         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104665         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104666         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104667         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104668         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104669         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104670         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104671         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104672         (REG_INTERVALS): renamed from RE_INTERVALS.
104673         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104674         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104675         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104676         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104677         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104678         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104679         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104680         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104681         RE_UNMATCHED_RIGHT_PAREN_ORD.
104682         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104683         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104684         (REG_DEBUG): renamed from RE_DEBUG.
104685         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104686         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104687         unusual, since we can't clash with the POSIX REG_ICASE.
104688         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104689         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104690         (REG_NO_SUB): renamed from RE_NO_SUB.
104691         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104692         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104693         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104694         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104695         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104696         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104697         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104698         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104699         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104700         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104701         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104702         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104703         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104704         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104705         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104706         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104707         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104708         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104709         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104710         (REG_FIXED): Renamed from REGS_FIXED.
104711         (REG_NREGS): Renamed from RE_NREGS.
104713         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104714         of other REG_* macros, since POSIX says the user is allowed to
104715         #undef these macros selectively.
104717         (reg_errcode_t): Update comment stating what other tables need
104718         to be consistent.
104720         Rename the following enum values to obey POSIX requirements.
104721         The old names are still visible as macros.
104722         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104723         is not defined, since GNU is supposed to be a superset of POSIX as
104724         much as possible, and since we want reg_errcode_t to be a signed
104725         type for implementation consistency.
104726         (_REG_NOERROR): Renamed from REG_NOERROR.
104727         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104728         (_REG_BADPAT): Renamed from REG_BADPAT.
104729         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104730         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104731         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104732         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104733         (_REG_EBRACK): Renamed from REG_EBRACK.
104734         (_REG_EPAREN): Renamed from REG_EPAREN.
104735         (_REG_EBRACE): Renamed from REG_EBRACE.
104736         (_REG_BADBR): Renamed from REG_BADBR.
104737         (_REG_ERANGE): Renamed from REG_ERANGE.
104738         (_REG_ESPACE): Renamed from REG_ESPACE.
104739         (_REG_BADRPT): Renamed from REG_BADRPT.
104740         (_REG_EEND): Renamed from REG_EEND.
104741         (_REG_ESIZE): Renamed from REG_ESIZE.
104742         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104743         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104744         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104745         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104746         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104748         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104749         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104750         changed.  But support the old name if the new one is not defined
104751         and if _REGEX_SOURCE.
104753         Change the following member names in struct re_pattern_buffer.
104754         The old names are still supported if !_REGEX_SOURCE.
104755         The new names are always supported, regardless of _REGEX_SOURCE.
104756         (re_buffer): Renamed from buffer.
104757         (re_allocated): Renamed from allocated.
104758         (re_used): Renamed from used.
104759         (re_syntax): Renamed from syntax.
104760         (re_fastmap): Renamed from fastmap.
104761         (re_translate): Renamed from translate.
104762         (re_can_be_null): Renamed from can_be_null.
104763         (re_regs_allocated): Renamed from regs_allocated.
104764         (re_fastmap_accurate): Renamed from fastmap_accurate.
104765         (re_no_sub): Renamed from no_sub.
104766         (re_not_bol): Renamed from not_bol.
104767         (re_not_eol): Renamed from not_eol.
104768         (re_newline_anchor): Renamed from newline_anchor.
104770         Change the following member names in struct re_registers.
104771         The old names are still supported if !_REGEX_SOURCE.
104772         The new names are always supported, regardless of _REGEX_SOURCE.
104773         (rm_num_regs): Renamed from num_regs.
104774         (rm_start): Renamed from start.
104775         (rm_end): Renamed from end.
104777         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104778         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104779         Prepend __ to parameter names.
104781         Undo yesterday's changes.
104783 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104785         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104786         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104787         lib/regex.c.
104789 2005-08-24  Jim Meyering  <jim@meyering.net>
104791         Sync from coreutils.
104792         * m4/fcntl-safer.m4: New file.
104794         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104795         and object files for this module.
104797 2005-08-24  Jim Meyering  <jim@meyering.net>
104799         Sync from coreutils.
104800         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104802 2005-08-24  Jim Meyering  <jim@meyering.net>
104804         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104805         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104807 2005-08-24  Jim Meyering  <jim@meyering.net>
104809         * modules/fcntl-safer: New module.
104810         * modules/fts (Depends-on): Add fcntl-safer.
104811         * MODULES.html.sh (File descriptor based Input/Output):
104812         Add fcntl-safer.
104814 2005-08-24  Bruno Haible  <bruno@clisp.org>
104816         Support for unit test modules.
104817         * modules/README: Mention tests modules.
104818         * modules/TEMPLATE-TESTS: New file.
104819         * gnulib-tool: New options --extract-tests-module, --with-tests and
104820         --tests-base (unused for the moment).
104821         (testsbase, inctests): New variables.
104822         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104823         (func_verify_module): Exclude TEMPLATE-TESTS.
104824         (func_verify_nontests_module, func_verify_tests_module): New functions.
104825         (func_get_dependencies): Add implicit dependency for tests modules.
104826         (func_get_tests_module): New function.
104827         (func_modules_transitive_closure): When --with-tests was specified,
104828         include the unit tests as well, unless explicitly avoided.
104829         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104830         (func_emit_tests_Makefile_am): New function.
104831         (func_create_testdir): When --with-tests was specified, emit a
104832         tests/ directory.
104833         * MODULES.html.sh (Future developments): Update.
104835 2005-08-24  Bruno Haible  <bruno@clisp.org>
104837         * modules/tls-tests: New file.
104838         * tests/test-tls.c: New file, from GNU gettext.
104840 2005-08-24  Bruno Haible  <bruno@clisp.org>
104842         * modules/lock-tests: New file.
104843         * tests/test-lock.c: New file, from GNU gettext.
104845 2005-08-24  Bruno Haible  <bruno@clisp.org>
104847         * lib/lock.h: Add multiple inclusion guard.
104848         * lib/tls.h: Add multiple inclusion guard.
104850 2005-08-24  Bruno Haible  <bruno@clisp.org>
104852         * gnulib-tool: Add support for the --aux-dir option to
104853         --create-testdir, --create-megatestdir, --test, --megatest.
104854         (func_create_testdir, func_create_megatestdir): Optionally emit a
104855         AC_CONFIG_AUX_DIR directive.
104856         (create-testdir, create-megatestdir, test, megatest): Provide a
104857         default value for $auxdir.
104859 2005-08-24  Bruno Haible  <bruno@clisp.org>
104861         * gnulib-tool (import): Use compound statement instead of subshell
104862         where possible.
104864 2005-08-24  Bruno Haible  <bruno@clisp.org>
104866         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104868 2005-08-24  Bruno Haible  <bruno@clisp.org>
104870         * gnulib-tool (func_version): Update.
104872 2005-08-24  Bruno Haible  <bruno@clisp.org>
104874         * gnulib-tool (func_import, func_create_testdir,
104875         func_create_megatestdir): Quote all autoconf macro arguments.
104877 2005-08-24  Bruno Haible  <bruno@clisp.org>
104879         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104880         option --force, because --force causes the aclocal.m4 of each
104881         subdirectory to be newer than the corresponding config.h.in.
104883 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104885         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104886         All contents moved to gl_REGEX.
104887         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104888         assume that it does.
104890 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104892         * lib/regex.h (REG_NOSYS)
104893         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104894         Define, since POSIX requires it as of 2001.
104895         (_REG_ENOSYS)
104896         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104897         New private symbol, used to keep the enum signed in all cases.
104898         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104899         Youngman in
104900         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104902         * lib/regex_internal.c (re_string_skip_chars, register_state):
104903         (calc_state_hash):
104904         Remove forward decls; no longer needed now that we use prototypes.
104905         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104906         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104907         (clean_state_log_if_needed): Likewise.
104909 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104911         * config/srclist.txt: Add glibc bugs 1231-1233.
104913 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104915         Fix problems reported by Sam Steingold in
104916         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104917         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104918         assumed that reg_errcode_t is a signed type, which is not
104919         necessarily true if _XOPEN_SOURCE is not defined.
104920         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104921         since some compilers warn about it otherwise.
104923 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104925         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104926         (init_word_char, create_initial_state, duplicate_node_closure):
104927         (fetch_token, peek_token_bracket, build_range_exp):
104928         (build_collating_symbol): Remove forward decls; no longer needed
104929         now that we use prototypes.
104931         * lib/regcomp.c:
104932         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104933         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104934         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104935         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104936         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104937         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104938         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104939         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104940         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104941         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104942         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104943         (build_charclass, build_charclass_op, fetch_number, create_tree):
104944         (create_token_tree, mark_opt_subexp, duplicate_tree):
104945         Use prototypes rather than old-style definitions.
104947         * lib/regex_internal.c:
104948         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104949         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104950         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104951         (re_string_reconstruct, re_string_peek_byte_case):
104952         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104953         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104954         (re_node_set_init_copy, re_node_set_add_intersect):
104955         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104956         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104957         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104958         (re_acquire_state, re_acquire_state_context, register_state):
104959         (create_ci_newstate, create_cd_newstate, free_state):
104960         Likewise.
104961         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104962         re_search_2):
104963         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104964         (re_search_internal, prune_impossible_nodes):
104965         (acquire_init_state_context, check_matching, static):
104966         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104967         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104968         (update_regs, sift_states_backward, build_sifted_states):
104969         (clean_state_log_if_needed, merge_state_array):
104970         (update_cur_sifted_state, add_epsilon_src_nodes):
104971         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104972         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104973         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104974         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104975         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104976         (check_arrival, check_arrival_add_next_nodes):
104977         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104978         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104979         (check_node_accept_bytes, check_node_accept, extend_buffers):
104980         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104981         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104982         (sift_ctx_init):
104983         Likewise.
104985         * lib/regex_internal.h:
104986         (re_string_allocate, re_string_construct, re_string_reconstruct):
104987         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104988         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104989         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104990         (re_string_context_at, re_string_peek_byte_case):
104991         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104992         is defined, since we now use prototypes always.
104994         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104995         C89 or better.  All uses removed.
104997 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104999         * config/srclist.txt: Add glibc bugs 1220-1227.
105001 2005-08-20  Jim Meyering  <jim@meyering.net>
105003         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
105004         of unused local, dfa.
105006 2005-08-20  Bruno Haible  <bruno@clisp.org>
105008         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
105010 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105012         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
105013         (re_node_set_insert_last, re_dfa_add_node):
105014         Rename local variables to avoid GCC shadowing warnings.
105016 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105018         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
105019         [defined lint]: Suppress bogus uninitialized-variable warnings.
105021         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
105022         and let the caller return REG_ESPACE if out of space.  This
105023         removes an uninitialied-variable warning with GCC 4.0.1, and also
105024         avoids taking the address of a local variable.  All callers
105025         changed.
105027 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105029         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
105030         $LIBCSRC/posix/regexec.c.
105031         Add glibc bug 1217 for regcomp.c.
105033 2005-08-19  Jim Meyering  <jim@meyering.net>
105035         * lib/regexec.c (proceed_next_node): Redo local variables to
105036         avoid GCC shadowing warnings.
105038 2005-08-18  Bruno Haible  <bruno@clisp.org>
105040         * lib/strstr.c (strstr): Fix return value in multibyte case.
105041         * lib/strcasestr.c (strcasestr): Likewise.
105043 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105045         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
105047 2005-08-17  Jim Meyering  <jim@meyering.net>
105049         Make the %s format (seconds since the epoch) work for a negative
105050         number and when used with a zero-padded field width, e.g. %015s.
105052         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
105053         label so that it precedes the code to set `digits'.  Otherwise,
105054         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
105055         print `00-22'.  Now, it prints `-0022', as it should.
105057 2005-08-17  Bruno Haible  <bruno@clisp.org>
105059         * modules/strstr (Files): Add m4/mbrtowc.m4.
105060         (Depends-on): Add mbuiter.
105062 2005-08-17  Bruno Haible  <bruno@clisp.org>
105064         * modules/strcasestr: New file.
105065         * MODULES.html.sh (String handling, based on ANSI C 89): Add
105066         strcasestr.
105068 2005-08-17  Bruno Haible  <bruno@clisp.org>
105070         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
105072 2005-08-17  Bruno Haible  <bruno@clisp.org>
105074         * modules/mbuiter: New file.
105075         * MODULES.html.sh (Extended multibyte and wide character utilities):
105076         Add mbuiter.
105078 2005-08-17  Bruno Haible  <bruno@clisp.org>
105080         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
105081         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
105083 2005-08-17  Bruno Haible  <bruno@clisp.org>
105085         * m4/strcasestr.m4: New file.
105087 2005-08-17  Bruno Haible  <bruno@clisp.org>
105089         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
105090         * lib/strstr.c: Completely rewritten, with multibyte locale support.
105092 2005-08-17  Bruno Haible  <bruno@clisp.org>
105094         * lib/strcasestr.h: New file.
105095         * lib/strcasestr.c: New file.
105097 2005-08-17  Bruno Haible  <bruno@clisp.org>
105099         * lib/strcasecmp.c: Use mbuiter.h.
105101 2005-08-17  Bruno Haible  <bruno@clisp.org>
105103         * lib/mbuiter.h: New file.
105105 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105108         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105109         and gl_GETOPT are both invoked via different paths (as happens
105110         with GNU tar CVS because it uses both argp and getopt), the former
105111         wins.
105113 2005-08-16  Bruno Haible  <bruno@clisp.org>
105115         * modules/tls: New file.
105116         * MODULES.html.sh (Multithreading): Add tls.
105118 2005-08-16  Bruno Haible  <bruno@clisp.org>
105120         * modules/strnlen1: New file.
105121         * MODULES.html.sh (String handling): Add strnlen1.
105123 2005-08-16  Bruno Haible  <bruno@clisp.org>
105125         * modules/strcase (Files): Add m4/mbrtowc.m4.
105126         (Depends-on): Add strnlen1, mbchar.
105128 2005-08-16  Bruno Haible  <bruno@clisp.org>
105130         * modules/mbiter: New file.
105131         * MODULES.html.sh (Extended multibyte and wide character utilities):
105132         Add mbiter.
105134 2005-08-16  Bruno Haible  <bruno@clisp.org>
105136         * modules/mbfile: New file.
105137         * MODULES.html.sh (Extended multibyte and wide character utilities):
105138         Add mbfile.
105140 2005-08-16  Bruno Haible  <bruno@clisp.org>
105142         * modules/mbchar: New file.
105143         * MODULES.html.sh (Extended multibyte and wide character utilities):
105144         New section.
105146 2005-08-16  Bruno Haible  <bruno@clisp.org>
105148         * m4/tls.m4: New file, from GNU gettext.
105150 2005-08-16  Bruno Haible  <bruno@clisp.org>
105152         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105153         always.
105154         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105156 2005-08-16  Bruno Haible  <bruno@clisp.org>
105158         * m4/mbiter.m4: New file.
105160 2005-08-16  Bruno Haible  <bruno@clisp.org>
105162         * m4/mbfile.m4: New file.
105164 2005-08-16  Bruno Haible  <bruno@clisp.org>
105166         * m4/mbchar.m4: New file.
105168 2005-08-16  Bruno Haible  <bruno@clisp.org>
105170         * lib/tls.h: New file, from GNU gettext.
105171         * lib/tls.c: New file, from GNU gettext.
105173 2005-08-16  Bruno Haible  <bruno@clisp.org>
105175         * lib/strnlen1.h: New file.
105176         * lib/strnlen1.c: New file.
105178 2005-08-16  Bruno Haible  <bruno@clisp.org>
105180         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105181         (mbi_init): Update.
105182         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105183         NUL byte, not after it.
105185 2005-08-16  Bruno Haible  <bruno@clisp.org>
105187         * lib/strcase.h (strcasecmp): Add note in comments.
105188         * lib/strncasecmp.c: Use code from strcasecmp.c.
105189         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105190         (strcasecmp): Work correctly in multibyte locales.
105192 2005-08-16  Bruno Haible  <bruno@clisp.org>
105194         * lib/mbiter.h: New file.
105196 2005-08-16  Bruno Haible  <bruno@clisp.org>
105198         * lib/mbfile.h: New file.
105200 2005-08-16  Bruno Haible  <bruno@clisp.org>
105202         * lib/mbchar.h: New file.
105203         * lib/mbchar.c: New file.
105205 2005-08-16  Bruno Haible  <bruno@clisp.org>
105207         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105208         the valid ones. Makes the comparison operations transitive:
105209         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105210         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105212 2005-08-15  Simon Josefsson  <jas@extundo.com>
105214         * modules/ssize_t (License): Change to 'unlimited'.
105216         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105218 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105220         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105221         Add comments for each pending glibc patch.
105223 2005-08-15  Bruno Haible  <bruno@clisp.org>
105225         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105226         __cplusplus is defined.
105228 2005-08-14  Jim Meyering  <jim@meyering.net>
105230         Sync from coreutils.
105232         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105233         Use the hash-table-based cycle-detection code not just when
105234         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105235         Reported by James Youngman in
105236         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105237         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105238         FTS_TIGHT_CYCLE_CHECK.
105239         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105240         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105241         once again.
105242         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105243         * lib/fts.c (fd_safer): Remove decl.
105244         Include fcntl--.h rather than unistd-safer.h
105245         (fts_safe_changedir): Don't call fd_safer; no longer needed
105246         now that we include fcntl--.h.
105248 2005-08-12  Simon Josefsson  <jas@extundo.com>
105250         * modules/getndelim2: Use ssize_t module.
105251         * modules/getnline: Likewise.
105252         * modules/safe-read: Likewise.
105253         * modules/xreadlink: Likewise.
105255         * modules/ssize_t: New file.
105257 2005-08-12  Simon Josefsson  <jas@extundo.com>
105259         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105261 2005-08-12  Simon Josefsson  <jas@extundo.com>
105263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105264         ssize_t.
105266 2005-08-12  Simon Josefsson  <jas@extundo.com>
105268         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105269         readline, getdelim and check_version.
105270         (Support for systems lacking ISO C 99: Sizes of integer types):
105271         Add size_max.
105273 2005-08-12  Bruno Haible  <bruno@clisp.org>
105275         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105277 2005-08-11  Simon Josefsson  <jas@extundo.com>
105279         * modules/readline: New file.
105281         * modules/strnlen (Files): Add strnlen.h.
105283 2005-08-11  Simon Josefsson  <jas@extundo.com>
105285         * m4/readline.m4: New file.
105287 2005-08-11  Simon Josefsson  <jas@extundo.com>
105289         * lib/readline.h, readline.c: New file.
105291 2005-08-11  Simon Josefsson  <jas@extundo.com>
105293         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105294         gl_AVOID.
105296 2005-08-11  Bruno Haible  <bruno@clisp.org>
105298         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105300 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105302         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105304 2005-08-10  Simon Josefsson  <jas@extundo.com>
105306         * tests/test-iconvme.c: New file.
105308 2005-08-10  Simon Josefsson  <jas@extundo.com>
105310         * m4/strnlen.m4: New file.
105312         * m4/strndup.m4: Don't check for strnlen declaration, done in
105313         strnlen.m4.
105315 2005-08-10  Simon Josefsson  <jas@extundo.com>
105317         * lib/strndup.c: Use strnlen.h.
105319         * lib/strnlen.h: New file.
105321 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105323         * README: Typos.
105325 2005-08-02  Simon Josefsson  <jas@extundo.com>
105327         * modules/readline: New file.
105329 2005-08-02  Simon Josefsson  <jas@extundo.com>
105331         * modules/getdelim: New file.
105333         * modules/getline: Rewrite, don't use getndelim2.
105335 2005-08-02  Simon Josefsson  <jas@extundo.com>
105337         * m4/getline.m4: Separate out getdelim stuff into separate module.
105339         * m4/getdelim.m4: New file.
105341 2005-08-02  Simon Josefsson  <jas@extundo.com>
105343         * lib/getline.h, getline.c: Rewrite.
105345         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105347 2005-07-31  Bruno Haible  <bruno@clisp.org>
105349         * lib/lock.h (gl_lock_initializer): New macro.
105350         (gl_lock_define_initialized): Use it.
105351         (gl_rwlock_initializer): New macro.
105352         (gl_rwlock_define_initialized): Use it.
105353         (gl_recursive_lock_initializer): New macro.
105354         (gl_recursive_lock_define_initialized): Use it.
105356 2005-07-30  Karl Berry  <karl@gnu.org>
105358         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105359         Report from Ben Pfaff, regarding getopt.
105361 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105363         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105364         normal way.
105365         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105366         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105367         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105368         (gl_GETOPT): Use the new macros.  Most of the implementation
105369         is moved to the new macros.  This is for programs like Emacs
105370         that don't want all the functionality of gl_GETOPT.
105372 2005-07-26  Bruno Haible  <bruno@clisp.org>
105374         * m4/lock.m4: Update from GNU gettext.
105376 2005-07-26  Bruno Haible  <bruno@clisp.org>
105378         * lib/lock.h: Update from GNU gettext.
105379         * lib/lock.c: Update from GNU gettext.
105381 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105383         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105384         obsolescent AC_TRY_RUN.  Include the default includes files, for
105385         'exit'.
105387 2005-07-24  Bruno Haible  <bruno@clisp.org>
105389         * modules/visibility: New file.
105390         * MODULES.html.sh (Misc): Add visibility.
105392 2005-07-24  Bruno Haible  <bruno@clisp.org>
105394         * m4/visibility.m4: New file.
105396 2005-07-24  Bruno Haible  <bruno@clisp.org>
105398         * doc/visibility.texi: New file.
105400 2005-07-22  Bruno Haible  <bruno@clisp.org>
105402         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105403         $(ALLOCA_H), redundant through BUILT_SOURCES.
105404         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105405         redundant through BUILT_SOURCES.
105406         * modules/byteswap (Makefile.am): Remove explicit dependency on
105407         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105408         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105409         $(FNMATCH_H), redundant through BUILT_SOURCES.
105410         * modules/getopt (Makefile.am): Remove explicit dependency on
105411         $(GETOPT_H), redundant through BUILT_SOURCES.
105412         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105413         redundant through BUILT_SOURCES.
105414         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105415         redundant through BUILT_SOURCES.
105416         * modules/stdbool (Makefile.am): Remove explicit dependency on
105417         $(STDBOOL_H), redundant through BUILT_SOURCES.
105418         * modules/stdint (Makefile.am): Remove explicit dependency on
105419         $(STDINT_H), redundant through BUILT_SOURCES.
105420         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105421         Remove explicit dependency on $(SYSEXITS_H).
105422         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105424 2005-07-18  Simon Josefsson  <jas@extundo.com>
105426         * lib/check-version.c (check_version): Accept identical versions too.
105428 2005-07-18  Bruno Haible  <bruno@clisp.org>
105430         * modules/lock: New file.
105431         * MODULES.html.sh (Multithreading): New section.
105433 2005-07-18  Bruno Haible  <bruno@clisp.org>
105435         * m4/lock.m4: New file, from GNU gettext.
105437 2005-07-18  Bruno Haible  <bruno@clisp.org>
105439         * lib/lock.h: New file, from GNU gettext.
105440         * lib/lock.c: New file, from GNU gettext.
105442 2005-07-18  Bruno Haible  <bruno@clisp.org>
105444         * lib/lock.h (gl_once_t): New type.
105445         (gl_once_define, gl_once): New macros.
105446         * lib/lock.c (fresh_once): New variable.
105447         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105448         functions.
105450 2005-07-16  Simon Josefsson  <jas@extundo.com>
105452         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105453         workaround, suggested by Bruno.
105455 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105457         * modules/xalloc (Depends-on): Add xalloc-die.
105458         * modules/xvasprintf (Depends-on): Add xalloc-die.
105460 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105462         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105463         with a minor change.
105465 2005-07-15  Bruno Haible  <bruno@clisp.org>
105467         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105468         When using lib/poll.c, define poll as rpl_poll.
105470 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105472         * modules/argp (Depends-on): Remove unlocked-io.
105474 2005-07-14  Derek Price  <derek@ximbiot.com>
105476         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105477         for glob symlink bug.
105479 2005-07-14  Bruno Haible  <bruno@clisp.org>
105481         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105482         Instead, test for *_unlocked function declarations directly.
105484 2005-07-11  Simon Josefsson  <jas@extundo.com>
105486         * modules/size_max: New file.
105488         * modules/xsize: Depend on size_max module for size_max.m4.
105490 2005-07-11  Simon Josefsson  <jas@extundo.com>
105492         * lib/size_max.h: New file.
105494 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105496         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105497         copyright symbol and the year.
105498         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105499         (version_etc_va): Use parameterized copyright notice.
105500         Reword to conform to the current GNU coding standards.
105502 2005-07-11  Karl Berry  <karl@gnu.org>
105504         * doc/gnulib.texi (Quoting): new node.
105505         (Initial import): more info, from Patrice.
105507 2005-07-11  Bruno Haible  <bruno@clisp.org>
105509         * gnulib-tool (func_usage): Document option --avoid.
105510         (Command line options): Handle --avoid.
105511         (func_acceptable): New function.
105512         (func_modules_transitive_closure): Use it.
105514 2005-07-11  Bruno Haible  <bruno@clisp.org>
105516         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105517         Reported by Jim Meyering.
105519 2005-07-10  Bruno Haible  <bruno@clisp.org>
105521         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105522         Needed when size_t is smaller than 'unsigned int'.
105523         Reported by Paul Eggert.
105525 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105527         * modules/argp (Depends-on): Add unlocked-io
105529 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105531         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105532         block of defines.
105534 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105536         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105537         fix now.
105539 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105540         and Paul Eggert  <eggert@cs.ucla.edu>
105542         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105543         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105547         * modules/regex (Files): Add lib/regex_internal.c,
105548         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105549         (Depends-on): Add extensions.
105550         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105552 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105554         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105555         pathconf.
105556         * m4/same.m4 (gl_SAME): Likewise.
105557         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105559         * m4/regex.m4: Adjust to new libc regex implementation.
105560         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105561         all the .c and .h parts of (the new) regex.
105562         Quote the m4 stuff better.
105563         Check for RE_ICASE bug of old gnulib.
105564         Check for REG_STARTEND of recent libc.
105565         Rename local variables from jm_* to gl_*.
105566         Quote operand of "test -f".
105567         Say "recent enough" version of libc, not "version 2".
105568         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105569         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105570         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105571         Remove check for btowc, isascii.
105572         Require AM_LANGINFO_CODESET.
105574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105576         * lib/regex.c, regex.h: Sync from libc.
105577         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105578         * lib/regexec.c:
105579         New files, synced from libc, except that regex_internal.h
105580         currently has a small porting fix.
105582 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105584         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105585         regex_internal.c, regexec.c.
105586         Add regex_internal.h too, but as a comment, since the libc version
105587         is currently broken in gnulib mode.
105589 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105591         Support programs like Emacs that use gnulib but not gettext.
105592         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105593         * modules/gettext-h: New file.
105594         * modules/gettext (Files): Remove lib/gettext.h.
105595         (Depends-on): Add gettext-h.
105596         (Makefile.am): Remove lib_SOURCES.
105597         * modules/argmatch, modules/c-stack, modules/closeout:
105598         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105599         * modules/execute, modules/file-type, modules/getaddrinfo:
105600         * modules/getopt, modules/human, modules/javacomp:
105601         * modules/javaexec, modules/mkdir-p, modules/obstack:
105602         * modules/openat, modules/pagealign_alloc, modules/pipe:
105603         * modules/quotearg, modules/regex, modules/rpmatch:
105604         * modules/unicodeio, modules/userspec, modules/version-etc:
105605         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105606         * modules/xsetenv:
105607         Depend on gettext-h, not gettext.
105609 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105611         * gnulib-tool (func_import): Add support for 'public domain' license.
105612         * modules/alloca, modules/atexit, modules/memmove:
105613         Now public domain, not GPL.
105614         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105615         * modules/realloc, modules/strerror, modules/strtod:
105616         Now LGPL, not GPL.
105618 2005-07-05  Bruno Haible  <bruno@clisp.org>
105620         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105621         autoconf CVS. Needed for mingw.
105623 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105625         Remove the dependency of the strftime module on the tzset module.
105626         * modules/strftime (Depends-on): Remove dependency on tzset.
105628 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105630         Remove the dependency of the strftime module on the tzset module.
105631         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105632         gl_FUNC_TZSET_CLOBBER.
105634 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105636         Remove the dependency of the strftime module on the tzset module.
105637         * lib/strftime.c (my_strftime)
105638         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105639         Copy the input structure, to work around some of the bug with
105640         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105641         Solaris releases, you should also use the tzset module, but we won't
105642         require it as a dependency any more since we don't want LGPLed code
105643         to depend on GPLed code.
105645 2005-07-02  Jim Meyering  <jim@meyering.net>
105647         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105648         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105649         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105650         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105652 2005-07-02  Jim Meyering  <jim@meyering.net>
105654         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105656 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105658         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105659         declares only 'struct timespec;' (!).
105661 2005-07-01  Jim Meyering  <jim@meyering.net>
105663         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105664         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105665         * lib/save-cwd.c, tempname.c:
105666         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105667         and don't include <sys/file.h>).
105669 2005-06-29  Jim Meyering  <jim@meyering.net>
105671         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105672         type name.  Use the variable name instead.
105673         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105674         Likewise.
105676 2005-06-28  Simon Josefsson  <jas@extundo.com>
105678         * modules/check-version (Files): Add check-version.m4.
105680 2005-06-28  Simon Josefsson  <jas@extundo.com>
105682         * m4/check-version.m4: New file, suggested by Jim Meyering
105683         <jim@meyering.net>.
105685 2005-06-28  Simon Josefsson  <jas@extundo.com>
105687         * lib/check-version.h, lib/check-version.c: New files.
105689 2005-06-28  Simon Josefsson  <jas@extundo.com>
105691         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105692         collision with global variable.  Better indentation.  Don't
105693         increment buffer pointer beyond buffer end.  Based on comments
105694         from Paul Eggert <eggert@cs.ucla.edu>.
105696         * lib/base64.h: Indent.
105698 2005-06-28  Simon Josefsson  <jas@extundo.com>
105700         * doc/gnulib.texi (Library version handling): New section.
105702 2005-06-28  Jim Meyering  <jim@meyering.net>
105704         * check-module (find_included_lib_files): Hard-code another
105705         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105706         but modules/fts-lgpl (correctly) does not list those files.
105708         * modules/canonicalize (Files): Add lib/pathmax.h.
105710 2005-06-25  Simon Josefsson  <jas@extundo.com>
105712         * modules/check-version: New file.
105714 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105716         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105717         initializer of struct addrinfo, as an indication that we don't
105718         care how many members the structure has.
105720 2005-06-24  Derek Price  <derek@ximbiot.com>
105721         and Bruno Haible  <bruno@clisp.org>
105723         Remove stat module & update lstat.
105724         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105725         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105726         * m4/stat.m4: Remove this file.
105728 2005-06-24  Derek Price  <derek@ximbiot.com>
105729         and Bruno Haible  <bruno@clisp.org>
105731         Remove stat module & update lstat.
105732         * lib/stat.c: Remove this file...
105733         (slash_aware_lstat): ...moving this content and its support...
105734         * lib/lstat.c (rpl_lstat): ...into here.
105735         * lib/lstat.h: New file.
105737 2005-06-24  Derek Price  <derek@ximbiot.com>
105738         and Bruno Haible  <bruno@clisp.org>
105740         Remove stat module & update lstat.
105741         * config/srclist.txt (libc sources): Remove stat.
105743 2005-06-24  Derek Price  <derek@ximbiot.com>
105744         and Bruno Haible  <bruno@clisp.org>
105746         Remove stat module & update lstat.
105747         * MODULES.html.sh (stat): Remove.
105748         * MODULES.html: Regenerated.
105749         * modules/lstat (Description): Correct function name.
105750         (Files): Add "lstat.h".
105751         (Depends-on): Remove stat, add xalloc, stat-macros.
105752         * modules/stat: Remove this file.
105753         (Include): Add "lstat.h", remove <sys/stat.h>.
105755 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105757         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105758         (ranged_convert): Don't save conversion in a temporary struct.
105759         This causes a warning with GCC 4.0.0, and anyway in the typical
105760         case it's not worth the extra 100 bytes or so of code.
105761         (ranged_convert, __mktime_internal): When calling a function via a
105762         pointer P, use P () rather than (*P) (), as we now assume C89 or
105763         better.
105765 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105767         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105768         "who -r" failed to give output.  Problem reported by Tim Waugh.
105770         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105771         (xcalloc): Use it to avoid needless tests.
105772         Problem reported by Jim Meyering.
105774 2005-06-20  Derek Price  <derek@ximbiot.com>
105776         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105777         unnecessary for Autoconfs > 2.59c.
105779 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105781         * lib/argp.h (__option_is_short): Check upper limit of
105782         __key. Isprint() requires its argument to have the value
105783         of an unsigned char or EOF.
105785 2005-06-16  Jim Meyering  <jim@meyering.net>
105787         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105788         when either N or S is zero.
105790 2005-06-16  Derek Price  <derek@ximbiot.com>
105792         * m4/bison.m4: Declare YACC & YFLAGS precious.
105794 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105796         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105797         multibyte string or pattern, fall back on unibyte matching.
105798         Problem reported by James Youngman.
105800 2005-06-08  Bruno Haible  <bruno@clisp.org>
105802         * modules/csharpcomp: New file.
105803         * MODULES.html.sh (C#): Add csharpcomp.
105805 2005-06-08  Bruno Haible  <bruno@clisp.org>
105807         * m4/csharpcomp.m4: New file, from GNU gettext.
105809 2005-06-08  Bruno Haible  <bruno@clisp.org>
105811         * lib/csharpcomp.h: New file, from GNU gettext.
105812         * lib/csharpcomp.c: New file, from GNU gettext.
105813         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105815 2005-06-08  Bruno Haible  <bruno@clisp.org>
105817         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105818         warning on mingw.
105820 2005-06-07  Derek Price  <derek@ximbiot.com>
105822         Sync from CVS.
105823         * lib/glob_.h: Indent nested #ifdef.
105825 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105827         Sync from coreutils.
105828         Use "file name" when talking about file names, instead of "filename"
105829         or "path", as per the GNU coding standards.
105830         * lib/mkdir-p.c: Renamed from makepath.c.
105831         (make_dir_parents): Renamed from make_path.  All callers changed.
105832         * lib/mkdir-p.h: Likewise.  All includers changed.
105833         * lib/filenamecat.c: Renamed from path-concat.c.
105834         (file_name_concat): Renamed from path_concat.  All callers changed.
105835         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105836         * lib/filenamecat.h: Likewise.  All includers changed.
105837         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105838         in comments or local variable names.
105839         * lib/basename.c: Likewise.
105840         * lib/canonicalize.c, canonicalize.h: Likewise.
105841         * lib/dirname.c, dirname.h: Likewise.
105842         * lib/euidaccess.c: Likewise.
105843         * lib/exclude.c: Likewise
105844         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105845         * lib/fsusage.c, fsuage.h: Likewise.
105846         * lib/fts.c, fts_.h: Likewise.
105847         * lib/getcwd.c: Likewise.
105848         * lib/getloadavg.c: Likewise.
105849         * lib/mkstemp.c: Likewise.
105850         * lib/mountlist.c, mountlist.h: Likewise.
105851         * lib/openat.c, openat.h: Likewise.
105852         * lib/readlink-stub.c: Likewise.
105853         * lib/readutmp.c, readutmp.h: Likewise.
105854         * lib/rename.c: Likewise.
105855         * lib/rmdir.c: Likewise.
105856         * lib/same.c: Likewise.
105857         * lib/savedir.c: Likewise.
105858         * lib/stripslash.c: Likewise.
105859         * lib/tempname.c: Likewise.
105860         * lib/xreadlink.c: Likewise.
105861         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105862         All uses changed.
105863         * lib/exclude.h: Likewise.
105865         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105866         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105867         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105868         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105869         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105870         files have been getting away with it for years (MORE/BSD 4.3
105871         is extinct now).
105872         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105873         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105875         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105876         Define to 256, not 255, as per modern POSIX.
105878 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105880         Sync from coreutils.
105881         Use "file name" when talking about file names, instead of "filename"
105882         or "path", as per the GNU coding standards.
105883         * MODULES.html.sh: mkdir-p renamed from makepath.
105884         filenamecat renamed from path-concat.
105885         * modules/filenamecat: Renamed from modules/path-concat.
105886         (Files): filenamecat.h and filenamecat.c renamed from
105887         path-concat.h and path-concat.c.
105888         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105889         (Include): filenamecat.h, not path-concat.h.
105890         * modules/mkdir-p: Renamed from modules/makepath.
105891         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105892         makepath.c.
105893         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105894         (Include): mkdir-p.h, not makepath.h.
105896 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105898         Sync from coreutils.
105899         * m4/mkdir-p.m4: Renamed from makepath.m4.
105900         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105901         Rename files from makepath.c to mkdir-p.c, and from
105902         makepath.h to mkdir-p.h.
105903         * m4/filenamecat.m4: Renamed from path-concat.m4.
105904         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105905         Rename files from path-concat.c to filenamecat.c,
105906         and from path-concat.h to filenamecat.h.
105907         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105908         "file name" in local variables or comments.
105909         * m4/rename.m4: Likewise.
105911 2005-06-01  Bruno Haible  <bruno@clisp.org>
105913         * modules/csharpexec: New file.
105914         * MODULES.html.sh (C#): New section.
105916 2005-06-01  Bruno Haible  <bruno@clisp.org>
105918         * m4/csharp.m4: New file, from GNU gettext.
105919         * m4/csharpexec.m4: New file, from GNU gettext.
105921 2005-06-01  Bruno Haible  <bruno@clisp.org>
105923         * lib/csharpexec.h: New file, from GNU gettext.
105924         * lib/csharpexec.c: New file, from GNU gettext.
105925         * lib/csharpexec.sh.in: New file, from GNU gettext.
105927 2005-05-31  Derek Price  <derek@ximbiot.com>
105928             Paul Eggert  <eggert@cs.ucla.edu>
105930         Sync from cvs.
105931         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105933 2005-05-31  Derek Price  <derek@ximbiot.com>
105934             Paul Eggert  <eggert@cs.ucla.edu>
105936         Sync from cvs.
105937         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105939 2005-05-29  Derek Price  <derek@ximbiot.com>
105941         * config/srclist.txt (glob_.h, glob.c): Add these files.
105943 2005-05-29  Derek Price  <derek@ximbiot.com>
105945         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105946         * modules/glob: New file.
105947         * modules/getlogin_r: Add link to POSIX spec in description.
105949 2005-05-29  Derek Price  <derek@ximbiot.com>
105950             Paul Eggert  <eggert@cs.ucla.edu>
105952         * m4/glob.m4: New file.
105954 2005-05-29  Derek Price  <derek@ximbiot.com>
105955             Paul Eggert  <eggert@cs.ucla.edu>
105957         * lib/glob_.h, lib/glob.c: New files.
105959 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105961         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105962         * modules/fts-lgpl (Depends-on): Remove gettext.
105964 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105966         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105967         and don't require gt_INTTYPES_PRI.
105969 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105971         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105973         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105974         the configuration hassle isn't worth it.
105975         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105976         (LONGEST_MODIFIER, PRIuMAX): Remove.
105978 2005-05-27  Bruno Haible  <bruno@clisp.org>
105980         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105982 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105985         _POSIX_PTHREAD_SEMANTICS for Solaris.
105987 2005-05-25  Derek Price  <derek@ximbiot.com>
105989         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105991 2005-05-25  Derek Price  <derek@ximbiot.com>
105992             Paul Eggert  <eggert@cs.ucla.edu>
105994         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105995         * lib/getlogin_r.c, getlogin_r.h: New files.
105997 2005-05-25  Bruno Haible  <bruno@clisp.org>
105998             Derek Price  <derek@ximbiot.com>
106000         * lib/getlogin_r.h: Simplify API documentation.
106002 2005-05-23  Derek Price  <derek@ximbiot.com>
106004         * modules/minmax (Files): Add m4/minmax.m4.
106005         (configure.ac): Add gl_MINMAX.
106007 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106009         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
106010         so that unistd-safer.h (GPL'ed code) need not be included.
106012 2005-05-22  Bruno Haible  <bruno@clisp.org>
106014         * m4/minmax.m4: New file.
106015         Based on a patch by Derek Price <derek@ximbiot.com>.
106017 2005-05-22  Bruno Haible  <bruno@clisp.org>
106019         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
106020         (INT64_MIN): Fix definition.
106021         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
106023         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
106024         NEED_SIGNED_INT_TYPES.
106026         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
106027         HAVE_SYSTEM_INTTYPES.
106029 2005-05-22  Bruno Haible  <bruno@clisp.org>
106031         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
106032         Also include <sys/param.h> if it defines MIN, MAX.
106033         Based on a patch by Derek Price <derek@ximbiot.com>.
106035 2005-05-21  Jim Meyering  <jim@meyering.net>
106037         * modules/fts (Files): Add m4/inttypes-pri.m4.
106038         (Depends-on): Add lstat and remove gettext.  Alphabetize.
106040 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106042         New fts module.
106043         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
106044         (setup_dir, free_dir): New functions.
106045         (enter_dir, leave_dir): Define trivial
106046         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
106047         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
106048         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
106049         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
106050         Move to fts-cycle.c.
106051         (fts_open): Use setup_dir.
106052         (fts_close): Use free_dir.
106053         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
106054         This adds a label and some gotos, but the alternatives were messier.
106055         Check for memory allocation failure when entering a dir.
106056         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
106057         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
106058         (FTS): New member fts_cycle, that is a union that contains the
106059         old active_dir_ht and cycle_state.  All uses changed to mention
106060         fts_cycle.ht and fts_cycle.state.
106061         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
106062         fts.c, with the following changes:
106063         (setup_dir, free_dir): New functions.
106064         (enter_dir): Now returns bool.  Return true if successful, false
106065         if memory exhausted.  All callers changed.
106066         Do not bother partly cleaning up on
106067         memory allocation failure; that is free_dir's job.
106068         However, free ad if hash_insert fails, to avoid memory leak.
106069         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
106070         fts->fts_options to see which union member to use.
106072 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
106075         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
106077 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106079         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
106081 2005-05-20  Jim Meyering  <jim@meyering.net>
106083         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
106084         Now a macro, to pacify GCC.
106086 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106088         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
106089         of -1.
106091 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106093         * lib/chown.c (rpl_chown): Return -1 on failure.
106095 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106097         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
106098         Don't check for stddef.h.
106099         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
106100         don't use its results.
106101         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
106102         since we include them unconditionally.  Don't require
106103         AM_STDBOOL_H, since stdbool is a prerequisite.
106104         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
106105         since we assume C89 or better.
106106         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106107         as we don't use their results.
106108         Don't check for fchdir, memmove, memset, strrchr, as we use
106109         them unconditionally.
106110         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106111         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106113 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106115         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106116         Include <stddef.h> unconditionally, since we assume C89 now.
106117         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106118         * lib/fts.c: Include fts_.h first, to check interface.
106119         Do not include intprops.h; no longer needed.
106120         Include cycle-check.h and hash.h, since fts_.h no longer does.
106121         Remove unnecessary casts of closedir to void.
106122         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106123         decide whether to decrement nlinks.
106124         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106125         (FTS): Use struct hash_table * instead of Hash_table, so that
106126         we no longer need to include hash.h here.
106128 2005-05-18  Jim Meyering  <jim@meyering.net>
106130         * modules/dirfd (License): Change to LGPL.  Most of the code
106131         is already in the public domain.
106133 2005-05-18  Jim Meyering  <jim@meyering.net>
106135         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106136         Reported by Yoann Vandoorselaere.
106138 2005-05-17  Jim Meyering  <jim@meyering.net>
106140         * m4/fts.m4: New file, from coreutils.
106142 2005-05-17  Jim Meyering  <jim@meyering.net>
106144         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106146 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106148         Sync from coreutils.
106149         * m4/unlinkdir.m4: New file.
106151 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106153         Sync from coreutils.
106154         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106155         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106156         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106157         White space changes only.
106158         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106159         special.
106160         * lib/yesno.c: Include getline.h, not ctype.h.
106161         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106162         Use getline to remove arbitrary restriction on response length.
106164 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106166         * config/srclist-update: Spell out "Street" in FSF postal
106167         mail address; this is the style the FSF seems to prefer.
106169         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106170         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106171         this updates FSF postal mail address.
106173         Sync from coreutils.
106174         * modules/unlinkdir: New file.
106175         * modules/yesno (Depends-on): Add getline.
106176         * MODULES.html.sh (File system functions): Add unlinkdir.
106178 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106180         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106181         lib/strsep.h:
106182         Change the initial comment to refer to GPL, not LGPL.
106183         gnulib-tool will change it to LGPL as needed.
106185         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106186         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106187         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106188         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106189         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106190         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106191         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106192         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106193         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106194         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106195         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106196         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106197         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106198         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106199         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106200         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106201         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106202         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106203         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106204         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106205         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106206         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106207         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106208         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106209         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106210         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106211         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106212         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106213         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106214         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106215         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106216         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106217         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106218         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106219         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106220         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106221         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106222         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106223         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106224         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106225         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106226         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106227         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106228         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106229         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106230         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106231         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106232         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106233         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106234         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106235         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106236         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106237         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106238         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106239         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106240         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106241         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106242         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106243         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106244         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106245         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106246         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106247         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106248         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106249         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106250         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106251         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106252         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106253         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106254         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106255         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106256         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106257         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106258         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106259         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106260         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106261         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106262         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106263         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106264         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106265         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106266         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106267         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106268         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106269         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106270         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106271         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106272         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106273         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106274         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106275         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106276         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106277         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106278         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106279         lib/yesno.c, lib/yesno.h:
106280         Update FSF postal mail address.
106282 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106284         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106285         tests/test-memmem.c, tests/test-stpncpy.c:
106286         Update FSF postal mail address.
106288 2005-05-13  Bruno Haible  <bruno@clisp.org>
106290         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106291         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106292         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106293         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106294         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106295         Add support for 64-bit integers in the MSVC compiler.
106297 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106299         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106301 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106303         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106305 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106307         * doc/getdate.texi (General date syntax): Don't say that date
106308         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106309         Problem reported by Nic Ferrier.
106311 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106313         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106314         specified in ai_socktype. Fix invalid ai_protocol
106315         check. ai_protocol is usually set to 0 or depending on
106316         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106317         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106318         ai_socktype / ai_protocol in the returned addrinfo structure.
106320 2005-05-10  Simon Josefsson  <jas@extundo.com>
106322         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106323         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106325 2005-05-10  Karl Berry  <karl@gnu.org>
106327         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106328         (from http://www.gnu.org/licenses).
106329         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106330         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106331         fdl.texi suffices.
106333 2005-05-10  Karl Berry  <karl@gnu.org>
106335         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106336         (COPYING.DOC): remove.
106338         * config/srclist-update: new FSF address.
106340 2005-05-10  Derek Price  <derek@ximbiot.com>
106342         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106343         possible.
106345 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106346             Bruno Haible  <bruno@clisp.org>
106348         * modules/inet_ntop: New file.
106349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106350         inet_ntop.
106352 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106353             Bruno Haible  <bruno@clisp.org>
106355         * m4/inet_ntop.m4: New file.
106357 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106358             Bruno Haible  <bruno@clisp.org>
106360         * lib/inet_ntop.h: New file.
106361         * lib/inet_ntop.c: New file, from glibc with modifications.
106363 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106365         * modules/time_r (License): Change to LGPL.
106366         * modules/extensions (License): Change to LGPL.  Actually,
106367         the license is more permissive than that, but currently gnulib-tool
106368         doesn't know how to handle more-permissive licenses.
106370         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106371         Problem reported by Dave Love.
106373 2005-05-08  Jim Meyering  <jim@meyering.net>
106375         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106376         blank.
106378 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106380         * modules/argmatch (Depends-on): Add stdbool.
106381         * modules/backupfile (Depends-on): Likewise.
106382         * modules/chdir-long (Depends-on): Likewise.
106383         * modules/closeout (Depends-on): Likewise.
106384         * modules/cycle-check (Depends-on): Likewise.
106385         * modules/dirname (Depends-on): Likewise.
106386         * modules/fnmatch (Depends-on): Likewise.
106387         * modules/fsusage (Depends-on): Likewise.
106388         * modules/fwriteerror (Depends-on): Likewise.
106389         * modules/getcwd (Depends-on): Likewise.
106390         * modules/getloadavg (Depends-on): Likewise.
106391         * modules/hard-locale (Depends-on): Likewise.
106392         * modules/makepath (Depends-on): Likewise.
106393         * modules/mountlist (Depends-on): Likewise.
106394         * modules/nanosleep (Depends-on): Likewise.
106395         * modules/posixtm (Depends-on): Likewise.
106396         * modules/quotearg (Depends-on): Likewise.
106397         * modules/readtokens (Depends-on): Likewise.
106398         * modules/readtokens0 (Depends-on): Likewise.
106399         * modules/readutmp (Depends-on): Likewise.
106400         * modules/save-cwd (Depends-on): Likewise.
106401         * modules/strftime (Depends-on): Likewise.
106402         * modules/userspec (Depends-on): Likewise.
106403         * modules/utimecmp (Depends-on): Likewise.
106404         * modules/xgetcwd (Depends-on): Likewise.
106405         * modules/xnanosleep (Depends-on): Likewise.
106406         * modules/xstrtod (Depends-on): Likewise.
106407         * modules/yesno (Depends-on): Likewise.
106409 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106411         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106412         needless checks.
106414 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106416         Merge from coreutils.  Among other things,
106417         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106418         * lib/fd-safer.c: New file.
106419         * lib/fcntl-safer.h, open-safer.c: Remove.
106420         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106421         * lib/dup-safer.c: Include unistd-safer.h first.
106422         Don't include errno.h.
106423         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106424         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106425         * lib/file-type.c: Rely on file-type.h change.
106426         * lib/getloadavg.c: Include unistd-safer.h.
106427         (getloadavg): Use safer open.
106428         * lib/getusershell.c: Include "stdio-safer.h".
106429         (getusershell): Use safer fopen.
106430         * lib/long-options.c (long_options): Use NULL rather than 0.
106431         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106432         'free'.
106433         * lib/modechange.c: Likewise.
106434         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106435         (MODE_DONE): New constant.
106436         (struct mode_change): Remove 'next' member.
106437         (make_node_op_equals): New function; like the old one of the
106438         same name, except it allocates an array.
106439         (mode_compile, mode_create_from_ref): Use it.
106440         (mode_compile): Allocate result as an array, not a linked list.
106441         Parse octal string ourself, so that we catch mistakes like "+0".
106442         (mode_adjust): Arg is an array, not a linked list.
106443         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106444         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106445         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106446         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106447         Remove.  This is now stat-macros.h's job.
106448         (talloc): Remove.  All callers replaced by xalloc, so that
106449         our invokers don't have to worry about reporting memory failures.
106450         (make_node_op_equals): Remove.
106451         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106452         New constants.
106453         (struct mode_change): Moved here from modechange.h.
106454         (mode_append_entry): Remove.
106455         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106456         apps to have incorrect behavior.  Use simpler algorithm for head
106457         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106458         Detect more invalid usages rather than having somewhat-random behavior.
106459         Don't insert an "a=" action, as that leads to incorrect behavior.
106460         (mode_compile, mode_create_from_ref): Return NULL on error instead
106461         of an enum, since now there's only one way to have an error.  All
106462         callers changed.
106463         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106464         at the correct time.  Simplify calculation of "+u" and its ilk.
106465         Don't mishandle "+X".
106466         (mode_free): Remove "register" and localize decls.
106467         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106468         (struct mode_change): Move to modechange.c; callers don't
106469         need to see this stuff.
106470         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106471         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106472         (mode_change, mode_adjust): Reflect the new signatures noted above.
106473         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106474         that might redefine system include files.
106475         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106476         (my_usleep): Use NULL rather than (void *) 0.
106477         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106478         Use siginterrupt to specify that system calls should be interrupted.
106479         (rpl_nanosleep): Move initialization of suspended closer to call of
106480         my_usleep.
106481         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106482         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106483         (desirable_utmp_entry): New function.
106484         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106485         using x2nrealloc, to simplify logic.
106486         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106487         size calculation.  Do not assume utmp file is a regular file.
106488         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106489         (READ_UTMP_CHECK_PIDS): New constant.
106490         * lib/save-cwd.c: Include unistd-safer.h.
106491         (save_cwd): Use fd_safer.
106492         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106493         [!_LIBC] Include "stat-macros.h" instead.
106494         * lib/unistd-safer.h (fd_safer): New decl.
106496 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106498         * modules/getloadavg (Depends-on): Add unistd-safer.
106499         * modules/getusershell (Depends-on): Add stdio-safer.
106500         * modules/lstat (Depends-on): Remove xalloc.
106501         * modules/mkstemp (Depends-on): Add stat-macros.
106502         * modules/modechange (Depends-on): Remove xstrtol.
106503         Add stat-macros, xalloc.
106504         * modules/save-cwd (Depends-on): Add unistd-safer.
106505         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106506         * modules/unistd-safer (Files): Add lib/fd-safer.c
106507         (Makefile.am): Remove lib_SOURCES.
106509         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106510         Remove fcntl-safer; unistd-safer supersedes it.
106512 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106514         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106515         AC_HEADER_STAT.
106516         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106517         (gl_PREREQ_CHOWN): Remove.
106518         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106519         it.  Don't require AC_HEADER_STAT.
106520         (gl_PREREQ_LSTAT): Remove.
106521         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106522         Don't require AC_HEADER_STAT.
106523         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106524         (gl_PREREQ_RMDIR): Remove.
106525         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106526         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106527         the stat-macros module a prerequisite.
106528         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106529         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106530         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106531         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106532         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106533         variable names.
106534         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106535         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106536         variable prefixes.
106537         * m4/fcntl-safer.m4: Remove.
106538         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106540         Invoke gl_PREREQ_FD_SAFER.
106541         (gl_PREREQ_FD_SAFER): New macro.
106542         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106543         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106544         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106545         Remove duplicate call to AC_LIBOBJ(readutmp).
106546         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106549         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106551 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106553         * MODULES.html.sh (Misc): Add byteswap.
106555 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106557         * modules/getcwd (Depends-on): Add extensions.
106558         * modules/openat (Depends-on): Likewise.
106560 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106562         * modules/byteswap: New file.
106564 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106566         * m4/byteswap.m4: New file.
106568 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106570         * lib/byteswap_.h: New file.
106572 2005-04-25  Karl Berry  <karl@gnu.org>
106574         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106576 2005-04-25  Albert Chin  <china@thewrittenword.com>
106578         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106579         Toolkit C bug.
106581 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106583         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106584         (func_ln_if_changed): Remove forcibly for no error message
106585         in case file does not exist.
106587 2005-04-19  Simon Josefsson  <jas@extundo.com>
106589         * gnulib-tool (Options): Make --symlink mean --symbolic.
106591 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106593         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106595 2005-04-16  Simon Josefsson  <jas@extundo.com>
106597         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106599 2005-04-15  Simon Josefsson  <jas@extundo.com>
106601         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106603 2005-04-15  Simon Josefsson  <jas@extundo.com>
106605         * gnulib-tool: Rename --symlink to --symbolic.
106607 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106609         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106610         symbolic links to files instead of copying/moving.  Add --aux-dir,
106611         specifying directory relative --dir where auxiliary build tools
106612         are placed.
106614 2005-04-14  Bruno Haible  <bruno@clisp.org>
106616         * modules/allocsa (License): Change to LGPL.
106617         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106619 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106621         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106622         that "UTC +1 second" continues to work.  Problem reported
106623         by Dmitry V. Levin.
106624         (relunit_snumber): New rule.
106625         (relunit): Use it.
106627 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106629         * lib/getdate.y (universal_time_zone_table): New constant.
106630         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106631         universal_time_zone_table.
106632         (lookup_zone): Prefer universal_time_zone_table to
106633         local_time_zone_table, so that "GMT" time stamps are allowed in
106634         London during the summer.  Problem reported by Ian Abbott.
106636 2005-04-12  Jim Meyering  <jim@meyering.net>
106638         * lib/human.c (humblock): Set *options even when returning due to
106639         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106640         warning from gcc-4.
106642 2005-04-09  Jim Meyering  <jim@meyering.net>
106644         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106645         -Wuninitialized: initialize tm0.tm_year.
106647 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106649         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106650         count, since there's no maximum.  All uses changed.
106651         Add member dsts_seen.
106652         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106653         not being INT_MAX.
106654         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106655         Use pc_rels_seen to decide whether a date is absolute.
106657         * lib/getdate.y (number): Don't overwrite year.
106658         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106659         check.
106661 2005-04-02  Simon Josefsson  <jas@extundo.com>
106663         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106664         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106666 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106668         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106669         where no absolute path name can be longer than PATH_MAX.
106671 2005-03-27  Jim Meyering  <jim@meyering.net>
106673         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106675 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106677         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106678         "one's complement" -> "ones' complement" in comment, as per Knuth.
106679         "value of type" -> "type or expression" in comment.
106680         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106682 2005-03-26  Jim Meyering  <jim@meyering.net>
106684         Comment nits.
106685         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106686         Correct typos: s/or/of/.
106688 2005-03-26  Jim Meyering  <jim@meyering.net>
106690         * modules/check-include-files: Move to ../ and rename to...
106691         * check-module: ...this.
106693 2005-03-25  Jim Meyering  <jim@meyering.net>
106695         * modules/xvasprintf (Files): Add xalloc.h.
106697 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106699         * modules/gettext (Files): config/config.rpath ->
106700         build-aux/config.rpath
106701         * modules/iconv (Files): Likewise.
106702         Problem reported by Oskar Liljeblad.
106704 2005-03-23  Jim Meyering  <jim@meyering.net>
106706         * modules/check-include-files: New script to check for
106707         missing dependencies, multiple includes, etc.
106709         * modules/c-strtold (Depends-on): Add xalloc.
106710         * modules/c-strtod (Depends-on): Add xalloc.
106711         * modules/hash (Depends-on): Add xalloc.
106712         (Files): Remove lib/xalloc.h.
106714         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106715         * modules/userspec (Files): Add lib/inttostr.h.
106717 2005-03-23  Jim Meyering  <jim@meyering.net>
106719         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106721 2005-03-22  Jim Meyering  <jim@meyering.net>
106723         * modules/stat-macros: New module.
106724         * modules/canonicalize, modules/euidaccess, modules/file-type,
106725         * modules/filemode, modules/lchown, modules/makepath,
106726         * modules/rmdir, modules/stat: Depend on new stat-macros module
106727         rather than listing lib/stat-macros.h manually.
106728         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106730 2005-03-22  Jim Meyering  <jim@meyering.net>
106732         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106734 2005-03-22  Bruno Haible  <bruno@clisp.org>
106736         * config/srclist.txt: Replace target directory 'config' with
106737         'build-aux'.
106738         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106739         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106740         ../build-aux/.
106742 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106744         * modules/chdir-long (Depends-on): Add mempcpy.
106746         * modules/acl, modules/backupfile, modules/c-strtod,
106747         modules/c-strtold, modules/canon-host, modules/canonicalize,
106748         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106749         modules/exclude, modules/exitfail, modules/file-type,
106750         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106751         modules/getdate, modules/getline, modules/getpagesize,
106752         modules/getpass, modules/getugroups, modules/group-member,
106753         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106754         modules/inttostr, modules/long-options, modules/makepath,
106755         modules/md5, modules/memcasecmp, modules/memcoll,
106756         modules/modechange, modules/mountlist, modules/path-concat,
106757         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106758         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106759         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106760         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106761         modules/strftime, modules/strndup, modules/strverscmp,
106762         modules/timespec, modules/unlocked-io, modules/userspec,
106763         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106764         modules/yesno:
106765         Remove lib_SOURCES line from Makefile.am section, as this is now
106766         done automatically by the corresponding Autoconf macro.
106768 2005-03-21  Jim Meyering  <jim@meyering.net>
106770         Changes imported from coreutils.
106772         * lib/cycle-check.c: Don't include xalloc.h.
106774         * lib/path-concat.c: Don't include assert.h.
106775         (path_concat): Remove assertion that would have triggered
106776         for ABASE starting with more than one slash.
106777         Reported by Andreas Schwab.
106779         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106780         properly when ABASE is an absolute file name.
106781         Correct the description of this function.
106782         Include <assert.h>.
106783         Add an assertion and a test driver.
106784         This fixes a bug introduced on 2004-07-02.
106785         Andreas Schwab reported the resulting failure of cp --parents:
106786         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106788 2005-03-21  Jim Meyering  <jim@meyering.net>
106790         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106791         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106793 2005-03-21  Jim Meyering  <jim@meyering.net>
106794         and  Paul Eggert  <eggert@cs.ucla.edu>
106796         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106797         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106798         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106799         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106800         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106801         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106802         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106803         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106804         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106805         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106806         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106807         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106808         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106809         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106810         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106811         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106812         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106813         for these modules.
106815 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106817         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106818         (which shouldn't happen), generate nothing instead of returning 0
106819         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106821 2005-03-16  Bruno Haible  <bruno@clisp.org>
106823         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106824         HAVE_LONGLONG_64BIT.
106826 2005-03-16  Bruno Haible  <bruno@clisp.org>
106828         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106829         HAVE_LONGLONG_64BIT.
106831 2005-03-16  Bruno Haible  <bruno@clisp.org>
106833         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106834         HAVE_LONGLONG_64BIT.
106836 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106838         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106839         reliably distinguish strftime failure from empty output on POSIX
106840         hosts.
106842 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106844         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106845         (iconv_string): Don't guess a size-zero buffer, as that might cause
106846         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106847         result would be 'too large', where 'too large' is (heuristically)
106848         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106849         overflow concerns.  This will prevent some unwanted malloc failures
106850         when the inputs are very large.
106852 2005-03-15  Karl Berry  <karl@gnu.org>
106854         * config/srclist.txt (config.rpath): from gettext.
106855         * config/config.rpath: update.
106857 2005-03-15  Bruno Haible  <bruno@clisp.org>
106859         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106860         to 'negate'.
106862         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106863         variable.
106865         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106866         results.
106868 2005-03-14  Simon Josefsson  <jas@extundo.com>
106870         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106871         <fx@gnu.org>.
106873 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106875         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106876         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106877         intprops.h.
106878         * lib/strtol.c: Likewise.
106880 2005-03-14  Jim Meyering  <jim@meyering.net>
106882         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106883         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106884         to be nonzero so that we (and caller) can detect the difference
106885         between a valid zero-length expansion and an error return, even
106886         when the underlying strftime fails before writing anything into
106887         that location.
106889 2005-03-14  Bruno Haible  <bruno@clisp.org>
106891         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106892         Update from GNU gettext 0.14.3.
106894 2005-03-10  Jim Meyering  <jim@meyering.net>
106896         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106898 2005-03-10  Jim Meyering  <jim@meyering.net>
106900         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106901         so that this module works on systems without fchdir.
106903 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106905         Factor int-properties macros into a single file, except for
106906         glibc-related files.
106907         * lib/intprops.h: New file.
106908         * lib/getloadavg.c: Include it instead of limits.h.
106909         (INT_STRLEN_BOUND): Remove.
106910         * lib/human.c: Include intprops.h.
106911         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106912         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106913         302/1000.
106914         * lib/inttostr.h: Include intprops.h instead of limits.h.
106915         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106916         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106917         for consistency with intprops.h.
106918         (time_t_is_integer, twos_complement_arithmetic): Use them.
106919         * lib/sig2str.h: Include <signal.h>, intprops.h.
106920         (INT_STRLEN_BOUND): Remove.
106921         * lib/strftime.c (TYPE_SIGNED): Remove.
106922         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106923         * lib/strtol.c: Adjust comments to match intprops.h.
106924         * lib/userspec.c: Include intprops.h.
106925         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106926         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106927         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106928         instead of rolling our own expressions.
106929         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106931         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106932         instead of int.
106933         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106934         the right thing even if adding 1900 would overflow.  Similarly
106935         for tm_mon + 1 and tm_yday + 1.
106936         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106937         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106938         (DO_SIGNED_NUMBER): New macro.
106939         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106941 2005-03-07  Bruno Haible  <bruno@clisp.org>
106943         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106945 2005-03-07  Bruno Haible  <bruno@clisp.org>
106947         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106949 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106951         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106952         (func_import): Only replace files via --import when they have actually
106953         changed.
106955 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106957         * m4/mmap-anon.m4: New file.
106958         * m4/pagealign_alloc.m4: New file.
106960 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106961             Bruno Haible  <bruno@clisp.org>
106963         * modules/pagealign_alloc: New file.
106964         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106966 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106967             Bruno Haible  <bruno@clisp.org>
106969         * lib/pagealign_alloc.h: New file.
106970         * lib/pagealign_alloc.c: New file.
106972 2005-03-03  Bruno Haible  <bruno@clisp.org>
106974         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106975         Use an all-permissive copyright notice, recommended by RMS.
106977 2005-03-02  Bruno Haible  <bruno@clisp.org>
106979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106980         of AIX, the replacement has to be done only after <string.h> is
106981         included, therefore not in config.h. stpncpy.h does the replacement,
106982         and stpncpy.c uses it.
106984 2005-03-02  Bruno Haible  <bruno@clisp.org>
106986         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106987         stpncpy.c uses it.
106989 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106991         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106992         The workaround isn't strictly needed for POSIX conformance, and
106993         it's too much of a pain to configure and maintain.  We'll ask
106994         people to fix their kernels instead.
106995         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106996         (NANOSLEEP_BUG_WORKAROUND): Remove.
106997         (xnanosleep): Remove the workaround.
106999 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107001         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
107002         Reported by Derek Price.
107003         (Include): Add "timespec.h".
107005         * modules/xnanosleep (Depends-on): Remove gethrxtime.
107007 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107009         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
107010         to detect nanosleep bug.
107012 2005-03-01  Bruno Haible  <bruno@clisp.org>
107014         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
107016 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107018         * modules/gethrxtime: New file.
107019         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
107020         (Depends-on): Add gethrxtime.
107021         (configure.ac): Add gl_XNANOSLEEP.
107022         (Makefile.am): Remove lib_SOURCES line.
107024 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107026         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
107027         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
107029 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107031         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
107032         * lib/timespec.h (gettime): Return void, since it always
107033         succeeds now.  All uses changed.
107034         * lib/gettime.c (gettime): Likewise.
107035         [HAVE_NANOTIME]: Prefer nanotime.
107036         Assume gettimeofday succeeds, as POSIX requires.
107037         Assime time () succeeds, since other code already does.
107038         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
107039         (timespec_subtract): Remove.
107040         (NANOSLEEP_BUG_WORKAROUND): New constant.
107041         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
107042         things considerably.  Use it only on GNU/Linux hosts, since the
107043         workaround shouldn't be needed elsewhere.
107045 2005-02-24  Bruno Haible  <bruno@clisp.org>
107047         * modules/gettext (Files): Add m4/glibc2.m4.
107049 2005-02-24  Bruno Haible  <bruno@clisp.org>
107051         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
107052         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
107053         * m4/progtest.m4:
107054         Update from GNU gettext 0.14.2.
107055         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
107057 2005-02-24  Bruno Haible  <bruno@clisp.org>
107059         * lib/localcharset.c: Update from GNU gettext 0.14.2.
107060         * lib/config.charset: Update from GNU gettext 0.14.2.
107062 2005-02-24  Bruno Haible  <bruno@clisp.org>
107064         * lib/gettext.h: Update from GNU gettext 0.14.2.
107066 2005-02-23  Simon Josefsson  <jas@extundo.com>
107068         * m4/iconvme.m4: New file.
107070 2005-02-23  Jim Meyering  <jim@meyering.net>
107072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
107073         change.
107074         Thanks to Bruno Haible for catching it.
107076 2005-02-22  Simon Josefsson  <jas@extundo.com>
107078         * modules/iconvme: New file.
107080         * MODULES.html.sh: Add iconvme.
107082 2005-02-22  Simon Josefsson  <jas@extundo.com>
107084         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
107086 2005-02-22  Simon Josefsson  <jas@extundo.com>
107088         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
107090 2005-02-22  Jim Meyering  <jim@meyering.net>
107092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
107093         s/ifndef/ifdef/.
107095 2005-02-20  Neil Conway  <neilc@samurai.com>
107097         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
107098         returned by OSX/Darwin if the specified buffer is not large
107099         enough for the hostname.
107101 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107103         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
107104         pass it to _help, otherwise the latter coredumps trying to
107105         dereference state.root_argp.
107107 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107109         * modules/chdir-long (Depends-on): Add memrchr.
107110         * modules/memrchr (Files): Add lib/memrchr.h.
107111         (Include): "memrchr.h".
107113 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107115         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107117 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107119         * lib/memrchr.h: New file.
107120         * lib/chdir-long.c: Include it.
107121         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107122         Don't bother including stddef.h.
107124 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107126         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107127         inclusion.
107128         Include <sys/types.h>, for dev_t.
107129         (ME_DUMMY, ME_REMOTE): Move from here....
107130         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107131         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107132         Dmitry V. Levin.
107133         Include mountlist.h first, to test the interface.
107135 2005-01-29  Bruno Haible  <bruno@clisp.org>
107137         * lib/progname.c (program_name): Initialize.
107138         Needed when linking statically on MacOS X.
107140 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107142         Sync from coreutils.
107143         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107144         (Depends-on): Add c-strtod.
107145         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107147 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107149         Sync from coreutils.
107150         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107152         Remove files that are specific to coreutils.
107153         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107155 2005-01-28  Bruno Haible  <bruno@clisp.org>
107157         * modules/javacomp: New file.
107158         * MODULES.html.sh (Java): Add javacomp.
107160 2005-01-28  Bruno Haible  <bruno@clisp.org>
107162         * m4/javacomp.m4: New file, from GNU gettext.
107164 2005-01-28  Bruno Haible  <bruno@clisp.org>
107166         * lib/javacomp.sh.in: New file, from GNU gettext.
107167         * lib/javacomp.h: New file, from GNU gettext.
107168         * lib/javacomp.c: New file, from GNU gettext.
107170 2005-01-26  Simon Josefsson  <jas@extundo.com>
107172         * lib/gai_strerror.c: Use GPL in header.
107174 2005-01-26  Bruno Haible  <bruno@clisp.org>
107176         * modules/javaexec: New file.
107177         * MODULES.html.sh (Java): Add javaexec.
107179 2005-01-26  Bruno Haible  <bruno@clisp.org>
107181         * m4/javaexec.m4: New file, from GNU gettext.
107183 2005-01-26  Bruno Haible  <bruno@clisp.org>
107185         * lib/javaexec.sh.in: New file, from GNU gettext.
107186         * lib/javaexec.h: New file, from GNU gettext.
107187         * lib/javaexec.c: New file, from GNU gettext.
107189 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107191         * modules/lchown (Depends-on): Remove lchown.h
107193 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107195         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107196         must be defined if the header file was not found, in order
107197         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107199 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107201         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107202         initializers for struct pentry_state.
107203         (__argp_error): Check return value of __asprintf
107204         (__argp_failure): Translate error message
107206         * lib/argp-parse.c: Removed braces around the expansion of N_()
107208 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107210         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107211         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107212         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107213         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107214         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107215         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107216         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107217         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107218         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107219         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107220         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107221         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107222         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107223         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107224         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107225         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107226         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107227         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107228         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107229         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107230         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107231         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107232         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107233         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107234         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107235         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107236         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107237         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107238         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107239         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107240         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107241         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107242         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107243         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107244         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107245         Use an all-permissive copyright notice, recommended by RMS.
107247 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107249         * modules/chdir-long (Depends-on): Remove mempcpy.
107251 2005-01-21  Jim Meyering  <jim@meyering.net>
107253         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107254         same value as for Solaris 9.
107256         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107257         component length.  This included changing the parameter to be
107258         of type `char *' rather than `char const *'.
107259         * lib/chdir-long.h (chdir_long): Update prototype.
107261         * lib/openat.c (fdopendir, fstatat): New functions.
107262         * lib/openat.h: Include headers required for use of DIR and struct
107263         stat.
107264         [AT_SYMLINK_NOFOLLOW]: Define.
107265         (fdopendir, fstatat): Add prototypes.
107267 2005-01-21  Bruno Haible  <bruno@clisp.org>
107269         * modules/classpath: New file.
107270         * MODULES.html.sh (Java): Add classpath.
107272 2005-01-21  Bruno Haible  <bruno@clisp.org>
107274         * lib/classpath.h: New file, from GNU gettext.
107275         * lib/classpath.c: New file, from GNU gettext.
107277 2005-01-20  Simon Josefsson  <jas@extundo.com>
107279         * modules/version-etc-fsf: New file.
107281 2005-01-20  Simon Josefsson  <jas@extundo.com>
107283         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107284         * lib/version-etc.c: Remove version_etc_copyright.
107285         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107286         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107288 2005-01-20  Simon Josefsson  <jas@extundo.com>
107290         * lib/base64.h (isbase64): Add.
107292         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107293         using a unsigned prototype, don't inline.
107294         (base64_decode): Use it.
107296 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107298         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107299         it.
107301 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107303         * lib/save-cwd.c (save_cwd): Remove code to support the case
107304         where fchdir is missing or flaky.
107306 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107308         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107310 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107312         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107313         AC_LIBSOURCES now does this.
107314         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107315         with new ullong_max module.
107317 2005-01-19  Bruno Haible  <bruno@clisp.org>
107319         * modules/sh-quote: New file.
107320         * MODULES.html.sh (Executing programs): Add sh-quote.
107322 2005-01-19  Bruno Haible  <bruno@clisp.org>
107324         * lib/sh-quote.h: New file, from GNU gettext.
107325         * lib/sh-quote.c: New file, from GNU gettext.
107327 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107329         Merge from coreutils.
107330         * m4/ullong_max.m4: New file.
107331         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107332         (gl_MACROS): Assume localeconv exists.
107334 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107336         Merge changes from coreutils, as described below in several
107337         changelogs dated today.
107339         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107340         (O_DIRECTORY): Remove; not needed here, since "." must be
107341         a directory.  All uses removed.
107342         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107343         universal on Suns, and we also need to test for IRIX.
107344         Revamp code to use 'if' rather than '#if'.
107345         Avoid unnecessary comparison of cwd->desc to 0.
107347         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107348         for known valid error numbers rather than observed invalid ones.
107350 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107352         * modules/ullong_max: New file.
107354         * modules/chdir-long, modules/openat: New files.
107355         * modules/save-cwd (Depends-on): Depend on chdir-long.
107356         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107358 2005-01-18  Jim Meyering  <jim@meyering.net>
107360         Merge from coreutils.
107361         * m4/chdir-long.m4, m4/openat.m4: New files.
107362         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107363         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107364         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107365         is sane and DOES follow symlinks.  Besides, testing 20 different
107366         systems found no broken chown implementations.
107367         Prompted by a change in rsync's copy of this macro.
107368         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107372         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107373         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107374         NULL-means-set-to-current-time semantics.
107375         Remove temporary file immediately, rather than waiting
107376         for configure's at-exit trap code to do it.
107378 2005-01-18  Jim Meyering  <jim@meyering.net>
107380         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107382         * lib/utimens.c (futimens): Account for the fact that futimes
107383         can also fail with errno == ENOSYS or errno == ENOENT.
107384         Patch from Dmitry V. Levin.
107386         Change the name of the robust chdir function from chdir to chdir_long.
107387         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107388         (restore_cwd): Use chdir_long, not chdir.
107389         * lib/chdir-long.c: Renamed from chdir.c.
107390         * lib/chdir-long.h: Renamed from chdir.h.
107391         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107392         Hurd.
107394 2005-01-18  Bruno Haible  <bruno@clisp.org>
107396         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107397         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107398         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107399         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107400         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107401         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107402         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107403         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107404         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107405         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107406         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107407         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107408         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107409         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107410         Use an all-permissive copyright notice, recommended by RMS.
107412 2005-01-18  Bob Proulx  <bob@proulx.com>
107414         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107415         simplify offsetof() macro construct to avoid compile failure with
107416         native HP-UX 11.0 ANSI C compiler.
107418 2005-01-17  Bruno Haible  <bruno@clisp.org>
107420         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107421         redundant because stpncpy.m4 takes care of it.
107423 2005-01-17  Bruno Haible  <bruno@clisp.org>
107425         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107427 2005-01-17  Bruno Haible  <bruno@clisp.org>
107429         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107430         used.
107432 2005-01-17  Bruno Haible  <bruno@clisp.org>
107434         * lib/fwriteerror.h (fwriteerror): Change specification to include
107435         fclose.
107436         * lib/fwriteerror.c: Include <stdbool.h>.
107437         (fwriteerror): At the end, close the file stream. Record whether
107438         stdout was already closed.
107440 2005-01-17  Bruno Haible  <bruno@clisp.org>
107442         * lib/execute.c (environ): Declare if needed.
107443         * lib/pipe.c (environ): Likewise.
107444         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107446 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107448         * modules/argp: Depend on vsnprintf
107450 2005-01-10  Jim Meyering  <jim@meyering.net>
107452         * modules/closeout (Depends-on): Add atexit.
107454 2005-01-06  Bruno Haible  <bruno@clisp.org>
107456         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107458 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107460         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107461         definitions to be after all include files, to avoid collisions.
107462         Problem reported by Bob Proulx.
107464 2005-01-04  Jim Meyering  <jim@meyering.net>
107466         Changes imported from coreutils.
107467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107468         as the mkstemp template, use a temporary directory and an
107469         8.3-friendly template to avoid trouble on systems like DJGPP.
107470         Reported by Juan M. Guerrero via Stepan Kasal.
107471         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107472         close. Remove the temporary directory right away, rather than waiting
107473         for configure's at-exit trap code to do it.
107474         Suggestion from Stepan Kasal.
107476 2005-01-01  Simon Josefsson  <jas@extundo.com>
107478         * gnulib-tool: Print #include directives when --import'ing.
107480 2004-12-28  Simon Josefsson  <jas@extundo.com>
107482         * tests/test-base64.c: Include required header files.  Remove
107483         unused variables.
107485 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107487         * modules/error (Depends-on): Remove gettext.
107489 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107491         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107492         not needed.  This removes a dependency on the gettext module.
107493         [defined _LIBC]: Do not include <libintl.h>; not needed.
107495 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107497         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107498         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107500 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107502         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107503         HAVE_DECL_STRTOLD.
107505 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107507         * modules/getdate (Depends-on): Remove alloca-opt.
107509 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107511         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107513 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107515         * lib/argp-parse.c: Include <stddef.h>.
107516         (alignof, alignto): New macros.
107517         (parser_init): Don't assume that void * is aligned sufficiently
107518         for struct option.
107520         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107521         need to extend the stack.
107522         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107523         large.
107525 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107527         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107529 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107531         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107532         (2004-10-24) change.  Apparently this was a false alarm.
107534         * modules/getdate: Depend on alloca-opt, not alloca.
107536 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107538         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107539         Remove now-obsolete comment about AIX.
107540         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107541         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107542         (YYMAXDEPTH): New macro.
107544 2004-12-18  Simon Josefsson  <jas@extundo.com>
107546         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107548 2004-12-18  Bruno Haible  <bruno@clisp.org>
107550         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107552 2004-12-18  Bruno Haible  <bruno@clisp.org>
107554         * lib/fatal-signal.c (fatal_signals): Make non-const.
107555         (init_fatal_signals): New function.
107556         (uninstall_handlers, install_handlers): Ignore signals that were set to
107557         SIG_IGN.
107558         (at_fatal_signal): Call init_fatal_signals.
107559         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107560         SIG_IGN.
107561         Reported by Paul Eggert.
107563 2004-12-18  Bruno Haible  <bruno@clisp.org>
107565         * doc/alloca.texi: New file.
107566         * doc/alloca-opt.texi: New file.
107568 2004-12-17  Jim Meyering  <jim@meyering.net>
107570         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107571         Otherwise, install-sh could exit with improper exit status when
107572         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107574 2004-12-16  Simon Josefsson  <jas@extundo.com>
107576         * tests/test-base64.c: Add license.
107578 2004-12-15  Stepan Kasal  <address@hidden>
107580         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107582 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107584         * modules/getcwd (Files): Add m4/d-ino.m4.
107585         Suggested by Mark D. Baushke.
107587 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107589         * lib/getdate.y (textint): New member "negative".
107590         (time_zone_hhmm): New function.
107591         Expect 14 shift-reduce conflicts, not 13.
107592         (o_colon_minutes): New rule.
107593         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107594         (yylex): Set the "negative" member of signed numbers.
107596 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107598         * doc/getdate.texi (Time of day items, Time zone items):
107599         Describe new formats +00:00, UTC+00:00.
107601 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107603         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107604         spurious "-l"s.  Problem reported by Stepan Kasal.
107606 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107608         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107609         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107611 2004-12-04  Simon Josefsson  <jas@extundo.com>
107613         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107614         Vandoorselaere <yoann@prelude-ids.org>.
107616 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107618         Changes imported from coreutils.
107619         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107620         exist.
107621         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107623 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107625         Changes imported from coreutils.
107626         * lib/hard-locale.c: Assume <locale.h> exists.
107627         Include "strdup.h".
107628         (GLIBC_VERSION): New macro.
107629         (hard_locale): Assume setlocale exists.
107630         Rewrite to avoid #ifdef.
107631         Use strdup rather than malloc + strcpy.
107632         * lib/human.c: Assume <locale.h> exists.
107633         (human_readable): Assume localeconv exists.
107635 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107637         * modules/hard-locale (Depends-on): Add strdup.
107639 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107641         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107642         convert T2, not T.  (Imported from libc.)
107644 2004-11-30  Simon Josefsson  <jas@extundo.com>
107646         * modules/restrict (License): Change to LGPL.
107648 2004-11-30  Simon Josefsson  <jas@extundo.com>
107650         * m4/restrict.m4: Add copyright and copying conditions.
107652 2004-11-30  Simon Josefsson  <jas@extundo.com>
107654         * m4/base64.m4: New file.
107656 2004-11-30  Simon Josefsson  <jas@extundo.com>
107658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107659         base64.
107661         * tests/test-base64.c: New file.
107663         * modules/base64: New file.
107665 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107668         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107670         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107672 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107674         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107675         (__getcwd.c): Don't restore errno; glibc doesn't.
107676         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107677         first, falling back to our code only if its results look suspicious.
107678         Ensure that the resulting buffer is only as large as necessary.
107680         * lib/readutmp.c: Include readutmp.h first.
107681         Include <errno.h>, since readutmp.h no longer does that.
107682         * lib/readutmp.h: Don't include <errno.h>,
107683         <sys/param.h>, <time.h>; not needed to establish interface.
107684         (errno): Remove decl.
107685         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107686         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107687         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107689 2004-11-28  Simon Josefsson  <jas@extundo.com>
107691         * lib/base64.h, base64.c: New file.
107693 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107695         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107697 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107699         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107700         (Depends-on): Remove pathmax, same.  Add mempcpy.
107701         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107702         (Makefile.am): Append getcwd.h to lib_SOURCES.
107703         (Include): Add getcwd.h.
107704         (Maintainer): Change from Jim Meyering to "all, glibc",
107705         since getdate now uses intended-for-glibc code.
107706         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107707         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107709 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107711         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107712         HP's ANSI C compiler.
107713         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107714         Declaring int functions causes warnings on some modern systems and
107715         shouldn't be needed to compile on ancient ones.
107716         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107717         defined.
107719         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107720         with the following changes.
107721         (__set_errno): Parenthesize properly.
107722         Include <stdbool.h>.
107723         (MIN, MAX, MATCHING_INO): New macros.
107724         (__getcwd): Define with prototype, not K&R form.
107725         Use heuristics to allocate default buffer on stack if possible.
107726         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107727         behavior, and to avoid the PATH_MAX limit when computing
107728         ../../../../...
107729         Use MATCHING_INO to compare inode number to file.
107730         Check for arithmetic overflow in size calculations.
107731         Fix bug in reallocation of dot array that caused getcwd to fail
107732         on directories nested deeper than 75.
107733         Be more careful about saving errno on error.
107734         Do not use realloc; use only free+malloc, as this is a bit
107735         more flexible and avoids a needless copy operation.
107736         Do not inspect st_dev and st_ino for symbolic links; POSIX
107737         doesn't specify the latter.
107738         Check for closedir errors.
107739         Avoid needless casts.
107740         Use "#ifdef weak_alias" around weak_alias, to be like other
107741         glibc code.
107742         The following changes to getcwd.c have effect only when used in
107743         gnulib; they have no effect inside glibc proper.
107744         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107745         as alloca isn't used.
107746         (alloca, __alloca): Likewise.
107747         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107748         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107749         unconditionally, as gnulib assumes C89 or better.
107750         Do not include <sys/param.h>.
107751         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107752         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107753         better.
107754         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107755         Include <dirent.h> in a way that is compatible with modern Autoconf.
107756         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107757         New macros, if not already defined.
107758         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107759         Use "_LIBC", not "defined _LIBC", for consistency.
107760         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107761         a mempcpy module.
107762         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107763         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107764         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107765         credit only to Jim Meyering and adjust the copyright dates.
107766         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107767         <stdlib.h>, <unistd.h>, "pathmax.h".
107768         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107769         (INITIAL_BUFFER_SIZE): Remove.
107770         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107772 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107774         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107775         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107776         Use the _ONCE methods, for efficiency.
107777         Check for fcntl.h.  In test program, include <errno.h>
107778         and <fcntl.h> if available.  Remove old K&R cruft from
107779         test program.  Check for common errors in GNU/Linux,
107780         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107781         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107782         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107783         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107784         name accordingly.
107785         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107786         accommodate new getcwd.c.
107787         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107788         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107789         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107790         that's all we need now.
107792 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107794         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107795         argp-parse.c depends on getopt internals, that means we should
107796         always use our getopt, to be on the safe side.
107797         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107798         order not to spoil the result of an eventual previous invocation
107799         of gl_GETOPT_SUBSTITUTE.
107801 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107803         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107804         redefinition warnings. To avoid them, include the defines
107805         in `#if !defined __need_getopt ... #endif'. The only place
107806         where __getopt_argv_const is used is in definitions
107807         of getopt_long and getopt_long_only below, which are as well
107808         protected by `#ifndef __need_getopt'.
107809         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107810         __need_getopt after including <stdio.h> and <unistd.h> These
107811         headers might have defined it.
107813 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107815         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107817 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107819         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107820         (futimens): New function, which uses futimes if available.
107821         (futimens, utimens): Support timespec==NULL, with same semantics
107822         as utime and utimens.
107823         * lib/utimens.h (futimens): New decl.
107825 2004-11-23  Jim Meyering  <jim@meyering.net>
107827         * lib/getopt_.h: Remove trailing blanks.
107829 2004-11-23  Jim Meyering  <jim@meyering.net>
107831         * lib/__fpending.c: Add comment.
107833 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107835         * modules/canonicalize (Depends-on): Add xreadlink.
107836         Problem reported by James Youngman.
107838 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107840         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107841         New macros.
107842         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107843         optopt): Use them instead of invoking ## directly; otherwise, the
107844         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107846 2004-11-19  Bruno Haible  <bruno@clisp.org>
107848         * lib/strtok_r.c: Move comments from here...
107849         * lib/strtok_r.h: ... to here.
107851 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107853         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107854         implementations that mishandle size_t overflow.
107856 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107858         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107859         might fail.  Problem reported by Yoann Vandoorselaere.
107860         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107861         implementations that mishandle size_t overflow.
107863 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107865         * modules/canon-host (Depends-on): Add strdup.
107867 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107869         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107871 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107873         * lib/canon-host.c: Include "strdup.h".
107874         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107875         Use strdup instead of malloc/strcpy to duplicate strings.
107877         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107878         (human_space_before_unit): New constant.
107879         * lib/human.c (human_readable): Support it.
107881         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107882         (xgetcwd): Set errno correctly when failing.
107883         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107884         the failure is actually due to a PATH_MAX problem.
107886         Further getopt changes to make it more likely that glibc will
107887         buy the changes back.
107888         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107889         (getopt): Use it, so to preserve glibc semantic
107890         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107891         when compiling for libc.
107892         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107893         (getopt_long, getopt_long_only): Use it.
107895         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107896         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107897         (getopt): Argv is now char * const *, as per standard.
107898         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107899         not char *__getopt_argv_const *.
107900         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107901         _getopt_long_only_r): Likewise.
107902         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107903         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107904         _getopt_long_r, _getopt_long_only_r): Likewise.
107905         * lib/getopt_.h (__getopt_argv_const): Remove.
107906         (getopt): Argv is now char * const *, as per standard.
107908         * lib/getdate.y (tORDINAL): New token.
107909         (day, relunit): Allow it for relative times.
107910         (relative_time_table): Use tORDINAL for ordinals.
107912 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107914         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107915         Document that "second" isn't allowed as an ordinal number.
107917 2004-11-16  Jim Meyering  <jim@meyering.net>
107919         * modules/closeout (Depends-on): Add fpending.
107921 2004-11-15  Jim Meyering  <jim@meyering.net>
107923         * lib/closeout.c: Include "__fpending.h" once again.
107924         Include <stdbool.h>.
107925         (close_stdout): Don't fail just because stdout was closed initially,
107926         since some programs don't write to stdout in the normal course of
107927         operation (other than --version and --help), and we don't want this
107928         function to make e.g. `touch file >&-' fail.
107929         But do fail if it was closed and someone has tried to write to it.
107930         E.g., `printf foo >&-' must fail.
107932 2004-11-13  Jim Meyering  <jim@meyering.net>
107934         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107936 2004-11-12  Simon Josefsson  <jas@extundo.com>
107938         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107939         small doc fix is still pending.
107941 2004-11-11  Simon Josefsson  <jas@extundo.com>
107943         * modules/strtok_r: New file.
107945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107946         strtok_r.
107948 2004-11-11  Simon Josefsson  <jas@extundo.com>
107950         * m4/strtok_r.m4: New file.
107952         * m4/getopt.m4: Replace opterr.
107954 2004-11-11  Simon Josefsson  <jas@extundo.com>
107956         * lib/strtok_r.h, strtok_r.c: New file.
107958 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107960         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107961         of replacing opterr, getopt, etc.  This should handle the
107962         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107964 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107966         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107967         we can stop lying to compilers about the constness of argv when we
107968         are compiled outside glibc.
107969         (getopt, getopt_long, getopt_long_only): Use it.
107970         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107971         _getopt_internal, getopt): Likewise.
107972         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107973         _getopt_long_only_r): Likewise.
107974         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107975         _getopt_long_r, _getopt_long_only_r): Likewise.
107977         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107978         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107979         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107980         the other external symbols.
107981         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107982         declaration, since the above renaming now works around collisions.
107984 2004-11-11  Jim Meyering  <jim@meyering.net>
107986         * lib/linebreak.c: Remove trailing blanks.
107987         * lib/alloca_.h: Likewise.
107988         * lib/acosl.c: Likewise.
107989         * lib/euidaccess.c: Likewise.
107990         * lib/allocsa.h: Likewise.
107992 2004-11-10  Simon Josefsson  <jas@extundo.com>
107994         * m4/getaddrinfo.m4: New file.
107996 2004-11-10  Simon Josefsson  <jas@extundo.com>
107998         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
108000 2004-11-10  Simon Josefsson  <jas@extundo.com>
108002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108003         getaddrinfo.
108005         * modules/getaddrinfo: New file.
108007 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108009         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
108011 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108013         * lib/mktime.c (SHR): New macro, which is a portable
108014         substitute for >> that should work even on Crays.
108015         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
108016         Problem reported by Mark D. Baushke in
108017         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
108018         * lib/getdate.y (SHR): Likewise.
108019         (tm_diff): Use it.
108020         * lib/strftime.c (SHR): Likewise.
108021         (tm_diff): Use it.
108022         * lib/quotearg.c (struct quoting_options): Use unsigned int for
108023         quote_these_too, so that right shifts are well defined.  All uses
108024         changed.
108026 2004-11-10  Jim Meyering  <jim@meyering.net>
108028         Ensure that no close failure goes unreported.
108029         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
108030         return early when it seems there's nothing to flush.
108031         Don't include __fpending.h.
108033 2004-11-10  Jim Meyering  <jim@meyering.net>
108035         * modules/closeout (Depends-on): Remove fpending.
108037 2004-11-10  Jim Meyering  <jim@meyering.net>
108039         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
108041 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108043         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
108044         gl_FUNC_STRFTIME.
108045         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
108046         and AC_REQUIRE when possible, to avoid duplicate checks.
108047         Check for <wchar.h>.
108049 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108051         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
108053 2004-11-09  Bruno Haible  <bruno@clisp.org>
108055         * m4/sockpfaf.m4: New file.
108057 2004-11-05  Bruno Haible  <bruno@clisp.org>
108059         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
108060         Reported by Mark D. Baushke <mdb@cvshome.org>.
108062 2004-11-04  Bruno Haible  <bruno@clisp.org>
108064         2004-09-11  Bruno Haible  <bruno@clisp.org>
108065                 * allocsa.valgrind: New file.
108066         2004-02-06  Bruno Haible  <bruno@clisp.org>
108067                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
108068                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
108069                 Reported by Christopher Seip <chris.seip@hp.com>.
108071 2004-11-04  Bruno Haible  <bruno@clisp.org>
108073         * modules/allocsa (Files): Add lib/allocsa.valgrind.
108074         (Makefile.am): Distribute it.
108076 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108078         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
108079         with errno == ERANGE if the buffer is too small.
108080         Problem reported by Mark D. Baushke.
108082 2004-11-03  Albert Chin  <china@thewrittenword.com>
108083             Paul Eggert  <eggert@cs.ucla.edu>
108085         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
108086         equivalent, substitute $ac_type for equivalent type rather than
108087         blindly using uint32_t *always* which won't work if uint32_t is not
108088         available.  Define _UINT32_T to work around typedef of uint32_t if
108089         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
108090         2.5.1.
108092 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108094         * m4/jm-macros.m4: Sync from coreutils.
108095         (gl_MACROS): Check for mbrlen, for pathchk.
108096         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
108098 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108100         * lib/xreadlink.c (MAXSIZE): New macro.
108101         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
108102         size does not exceed MAXSIZE.  Avoid cast.
108103         As suggested by Mark D. Baushke in
108104         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
108105         if readlink fails with buffer size just under MAXSIZE, try again
108106         with MAXSIZE.
108108 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108110         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108112 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108113         and  Paul Eggert  <eggert@cs.ucla.edu>
108115         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108116         (get_date): Overparenthesize to avoid GCC warning.
108118 2004-11-02  Bruno Haible  <bruno@clisp.org>
108120         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108121         returns void.
108123 2004-11-02  Bruno Haible  <bruno@clisp.org>
108125         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108126         function returns void.
108128 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108130         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108131         fflush_unlocked, flockfile, funlockfile, funlockfile,
108132         fputs_unlocked, putc_unlocked.
108134 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108136         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108137         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108138         already declared.
108140 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108142         * modules/getdate (Files): Add doc/getdate.texi.
108143         (Depends-on): Add setenv, xalloc.
108145 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108147         * lib/getdate.y: Add support for TZ="foo" within a date string.
108148         Fix some bugs near time_t boundaries.  Reject dates with
108149         out-of-range components, e.g., "Sept 31".
108150         Include <stdlib.h>, "setenv.h", "xalloc.h".
108151         (ISDIGIT_LOCALE): Remove; unused.
108152         Note that the TZ and time functions used here are not reentrant.
108153         (mktime_ok, get_tz): New functions.
108154         (TZBUFSIZE): New constant.
108155         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108156         This requires that we sometimes generate our own TZ="XXX..." setting.
108158 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108160         * doc/getdate.texi: New file, from coreutils with modifications for
108161         the new TZ parsing.
108163 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108165         * lib/mktime.c (not_equal_tm): Remove redundant check.
108167 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108169         * modules/regex (lib_SOURCES): Add regex.c.
108170         Reported by James Youngman in
108171         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108173 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108175         * lib/getdate.y: Use Bison 1.875 features, and some minor
108176         code cleanups.  This change does not affect semantics.
108177         Don't include <stdlib.h>; no longer needed.
108178         Don't include unlocked-io.h; only the "#if TEST" code uses
108179         stdio, and performance isn't crucial there.
108180         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108181         Bison 1.875 features as described below.
108182         All uses of "PC." replaced by "pc->".
108183         (YYSTYPE): Add a forward declaration.
108184         (yylex, yyerror): Use full prototypes in forward decls.
108185         Use "%pure-parser" rather than obsolescent "%pure_parser".
108186         Use %parse-param and %lex-param instead of obsolescent
108187         YYPARSE_PARAM and YYLEX_PARAM.
108188         (meridian_table, month_and_day_table, time_units_table,
108189         relative_time_table, time_zone_table, military_table,
108190         lookup_zone, lookup_word, get_date):
108191         Use NULL instead of 0 where appropriate.
108192         (to_hour): Avoid abort (), to avoid a dependency on
108193         stdlib.h.
108194         (yyerror, yylex): Now accepts parser_control * arg.
108195         (main) [TEST]: Use '\0' rather than 0 for char.
108197 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108199         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108201 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108203         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108204         It's now the caller's responsibility to handle the case where
108205         !HAVE_GETPAGESIZE && !defined getpagesize.
108207         * lib/mktime.c (leapyear): Arg is long int, not int.
108209 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108211         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108213 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108215         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108216         missing.  Problem reported by James Youngman.
108218 2004-10-16  Simon Josefsson  <jas@extundo.com>
108220         * gnulib-tool: Fix comments.  Fix parse problem.
108221         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108223 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108225         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108226         implementation of getopt_long.  Problem reported by Alexander Taler in:
108227         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108229 2004-10-15  Bruno Haible  <bruno@clisp.org>
108231         * gnulib-tool: Untabify. Initialize supplied_libname.
108232         (func_usage): More homogenous output.
108233         (func_modules_transitive_closure, func_modules_to_filelist,
108234         func_emit_lib_Makefile_am): New functions.
108235         (func_import): New function, extracted from big case statement. Use
108236         func_get_license, func_modules_transitive_closure,
108237         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108238         opt_lgpl. Don't use test -a, as it's not portable.
108239         (func_create_testdir): Use func_modules_transitive_closure,
108240         func_modules_to_filelist, func_emit_lib_Makefile_am.
108242 2004-10-15  Bruno Haible  <bruno@clisp.org>
108244         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108246 2004-10-15  Bruno Haible  <bruno@clisp.org>
108248         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108249         the portions belonging to each module.
108250         Suggested by Derek Robert Price <derek@ximbiot.com>.
108252 2004-10-12  Simon Josefsson  <jas@extundo.com>
108254         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108255         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108256         to real functions.
108258 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108260         * modules/vsnprintf: New file.
108262 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108264         * m4/vsnprintf.m4: New file.
108266 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108268         * lib/vsnprintf.h: New file.
108269         * lib/vsnprintf.c: New file.
108271 2004-10-11  Bruno Haible  <bruno@clisp.org>
108273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108274         vsnprintf.
108276 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108278         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108280 2004-10-07  Bruno Haible  <bruno@clisp.org>
108282         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108283         fits into the provided buffer.
108285 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108287         * lib/diacrit.c, diacrit.h: Add GPL notice.
108289         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108290         notice.
108291         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108292         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108293         This avoids a potential constant-folding bug.
108295 2004-10-05  Bruno Haible  <bruno@clisp.org>
108297         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108298         for the declaration of strsep.
108300 2004-10-05  Bruno Haible  <bruno@clisp.org>
108302         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108304 2004-10-04  Simon Josefsson  <jas@extundo.com>
108306         * modules/memmem: New file.
108307         * tests/test-memmem.c: New file.
108308         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108310 2004-10-04  Simon Josefsson  <jas@extundo.com>
108312         * m4/memmem.m4: New file.
108314 2004-10-04  Simon Josefsson  <jas@extundo.com>
108316         * lib/memmem.h: New file.
108317         * lib/memmem.c: New file, taken from glibc.
108319 2004-10-04  Simon Josefsson  <jas@extundo.com>
108321         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108322         '#ifdef USE_UNLOCKED_IO'.
108324 2004-10-04  Simon Josefsson  <jas@extundo.com>
108326         * config/srclist.txt: Add memmem from glibc.
108328 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108330         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108332         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108333         modules/exclude, modules/getdate, modules/getline,
108334         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108335         modules/getusershell, modules/linebuffer, modules/md5,
108336         modules/mountlist, modules/posixtm, modules/readtokens,
108337         modules/readutmp, modules/regex, modules/sha1,
108338         modules/version-etc, modules/yesno:
108339         Remove dependency on unlocked-io.
108341 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108343         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108345         * m4/unlocked-io.m4: Add copyright notice.
108346         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108350         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108351         * lib/xmalloc.c (xmemdup): Likewise.
108352         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108353         XFREE): Remove these long-obsolescent macros.
108354         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108355         * lib/xstrdup.c: Remove.
108357         * lib/regex.c (re_comp): Cast gettext return value to char *,
108358         Problem reported by Martin Neitzel via Mark D. Baushke.
108360 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108362         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108363         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108364         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108365         regex.c, sha1.c, version-etc.c, yesno.c:
108366         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108367         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108368         the includer's responsibility.
108370         Sync from coreutils.
108372         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108373         points to the start of a string, as the C Standard says the
108374         resulting behavior is undefined.
108376         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108377         simple -> simple_backups, numbered_existing ->
108378         numbered_existing_backups, numbered -> numbered_backups
108379         to avoid shadowing problems.  All uses changed.
108380         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108381         * lib/backupfile.c (check_extension, numbered_backup):
108382         Rename locals to avoid shadowing 'basename'.
108383         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108384         once.
108386         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108387         * lib/.cvsignore: Add getopt.h.
108389 2004-10-04  Bruno Haible  <bruno@clisp.org>
108391         * modules/README: New file.
108392         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108393         not a module.
108395 2004-10-02  Jim Meyering  <jim@meyering.net>
108397         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108399 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108401         * modules/strsep: New file.
108403 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108405         * m4/strsep.m4: New file.
108407 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108409         * lib/strsep.h: New file.
108410         * lib/strsep.c: New file.
108412 2004-10-01  Simon Josefsson  <jas@extundo.com>
108414         * lib/snprintf.c (snprintf): Handle size==0.
108416 2004-10-01  Simon Josefsson  <jas@extundo.com>
108417             Bruno Haible  <bruno@clisp.org>
108419         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108420         (snprintf): Declare 'args'.
108422 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108424         * lib/snprintf.c: Remove comments as to why each header is needed.
108426 2004-10-01  Bruno Haible  <bruno@clisp.org>
108428         * MODULES.html.sh: Add strsep.
108430 2004-09-30  Simon Josefsson  <jas@extundo.com>
108432         * modules/snprintf: New file.
108434 2004-09-30  Simon Josefsson  <jas@extundo.com>
108436         * m4/snprintf.m4: New file.
108438 2004-09-30  Simon Josefsson  <jas@extundo.com>
108440         * lib/snprintf.h, lib/snprintf.c: New files.
108442 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108444         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108445         (hol_entry_help): Never translate an empty string.
108446         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108447         * lib/argp.h (OPTION_NO_TRANS): New option.
108449 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108451         * modules/argp (Maintainer): Replace Simon Josefsson
108452         by Sergey Poznyakoff.
108454 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108456         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108457         changes merged back into glibc.
108459 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108461         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108463 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108465         * lib/xvasprintf.c: Include xalloc.h.
108466         (xvasprintf): Use xalloc_die, not xmalloc_die.
108468 2004-09-29  Bruno Haible  <bruno@clisp.org>
108470         * modules/alloca-opt: New file, derived from modules/alloca.
108471         * modules/allocsa: Depend on alloca-opt instead of alloca.
108472         * modules/setenv: Likewise.
108473         * modules/vasnprintf: Likewise.
108474         * MODULES.html.sh: Add alloca-opt.
108476 2004-09-28  Simon Josefsson  <jas@extundo.com>
108478         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108479         LGPL, and to replace license template from GPL to LGPL.
108481 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108483         * modules/dummy: Change license to LGPL.
108485 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108487         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108489 2004-09-24  Simon Josefsson  <jas@extundo.com>
108491         * modules/minmax (License): Change from GPL to LGPL.
108493 2004-09-23  Simon Josefsson  <jas@extundo.com>
108495         * gnulib-tool (--import): Typo.
108497 2004-09-23  Simon Josefsson  <jas@extundo.com>
108499         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108501 2004-09-22  Bruno Haible  <bruno@clisp.org>
108503         * modules/*: Add 'License' field.
108504         * gnulib-tool: Accept --extract-license option.
108505         (func_get_license): New function.
108507 2004-09-21  Bruno Haible  <bruno@clisp.org>
108509         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108510         Reported by Simon Josefsson.
108512 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108514         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108515         gl_AC_TYPE_LONG_LONG.
108517 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108519         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108521 2004-09-18  Simon Josefsson  <jas@extundo.com>
108522         and  Paul Eggert  <eggert@cs.ucla.edu>
108524         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108525         calls with autoreconf.  Define GL_LIB.
108527 2004-09-14  Karl Berry  <karl@gnu.org>
108529         * config/srclist.txt: unsync setenv.c, sigh.
108531 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108533         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108534         Problem reported by Bruno Haible in:
108535         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108537 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108539         * config/srclist.txt: Comment out argp-pvh.c.
108541 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108543         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108544         in case some system header has #define'd it.  Problem reported by
108545         Soeren D. Schulze in
108546         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108548 2004-09-09  Karl Berry  <karl@gnu.org>
108550         * regex.[ch]: delete from the root.  These were supposed to be
108551                 synced with emacs cvs, but this has not happened for about
108552                 a year, and anyway nothing else uses emacs regex.[ch].
108553                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108554                 lib/regex[.ch] is untouched.
108556 2004-09-09  Bruno Haible  <bruno@clisp.org>
108558         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108560 2004-09-09  Bruno Haible  <bruno@clisp.org>
108562         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108563         modifications.
108564         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108566 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108568         * modules/xvasprintf: New file.
108569         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108571 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108573         * lib/xvasprintf.h: New file.
108574         * lib/xvasprintf.c: New file.
108575         * lib/xasprintf.c: New file.
108577 2004-09-08  Bruno Haible  <bruno@clisp.org>
108579         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108581 2004-09-08  Bruno Haible  <bruno@clisp.org>
108583         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108584         length is > INT_MAX.
108585         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108586         more.
108588 2004-09-08  Bruno Haible  <bruno@clisp.org>
108590         * lib/stdint_.h: New file, taken from GNU clisp.
108592 2004-09-08  Bruno Haible  <bruno@clisp.org>
108593             Oskar Liljeblad  <oskar@osk.mine.nu>
108595         * modules/stdint: New file.
108596         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108598 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108600         Import from coreutils.
108601         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108602         strings on unbounded length.  alloca's performance benefits aren't
108603         that important here.
108604         (V_STRDUP): Remove.
108605         (parse_with_separator): New function, with most of the internals
108606         of the old parse_user_spec.  Allow user to omit both user and group,
108607         for compatibility with FreeBSD.
108608         Clone only the user name, not the entire spec.
108609         Do not set *uid, *gid unless entirely successful.
108610         Avoid memory leak in some failing cases.
108611         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108612         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108613         (parse_user_spec): Rewrite to use parse_with_separator.
108615 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108617         * modules/userspec: Don't depend on alloca.
108619 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108621         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108623 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108625         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108626         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108627         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108629 2004-08-16  Simon Josefsson  <jas@extundo.com>
108631         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108632         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108633         Add --dry-run for --import.
108634         Let user provided command line parameters override configure.ac
108635         settings.
108637 2004-08-12  Simon Josefsson  <jas@extundo.com>
108639         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108640         as discussed with Paul Eggert in threads rooted at
108641         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108642         and
108643         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108644         Before, the test was empty, and relied on ELIDE_CODE in source
108645         code.)
108646         (gl_PREREQ_GETOPT): New macro.
108647         (gl_GETOPT): Use them.
108649 2004-08-12  Simon Josefsson  <jas@extundo.com>
108651         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108652         * lib/getopt_.h: Renamed from getopt.h.
108654 2004-08-12  Simon Josefsson  <jas@extundo.com>
108656         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108657         Change default library name from libfoo to libgnu.
108658         Now, if you have a configure.ac that says:
108659                 gl_SOURCE_BASE(gl)
108660                 gl_M4_BASE(gl/m4)
108661                 gl_MODULES(error getopt etcetera)
108662                 gl_INIT
108663         you can import all you need by running:
108664                 ../gnulib/gnulib-tool --import
108666         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108667         (Makefile.am): Rewrite, use logic from argz.
108668         (Include): Use <getopt.h> instead of "getopt.h".
108670 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108672         * modules/argp (Files): Add m4/unlocked-io.m4.
108673         (Depends-on): Add extensions.
108675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108677         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108678         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108679         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108680         Check for program_invocation_name, program_invocation_short_name,
108681         flockfile, funlockfile, features.h, _getopt_long_only_r.
108683 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108685         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108686         its complicated substitute.
108687         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108688         and program_invocation_name.
108689         (__argp_basename) [!_LIBC]: Remove; the only use was
108690         replaced by its body.
108691         (__argp_short_program_name): Change condition from
108692         !defined __argp_short_program_name to
108693         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108694         to match argp-namefrob.h.
108695         (__argp_failure): Don't assume strerror_r returns char *.
108696         * lib/argp-parse.c (N_): Define unconditionally.
108697         (argp_default_options): Fill out initializers with 0 to avoid
108698         gcc warnings.
108700 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108702         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108703         getopt1.c.
108705 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108707         Merge from coreutils.
108709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108711         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108712         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108714 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108716         Merge from coreutils.
108718         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108719         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108720         for Reliant Unix 5.43.
108722         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108723         (union fooround): Use uintmax_t, not long int.
108724         The rest is a merge from libc:
108725         [defined _LIBC]: Include <shlib-compat.h>.
108726         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108728         * lib/settime.c (settime): Recode to avoid warning with
108729         Sun Forte C 6U2.
108731         * lib/strverscmp.c: Convert to UTF-8.
108733 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108735         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108736         m4/uintmax_t.m4.
108738 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108740         * modules/xalloc-die: New file.
108741         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108743         * modules/md5 (Files): Add m4/uint32_t.m4.
108744         * modules/sha1: Renamed from modules/sha.
108745         (Files):
108746         Rename lib/sha.h to lib/sha1.h.
108747         Rename lib/sha.c to lib/sha1.c.
108748         Rename m4/sha.m4 to m4/sha1.m4.
108749         (lib_SOURCES): Likewise.
108750         (configure.ac): Rename gl_SHA to gl_SHA1.
108751         (Include): sha.h -> sha1.h.
108753 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108755         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108756         * m4/sha1.m4: Renamed from sha.m4.
108757         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108759 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108761         * lib/obstack.h (obstack_empty_p):
108762         Don't assume that chunk->contents is suitably aligned.
108763         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108764         Likewise. Problem reported by Benno in
108765         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108767         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108768         readable.  This could be improved further but it'd take some work.
108770 2004-08-08  Simon Josefsson  <jas@extundo.com>
108772         * modules/xgethostname (Depends-on): Remove exit and error (not
108773         used).
108775         * modules/getpass-gnu: Add getpass.h.
108776         (Depends-on): Add stdbool.
108777         * modules/getpass: Add getpass.h.
108779 2004-08-08  Simon Josefsson  <jas@extundo.com>
108781         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108782         Check getpass declaration.
108784 2004-08-08  Simon Josefsson  <jas@extundo.com>
108786         * lib/xgethostname.c: Don't include error.h (not used).
108788         * lib/getpass.h: Add.
108789         * lib/getpass.c: Include getpass.h first.
108791 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108793         * lib/xalloc-die.c: New file.
108794         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108795         All uses removed.
108796         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108797         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108798         xalloc-die.c.
108799         (_, N_, xalloc_die): Move to xalloc-die.c.
108800         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108801         so that we needn't mess with xalloc_msg_memory_exhausted.
108803         * lib/sha1.h: Renamed from sha.h.
108804         (SHA1_H): Renamed from _SHA_H.
108805         (sha1_ctx): Renamed from sha_ctx.
108806         (sha1_init_ctx): Renamed from sha_init_ctx.
108807         (sha1_process_block): Renamed from sha_process_block.
108808         (sha1_process_bytes): Renamed from sha_process_bytes.
108809         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108810         (sha1_read_ctx): Renamed from sha_read_ctx.
108811         (sha1_stream): Renamed from sha_stream.
108812         (sha1_buffer): Renamed from sha_buffer.
108813         * lib/sha1.c: Likewise; renamed from sha.c.
108814         Do not include <sys/types.h>.
108815         Include <stddef.h> rather than <stdlib.h>.
108817 2004-08-08  Bruno Haible  <bruno@clisp.org>
108819         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108820         FILESYSTEM_PREFIX_LEN.
108821         * lib/progreloc.c: Likewise.
108822         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108824 2004-08-06  Simon Josefsson  <jas@extundo.com>
108826         * modules/progname (Depends-on): Don't depend on stdbool.
108828 2004-08-06  Simon Josefsson  <jas@extundo.com>
108830         * modules/getsubopt: New file.
108831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108832         getsubopt.
108834 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108836         More merge from coreutils.
108838         * m4/utimens.m4, m4/utimecmp.m4: New files.
108839         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108840         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108841         prereq.m4, sha.m4: Import changes from coreutils.
108843 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108845         More merge from coreutils.
108846         * modules/raise, modules/readtokens0, modules/utimens:
108847         * modules/utimecmp, module/xnanosleep: New files.
108848         * modules/strftime: Add lib/strftime.h.
108849         Change include from <time.h> to "strftime.h".
108850         * modules/yesno: Add lib/yesno.h.
108851         * modules/backupfile: Remove lib/addext.c.
108852         * modules/euidaccess: Add stat-macros.h.
108853         * modules/canonicalize, modules/euidaccess,
108854         modules/filemode, modules/lchown, modules/makepath,
108855         modules/rmdir, modules/stat: Likewise.
108857 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108859         Merge from tar.
108860         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108861         SIZE_MAX is a valid preprocessor constant.
108862         (__argp_basename): Change from "#ifndef _LIBC"
108863         to "#ifndef __argp_short_program_name", so that
108864         we don't compile these functions for tar.
108866         More merges from coreutils.
108867         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108868         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108869         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108870         * lib/addext.c: Remove; no longer needed.
108871         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108872         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108873         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108874         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108875         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108876         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108877         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108878         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108879         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108880         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108881         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108882         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108883         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108884         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108885         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108886         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108887         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108888         Import changes from coreutils.
108890 2004-08-05  Simon Josefsson  <jas@extundo.com>
108892         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108894 2004-08-05  Simon Josefsson  <jas@extundo.com>
108896         * m4/getsubopt.m4: New file.
108898 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108900         Merge from coreutils.
108902         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108903         * m4/getcwd-path-max.m4: New files.
108905         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108906         FILESYSTEM_PREFIX_LEN ->
108907         FILE_SYSTEM_PREFIX_LEN.
108908         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108909         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108910         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108911         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108913         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108914         prerequisite modules now handle the DOS stuff.
108915         Don't check for unistd.h.
108917 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108919         Merge from coreutils.
108921         * lib/.gdb-history: Remove; this doesn't belong here.
108923         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108924         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108925         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108926         * lib/getcwd.c: New files.
108928         * lib/dirname.h: Include <stdbool.h>.
108929         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108930         for consistency with POSIX terminology.  All uses changed.
108931         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108932         (strip_trailing_slashes): Use bool for booleans.
108933         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108935         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108936         sometimes returns a positive errno value even when it succeeds.
108937         (print_errno_message) [!LIBC]: Fall back on strerror if
108938         __strerror_r fails.
108940         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108941         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108942         (longest_relative_suffix): New function.
108943         (path_concat): Use it.  Assume first argument is not NULL.
108944         Port to DOS.  Omit redundant separators.
108945         Report an error instead of returning NULL.
108946         Use mempcpy instead of memcpy.
108947         (xpath_concat): Remove: not declared or used.
108949         * lib/same.h: Include <stdbool.h>
108950         (same_name): Return bool, not int.
108951         * lib/same.c (same_name): Likewise.
108952         (errno): Don't declare; we assume C89 or better now.
108954         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108955         if not already defined.
108957         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108958         * lib/dup-safer.c (errno): Likewise.
108960 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108962         Merge from coreutils.
108963         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108964         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108965         * modules/path-concat: Don't depend on strdup.
108967 2004-08-03  Simon Josefsson  <jas@extundo.com>
108969         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108970         * lib/progname.h: Don't include stdbool.h.
108972 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108974         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108975         * MODULES.html.sh (func_all_modules): Remove fatal.
108977 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108979         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108981 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108983         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108984         working.
108986 2004-08-02  Simon Josefsson  <jas@extundo.com>
108988         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108989         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108990         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108992 2004-08-01  Simon Josefsson  <jas@extundo.com>
108994         * lib/xgetdomainname.c: Include stdlib.h, for free().
108996 2004-07-19  Bruno Haible  <bruno@clisp.org>
108998         * MODULES.html.sh (func_all_modules): Add dummy.
109000 2004-07-16  Simon Josefsson  <jas@extundo.com>
109002         * modules/dummy: New file.
109004 2004-07-16  Simon Josefsson  <jas@extundo.com>
109006         * lib/dummy.c: New file.
109008 2004-07-16  Bruno Haible  <bruno@clisp.org>
109010         * lib/backupfile.h: Add extern "C" for C++.
109011         * lib/closeout.h: Likewise.
109012         * lib/copy-file.h: Likewise.
109013         * lib/findprog.h: Likewise.
109014         * lib/full-write.h: Likewise.
109015         * lib/pathname.h: Likewise.
109016         * lib/progname.h: Likewise.
109017         * lib/stpcpy.h: Likewise.
109018         * lib/stpncpy.h: Likewise.
109019         * lib/strcase.h: Likewise.
109020         * lib/strstr.h: Likewise.
109021         * lib/xalloc.h: Likewise.
109023         * lib/mbswidth.h: Add extern "C" for C++.
109024         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
109026 2004-07-13  Robert Millan  <robertmh@gnu.org>
109028         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
109030 2004-07-09  Simon Josefsson  <jas@extundo.com>
109032         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
109033         failed without this.)
109035 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109037         * modules/chown (Files): Add lib/fchown-stub.c, since
109038         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
109040 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109042         * lib/fchown-stub.c: New file.
109044 2004-06-24  Jim Meyering  <jim@meyering.net>
109046         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
109048 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109050         * modules/argz: Omit "#include".
109052         * MODULES.html.sh (func_all_modules): Add calloc, to match
109053         2004-06-01 addition of calloc module.
109055 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109057         * m4/argz.m4: New file, which is autoupdated from libtool.
109059 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109061         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
109062         libtool.
109064 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109066         * config/srclist-update: Don't insist on "USA." before the
109067         close-comment, as libtool omits the period and puts the */ on a
109068         separate line.
109069         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
109070         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
109072 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
109074         * modules/argz: New file.
109075         * MODULES.html.sh (func_all_modules): Add argz.
109077 2004-06-12  Jim Meyering  <jim@meyering.net>
109078         and  Paul Eggert  <eggert@cs.ucla.edu>
109080         * modules/hash (Files): Add lib/xalloc.h.
109081         * modules/pipe (Depends-on): Add wait-process.
109082         * modules/stat (Depends-on): Add xalloc.
109083         * modules/userspec (Files): Add lib/userspec.h.
109084         * modules/xstrto
109086         Upgrade from gettext-0.13.
109087         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
109088         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
109089         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
109091 2004-06-10  Jim Meyering  <jim@meyering.net>
109093         * lib/calloc.c: New file.
109095 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
109097         * lib/getdate.y (yylex): Allow space between sign and number.
109098         Problem reported by Dan Jacobson.
109100 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109102         Merge from coreutils CVS.
109104         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
109105         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109106         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109107         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109108         xstrtol.m4: Fix copyright date and/or serial number.
109110         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109111         See if we need an fchown replacement.
109112         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109113         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109114         and use the replacement function if we detect either defect.
109116         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109117         gl_UTIMECMP.
109119 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109120         and  Jim Meyering  <jim@meyering.net>
109122         Merge from coreutils CVS.
109124         * lib/stat-macros.h: New file, with contents from file-type.h
109125         and coreutils' system.h.
109126         * lib/file-type.c: Include "stat-macros.h".
109127         * lib/file-type.h (file_type): Move all macro definitions to new file,
109128         stat-macros.h.
109130         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109131         Wrap old code with this conditional.
109132         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109133         function that does not dereference symlinks.
109134         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109136         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109137         dependency problems.
109138         (xreadlink): Accept new arg SIZE, for efficiency.
109139         All decls and uses changed.
109140         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109142         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109143         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109145         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109146         sysexits.h.
109148 2004-06-01  Jim Meyering  <jim@meyering.net>
109150         * m4/calloc.m4: New file.
109152 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109155         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109156         Also, fix a typo in a diagnostic.
109158 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109160         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109161         or AC_FUNC_REALLOC.
109163 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109165         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109166         macros to be defined.
109167         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109168         the allocator returns NULL because the requested size is zero.
109170 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109172         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109173         var.  Add comment explaining why libc still defines it.  This
109174         merges the following patch from glibc:
109175         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109177 2004-05-20  Andreas Schwab  <schwab@suse.de>
109179         * m4/free.m4: Replace free if it not known to work, not the other
109180         way round.
109182 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109184         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109185         present in glibc since revision 1.1 of this file.
109186         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109187         obstack_alignment_mask, obstack_alloc, obstack_base,
109188         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109189         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109190         obstack_grow0, obstack_init, obstack_int_grow,
109191         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109192         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109193         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109194         nonexistent functions.
109196 2004-05-18  Karl Berry  <karl@gnu.org>
109198         * config/srclist.txt: break link for vasnprintf.c.
109200 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109202         Port obstack to the AS/400, where pointers are 16 bytes wide and
109203         you cannot cast an integer to a valid pointer.  This patch is
109204         currently waiting to be integrated into glibc; see
109205         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109207         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109208         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109209         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109210         (struct obstack): temp member is now a union of a pointer and
109211         an integer, instead of an integer.  All integer uses changed.
109212         This does not affect the physical layout of struct obstack,
109213         except on hosts (like the AS/400) where the size or alignment of
109214         void * is greater than that of ptrdiff_t.
109215         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109216         __STDC__)]: Store temporary in pointer member of union, not
109217         integer member.
109218         * lib/obstack.c: Include <stddef.h>, for offsetof.
109219         (struct fooalign): Remove; it doesn't need a name.
109220         (union fooround): Change double to long double, and add void *.
109221         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109222         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109223         not a macro.  Hence the values are always int; so remove all
109224         casts-to-int in uses.
109226 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109228         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109229         we can get this patch merged into glibc.
109231 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109232             Paul Eggert  <eggert@cs.ucla.edu>
109234         * m4/argp: Depend on alloca.
109236 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109237             Paul Eggert  <eggert@cs.ucla.edu>
109239         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109240         freecoding.
109242 2004-05-17  Bruno Haible  <bruno@clisp.org>
109244         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109245         precision that consists of a '.' followed by an empty digit string.
109246         Patch by Tor Lillqvist <tml@iki.fi>.
109248 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109251         for backward compatibility with older code.  We need our own
109252         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109253         it under some other name, and our alloca.h will define it.
109255 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109256             Derek Price  <derek@ximbiot.com>
109258         * lib/alloca.c: Include <alloca.h>, to get our interface.
109259         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109260         include <alloca.h> first.  Use C89 prototype for alloca; this
109261         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109262         Use #elif for simplicity, since we can assume C89 now.
109263         Don't try to source the system alloca.h since it will not be found
109264         and to prevent recursively including its replacement.
109265         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109266         * lib/regex.c: Likewise.
109268 2004-05-16  Derek Price  <derek@ximbiot.com>
109269             Paul Eggert  <eggert@cs.ucla.edu>
109271         getline cleanup.  This changes the getndelim2 API: both order of
109272         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109273         no delimiter).
109275         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109276         interface does that.
109277         (getline): Always use getdelim, so that we don't have two
109278         copies of this code.
109279         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109280         if available.
109281         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109282         (GETNDELIM2_MAXIMUM): New macro.
109283         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109284         instead of the old practice of delim2==0.  All callers changed.
109285         Return -1 on overflow, instead of returning junk.
109286         Do not set *linesize unless allocation succeeds.
109287         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109288         that we include sys/types.h.
109289         * lib/getnline.h: Likewise.
109290         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109291         (getndelim2): Reorder arguments.
109292         * lib/getnline.c (getnline, getndelim):
109293         Don't discard the NMAX argument.
109294         (getnline): Invoke getndelim, to avoid code duplication.
109295         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109296         of (size_t) -1 by callers of the getnline family.
109298 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109300         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109301         Check for gettimeofday.
109302         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109303         Check for settimeofday, stime.
109305 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109307         * lib/nanosleep.c (suspended): Change its type from int to
109308         sig_atomic_t volatile.
109309         (first_call): Make it private to rpl_nanosleep, and have it
109310         be zero initially as that's a bit faster.
109311         (my_usleep): Round up fractional times instead of truncating them,
109312         as this is the usual meaning for 'sleep'.
109314         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109315         doesn't work.
109316         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109317         (ENOSYS): Define if not defined.
109318         (settime): Fall back on stime if it exists and settimeofday fails.
109319         But don't bother with fallbacks if a method fails with errno == EPERM.
109321 2004-05-11  Jim Meyering  <jim@meyering.net>
109323         Prior to this change, the save_cwd caller required read access to the
109324         current directory on most systems (ones with the fchdir function).
109326         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109327         fails, try write-only, and finally, resort to using xgetcwd.
109329 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109331         * lib/obstack.c, obstack.h: Import changes from libc.
109333 2004-04-28  Bruno Haible  <bruno@clisp.org>
109335         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109336         also implicitly appends .exe to executables.
109337         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109338         accepts Windows pathnames.
109339         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109340         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109341         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109342         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109343         Reported by Derek Robert Price <derek@ximbiot.com>.
109345 2004-04-21  Karl Berry  <karl@gnu.org>
109347         * config/srclist.txt (localcharset.c): break sync.
109349 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109351         * m4/host-os.m4: Add a copyright notice.
109353 2004-04-20  Jim Meyering  <jim@meyering.net>
109355         Change UTILS_ to gl_ in AC_DEFINE'd names.
109356         Change utils_- and jm_-prefixed variables, too.
109357         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109358         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109359         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109361         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109362         Don't emit trailing blanks.
109363         Also rename jm_-prefixed variables to have gl_ prefix.
109365         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109366         Also rename jm_-prefixed variables to have gl_ prefix.
109368         * m4/jm-macros.m4: Reflect the renamings.
109369         * m4/prereq.m4: Likewise.
109371 2004-04-20  Jim Meyering  <jim@meyering.net>
109373         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109374         memory.
109376 2004-04-20  Jim Meyering  <jim@meyering.net>
109377             Bruno Haible  <bruno@clisp.org>
109379         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109380         memory when realloc fails.
109382 2004-04-19  Jim Meyering  <jim@meyering.net>
109384         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109385         now that readutmp.c may call `free (0)'.
109387 2004-04-19  Bruno Haible  <bruno@clisp.org>
109389         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109390         * m4/inttypes_h.m4: Likewise.
109391         * m4/stdint_h.m4: Likewise.
109392         * m4/intmax_t.m4: Likewise.
109393         * m4/uintmax_t.m4: Likewise.
109395 2004-04-18  Jim Meyering  <jim@meyering.net>
109397         * m4/prereq.m4: Don't forbid jm_ prefix.
109399         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109400         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109401         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109402         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109403         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109404         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109405         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109406         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109407         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109408         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109409         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109410         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109411         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109412         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109413         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109414         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109415         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109416         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109417         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109419 2004-04-18  Jim Meyering  <jim@meyering.net>
109421         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109422         failure, don't leak memory and do call END_UTMP_ENT.
109424 2004-04-16  Jim Meyering  <jim@meyering.net>
109426         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109427         coreutils' stat program.
109428         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109430 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109432         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109433         C89.
109434         (CHAR_BIT): Remove, since we assume C89.
109435         Include <stdint.h> if available, as per current Autoconf CVS advice.
109437 2004-03-31  Jim Meyering  <jim@meyering.net>
109439         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109440         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109441         * m4/xalloc.m4: Likewise.
109443 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109445         Merge from coreutils.
109447         * m4/inttostr.m4: New file.
109448         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109449         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109450         Require gl_CLOCK_TIME.
109451         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109453 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109455         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109456         not bool, to be more consistent with Unix conventions.
109457         Suggested by Bruno Haible.
109459         Merge from coreutils.
109461         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109462         * lib/umaxtostr.c: New files.
109464         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109465         the usual <time.h> dance.
109466         (get_date): Change signature to support fractional time stamps.
109467         All callers changed.
109468         * lib/getdate.y: Include "getdate.h" first, as we can now
109469         assume C89 and don't need to worry about 'const'.
109470         Similarly, include "unlocked-io.h" near start, not in middle.
109471         Include <limits.h>.
109472         (textint.value): Use long int rather than int.
109473         (textint.digits): Use size_t rather than int.
109474         (BILLION, LOG10_BILLION): New constants.
109475         (parser_control): New member rel_ns.  Members day_ordinal,
109476         time_zone, month, day, hour, minutes, rel_year, rel_month,
109477         rel_day, rel_hour, rel_minutes, rel_seconds
109478         are now long int, not int.  Member seconds is now struct timespec,
109479         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109480         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109481         not int.
109482         (%union.intval): Now long int, not int.
109483         New member timespec.
109484         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109485         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109486         (spec): Now is a timespec or an item list.
109487         (timespec, items): New nonterminals.
109488         (time, rel, relunit, number, get_date):
109489         Add support for fractional seconds.
109490         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109491         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109492         (to_hour): First arg is now long int, not int.
109493         (to_year): Returns long int, not int.
109494         Don't treat year -70 like 70.
109495         (tm_diff): Returns long int, not int.
109496         (lookup_word): Use bool instead of int when appropriate.
109497         (yylex): Use size_t for count, not int.
109498         Detect overflow when parsing large integer constants.
109499         Add support for fractions.
109500         (get_date): Make pointers 'const' if possible.
109501         Use more-portable code to detect integer overflow.
109502         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109503         Don't use ctime; it's not reliable if the year has >4 digits.
109505         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109506         This is for compatibility with BSD.
109508         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109509         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109510         From coreutils' system.h.
109512         * lib/userspec.c: Don't include "posixver.h".
109513         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109514         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109515         compatible extension.  Simplify code by removing a boolean int
109516         that was always nonzero if a string was nonnull.
109518 2004-03-30  Jim Meyering  <jim@meyering.net>
109520         Merge from coreutils.
109522         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109523         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109524         on some systems one must include <grp.h> before it.
109525         Reported by Christian Krackowizer.
109527 2004-03-30  Jim Meyering  <jim@meyering.net>
109529         Merge from coreutils.
109531         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109533         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109534         an empty input stream.
109536         * lib/readtokens.c: Include <stdbool.h>.
109537         (readtoken): Use `size_t' rather than int/long.
109538         All callers adjusted.
109539         Use `bool' rather than `int' where appropriate.
109540         Use memset rather than an explicit loop.
109541         Use x2nrealloc rather than xrealloc.
109542         Allow the use of `\0' as a delimiter.
109543         (readtokens): Likewise.
109544         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109546 2004-03-30  Jim Meyering  <jim@meyering.net>
109548         * m4/realloc.m4: Remove file, since now it does no more than
109549         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109550         the `configure.ac' section of module/realloc.
109551         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109553 2004-03-30  Bruno Haible  <bruno@clisp.org>
109555         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109556         nonnull.
109558 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109560         Merge changes to getloadavg.c from coreutils and Emacs.
109562         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109563         Define to an expression, not to the empty string.
109564         Include cloexec.h and xalloc.h.
109565         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109566         Use set_cloexec_flag rather than rolling our own.
109567         * lib/cloexec.c, lib/cloexec.h: New files.
109569 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109571         * m4/cloexec.m4: New file.
109573 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109575         * lib/getopt.h: Sync with libc CVS.
109577 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109578             Bruno Haible  <bruno@clisp.org>
109580         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109581         mbswidth.
109583 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109584             Bruno Haible  <bruno@clisp.org>
109586         * lib/mbswidth.h: Include <wchar.h> only if
109587         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109588         <wchar.h>.
109589         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109591 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109593         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109594         Sync with libc CVS.
109595         * lib/getopt_int.h: New file, also synced from libc.
109597 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109599         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109600         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109601         Bring back getopt.c, getopt.h, getopt1.c.
109603 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109605         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109606         All uses changed.  Check for sa_sigaction member; this fixes
109607         a bug first reported by Jason Andrade in
109608         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109610 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109612         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109613         '#if' expressions.  Unlike the code it replaces, it does not
109614         depend on (defined _SC_PAGESIZE).  However, it does depend on
109615         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109616         first reported by Jason Andrade in
109617         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109619 2004-02-25  Simon Josefsson  <jas@extundo.com>
109621         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109623 2004-02-25  Simon Josefsson  <jas@extundo.com>
109625         * lib/strdup.h: New file.
109626         * lib/strdup.c: Include it.
109627         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109628         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109630 2004-02-23  Karl Berry  <karl@gnu.org>
109632         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109633         (from fencepost.gnu.org:/gd/gnuorg).
109635 2004-02-23  Karl Berry  <karl@gnu.org>
109637         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109638         * config/srclist.txt: add maintain/standards documents.
109640 2004-02-18  Bruno Haible  <bruno@clisp.org>
109642         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109643         Reported by Derek Robert Price <derek@ximbiot.com>.
109645 2004-02-16  Karl Berry  <karl@gnu.org>
109647         * config/mkinstalldirs, install-sh: update from automake.
109649 2004-02-06  Karl Berry  <karl@gnu.org>
109651         * m4/po.m4: update from gettext 0.14.1.
109653 2004-02-06  Karl Berry  <karl@gnu.org>
109655         * lib/config.charset: update from gettext 0.14.1.
109657 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109659         Add comments and code, prompted by suggestions from Bruno Haible
109660         for sh-quote.
109661         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109662         describing the enum quoting_style values.
109663         * lib/quotearg.c (quotearg_alloc): New function.
109664         (quotearg_buffer_restyled): Treat lone { and } as special.
109665         Treat = as special.  Work around bug with older shells
109666         that "see" a '\' that is really the 2nd byte of a multibyte char.
109667         Quote empty string with shell_quoting_style.
109669 2004-02-03  Bruno Haible  <bruno@clisp.org>
109671         * m4/pipe.m4: New file, from GNU gettext.
109673 2004-02-03  Bruno Haible  <bruno@clisp.org>
109675         * lib/pipe.h: New file, from GNU gettext.
109676         * lib/pipe.c: New file, from GNU gettext.
109678 2004-01-27  Bruno Haible  <bruno@clisp.org>
109680         * m4/execute.m4: New file, from GNU gettext.
109682 2004-01-27  Bruno Haible  <bruno@clisp.org>
109684         * lib/execute.h: New file, from GNU gettext.
109685         * lib/execute.c: New file, from GNU gettext.
109686         * lib/w32spawn.h: New file, from GNU gettext.
109688 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109690         Merge from diffutils.
109692         * lib/file-type.c (file_type): Add typed memory objects.
109693         * lib/file-type.h (S_TYPEISTMO): New macro.
109695         * lib/c-stack.h (c_stack_action): Remove argv argument.
109696         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109697         (die): Don't calculate message unless segv_action returns.
109698         (get_stack_location, min_address_from_argv, max_address_from_argv,
109699         volatile stack_base, volatile_stack_size): Remove.
109700         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109701         that every segmentation violation is a stack overflow.  (Ouch!)
109702         See Debian bug 136249 (still outstanding) for more info about why
109703         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109705 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109707         Exit-status fix from coreutils.
109709         Use exit_failure consistently in place of EXIT_FAILURE,
109710         so that program exit statuses are consistent on failure.
109712         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109713         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109714         * lib/argmatch.h: Comment fix to match the above.
109715         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109716         Now a macro referring to exit_failure, instead of a separate
109717         variable.  Include "exitfail.h" to get it.
109718         * lib/xstrtol.h: Include "exitfail.h".
109719         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109721         * lib/long-options.c (parse_long_options): Use prototype
109722         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109723         for clarity.
109725 2004-01-21  Jim Meyering  <jim@meyering.net>
109727         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109728         so as not to conflict with a different-sized __mktime_internal
109729         function in GNU libc.
109730         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109731         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109733 2004-01-20  Karl Berry  <karl@gnu.org>
109735         * config/config.guess: update from config.
109737         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109739 2004-01-20  Bruno Haible  <bruno@clisp.org>
109741         Safer stack allocation.
109742         * lib/setenv.c: Include allocsa.h.
109743         (alloca): Remove fallback definition.
109744         (freea): Remove macro.
109745         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109746         instead of freea.
109748 2004-01-20  Bruno Haible  <bruno@clisp.org>
109750         * m4/eealloc.m4: New file, from GNU gettext.
109752 2004-01-20  Bruno Haible  <bruno@clisp.org>
109754         * m4/allocsa.m4: New file, from GNU gettext.
109756 2004-01-20  Bruno Haible  <bruno@clisp.org>
109758         * lib/xallocsa.h: New file, from GNU gettext.
109759         * lib/xallocsa.c: New file, from GNU gettext.
109761 2004-01-20  Bruno Haible  <bruno@clisp.org>
109763         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109765 2004-01-20  Bruno Haible  <bruno@clisp.org>
109767         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109768         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109769         specially.
109771 2004-01-20  Bruno Haible  <bruno@clisp.org>
109773         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109774         patch.
109776 2004-01-20  Bruno Haible  <bruno@clisp.org>
109778         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109780 2004-01-20  Bruno Haible  <bruno@clisp.org>
109782         * lib/eealloc.h: New file.
109784 2004-01-20  Bruno Haible  <bruno@clisp.org>
109786         * lib/binary-io.h: Avoid warnings on Cygwin.
109788 2004-01-20  Bruno Haible  <bruno@clisp.org>
109790         * lib/allocsa.h: New file, from GNU gettext.
109791         * lib/allocsa.c: New file, from GNU gettext.
109793 2004-01-18  Karl Berry  <karl@gnu.org>
109795         * doc/gpl.texi, doc/lgpl.texi: new files.
109797 2004-01-18  Karl Berry  <karl@gnu.org>
109799         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109800         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109802 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109804         Merge from coreutils.
109806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109807         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109808         (gl_DEFAULT_POSIX2_VERSION): Move
109809         the documentation from 'configure' into 'config.hin',
109810         so that 'configure --help' isn't burdened by it and
109811         we don't have to worry about its formatting there.
109812         Reword the documentation so that it's more succinct
109813         and can be run together into a single paragraph.
109814         * m4/same.m4 (gl_SAME): Check for pathconf.
109816 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109818         Merge from coreutils.
109820         * lib/posixver.c: Include posixver.h.
109822         * lib/same.c: Include <stdbool.h>, <limits.h>.
109823         (_POSIX_NAME_MAX): Define if not defined.
109824         (MIN): New macro.
109825         (same_name): If file names are silently truncated, report
109826         that the file names are the same if they are the same after
109827         the silent truncation.
109829         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109830         conversion function.
109831         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109832         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109833         longer needed.
109835 2004-01-15  Jim Meyering  <jim@meyering.net>
109837         Merge from coreutils.
109839         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109840         if no library is required.
109841         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109842         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109843         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109844         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109845         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109846         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109847         value, $ac_cv_search_crypt, if it's "none required".
109848         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109849         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109850         not gl_FUNC_GETLOADAVG.
109851         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109852         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109854 2004-01-15  Jim Meyering  <jim@meyering.net>
109856         Merge from coreutils.
109858         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109859         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109860         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109862         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109863         optional configure-time default.
109865         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109867         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109869 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109871         Merge from coreutils.
109873         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109874         value, $ac_cv_search_nanosleep, if it's "none required".
109876 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109878         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109879         with like-named macro in fnmatch.c.
109880         (EXT): Use an internal constant instead.
109882         Merge fnmatch patches from glibc.
109883         * lib/fnmatch.c (mbsinit): Remove define.
109884         Add libc_hidden_ver (__fnmatch, fnmatch).
109885         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109886         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109888 2004-01-14  Karl Berry  <karl@gnu.org>
109890         * config/install-sh: update from automake.
109892 2004-01-13  Karl Berry  <karl@gnu.org>
109894         * config/install-sh: update from automake.
109896 2004-01-09  Karl Berry  <karl@gnu.org>
109898         * config/install-sh: update from automake.
109900 2004-01-05  Karl Berry  <karl@gnu.org>
109902         * config/config.{sub,guess}: update from config.
109904 2003-12-31  Karl Berry  <karl@gnu.org>
109906         * config/depcomp: update from automake.
109908 2003-12-14  Karl Berry  <karl@gnu.org>
109910         * lib/config.charset: update from gettext-runtime.
109912 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109914         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109915         Bug reported by Alfred M. Szmidt.
109917 2003-12-03  Bruno Haible  <bruno@clisp.org>
109919         * m4/gettext.m4: Upgrade from gettext-0.13.
109920         * m4/po.m4: Upgrade from gettext-0.13.
109921         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109922         * m4/intmax.m4: New file, from gettext-0.13.
109923         * m4/printf-posix.m4: New file, from gettext-0.13.
109925 2003-11-29  Karl Berry  <karl@gnu.org>
109927         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109929 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109930             Bruno Haible  <bruno@clisp.org>
109932         * lib/printf-parse.h: Don't include sys/types.h.
109933         (ARG_NONE): New macro.
109934         (char_directive): Change type of *arg_index fields to size_t.
109935         * lib/printf-parse.c: Don't include sys/types.h.
109936         (SSIZE_MAX): Remove macro.
109937         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109938         Remove unnecessary overflow check.
109939         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109940         fields.
109942 2003-11-25  Bruno Haible  <bruno@clisp.org>
109944         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109946 2003-11-25  Bruno Haible  <bruno@clisp.org>
109948         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109949         gt_TYPE_SSIZE_T.
109951 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109953         * modules/alloca: Remove dependency on xalloc.
109955 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109957         * lib/alloca.c: Remove dependency on xalloc module.
109958         (xalloc_die): Remove.
109959         (memory_full) [!defined emacs]: New macro.
109960         [!defined emacs]: Don't include xalloc.h.
109961         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109962         address arithmetic overflows.  Change datatypes a bit to avoid
109963         unnecessary casts.
109965 2003-11-22  Jim Meyering  <jim@meyering.net>
109967         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109968         s/size/size_t/.
109970 2003-11-21  Karl Berry  <karl@gnu.org>
109972         * config/config.{sub,guess}: update from config.
109974 2003-11-18  Karl Berry  <karl@gnu.org>
109976         * config/config.{sub,guess}: update from config.
109978         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109980 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109982         * README: Mention that S+T cannot overflow if S is the size of
109983         an existing object and T is sufficiently small.
109985 2003-11-17  Jim Meyering  <jim@meyering.net>
109987         On systems without utime and without a utimes function capable of
109988         dealing with a NULL struct utimbuf* argument, this utime replacement
109989         could -- in unusual circumstances -- leak a file descriptor.
109990         * lib/utime.c: Include <unistd.h> and <errno.h>.
109991         (utime_null): Be sure to close `fd' and to preserve errno.
109992         Reported by Geoff Collyer via Arnold Robbins.
109994 2003-11-17  Bruno Haible  <bruno@clisp.org>
109996         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109997         (Depends-on): Add xsize.
109999 2003-11-17  Bruno Haible  <bruno@clisp.org>
110001         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
110003 2003-11-17  Bruno Haible  <bruno@clisp.org>
110005         * lib/vasnprintf.c (alloca): Remove fallback definition.
110006         (freea): Remove definition.
110007         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
110008         Reported by Paul Eggert.
110010 2003-11-16  Paul Eggert  <eggert@twinsun.com>
110011             Bruno Haible  <bruno@clisp.org>
110013         Protect against address arithmetic overflow.
110014         * lib/printf-args.h: Include stddef.h.
110015         (arguments): Change type of field 'count' to size_t.
110016         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
110017         'unsigned int' where appropriate.
110018         * lib/printf-parse.h: Include sys/types.h.
110019         (char_directive): Change type of *arg_index fields to ssize_t.
110020         (char_directives): Change type of fields 'count', max_*_length to
110021         size_t.
110022         * lib/printf-parse.c: Include sys/types.h and xsize.h.
110023         (SSIZE_MAX): Define fallback value.
110024         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
110025         instead of 'int' where appropriate. Check a_allocated, d_allocated
110026         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
110027         * lib/vasnprintf.c: Include xsize.h.
110028         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
110029         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
110030         overflow. Avoid wraparound when converting a width or precision from
110031         decimal to binary.
110033 2003-11-16  Bruno Haible  <bruno@clisp.org>
110035         Update from GNU gettext.
110036         * lib/printf-parse.c: Generalize to it can be compiled for wide
110037         strings.
110038         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
110039         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
110040         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
110041         SNPRINTF): New macros.
110042         Don't include <alloca.h> if the file is used inside libintl.
110043         (local_wcslen): New function, for Solaris 2.5.1.
110044         (VASNPRINTF): Use it instead of wcslen.
110046 2003-11-16  Bruno Haible  <bruno@clisp.org>
110048         * lib/xsize.h (xmax): New function.
110049         (xsum, xsum3, xsum4): Declare as "pure" functions.
110051 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110053         * modules/xalloc (Files): Undo latest change, since xalloc.h
110054         no longer needs SIZE_MAX or PTRDIFF_MAX.
110056 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110058         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
110059         gl_PTRDIFF_MAX.
110061 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110063         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
110064         "return", to pacify some unknown compiler.  Problem reported
110065         by Joerg Schilling.
110067 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110069         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
110070         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
110071         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
110072         heuristic is just as accurate as far as we know, and it removes a
110073         dependency on size_max.m4 and ptrdiff_max.m4.
110075 2003-11-11  Bruno Haible  <bruno@clisp.org>
110077         * modules/xsize (Files): Add m4/size_max.m4.
110078         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
110080 2003-11-11  Bruno Haible  <bruno@clisp.org>
110082         * m4/size_max.m4: New file.
110083         * m4/ptrdiff_max.m4: New file.
110084         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
110085         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
110086         (gl_XALLOC): Invoke it.
110088 2003-11-11  Bruno Haible  <bruno@clisp.org>
110090         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
110091         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
110092         defined.
110094 2003-11-10  Paul Eggert  <eggert@twinsun.com>
110096         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
110097         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
110098         rejected some allocations of exactly SIZE_MAX - 2 bytes.
110099         From Bruno Haible.
110100         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
110101         not (size_t) -1, since it's defined here.
110103 2003-11-09  Karl Berry  <karl@gnu.org>
110105         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110107 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110109         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110110         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110111         Reject sizes of exactly SIZE_MAX bytes.
110112         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110113         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110115 2003-11-05  Bruno Haible  <bruno@clisp.org>
110117         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110118         SIZE_MAX defined in <limits.h> on Solaris.
110120 2003-11-04  Jim Meyering  <jim@meyering.net>
110122         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110123         variable names, rather than @VAR@.
110124         * modules/poll: Likewise.
110126 2003-11-04  Bruno Haible  <bruno@clisp.org>
110128         * modules/xsize: New file.
110129         * modules/linebreak: Depend on xsize.
110130         * MODULES.html.sh (func_all_modules): Add xsize.
110132 2003-11-04  Bruno Haible  <bruno@clisp.org>
110134         * m4/xsize.m4: New file.
110136 2003-11-04  Bruno Haible  <bruno@clisp.org>
110138         * lib/xsize.h: New file.
110139         * lib/linebreak.c: Include xsize.h.
110140         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110141         argument for overflow.
110142         Suggested by Paul Eggert.
110144 2003-11-03  Karl Berry  <karl@gnu.org>
110146         * config/config.{guess,sub}: update from config.
110148 2003-11-03  Jim Meyering  <jim@meyering.net>
110150         * modules/userspec (lib_SOURCES): Add userspec.h.
110151         (Include): Add "userspec.h".
110152         Improve description.
110154 2003-11-03  Jim Meyering  <jim@meyering.net>
110156         * lib/userspec.c: Include "userspec.h".
110157         * lib/userspec.h: New file.
110159 2003-11-03  Bruno Haible  <bruno@clisp.org>
110161         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110163 2003-11-03  Bruno Haible  <bruno@clisp.org>
110165         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110166         available, to avoid (extremely rare) race condition.
110167         Suggested by Paul Eggert.
110169 2003-11-02  Karl Berry  <karl@gnu.org>
110171         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110173 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110175         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110176         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110177         (read_filesystem_list): Set and use me_type_malloced.
110178         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110179         whatever the type happens to be), for brevity and consistency.
110180         Check for size calculation overflow on Alphas running OSF/1.
110182 2003-10-31  Jim Meyering  <jim@meyering.net>
110184         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110186         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110188 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110189             Bruno Haible  <bruno@clisp.org>
110191         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110192         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110194 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110196         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110197         netbsd*-gnu*.  Suggested by Robert Millan.
110199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110201         * modules/group-member: Depend on stdbool.
110203 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110205         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110207 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110209         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110210         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110211         after the 'gnu' in these cases.  This fixes some bugs in the
110212         previous change, and is based on suggestions by Robert Millan.
110214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110216         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110217         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110218         no longer needed.
110219         * lib/quotearg.c (quotearg_n_options): Use it.
110220         * lib/group-member.c: Include <stdbool.h>.
110221         (free_group_info): Arg is now const *; don't free arg.
110222         (get_group_info): Now returns bool and accepts struct group_info *,
110223         rather than returning a malloc'ed struct group_info *.
110224         All uses changed.  Check for overflow in internal size calculation.
110226         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110227         rather than xmalloc/xrealloc.
110228         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110229         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110230         conformance bug: the old code used a pointer after freeing the
110231         storage that it addressed.
110232         * lib/hash.c (hash_initialize): Simplify the code by using
110233         xalloc_oversized rather than doing it by hand.
110234         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110235         the buffer preserved.  Use free and xmalloc instead.
110236         * lib/quotearg.c (quotearg_n_options): Likewise.
110237         Use a simpler test for size overflow.  Don't use xalloc_oversized
110238         because unsigned int might be wider than size_t (!); this suggests
110239         that we should switch from unsigned int to size_t for slot numbers.
110241 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110243         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110244         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110245         NetBSD kernels.  Requested by Richard Stallman.
110247 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110249         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110250         to allocate the returned structure.  Do not allocate a subarray,
110251         as x2nrealloc will do that.
110252         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110253         instead of xnrealloc.
110254         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110256 2003-10-27  Bruno Haible  <bruno@clisp.org>
110258         * lib/stdbool_.h: Better support for BeOS.
110260 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110262         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110263         now uses inline.
110265 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110267         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110268         callers that want to do their own size-overflow checking.  Include
110269         <stdbool.h>, since xalloc_oversized returns bool.
110270         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110271         to use xalloc_oversized.
110273         Add two functions x2realloc, x2nrealloc, for programs that grow
110274         arrays dynamically by doubling their sizes.
110275         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110276         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110277         New functions.
110279         Port to C99 semantics for 'inline' of external functions.
110280         Bug reported by Bruno Haible.
110281         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110282         with the old contents of xnmalloc.
110283         (xnmalloc, xmalloc): Use it.
110284         (xnrealloc_inline): New static inline function,
110285         with the old contents of xnrealloc.
110286         (xnrealloc, xrealloc): Use it.
110288         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110289         that.
110291 2003-10-26  Karl Berry  <karl@gnu.org>
110293         * config/srclist.txt (COPYING.DOC): no longer available from
110294         /gd/gnuorg; don't know where the ultimate source is.
110296 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110298         Fix several address-calculation bugs in the hash modules,
110299         plus some minor code cleanup.
110301         * lib/hash.h: Include <stdbool.h>, for bool.
110302         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110303         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110304         hash_get_n_entries, hash_get_max_bucket_length,
110305         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110306         hash_rehash): Use size_t rather than unsigned.
110307         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110308         hash_get_n_buckets_used, hash_get_n_entries,
110309         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110310         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110311         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110312         Likewise.
110313         (SIZE_MAX): Define if not defined.
110314         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110315         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110316         hash_print):
110317         Use const * when possible.
110318         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110319         (check_tuning): Fix bug: if tuning parameters were very close to
110320         0 or 1, rounding errors could have caused subscript violations.
110321         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110322         (hash_initialize): Add 'fail:' label
110323         to free table and return NULL, and use it to simplify code.
110324         Use calloc rather than clearing the storage ourself.
110325         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110326         buffer size calculations.
110327         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110328         Include <stddef.h>, for size_t.
110329         * lib/hash-pjw.c (hash_pjw): Likewise.
110330         Switch to method described by Bruno Haible.
110331         Include <limits.h>, for CHAR_BIT.
110332         (SIZE_BITS): New macro.
110334 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110336         * m4/getline.m4 (AM_FUNC_GETLINE):
110337         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110338         hosts.  Problem reported by Derek Robert Price in
110339         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110340         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110341         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110343 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110345         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110346         ceiling the allocation at NMAX bytes rather than silently
110347         discarding input bytes before NMAX is reached.  This makes
110348         a difference only if NMAX exceeds SIZE_MAX / 2.
110350         * lib/obstack.c: Merge from glibc.
110351         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110352         Add libc_hidden_def (_obstack_newchunk).
110353         (_obstack_free) [! defined _LIBC]: Remove.
110354         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110355         a clone of the function body.
110356         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110357         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110359         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110360         glibc.
110361         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110362         arg to memcpy.
110364         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110365         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110366         Don't use lvalue casts, as GCC plans to remove support for them
110367         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110368         was also present in the non-GCC version, indicating that this
110369         code had always been buggy and had never been widely used.
110370         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110371         Use the fast variant of each macro, rather than copying the
110372         definiens of the fast variant; that way, we'll be more likely to
110373         catch future bugs in the fast variants.
110375 2003-10-20  Bruno Haible  <bruno@clisp.org>
110377         * modules/wait-process: New file.
110378         * MODULES.html.sh (func_all_modules): Add wait-process.
110380 2003-10-20  Bruno Haible  <bruno@clisp.org>
110382         * m4/wait-process.m4: New file.
110384 2003-10-20  Bruno Haible  <bruno@clisp.org>
110386         * lib/wait-process.h: New file, from GNU gettext.
110387         * lib/wait-process.c: New file, from GNU gettext.
110389 2003-10-19  Jim Meyering  <jim@meyering.net>
110391         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110392         HPUX 10.20.
110394 2003-10-18  Karl Berry  <karl@gnu.org>
110396         * config/config.guess: update from config.
110398 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110400         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110401         (getgroups): First arg is int, not size_t.
110402         Don't let 'free' mangle errno.
110404 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110406         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110408 2003-10-16  Karl Berry  <karl@gnu.org>
110410         * config/config.{guess,sub}: update from config.
110412 2003-10-16  Jim Meyering  <jim@meyering.net>
110414         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110415         memcpy.
110417 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110419         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110420         (SIZE_MAX): Remove.
110421         (new_exclude, add_exclude_file): Initial size no longer needs to
110422         be a power of 2.
110423         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110424         our own address arithmetic overflow checking.
110426         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110427         (fnmatch): Do not alloca more than 2000 wide characters;
110428         instead, use malloc for large buffers.
110429         Check for address arithmetic overflow, and return -1
110430         with errno set to ENOMEM in that case.
110431         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110432         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110433         instead, return -1.  Check for address arithmetic overflow.
110435 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110437         Handle invalid suffixes and overflow independently, so that
110438         callers can treat them independently as needed.  Fix some bugs in
110439         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110440         suffix for a human-readable blocksize.  The major caller-visible
110441         change is the addition of a new
110442         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110443         that both overflow and suffix chars were found.
110445         * lib/human.c (humblock): Don't check separately for invalid suffix
110446         char; that is xstrtoumax's job (now that its bug is fixed).
110447         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110448         INTMAX_MAX]: New macros.
110449         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110450         TYPE_MAXIMUM): New macros.
110451         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110452         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110453         if overflow occurs, as it's what __strtol does and it's more useful
110454         in practice.
110455         (__xstrtol): If __strtol reports some error other than ERANGE,
110456         reflect it to the caller as LONGINT_INVALID.  If it reports
110457         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110458         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110459         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110460         value.
110461         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110462         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110463         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110464         [defined UINTMAX_MAX]: New macros.
110466 2003-10-14  Bruno Haible  <bruno@clisp.org>
110468         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110470 2003-10-14  Bruno Haible  <bruno@clisp.org>
110472         * m4/sig_atomic_t: New file, from GNU gettext.
110473         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110475 2003-10-14  Bruno Haible  <bruno@clisp.org>
110477         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110478         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110479         Also use volatile where needed.
110481 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110483         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110484         Change maintainer from Bruno Haible to 'all'.
110486 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110488         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110490 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110492         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110493         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110494         and define in terms of the other primitives.
110495         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110496         (SIZE_MAX): Define if not already defined.
110497         (array_size_overflow): New function.
110498         (xalloc_die): Abort instead of exiting if 'error' returns.
110499         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110500         (xmalloc, xrealloc): Use them.
110501         (xcalloc): Check for address arithmetic overflow.
110502         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110503         a bit faster than strcpy.
110505 2003-10-10  Simon Josefsson  <jas@extundo.com>
110507         * modules/argp (Depends-on): Add restrict and strcase.
110509 2003-10-10  Simon Josefsson  <jas@extundo.com>
110511         * m4/argp.m4: Add AC_C_INLINE.
110513 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110515         Merge getpass from libc, plus a few fixes.
110517         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110518         Include <stdbool.h>.
110519         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110520         __fsetlocking to empty.
110521         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110522         do include <bits/libc-lock.h>.
110523         Do not include <fcntl.h>; not needed.
110524         [_LIBC]: Include <wchar.h>.
110525         (NOTCANCEL_MODE): New macro.
110526         (flockfile, funlockfile) [_LIBC]: New macros.
110527         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110528         [!_LIBC]: New macros.
110529         (call_fclose): New function.
110530         (getpass): Use it.  Save tty stream separately; this simplifies the
110531         code and makes it more reliable if stdin happens to equal stdout.
110532         Invoke __fsetlocking on tty.
110533         Handle thread cancellation if needed.
110534         Namespace cleanup (use __tcgetattr, __getline).
110535         Use bool for Booleans.
110536         [USE_IN_LIBIO]: Handle wide streams.
110537         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110538         stream might go where.
110540         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110541         doesn't have to include <stdio.h> before us.
110542         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110543         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110544         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110545         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110546         if not declared, so that we can use getpass.c code from libc without
110547         rewriting it.
110548         (flockfile, ftrylockfile, funlockfile): New macros.
110550 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110552         * modules/getpass: Depend on stdbool.
110554 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110556         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110558 2003-10-07  Karl Berry  <karl@gnu.org>
110560         * config/config.{guess,sub}: update from config.
110562 2003-10-06  Jim Meyering  <jim@meyering.net>
110563             Bruno Haible  <bruno@clisp.org>
110565         This lets translators provide better translations for the
110566         "Written by ..." part of --version output.
110567         * lib/version-etc.h: Include stdarg.h.
110568         (version_etc_copyright): Declare as readonly.
110569         (version_etc): Make this function variadic with a NULL-terminated list
110570         of author name strings.
110571         (version_etc_va): New declaration.
110572         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110573         (version_etc_copyright): Declare as readonly.
110574         (version_etc_va): New function. Provide a different translatable string
110575         for each possible number of authors < 10. Abbreviate when there are 10
110576         authors or more.
110577         (version_etc): Make this function variadic. Call version_etc_va.
110578         Suggestion from Gary V. Vaughan.
110580         * lib/long-options.h (parse_long_options): Change prototype: the
110581         authors string is moved to the end and becomes variadic.
110582         * lib/long-options.c: Include stdarg.h.
110583         (parse_long_options): Make this function variadic, too.
110584         Call version_etc_va, not version_etc.
110586 2003-10-06  Bruno Haible  <bruno@clisp.org>
110588         * modules/version-etc-2: Remove file.
110589         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110591 2003-10-06  Bruno Haible  <bruno@clisp.org>
110593         * modules/fatal-signal: New file.
110594         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110596 2003-10-06  Bruno Haible  <bruno@clisp.org>
110598         * m4/fatal-signal.m4: New file.
110599         * m4/signalblocking.m4: New file, from GNU gettext.
110601 2003-10-06  Bruno Haible  <bruno@clisp.org>
110603         * lib/version-etc-2.h: Remove file.
110604         * lib/version-etc-2.c: Remove file.
110606 2003-10-06  Bruno Haible  <bruno@clisp.org>
110608         * lib/fatal-signal.h: New file, from GNU gettext.
110609         * lib/fatal-signal.c: New file, from GNU gettext.
110611 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110613         * README: Rework advice for preventing empty .o files.
110614         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110615         not <sys/types.h>.
110617 2003-10-04  Karl Berry  <karl@gnu.org>
110619         * lib/argp*: update from libc.
110621 2003-10-04  Karl Berry  <karl@gnu.org>
110623         * config/config.{guess,sub}: update from config.
110625 2003-10-02  Bruno Haible  <bruno@clisp.org>
110627         * modules/lchown (Include): Add lchown.h.
110628         * modules/time_r (Include): Use "..." syntax.
110629         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110631 2003-10-01  Simon Josefsson  <jas@extundo.com>
110633         * MODULES.html.sh (func_all_modules): Move gethostname from section
110634         'based on' to section 'lacking' POSIX:2001.
110636 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110638         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110639         to output mode on the same stream.
110641 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110643         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110644         Fix arg typo in previous patch.
110646 2003-09-28  Jim Meyering  <jim@meyering.net>
110648         * lib/error.c: Correct cpp indentation.
110650 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110652         * modules/free: New file.
110654 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110656         * m4/free.m4: New file.
110658 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110660         * lib/minmax.h (MIN, MAX)
110661         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110662         Omit the special code that used __typeof__, since we worry that
110663         it could be more trouble than it's worth.  See:
110664         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110665         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110667         * lib/free.c: New file.
110669 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110671         Trivial fixes to Makefile.am parts of module listings.
110672         * modules/strstr: Append strstr.h to lib_SOURCES.
110673         * modules/strcase: Likewise, for strcase.h.
110675 2003-09-27  Karl Berry  <karl@gnu.org>
110677         * config/mkinstalldirs: update from automake.
110679 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110681         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110682         (error_tail): Do not loop, reallocating temporary buffer, since
110683         the output cannot contain more wide characters than the input
110684         contains bytes, the size must be big enough already.  This avoids
110685         one potential size overflow calculation.  Check for size overflow
110686         when calculating temporary buffer size.  Free temporary buffer
110687         when done, if it was allocated with malloc; this plugs a memory
110688         leak.  Remove casts from void * to pointers, that are no longer
110689         needed now that we're assuming C89 or better.
110691         Merge error changes from glibc.
110693         * lib/error.c, error.h: Update copyright notice header to match glibc.
110694         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110695         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110696         Disable cancellation while printing error.
110697         * lib/error.h: Prepend __ to parameter names.
110699 2003-09-26  Jim Meyering  <jim@meyering.net>
110701         * lib/error.c (error_tail): Move some declarations
110702         into inner scope where the local variables are used.
110704 2003-09-26  Bruno Haible  <bruno@clisp.org>
110706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110707         stpncpy().
110708         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110710 2003-09-26  Bruno Haible  <bruno@clisp.org>
110712         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110713         (stpncpy): Define as alias for gnu_stpncpy.
110714         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110716 2003-09-25  Simon Josefsson  <jas@extundo.com>
110718         * lib/xgetdomainname.h: New file.
110719         * lib/xgetdomainname.c: New file.
110721 2003-09-25  Simon Josefsson  <jas@extundo.com>
110722             Bruno Haible  <bruno@clisp.org>
110724         * modules/getdomainname: New file.
110725         * modules/xgetdomainname: New file.
110726         * MODULES.html.sh (func_all_modules): Add getdomainname,
110727         xgetdomainname.
110729 2003-09-25  Simon Josefsson  <jas@extundo.com>
110730             Bruno Haible  <bruno@clisp.org>
110732         * m4/getdomainname.m4: New file.
110734 2003-09-25  Simon Josefsson  <jas@extundo.com>
110735             Bruno Haible  <bruno@clisp.org>
110737         * lib/getdomainname.h: New file.
110738         * lib/getdomainname.c: New file.
110740 2003-09-25  Karl Berry  <karl@gnu.org>
110742         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110744 2003-09-25  Karl Berry  <karl@gnu.org>
110746         * config/install-sh: update from automake.
110748 2003-09-25  Bruno Haible  <bruno@clisp.org>
110750         * modules/version-etc-2: New file, from modules/version-etc with
110751         modifications.
110752         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110754 2003-09-25  Bruno Haible  <bruno@clisp.org>
110756         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110757         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110759 2003-09-24  Simon Josefsson  <jas@extundo.com>
110761         * modules/xgethostname: Add xgethostname.h.
110763 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110765         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110766         the buffer associated with the argument.  Bug reported by
110767         Simon Josefsson.
110769 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110771         * README: Document assumptions that 'int' is at least 32 bits
110772         wide, that integer arithmetic is 2's complement without overflow,
110773         that there are no holes in integer values, that adding sizes of
110774         two nonoverlapping objects can't overflow, and that all-bits-zero
110775         yields scalar zero.  Fix spelling and capitalization typos.
110777 2003-09-19  Karl Berry  <karl@gnu.org>
110779         * lib/argp.h: update from libc.
110781 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110784         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110785         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110787 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110789         * gnulib-tool: Use "test -h", not "test -L", for portability
110790         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110791         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110792         (sed_extract_prog): Issue s commands one-by-one, rather than
110793         using \| in one s command.
110795 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110797         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110798         input error, instead of returning NULL the next time we are called
110799         (and therefore losing track of errno).
110801 2003-09-16  Bruno Haible  <bruno@clisp.org>
110803         * gnulib-tool (func_create_testdir): Warn about duplicated
110804         dependencies.
110806 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110808         * modules/argmatch, modules/fatal, modules/obstack,
110809         modules/xalloc, modules/xgethostname: Sort dependencies by
110810         importance, not alphabetically.
110812 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110814         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110815         fails, so that the caller gets the proper errno.
110817         * lib/readutmp.c (read_utmp): Likewise.
110818         Check for fstat error.  Close stream and free storage
110819         when failing.
110821 2003-09-14  Karl Berry  <karl@gnu.org>
110823         * config/srclist.txt (strdup.c): disable for c89 changes.
110825 2003-09-14  Jim Meyering  <jim@meyering.net>
110827         * lib/getloadavg.c: Correct cpp indentation.
110828         * lib/strdup.c: Likewise.
110829         * lib/vasnprintf.c: Likewise.
110831 2003-09-14  Bruno Haible  <bruno@clisp.org>
110833         * modules/fwriteerror: New file.
110834         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110836 2003-09-14  Bruno Haible  <bruno@clisp.org>
110838         * lib/fwriteerror.h: New file.
110839         * lib/fwriteerror.c: New file.
110841 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110843         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110844         modules/xgethostname, modules/xalloc: Depend on exit.
110846 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110848         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110851         and AC_MINIX, too, so that their extensions are available.
110853         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110854         This macro has been superseded by gl_BACKUPFILE.
110856         More patches to assume C89 or better.
110858         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110860         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110861         unconditionally.
110862         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110863         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110864         Include <string.h>, <stdlib.h> unconditionally.
110865         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110866         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110867         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110868         headers or for string.h.
110869         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110870         or strtoul.
110872         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110873         headers.
110874         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110875         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110876         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110877         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110878         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110879         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110880         memcpy, memset.
110881         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110882         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110883         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110884         strtol.
110885         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110886         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110887         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110888         strtoul.
110890 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110892         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110893         * lib/obstack.c [!defined _LIBC]: Likewise.
110894         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110895         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110896         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110898         More changes to assume C89 or better.
110900         * lib/error.c (error_tail): Assume vprintf.
110902         * lib/argmatch.c (getenv): Remove decl.
110903         * lib/progreloc.c (get_full_program_name): Define via prototype.
110904         * lib/setenv.c (clearenv): Likewise.
110905         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110906         needed.
110907         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110908         (malloc, memcpy): Remove decls.
110909         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110910         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110911         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110912         (memcpy): Remove macro.
110913         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110914         (__P): Remove.  All uses removed.
110915         (PTR): Remove.  All uses changed to void *.
110916         (CHAR_BIT, NULL): Remove.
110917         (spaces, zeros, memset_space, memset_zero)
110918         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110919         Remove.
110920         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110921         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110922         Define with prototype.
110923         Remove now-unnecessary prototype decl.
110924         (extra_args_spec): Assume ANSI C.  All uses changed.
110925         (extra_args_spec_iso): Remove.
110926         (my_strftime, emacs_strftimeu): Define via prototype.
110927         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110928         unconditionally.
110929         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110930         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110931         (strtoul, strtol): Remove decls.
110932         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110933         LONG_MAX): Remove.
110934         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110935         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110936         (LOCALE_PARAM_PROTO): New macro.
110937         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110938         (INTERNAL (strtol), strtol): Define with a prototype.
110939         (PARAMS): Remove.  All uses removed.
110940         * lib/tempname.c: Include <string.h> unconditionally.
110941         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110942         * lib/xgethostname.c (main): Define with a prototype.
110943         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110944         Include <stdlib.h> unconditionally.
110945         (calloc, malloc, realloc, free): Remove decls.
110946         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110947         Include <stdlib.h> unconditionally.  Sort include file names.
110948         (strtod): Remove.
110949         (xstrtod): Define with a prototype.
110950         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110951         (strtol, strtoul): Remove decls.
110953 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110955         More patches to assume C89 or better.
110956         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110957         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110958         string.h, memchr, STDC_HEADERS.
110960 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110962         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110963         Include <stdlib.h>, <string.h> unconditionally.
110964         Remove now-unnecessary cast to char *.
110965         * lib/strnlen.c: Include <string.h> unconditionally.
110966         * lib/yesno.c (yesno): Define with a prototype.
110968 2003-09-11  Bruno Haible  <bruno@clisp.org>
110970         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110972 2003-09-10  Jim Meyering  <jim@meyering.net>
110974         * lib/error.c: Correct indentation of cpp directives.
110976 2003-09-10  Bruno Haible  <bruno@clisp.org>
110978         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110979         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110980         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110981         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110982         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110983         <stdlib.h> and <string.h> checks.
110984         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110985         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110987 2003-09-10  Bruno Haible  <bruno@clisp.org>
110989         * lib/strcspn.c: Include <string.h> unconditionally.
110990         * lib/strpbrk.c: Include <string.h> unconditionally.
110991         * lib/strstr.c: Include <string.h> unconditionally.
110992         * lib/unicodeio.c: Include <string.h> unconditionally.
110993         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110994         * lib/unsetenv.c: Likewise.
110995         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110996         * lib/yesno.c: Include <stdlib.h> unconditionally.
110997         (rpmatch): Add prototype.
110999 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111001         More patches to assume C89 or better.
111002         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
111003         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
111004         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
111005         or for string.h.
111006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
111007         stdlib.h.
111008         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
111009         C headers.
111010         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
111011         string.h.
111012         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
111013         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
111014         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
111015         or for string.h.
111016         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
111017         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
111018         C headers.
111019         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
111020         memcpy.
111021         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
111022         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
111023         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
111024         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
111025         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
111026         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
111027         string.h, free.
111028         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
111029         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
111030         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
111031         C headers, or for string.h.
111032         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
111033         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
111034         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
111035         headers, memory.h, stdlib.h, string.h, strings.h.
111036         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
111037         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
111038         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
111039         strchr.
111040         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
111041         headers, memory.h, string.h.
111042         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
111043         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
111044         free.
111045         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
111046         headers.
111047         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
111048         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
111049         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
111050         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
111051         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
111053 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111055         More K&R removal.
111057         * lib/acosl.c (main): Use a prototype.
111058         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
111059         tanl.c: Likewise.
111061         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
111063         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
111064         (getopt, etopt_long, getopt_long_only, _getopt_internal)
111065         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
111066         with a prototype.
111067         * lib/getopt.c (const): Remove macro.
111068         Include <string.h> unconditionally.
111069         (my_index): Remove; all uses changed to strchr.
111070         (strlen): Remove decl.
111071         (exchange): Remove forward decl; no longer needed.
111072         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
111073         Define with prototype.
111074         * lib/getopt1.c (const): Remove macro.
111075         (getopt_long, getopt_long_only, main): Define with prototype.
111077         * lib/getugroups.c: Include <string.h> unconditionally.
111079         * lib/getusershell.c: Include <stdlib.h> unconditionally.
111080         (getusershell, setusershell, endusershell, readname, main):
111081         Define with prototypes.
111083         * lib/group-member.c: Include group-member.h first.
111084         Include <stdlib.h> unconditionally.
111086         * lib/hard-locale.c: Include hard-locale.h first.
111087         Include <stdlib.h>, <string.h> unconditionally.
111089         * lib/hash.c (free, malloc): Remove decls.
111090         Include <stdlib.h> unconditionally.
111092         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
111093         (getenv): Do not declare.
111095         * lib/idcache.c: Include <string.h> unconditionally.
111097         * lib/long-options.c: Include long-options.h first, to test interface.
111098         Include <stdlib.h> unconditionally.
111100         * lib/makepath.c: Include makepath.h first, to test interface.
111101         Include <stdlib.h> and <string.h> unconditionally.
111103         * lib/linebuffer.c: Include <stdlib.h>.
111104         (free): Remove decl.
111106         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111107         stddef.h. rpl_malloc returns void *, not char *.
111108         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111109         prototype.
111111         * lib/md5.h: Include <limits.h> unconditionally.
111112         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111113         (__P): Remove; all uses removed.
111114         * lib/md5.c: Include "md5.h" first.
111115         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111116         md5_buffer, md5_process_bytes, md5_process_block):
111117         Define with prototypes.
111118         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111119         * lib/sha.c: Include "sha.h" first.
111120         Include <stdlib.h>, <string.h> unconditionally.
111122         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111123         * lib/memcmp.c (__ptr_t): Likewise.
111124         * lib/memrchr.c (__ptr_t): Likewise.
111125         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111126         Include <string.h> unconditionally.
111127         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111128         * lib/memchr.c: Include <stdlib.h> unconditionally.
111129         * lib/memchr.c (LONG_MAX): Remove.
111130         * lib/memrchr.c (LONG_MAX): Likewise.
111131         * lib/memchr.c (__memchr): Define via a prototype.
111132         * lib/memrchr.c (__memrchr): Likewise.
111133         * lib/memcmp.c (__P): Remove, and remove all uses.
111134         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111135         Remove forward decls; no longer needed.
111136         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111137         Use types required by C89 in prototype.
111139         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111140         * lib/savedir.c: Likewise.
111141         * lib/mkdir.c (free): Remove decl.
111142         * lib/rmdir.c (rmdir): Define with a prototype.
111143         * lib/savedir.c: Include savedir.h first, to test interface.
111145         * lib/mktime.c (STDC_HEADERS): Remove.
111146         Include <stdlib.h>, <string.h> unconditionally.
111148         * lib/modechange.c: Include <stdlib.h> unconditionally.
111149         (malloc): Remove decl.
111151         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111152         (free): Remove decl.
111154         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111155         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111156         (This type really should be intptr_t, but that's a C99ism.)
111157         (_obstack_memcpy): Remove: all uses changed to memcpy.
111158         Include <string.h> unconditionally.
111159         (struct obstack): Assume __STDC__ for types of members
111160         chunkfun, freefun, extra_arg.
111161         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111162         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111163         obstack_begin, obstack_specify_allocation,
111164         obstack_specify_allocation_with_arg, obstack_chunkfun,
111165         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111166         Remove unprototyped decls and the macros that use them.
111167         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111168         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111169         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111170         (defined __STDC__ && __STDC__)]:
111171         Remove nonprototyped code.
111172         Include <stdlib.h> unconditionally.
111173         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111174         _obstack_allocated_p, _obstack_free, obstack_free,
111175         _obstack_memory_used, print_and_abort):
111176         Define using prototypes.
111177         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111178         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111179         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111180         obstack_next_free, obstack_object_size, obstack_room) [0]:
111181         Remove unused, unprototyped code.
111183         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111185         * lib/physmem.c (physmem_total, physmem_available, main): Define
111186         with prototypes.
111188         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111189         (main): Define with a prototype.
111191         * lib/posixver.c (getenv): Remove decl.
111193         * lib/putenv.c (malloc): Returns void *, not char *.
111194         Include <string.h> unconditionally.
111195         (strchr, memcpy, NULL): Do not define.
111197         * lib/readtokens.c: Include readtokens.h first, to test interface.
111198         Include <stdlib.h>, <string.h> unconditionally.
111199         (init_tokenbuffer): Define with a prototype.
111201         * lib/regex.c (PARAMS): Remove.  All uses removed.
111202         All uses of _RE_ARGS removed, too.
111203         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111204         unconditionally.
111205         (bzero): Assume memset exists.
111206         (memcmp, memcpy, NULL): Remove.
111207         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111208         char, or assignments to local vars of type signed char.
111209         (init_syntax_once, PREFIX(extract_number_and_incr),
111210         PREFIX(print_partial_compiled_pattern),
111211         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111212         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111213         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111214         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111215         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111216         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111217         wcs_compile_range, byte_compile_range, truncate_wchar,
111218         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111219         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111220         count_mbs_length, wcs_re_match_2_internal,
111221         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111222         PREFIX(alt_match_null_string_p),
111223         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111224         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111225         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111226         now-unnecessary declaration, if any.
111227         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111228         regcomp, regexec):
111229         Remove now-unnecessary casts among pointer types.
111230         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111232         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111233         (free): Remove decl.
111235         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111237         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111238         (free): Remove decl.
111240         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111241         * lib/xgetcwd.c: Likewise.
111243         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111244         (free): Remove decl.
111246         * lib/strchrnul.c (strchrnul): Define with a prototype.
111247         Fix bug: c_in was not converted to char before searching.
111249         The following changes are not K&R related:
111251         * lib/group-member.h: Include <sys/types.h>, so that this file is
111252         self-contained.
111253         * lib/makepath.h: Likewise.
111255         * lib/getusershell.c (readname, default_index, line_size, readname):
111256         Use size_t, not int, for sizes.
111257         (readname): If the size overflows, report an error instead of
111258         looping forever.
111260 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111262         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111263         libc.
111265 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111267         * README: New section: portability guidelines.
111269 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111271         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111272         C89 spec.
111274 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111276         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111278 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111280         Assume C89 or better; remove K&R cruft.
111281         A few of these changes were first proposed by Derek Robert Price
111282         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111284         * lib/addext.c: Include <string.h> unconditionally.
111285         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111286         Don't declare getenv or malloc.
111288         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111289         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111290         (NULL): Remove.
111291         (find_stack_direction, alloca): Use prototypes.
111293         * lib/atexit.c (atexit): Define using a prototype.
111295         * lib/basename.c, dirname.c, stripslash.c:
111296         Include <string.h> unconditionally.
111298         * lib/bcopy.c: Include <stddef.h>.
111299         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111301         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111303         * lib/error.h (error, error_at_line, error_print_progname)
111304         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111305         * lib/error.c: Include error.h first, to check interface.
111306         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111307         (VA_START): Remove; all uses changeed to va_start.
111308         (exit, strerror): Remove decls.
111309         (error_print_progname): Prototype uncondionally.
111310         Don't include <errno.h>; no longer needed.
111311         (private_strerror): Remove.
111312         (error_tail): Always define.
111313         (error, error_at_line): Assume C89 or better; always use prototypes.
111314         * lib/fatal.c: Include "fatal.h" first, to test interface.
111315         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111316         (VA_START): Remove; all uses changed to va_start.
111317         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111318         this case.
111319         (exit): Remove decl.
111320         (fatal): Prototype unconditionally.  Assume va_start works.
111321         Abort at end, to pacify gcc.
111323         * lib/euidaccess.c (main): Define with a prototype.
111325         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111327         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111329         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111330         prototypes.
111331         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111332         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111333         (getenv): Remove decl.
111334         (fnmatch): Define using a prototype.
111335         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111336         (FCT): Define using a prototype.
111338         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111340         * lib/gethostname.c: Include <stddef.h>.
111341         (gethostname): Define with prototype.  Length is size_t, not int.
111343 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111345         Assume C89 or better; remove K&R cruft.
111346         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111347         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111348         string.h, getenv, malloc.
111349         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111350         headers.
111351         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111352         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111353         do not check for strerror.
111354         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111355         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111356         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111357         do not check for doprnt or vprintf.
111358         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111359         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111361 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111363         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111364         getversion.c should have been removed then, but was accidentally
111365         preserved.
111367         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111368         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111370 2003-09-08  Karl Berry  <karl@gnu.org>
111372         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111373                 config, forget about prep.
111375         * config/depcomp, missing: update from automake.
111377 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111379         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111380         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111382 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111384         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111385         copy_tm_result.  Bug reported by Simon Josefsson in
111386         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111388 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111390         * m4/time_r.m4: New file.
111391         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111392         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111393         is. Check for timegm declaration.
111394         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111395         Do not check for gmtime_r.
111396         Replace mktime if __mktime_internal does not exist and if mktime
111397         hasn't been replaced already.
111399 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111401         * lib/time_r.c, lib/time_r.h: New files.
111403         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111404         __localtime_r.
111405         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111406         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111408         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111409         __gmtime_r.
111410         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111411         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111412         Include <time_r.h>.
111414         * lib/timegm.c: Switch to glibc implementation, with the following
111415         changes:
111416         [defined HAVE_CONFIG_H]: Include <config.h>.
111417         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111418         (__mktime_internal) [!defined _LIBC]: New decl.
111419         (__gmtime_r) [!defined _LIBC]: New macro and function.
111420         (timegm): Use a prototype, since gnulib assumes C89.
111421         Do not bother declaring tmp to be const, as it's not really usefu.
111422         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111423         (timegm): Declare only if HAVE_DECL_TIMEGM.
111425 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111427         * MODULES.html.sh (func_all_modules): Add time_r.
111428         * modules/time_r: New file.
111429         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111430         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111432 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111434         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111435         Bug reported by Lute Kamstra in
111436         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111438         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111439         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111440         course with correspondingly smaller numbers for tomorrow and
111441         yesterday.  From Tadayoshi Funaba.  Originally installed into
111442         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111443         coreutils merge?).
111445 2003-08-31  Simon Josefsson  <jas@extundo.com>
111447         * modules/timegm: New file.
111448         * MODULES.html.sh (func_all_modules): Add timegm.
111450 2003-08-31  Simon Josefsson  <jas@extundo.com>
111452         * m4/timegm.m4: New file.
111454 2003-08-31  Simon Josefsson  <jas@extundo.com>
111456         * lib/timegm.h: New file.
111457         * lib/timegm.c: New file.  Based on
111458         wget-1.8.2/src/http.c:mktime_from_utc.
111460 2003-08-31  Karl Berry  <karl@gnu.org>
111462         * lib/argp.h: update from libc.
111464 2003-08-28  Bruno Haible  <bruno@clisp.org>
111466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111467         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111468         followed by '#define fnmatch fnmatch_posix' gives an error.
111470 2003-08-28  Bruno Haible  <bruno@clisp.org>
111472         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111473         warning on QNX, which defines O_BINARY to 000000.
111475 2003-08-27  Jim Meyering  <jim@meyering.net>
111477         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111478         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111479         would fail after 32.  Reported by Danny Levinson.  Details here:
111480         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111482 2003-08-24  Bruno Haible  <bruno@clisp.org>
111484         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111485         MSVC7 <stdio.h> is included later.
111487 2003-08-22  Simon Josefsson  <jas@extundo.com>
111489         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111491 2003-08-20  Karl Berry  <karl@gnu.org>
111493         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111495 2003-08-20  Bruno Haible  <bruno@clisp.org>
111497         * modules/progname: New file.
111498         * MODULES.html.sh (func_all_modules): Add progname.
111500 2003-08-20  Bruno Haible  <bruno@clisp.org>
111502         * lib/progname.h: New file, from GNU gettext.
111503         * lib/progname.c: New file, from GNU gettext.
111504         * lib/progreloc.c: New file, from GNU gettext.
111506 2003-08-19  Jim Meyering  <jim@meyering.net>
111508         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111509         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111511 2003-08-19  Bruno Haible  <bruno@clisp.org>
111513         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111514         more.
111516 2003-08-19  Bruno Haible  <bruno@clisp.org>
111518         * lib/xstrdup.c: Assume <string.h> exists.
111520 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111522         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111523         in makefile rules.
111525 2003-08-18  Jim Meyering  <jim@meyering.net>
111527         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111528         * m4/lib-ld.m4: Likewise.
111530 2003-08-18  Jim Meyering  <jim@meyering.net>
111532         * lib/setenv.h: Indent nested cpp directive.
111533         * lib/vasnprintf.c: Remove trailing blanks.
111535 2003-08-17  Simon Josefsson  <jas@extundo.com>
111537         * modules/xstrndup: New file.
111538         * MODULES.html.sh (func_all_modules): Add xstrndup.
111540 2003-08-17  Simon Josefsson  <jas@extundo.com>
111542         * modules/argp: Fix autoconf macro name. Add more dependencies.
111544 2003-08-17  Simon Josefsson  <jas@extundo.com>
111546         * m4/xstrndup.m4: New file.
111548 2003-08-17  Simon Josefsson  <jas@extundo.com>
111550         * m4/argp.m4: New file.
111552 2003-08-17  Simon Josefsson  <jas@extundo.com>
111553             Bruno Haible  <bruno@clisp.org>
111555         * lib/xstrndup.h: New file.
111556         * lib/xstrndup.c: New file.
111558 2003-08-17  Bruno Haible  <bruno@clisp.org>
111560         * modules/strndup (Files, Include): Add lib/strndup.h.
111562 2003-08-17  Bruno Haible  <bruno@clisp.org>
111564         * modules/euidaccess (Files): Add lib/euidaccess.h.
111566 2003-08-17  Bruno Haible  <bruno@clisp.org>
111568         * lib/strndup.h: New file.
111570 2003-08-17  Bruno Haible  <bruno@clisp.org>
111572         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111573         like AC_GNU_SOURCE.
111574         * modules/extensions (configure.ac): Comment out the invocation of
111575         gl_USE_SYSTEM_EXTENSIONS.
111577 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111579         Merges from coreutils, etc.
111580         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111581         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111582         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111583         fixing a typo.
111584         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111585         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111587 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111589         Document merge from coreutils.
111590         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111591         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111592         * modules/utime: Add m4/utimes-null.m4.
111594 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111596         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111597         space, undoing this 2003-08-12 change:
111598         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111600 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111602         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111603         strtoul.c from libc, undoing this 2003-08-12 change:
111604         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111606 2003-08-16  Jim Meyering  <jim@meyering.net>
111608         Merges from coreutils.
111609         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111610         prefix.  Adjust cache variables similarly.  Create 500 rather than
111611         just 300 files, to exercise bug on Darwin6.5, too.
111612         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111613         $missing_dir.
111614         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111615         AM_SYS_POSIX_TERMIOS.
111616         Reported by mkc@mathdogs.com.
111617         Also change use of $am_cv_sys_posix_termios
111618         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111619         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111620         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111621         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111622         in /proc/mounts until it finds one with matching device number.  This
111623         is unnecessary when the FILE argument *is* a mount point.  No stat call
111624         is necessary in that case.  So, disable the statvfs-testing code on
111625         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111626         as RedHat bug# 84846.
111627         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111628         to 1MB, so as not to render systems with no stack size limit (e.g.,
111629         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111630         Include <unistd.h>.  On some systems,
111631         it is required for the definition of _SC_PAGESIZE.
111633 2003-08-16  Jim Meyering  <jim@meyering.net>
111635         Merge from coreutils.
111636         * lib/xstrtoimax.c: #else #if -> #elif.
111637         * lib/xstrtoumax.c: Likewise.
111639 2003-08-16  Jim Meyering  <jim@meyering.net>
111641         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111642         * m4/utimes.m4: Removed.
111643         * m4/utimes-null.m4: Renamed from utimes.m4.
111645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111646         to 1MB, so as not to render systems with no stack size limit (e.g.,
111647         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111648         Include <unistd.h>.  On some systems,
111649         it is required for the definition of _SC_PAGESIZE.
111651 2003-08-16  Jim Meyering  <jim@meyering.net>
111652         and Paul Eggert  <eggert@cs.ucla.edu>
111654         Merges from coreutils, etc.
111656         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111657         using the latest version from cvs.  This avoids problems with #line
111658         directives using a vendor (Sun) compiler.
111659         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111660         Don't set GETGROUPS_LIB here; now it's
111661         done via getgroups.m4's wrapper function.
111662         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111663         rather than just in sh-util/configure.in, so that the
111664         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111665         same.
111666         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111667         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111668         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111669         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111670         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111671         Remove code that is now done by the newly-required macros.
111672         Append $(EXEEXT) to DF_PROG.
111673         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111674         Do not invoke or require the following here,
111675         since prereq.m4 or some gnulib .m4 now does this for us:
111676         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111677         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111678         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111679         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111680         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111681         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111682         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111683         AC_FUNC_OBSTACK.
111684         Do not replace the following functions, as this is now the job
111685         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111686         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111687         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111688         atexit getpass, strdup, getpagesize.
111689         Replace 'raise'.
111690         Do not check for the following functions, as this is now the job
111691         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111692         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111693         setregid.
111694         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111695         Check for sys/sysctl.h.
111696         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111697         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111698         of checking for ssize_t ourselves.
111700         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111701         Require every macro that gnulib/modules/* suggests for us.
111702         (jm_PREREQ_ADDEXT): New macro.
111703         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111704         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111706         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111707         (gl_PHYSMEM): Use it.
111708         Also check for `table' function.
111709         Check for new headers and functions.
111710         Add check for sys/sysmp.h.
111711         With suggestions from Kaveh Ghazi.
111712         Ignore headers that are present but cannot be compiled.  This
111713         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111714         C 5.4.
111716 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111718         Document merge from coreutils.
111719         * modules/userspec: Depend on posixver.
111720         * modules/strftime: Depend on tzset.
111722 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111724         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111725         rather than tab, after '#' in shell-script copyright notices.
111726         Suggested by Bruno Haible.
111728 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111730         * config/srclist-update: Use three spaces, rather than tab, after '#'
111731         in shell-script copyright notices.  Suggested by Bruno Haible.
111732         Remove unnecessary parenthesization in regular expression.
111734 2003-08-15  Jim Meyering  <jim@meyering.net>
111736         Merge from coreutils.
111737         * lib/xgethostname.c: Include <stdlib.h>.
111738         (xghostname): Don't exit for anything other than memory-related
111739         failure; just return NULL.
111740         * lib/userspec.c: Include "posixver.h".
111741         (parse_user_spec): Accept `.' as a separator only
111742         in pre-POSIX-200112 mode.
111743         * lib/strtoimax.c: Use #elif rather than #else #if.
111744         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111745         Remove function, now that we can rely on a working tzset function.
111746         [!_LIBC]: Ensure that the required autoconf test has been run.
111747         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111748         Use underlying_strftime for %r.
111749         * lib/sha.c: Merge in some clean-up and optimization changes from
111750         glibc.
111751         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111752         Ensure that it is a multiple of 64.
111753         Rearrange loop exit tests so as to avoid performing an
111754         additional fread after encountering an error or EOF.
111755         * lib/realloc.c: Update copyright date.
111757 2003-08-15  Jim Meyering  <jim@meyering.net>
111758         and Paul Eggert  <eggert@twinsun.com>
111760         Merge from coreutils.
111761         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111762         member but strut utmpx does not.  Needed for AIX 4.3.3.
111763         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111765 2003-08-15  Jim Meyering  <jim@meyering.net>
111766         and Paul Eggert  <eggert@cs.ucla.edu>
111768         Merges from coreutils, etc.
111769         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111770         Require gl_FUNC_TZSET_CLOBBER.
111771         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111772         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111773         members.
111775 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111777         Help the merge from coreutils.
111778         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111779         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111780         * m4/tzset.m4: Use it too.
111782 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111784         * modules/tzset: New file.
111786 2003-08-14  Jim Meyering  <jim@meyering.net>
111788         Merges from coreutils.
111789         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111790         variable names, rather than @FNMATCH_H@.
111791         * modules/alloca: Likewise for $(ALLOCA_H).
111793         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111794         the three copies of the literal target, `fnmatch.h'.
111795         * modules/alloca (alloca.h): Likewise.
111797 2003-08-14  Jim Meyering  <jim@meyering.net>
111799         Merge from coreutils.
111800         * m4/tzset.m4: New file.
111801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111802         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111803         otherwise, AIX 5.1 systems would end up using the latter.
111804         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111805         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111806         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111807         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111809 2003-08-14  Jim Meyering  <jim@meyering.net>
111811         Merge from coreutils.
111812         * lib/obstack.h: Whitespace changes.
111813         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111814         and xcalloc return values.
111815         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111816         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111817         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111818         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111819         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111820         error from mntctl.
111821         Use mntctl's return value to drive the entry-processing loop, since
111822         we can't rely on the value of the vmt_length member in the last
111823         entry.  On some systems doing so could result in exhausting
111824         virtual memory.  Based in part on a patch from Mike Jetzer.
111826 2003-08-14  Jim Meyering  <jim@meyering.net>
111827         and Paul Eggert  <eggert@twinsun.com>
111829         Merges from coreutils, plus other fixes.
111830         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111831         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111832         for credits and details.  Thanks to Kaveh Ghazi for helping
111833         to keep these files in sync.
111834         (ARRAY_SIZE): Define it.
111835         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111836         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111837         (memcasecmp): Don't assume size_t fits in unsigned int.
111838         Remove casts and duplicate code.
111839         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111840         (memcpy): Remove definition.
111841         Merge in some clean-up and optimization changes from glibc.
111842         [BLOCKSIZE]: Move definition to top of file.
111843         Ensure that it is a multiple of 64.
111844         Rearrange loop exit tests so as to avoid performing an
111845         additional fread after encountering an error or EOF.
111846         * lib/md5.h (md5_uintptr): Define.
111847         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111848         return to the initial working directory.  Preserve errno
111849         for caller.
111850         * lib/idcache.c: Include "xalloc.h".
111851         (xmalloc, xrealloc): Remove decls.
111852         (getuser): Remove casts no longer required in C89.
111853         * lib/human.c: Include stdio.h, for sprintf.
111854         * lib/group-member.c: Include "xalloc.h".
111855         (xmalloc, xrealloc): Remove decls.
111856         (get_group_info): Remove casts no longer required in C89.
111857         * lib/getusershell.c (readname): Remove casts no longer required in
111858         C89.
111859         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111860         * lib/getline.c: Whitespace fix, from coreutils.
111862 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111864         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111865         Check for isascii.
111867         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111868         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111869         Undo previous (whitespace-only) change.
111871 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111873         * lib/exclude.c: Include <ctype.h>
111874         (IN_CTYPE_DOMAIN): New macro.
111875         (is_space): New fn.
111876         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111877         and empty lines.
111879         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111880         Undo previous (whitespace-only) change.
111882 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111884         * config/srclist-update: Change update back to the old behavior,
111885         leaving whitespace alone.  Use one 'sed' command rather than a
111886         pipeline.
111887         (fixlicense): Now a variable, not a function.
111888         (remove_trailing_blanks): Remove.
111889         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111890         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111891         Undo previous (whitespace-only) change.
111893 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111895         Merge from coreutils.
111896         * modules/euidaccess: Add lib_SOURCES, include for new
111897         file euidaccess.h
111899 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111901         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111902         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111903         Normalize leading white space and remove trailing white space.
111905         Merge from coreutils
111906         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111908         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111909         0.12.1.  These files are now being upgraded automatically by
111910         ../config/srclist-update.
111912 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111914         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111915         Normalize leading white space and remove trailing white space.
111916         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111917         notice, as per ../config/srclist-update.
111919         Merge from coreutils.
111920         * lib/euidaccess.h: New file.
111921         * lib/euidaccess.c: Include it.
111922         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111923         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111924         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111926 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111928         * config/srclist-update: Add copyright notice.
111929         (remove_id_lines, remove_trailing_blanks): New constants.
111930         (fixfile): Use them to normalize spacing a bit in copied files.
111931         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111932         Normalize leading white space and remove trailing white space.
111934         * config/texinfo.tex: Sync with texinfo.
111936         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111937         strtoul.c from libc, to merge coreutils whitespace changes.
111939         * config/srclist.txt: Get the following m4 files from gettext:
111940         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111941         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111942         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111943         wint_t.m4.
111945 2003-08-12  Karl Berry  <karl@gnu.org>
111947         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111948         been made.
111950 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111952         * modules/gnu-source, m4/gnu-source.m4:
111953         Remove; we're assuming Autoconf 2.54 or later now.
111954         Suggested by Bruno Haible.
111955         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111957 2003-08-11  Bruno Haible  <bruno@clisp.org>
111959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111961 2003-08-11  Bruno Haible  <bruno@clisp.org>
111963         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111964         (vasnprintf): Use it instead of wcslen.
111966 2003-08-11  Bruno Haible  <bruno@clisp.org>
111968         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111969         value to ensure that _Bool promotes to int. Use #define for _Bool when
111970         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111972 2003-08-10  Karl Berry  <karl@gnu.org>
111974         * lib/regex.h: update from libc (whitespace fix).
111976 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111978         Merge some files from coreutils.  These changes were
111979         originally made by Jim Meyering.
111980         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111981         many older Unixes require this.
111982         * lib/alloca.c (alloca): Remove cast to argument of free;
111983         no longer needed in C89.
111984         * lib/alloca_.h, regex.h: Fix white space to match
111985         what GNU indent does.
111987 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111989         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111990         apparently Emacs's Unicode mode got confused before my 2003-08-05
111991         checkin.
111993 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111995         * m4/extensions.m4: New file.
111996         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111997         Require gl_USE_SYSTEM_EXTENSIONS.
111998         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111999         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
112001 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112003         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
112004         * modules/extensions, modules/gnu-source: New files.
112005         * modules/timespec, modules/unlocked-io: Depend on extensions.
112007 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112009         * modules/restrict: New file.
112010         * MODULES.html.sh (func_all_modules): Add restrict.
112011         * modules/regex: Depend on restrict.
112013 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112015         * m4/restrict.m4: New file.
112016         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
112018 2003-08-07  Bruno Haible  <bruno@clisp.org>
112020         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
112021         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
112023 2003-08-07  Bruno Haible  <bruno@clisp.org>
112025         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
112026         makes the module 'getndelim2' compatible with the module 'getline'.
112028 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112030         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
112031         byte with "\201" to avoid glitches when editing that source file
112032         with multi-gnome-terminal.
112034 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112036         * lib/bumpalloc.h: Remove.
112038 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112040         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
112041         * modules/bumpalloc: Remove.
112043 2003-08-04  Paul Eggert  <eggert@twinsun.com>
112045         * lib/getloadavg.c: Change copyright notice and spacing to conform to
112046         GNU coding style.
112048         Merge from coreutils.
112049         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
112050         1. From glibc.
112051         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
112052         from Karl Berry, implemented by Jim Meyering.
112053         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
112054         from Dmitry V. Levin.
112055         Remove anachronistic cast of xrealloc.
112056         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
112057         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
112058         type. Otherwise, it wouldn't compile with at least /bin/cc on
112059         ymp-cray-unicos9.0.2.X.
112060         Combine two mostly-identical uses of alloca into one.
112061         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
112063 2003-08-04  Dave Love  <d.love@dl.ac.uk>
112065         [From Emacs.]
112067         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
112068         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
112069         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
112070         obsolete NLIST_NAME_UNION.
112071         [__GNU__]: Undef BSD and FSCALE.
112072         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
112074 2003-08-03  Paul Eggert  <eggert@twinsun.com>
112076         * lib/stdbool_.h (_Bool): Make it signed char, instead of
112077         an enum type, so that it's guaranteed to promote to int.  See:
112078         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
112080 2003-08-03  Karl Berry  <karl@gnu.org>
112082         * config/depcomp: update from automake.
112084 2003-07-31  Paul Eggert  <eggert@twinsun.com>
112086         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
112087         (strerror): Don't assume that a printable int fits in 14 bytes.
112089 2003-07-31  Bruno Haible  <bruno@clisp.org>
112091         * modules/getpass-gnu: New file.
112092         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
112094 2003-07-31  Bruno Haible  <bruno@clisp.org>
112096         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
112098 2003-07-24  Karl Berry  <karl@gnu.org>
112100         * config/missing: update from automake.
112102 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
112103             Bruno Haible  <bruno@clisp.org>
112105         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112106         * lib/getline.c (getline, getdelim): Likewise.
112107         Remove _GNU_SOURCE define; now it's defined in config.h through
112108         m4/getline.m4.
112110 2003-07-23  Karl Berry  <karl@gnu.org>
112112         * config/config.sub: update from prep.
112114 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112116         * modules/xalloc (Depends-on): Add exitfail.
112117         * modules/xmemcoll: Likewise.
112119 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112121         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112122         over-parenthesization in macros.
112124         Sync with coreutils.
112126         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112127         required by C99.
112129         Use `exit_failure' for xalloc and xmemcoll instead of their own
112130         private exit-failure variables.
112131         * lib/xalloc.h (xalloc_exit_failure): Remove.
112132         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112133         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112134         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112135         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112136         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112138 2003-07-20  Jim Meyering  <jim@meyering.net>
112140         * modules/closeout (Depends-on): Add exitfail.
112141         Suggestion from Bruno Haible.
112143 2003-07-19  Karl Berry  <karl@gnu.org>
112145         * config/config.sub: update from prep.
112147 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112149         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112150         Remove.
112151         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112152         to test that it can stand by itself.  Include "exitfail.h".
112153         Clients should set exit_failure instead.
112154         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112156 2003-07-18  Bruno Haible  <bruno@clisp.org>
112158         * modules/getndelim2: New file.
112159         * modules/getline: Share files with module getndelim2.
112160         * modules/getnline: Depend on getndelim2 instead of sharing files with
112161         it. Add getnline.c to lib_SOURCES.
112162         * MODULES.html.sh (func_all_modules): Add getndelim2.
112164 2003-07-18  Bruno Haible  <bruno@clisp.org>
112166         * m4/getndelim2.m4: New file.
112167         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112168         invoke gl_PREREQ_GETNDELIM2.
112169         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112170         gl_PREREQ_GETNDELIM2.
112171         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112172         gl_GETNDELIM2.
112174 2003-07-18  Bruno Haible  <bruno@clisp.org>
112176         * lib/getndelim2.h: New file.
112177         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112178         getndelim2.h.
112179         (getndelim2): Make non-static. Change return type to ssize_t.
112180         * lib/getline.h: Change argument names.
112181         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112182         * lib/getnline.c: Include getndelim2.h.
112184 2003-07-18  Andreas Schwab  <schwab@suse.de>
112186         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112188 2003-07-17  Karl Berry  <karl@gnu.org>
112190         * config/config.sub: update from prep.
112192 2003-07-17  Bruno Haible  <bruno@clisp.org>
112194         * modules/getnline: New file.
112195         * modules/getline: Add lib/getndelim2.c to source file list.
112196         * MODULES.html.sh (func_all_modules): Add getnline.
112198 2003-07-17  Bruno Haible  <bruno@clisp.org>
112200         * m4/getnline.m4: New file.
112202 2003-07-17  Bruno Haible  <bruno@clisp.org>
112204         * m4/Makefile.am.in: Remove file.
112205         * m4/Makefile.am: Remove file.
112206         * m4/Makefile.in: Remove file.
112208 2003-07-17  Bruno Haible  <bruno@clisp.org>
112210         * lib/getnline.h: New file.
112211         * lib/getnline.c: New file.
112212         * lib/getndelim2.c: New file, extracted from getline.c.
112213         (getndelim2): Renamed from getdelim2, with added nmax argument.
112214         * lib/getline.c: Include getndelim2.c.
112215         (getdelim2): Moved out to getndelim2.c.
112216         (getline, getdelim): Update.
112218 2003-07-17  Bruno Haible  <bruno@clisp.org>
112220         * lib/Makefile.am: Remove file.
112221         * lib/Makefile.in: Remove file.
112223 2003-07-17  Bruno Haible  <bruno@clisp.org>
112225         * configure.in: Remove file.
112226         * Makefile.in: Remove file.
112228 2003-07-17  Bruno Haible  <bruno@clisp.org>
112230         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112232 2003-07-16  Karl Berry  <karl@gnu.org>
112234         * config/srclist-update: was running fixlicense twice, which caused
112235                 texinfo.tex to be nullified for some reason.  Simplify,
112236                 $gplsrc is no longer needed as far as I can see?
112238 2003-07-16  Jim Meyering  <jim@meyering.net>
112240         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112242 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112244         * config/srclist.txt: Get the following files from gettext-runtime/intl
112245         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112246         ref-del.sin.  From Bruno Haible.
112247         * config/srclist-update (fixfile): Change grep pattern again, since the
112248         previous fix didn't work (there was another trailing $).  Use
112249         '[$]' to escape the $s.
112251 2003-07-15  Karl Berry  <karl@gnu.org>
112253         * lib/vasnprintf.c: update from gettext.
112255 2003-07-15  Karl Berry  <karl@gnu.org>
112257         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112258         gets expanded when surrounded by '$'.
112260 2003-07-15  Jim Meyering  <jim@meyering.net>
112262         * modules/save-cwd: Don't depend on error.  From Derek Price.
112264 2003-07-15  Jim Meyering  <jim@meyering.net>
112266         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112268 2003-07-14  Simon Josefsson  <jas@extundo.com>
112270         * modules/mempcpy: New file.
112271         * MODULES.html.sh (func_all_modules): Add mempcpy.
112273 2003-07-14  Simon Josefsson  <jas@extundo.com>
112275         * m4/mempcpy.m4: New file.
112277 2003-07-14  Simon Josefsson  <jas@extundo.com>
112279         * lib/mempcpy.h: New file.
112280         * lib/mempcpy.c: New file.
112282 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112284         * modules/getdate, modules/posixtm: Depend on mktime.
112286 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112288         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112289         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112290         unicodeio.c, unicodeio.h, unlocked-io.h:
112291         Switch from LGPL to GPL.
112293 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112295         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112296         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112297         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112298         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112299         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112300         updated automatically by ../config/srclist-update.  This changes
112301         their license from LPGL to GPL.
112303 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112305         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112306         assumed to refer to the root of the most recent stable gettext version.
112307         * config/srclistvars.sh: Add defaults for eggert.
112308         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112309         Match "This program" as well as "The program".  This is needed
112310         for gettext.
112312 2003-07-14  Jim Meyering  <jim@meyering.net>
112314         Don't emit diagnostics.  Let callers do that.
112315         * lib/save-cwd.c: Don't include "error.h".
112316         (save_cwd): Don't call error.  Ensure that errno is valid
112317         when returning nonzero.
112319         * lib/save-cwd.h (restore_cwd): Update prototype.
112320         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112321         Simplify.  Don't call error upon failure.  Let callers do that.
112322         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112323         when auditing is enabled.  But don't bother updating the #if.
112325 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112327         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112328         it breaks C++ compilation.
112329         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112331 2003-07-10  Simon Josefsson  <jas@extundo.com>
112333         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112335 2003-07-10  Jim Meyering  <jim@meyering.net>
112337         * m4/clock_time.m4: Remove trailing blank.
112338         * m4/intmax_t.m4: Likewise.
112340 2003-07-10  Jim Meyering  <jim@meyering.net>
112342         * lib/vasnprintf.c: Remove trailing blanks.
112343         Make cpp indentation consistent.
112345 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112347         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112348         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112349         Switch from LGPL to GPL.
112351 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112353         * config/srclist.txt: Sort sublists.  Add
112354         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112355         that differ from gnulib for one reason or another; we'd like this list
112356         to be smaller but for now let's document what we have.
112358 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112360         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112361         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112362         and sweeter "eval x=$x".
112363         * config/srclist.txt: Get lib/argp* from glibc.
112365 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112367         * lib/mktime.c: Fix some boundary cases and remove need for floating
112368         point.
112370         Issue a compile-time diagnostic if time_t is floating point, or if
112371         two's complement arithmetic is not in effect, or if arithmetic
112372         right shift does not propagate the sign.  These assumptions were
112373         all in the original code but they weren't checked.
112375         (TIME_T_MIDPOINT, verify): New macros.
112376         (__isleap): Remove; it has integer overflow problems.
112377         (leapyear): New function, without those problems.
112378         (ydhms_tm_diff): Remove; splitting into two parts.
112379         (ydhms_diff): New function, containing the arithmetic part of
112380         the old ydhms_tm_diff function.  Issue a compile-time
112381         diagnostic if we are not using C99 integer division.
112382         Avoid casts when possible.
112383         (guess_time_tm): New function, containing the checking part of
112384         the old ydhms_tm_diff function.  Return the new value, rather than
112385         the difference between it and the old.  Accept a new argument T
112386         so that *T specifies the old value.  Check for overflow in the result.
112388         (__mktime_internal): Use a time_t offset, not a long int offset.
112389         This undoes the 2003-06-04 change, which is no longer needed now
112390         that we have better overflow checking.
112391         (localtime_offset): Likewise.
112393         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112394         and long are 64-bit but int is only 32-bit.
112395         (ydhms_diff): Use long int to store year1 and yday1.
112396         Issue a compile-time diagnostic if long int is not wide enough.
112398         (__mktime_internal): Use long int to store adjusted year and yday.
112399         Use plain C rather than preprocessor commands, if that doesn't
112400         affect efficiency.
112401         Check for overflow (and try to repair) after each probe
112402         rather than checking only at the very end.  This avoids some bugs
112403         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112404         does not equal GMT offset at maximum time).
112405         Use integer to check for overflow rather than floating point; this
112406         is more portable to non-IEEE hosts, and is a tad faster.
112407         When we detect that we are oscillating between two values,
112408         don't check whether tm_isdst has the requested value, since
112409         we already know the answer.  When tm_isdst has the wrong value,
112410         use a different heuristic to find the right one, based on the
112411         extreme values actually observed in practice in tz2003a,
112412         rather than the (overly optimistic) "previous 3 calendar quarters".
112414         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112415         "T const" to accommodate glibc style.
112416         (check_result): Use less-confusing report format.  "long" -> "long int.
112417         (main): Likewise.
112418         Don't loop if the iteration overflows time_t.
112419         Allow a negative step in the iteration.
112421 2003-07-06  Karl Berry  <karl@gnu.org>
112423         * config/depcomp: update from automake.
112424         * config/config.sub: update from prep.
112426 2003-07-03  Karl Berry  <karl@gnu.org>
112428         * config/config.guess: update from prep.
112430 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112432         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112433         xreadlink.c now includes it unconditionally.
112435 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112437         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112438         having it depend on HAVE_SYS_TYPES_H.
112440 2003-07-01  Bruno Haible  <bruno@clisp.org>
112442         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112443         <sys/types.h> should be sufficient.
112444         Reported by Paul Eggert.
112446 2003-06-26  Karl Berry  <karl@gnu.org>
112448         * config/depcomp: update from automake.
112450 2003-06-26  Bruno Haible  <bruno@clisp.org>
112452         * modules/human: Depend on module stdbool.
112454 2003-06-25  Bruno Haible  <bruno@clisp.org>
112456         * modules/readlink: New file.
112457         * modules/xreadlink: Depend on it.
112458         * MODULES.html.sh (func_all_modules): Add readlink.
112460 2003-06-25  Bruno Haible  <bruno@clisp.org>
112462         * m4/readlink.m4: New file.
112464 2003-06-25  Bruno Haible  <bruno@clisp.org>
112466         * lib/readlink.c: New file.
112468 2003-06-22  Karl Berry  <karl@gnu.org>
112470         * config/srclist.txt: update mkinstalldirs from automake.
112471         * config/mkinstalldirs: update.
112473 2003-06-22  Bruno Haible  <bruno@clisp.org>
112475         Portability to mingw32.
112476         * m4/ssize_t.m4: New file, from GNU gettext.
112477         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112478         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112480 2003-06-22  Bruno Haible  <bruno@clisp.org>
112482         * modules/safe-read: Add m4/ssize_t.m4.
112483         * modules/xreadlink: Add m4/ssize_t.m4.
112485 2003-06-20  Bruno Haible  <bruno@clisp.org>
112487         Assume C89, so PARAMS isn't needed.
112488         * lib/unicodeio.h (PARAMS): Remove.
112489         * lib/unicodeio.c: Don't use PARAMS.
112491 2003-06-18  Karl Berry  <karl@gnu.org>
112493         * config/config.{guess,sub}: update from prep.
112495 2003-06-18  Jim Meyering  <jim@meyering.net>
112497         Merge changes from coreutils.
112498         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112499         Remove explicit declarations of xmalloc and realloc.
112500         Include xalloc.h.
112501         (read_utmp): Remove anachronistic cast of xmalloc.
112503 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112505         Assume C89, so PARAMS isn't needed.
112506         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112507         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112508         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112509         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112510         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112511         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112512         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112513         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112514         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112515         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112516         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112517         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112518         no longer needed. Anyway, config.h should always be included before any
112519         other file.
112521 2003-06-11  Simon Josefsson  <jas@extundo.com>
112523         * modules/sysexits: New file.
112524         * MODULES.html.sh (func_all_modules): Add sysexits.
112526 2003-06-11  Simon Josefsson  <jas@extundo.com>
112528         * lib/sysexit_.h: New file.
112530 2003-06-11  Derek Price  <derek@ximbiot.com>
112532         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112533         necessary.
112535 2003-06-11  Bruno Haible  <bruno@clisp.org>
112537         * m4/sysexits.m4: New file.
112539 2003-06-10  Simon Josefsson  <jas@extundo.com>
112541         * lib/argp.h: New file, from glibc.
112542         * lib/argp-ba.c: New file, from glibc.
112543         * lib/argp-eexst.c: New file, from glibc.
112544         * lib/argp-fmtstream.c: New file, from glibc.
112545         * lib/argp-fmtstream.h: New file, from glibc.
112546         * lib/argp-fs-xinl.c: New file, from glibc.
112547         * lib/argp-help.c: New file, from glibc.
112548         * lib/argp-namefrob.h: New file, from glibc.
112549         * lib/argp-parse.c: New file, from glibc.
112550         * lib/argp-pv.c: New file, from glibc.
112551         * lib/argp-pvh.c: New file, from glibc.
112552         * lib/argp-xinl.c: New file, from glibc.
112554 2003-06-10  Simon Josefsson  <jas@extundo.com>
112556         * modules/strchrnul: New file.
112558 2003-06-10  Simon Josefsson  <jas@extundo.com>
112560         * modules/argp: New file.
112562 2003-06-10  Simon Josefsson  <jas@extundo.com>
112564         * m4/strchrnul.m4: New file.
112566 2003-06-10  Simon Josefsson  <jas@extundo.com>
112568         * lib/strchrnul.h: New file.
112569         * lib/strchrnul.c: New file.
112571 2003-06-10  Bruno Haible  <bruno@clisp.org>
112573         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112575 2003-06-07  Karl Berry  <karl@gnu.org>
112577         * config/config.{guess,sub}: update from prep.
112579 2003-06-07  Jim Meyering  <jim@meyering.net>
112581         * modules/strtod: Use $(...) notation, not @...@ for
112582         AC_REPLACE'd variables.
112583         * modules/localcharset: Likewise.
112585 2003-06-07  Jim Meyering  <jim@meyering.net>
112587         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112588         in place of my name in the copyright comment.
112589         Remove definition and uses of __P.
112591         From coreutils.
112592         * lib/stat.c: Don't declare xmalloc explicitly.
112593         Instead, include "xalloc.h".
112594         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112595         xrealloc, and xcalloc return values.
112596         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112597         Improve comment.
112598         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112600 2003-06-07  Bruno Haible  <bruno@clisp.org>
112602         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112603         avoid AC_CONFIG_LINKS.
112604         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112605         fnmatch.h, to avoid AC_CONFIG_LINKS.
112606         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112608 2003-06-07  Bruno Haible  <bruno@clisp.org>
112610         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112611         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112612         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112613         directory.
112614         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112615         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112616         directory.
112618 2003-06-06  Jim Meyering  <jim@meyering.net>
112620         Merge from coreutils.
112621         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112622         Consolidate declarations and initializations of *_base* locals.
112624         Merge from coreutils.
112625         This avoids a core dump on systems without GNU putenv,
112626         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112627         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112628         (unsetenv): New static function, from GNU libc.
112629         (rpl_putenv): Use it.
112631         * lib/modechange.c: Remove trailing blanks.
112633         Merge from coreutils.
112634         * lib/fsusage.c: Remove declaration of statfs.
112635         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112637         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112639 2003-06-06  Jim Meyering  <jim@meyering.net>
112641         * lib/stdbool_.h: Renamed from stdbool.h.in.
112643 2003-06-06  Jim Meyering  <jim@meyering.net>
112644             Bruno Haible  <bruno@clisp.org>
112646         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112647         Adjust Makefile.am snippet not to redirect directly to target.
112648         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112650 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112652         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112653         mismatch, look in future quarters as well as past.  This fixes a
112654         bug when processing fall-backwards gaps immediately after a long
112655         period of daylight-saving time.
112657         * lib/mktime.c: Assume freestanding C89 or better.
112658         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112659         (__P): Remove; not used.
112660         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112661         (mktime, not_equal_tm, print_tm, check_result,
112662         main): Use prototypes.  Use const * where appropriate.
112663         (main): Fix typo in testing code that uncovered by above changes.
112664         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112666 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112668         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112669         locale.h, localeconv.  This merges changes from coreutils.
112671         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112672         It can be removed after the next Autoconf is released.
112673         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112674         needed.
112676 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112678         * lib/mktime.c: Fix Debian bug 177940
112679         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112680         (localtime_offset): Now long int, not time_t, because we want it
112681         to be guaranteed to be signed.  All uses changed.
112682         (__mktime_internal): If overflow would occur when adding offset,
112683         don't add it.
112685         Merge 'human' changes from coreutils.  Rewrite to support
112686         locale-specific notations like thousands separators.
112687         * lib/human.c: Simplify authorship notice.
112688         Include human.h immediately after config.h.
112689         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112690         <limits.h>: Do not include, since human.h does.
112691         (SIZE_MAX, UINTMAX_MAX): New macros.
112692         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112693         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112694         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112695         (power_letter): Renamed from suffixes.
112696         (generate_suffix_backwards): Remove.
112697         (adjust_value): Now takes int style (because of human.h changes)
112698         and long double value (for greater precision on some platforms).
112699         (group_number): New function.
112700         (human_readable): Use it.  Use integer options, not enum.
112701         Put the options before the sizes in the arg list.
112702         Support all the new options.
112703         The old human_readable function has been removed;
112704         use inttostr.h instead.
112705         (human_readable, default_block_size, humblock):
112706         Use uintmax_t, not int, for block sizes.
112707         (human_readable_inexact, block_size_types): Remove.
112708         (block_size_opts): New constant.
112709         (human_options): Renamed from human_block_size, with new signature
112710         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112711         * lib/human.h: Add copyright and authorship notice.
112712         Include <limits.h> and <stdbool.h> unconditionally.
112713         (PARAMS): Remove.  All uses removed.
112714         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112715         (enum human_inexact_style): Remove tag; now a nameless enum.
112716         (human_floor, human_ceiling, human_round_to_even): Now have
112717         values 2, 0, 1 rather than -1, 1, 0.
112718         (human_group_digits, human_suppress_point_zero, human_autoscale,
112719         human_base_1024, human_SI, human_B): New constants.
112720         (human_readable_inexact, human_block_size): Remove.
112721         (human_readable): Size args are now uintmax_t, not int.
112722         (human_options): New decl.
112724         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112725         unnecessary now that we assume C89 or better.  This change
112726         imported from coreutils.
112728         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112729         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112730         in the 2003-05-30 sync from glibc.
112732         .h files should stand alone, but we shouldn't include <sys/types.h>
112733         if we can get away with just <stddef.h>.
112735         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112736         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112737         rather than <sys/types.h>, as we merely need size_t.
112738         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112739         to get size_t.
112740         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112741         Include <stdio.h>, to get FILE.
112742         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112743         memcasecmp.h has included <stddef.h> and all we need is size_t.
112744         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112745         our interface, instead of including <sys/types.h>
112747 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112749         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112750         now, as glibc mktime is buggy on non-glibc systems.
112752 2003-06-03  Karl Berry  <karl@gnu.org>
112754         * config/config.sub: update from prep.
112756 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112758         [from coreutils]
112759         Fix some minor time-related bugs with POSIX time arguments.
112760         Some valid time stamps were being rejected (notably -1, and
112761         time stamps before 1900 on 64-bit hosts).  And some invalid
112762         time stamps were being accepted, e.g. September 31.
112764         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112765         that we can return (time_t) -1 successfully.
112766         * lib/posixtm.c: Likewise.
112767         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112768         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112769         (t): Remove static var.
112770         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112771         of static var.  All uses changed.
112772         (year): Do not reject years before 1900; they can occur with
112773         64-bit time_t.
112774         (posix_time_parse): Do not check for out-of-range components;
112775         that is now the caller's responsibility, since our checks were
112776         only approximations.
112777         (posixtime): Use mktime to check for out-of-range components,
112778         since it knows them exactly.
112779         If mktime returns (time_t) -1, check whether an error actually occurred
112780         by invoking localtime on -1.
112781         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112782         posixtime failures better.
112783         Improve the test data (in comments only).
112785 2003-06-02  Karl Berry  <karl@gnu.org>
112787         * config/mkinstalldirs (version): new variable.
112788         (--version): new option.
112789         (usage): improve message.
112791 2003-05-30  Karl Berry  <karl@gnu.org>
112793         * lib/mktime.c: update from libc.
112795 2003-05-30  Bruno Haible  <bruno@clisp.org>
112797         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112798         * config/config.rpath: Upgrade to gettext-0.12.1.
112800 2003-05-30  Bruno Haible  <bruno@clisp.org>
112802         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112803         * m4/nls.m4: New file, from gettext-0.12.1.
112804         * m4/po.m4: New file, from gettext-0.12.1.
112805         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112807 2003-05-30  Bruno Haible  <bruno@clisp.org>
112809         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112810         * lib/localcharset.h: Likewise.
112811         * lib/localcharset.c: Likewise.
112813 2003-05-29  Karl Berry  <karl@gnu.org>
112815         * config/config.rpath: update from gettext.
112817 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112819         Assume the headers required for C89 freestanding compilers.
112820         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112821         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112822         * m4/human.m4 (gl_HUMAN): Likewise.
112823         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112824         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112825         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112826         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112827         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112828         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112830 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112832         Assume the headers required for C89 freestanding compilers.
112833         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112834         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112835         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112836         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112837         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112838         define, since <limits.h> is guaranteed to do that.
112839         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112840         * lib/exclude.c: Include <stdbool.h> unconditionally.
112841         * lib/tempname.c: Include <stddef.h> unconditionally.
112842         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112843         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112844         <stddef.h> does that.
112845         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112846         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112847         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112848         needed.
112849         * lib/xstrtol.c: Likewise.
112850         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112851         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112853         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112854         warnings on some platforms.
112856         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112857         arbitrarily.
112859 2003-05-26  Jim Meyering  <jim@meyering.net>
112861         Merge in a change from coreutils:
112862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112863         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112864         that condition, rather than `-1' which is slightly misleading.
112865         Change the name of the cache variable to have the gl_ prefix.
112866         Prompted by a patch from Richard Dawe for DJGPP.
112868 2003-05-24  Karl Berry  <karl@gnu.org>
112870         * config/config.guess: update from prep.
112872 2003-05-22  Karl Berry  <karl@gnu.org>
112874         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112876 2003-05-20  Karl Berry  <karl@gnu.org>
112878         * config/config.guess: update from prep.
112880 2003-05-18  Karl Berry  <karl@gnu.org>
112882         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112883         might actually be set by the user.
112885         * config/depcomp, install-sh, mdate-sh: update from automake.
112887 2003-05-17  Bruno Haible  <bruno@clisp.org>
112889         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112890         invalid expansion for AC_EGREP_CPP.
112891         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112892         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112893         Suggested by Akim Demaille <akim@epita.fr> in
112894         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112896 2003-05-12  Jim Meyering  <jim@meyering.net>
112898         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112899         the space-padded-by-default conversion specifiers, %e, %k, %l.
112901 2003-05-12  Bruno Haible  <bruno@clisp.org>
112903         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112904         the string is longer than 4 KB.
112906 2003-05-11  Karl Berry  <karl@gnu.org>
112908         * config/config.{guess,sub}: update from prep.
112910 2003-05-09  Bruno Haible  <bruno@clisp.org>
112912         * modules/error: Add m4/strerror_r.m4 to file list.
112914 2003-05-03  Bruno Haible  <bruno@clisp.org>
112916         Upgrade to Unicode-4.0.
112917         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112918         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112919         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112920         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112921         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112922         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112923         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112924         Change width of U+E0100..U+E01EF from 1 to 0.
112926 2003-04-25  Jim Meyering  <jim@meyering.net>
112928         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112929         of type size_t, not int.
112931 2003-04-25  Bruno Haible  <bruno@clisp.org>
112933         * lib/copy-file.c: Include <stddef.h>, for size_t.
112935 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112937         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112938         code which expansion is under static control.  Patch imported from
112939         Akim Demaille's patch to Bison; see
112940         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112942 2003-04-14  Bruno Haible  <bruno@clisp.org>
112944         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112946 2003-04-11  Jim Meyering  <jim@meyering.net>
112948         Merge changes from Coreutils.
112950         2003-03-22  Jim Meyering  <jim@meyering.net>
112952         * lib/strftime.c (widen): Cast alloca return value to proper type.
112954         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112956         From GNU libc.
112957         * lib/strftime.c (my_strftime): Handle very large width
112958         specifications for numeric values correctly.  Improve checks for
112959         overflow.
112961         2003-01-19  Jim Meyering  <jim@meyering.net>
112963         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112964         definitions.
112965         (nl_get_alt_digit) [! defined my_strftime]: Define.
112966         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112967         _nl_get_alt_digit and _nl_get_walt_digit.
112969         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112970         libc. These changes have no effect outside of _LIBC.
112972 2003-04-10  Bruno Haible  <bruno@clisp.org>
112974         * modules/findprog: New file.
112975         * MODULES.html.sh (func_all_modules): Add it.
112977 2003-04-10  Bruno Haible  <bruno@clisp.org>
112979         * m4/findprog.m4: New file.
112980         * m4/eaccess.m4: New file.
112982 2003-04-10  Bruno Haible  <bruno@clisp.org>
112984         * lib/findprog.h: New file, from GNU gettext.
112985         * lib/findprog.c: New file, from GNU gettext.
112987 2003-04-05  Jim Meyering  <jim@meyering.net>
112989         Merge changes from Coreutils.
112991         * lib/exclude.h (PARAMS): Remove definition and uses.
112992         * lib/exclude.c: Remove uses of `PARAMS'.
112994         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112995         Add test-cases for DOS filenames. Declare program_name.
112996         (main): Set up program_name.  Patch by Rich Dawe.
112998         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112999         error from mntctl.
113000         Use mntctl's return value to drive the entry-processing loop, since
113001         we can't rely on the value of the vmt_length member in the last
113002         entry.  On some systems doing so could result in exhausting
113003         virtual memory.  Based in part on a patch from Mike Jetzer.
113005 2003-04-04  Bruno Haible  <bruno@clisp.org>
113007         * modules/linebreak: New file.
113008         * MODULES.html.sh (func_all_modules): Add it.
113010 2003-04-04  Bruno Haible  <bruno@clisp.org>
113012         * m4/linebreak.m4: New file.
113014 2003-04-04  Bruno Haible  <bruno@clisp.org>
113016         * lib/linebreak.h: New file, from GNU gettext.
113017         * lib/linebreak.c: New file, from GNU gettext with slight
113018         modifications.
113019         * lib/lbrkprop.h: New file, from GNU gettext.
113021 2003-04-03  Bruno Haible  <bruno@clisp.org>
113023         * modules/utf8-ucs4: New file.
113024         * modules/utf16-ucs4: New file.
113025         * modules/ucs4-utf8: New file.
113026         * modules/ucs4-utf16: New file.
113027         * MODULES.html.sh (func_all_modules): Add them.
113029 2003-04-03  Bruno Haible  <bruno@clisp.org>
113031         * m4/utf-ucs4.m4: New file.
113032         * m4/ucs4-utf.m4: New file.
113034 2003-04-03  Bruno Haible  <bruno@clisp.org>
113036         * lib/utf8-ucs4.h: New file, from GNU gettext.
113037         * lib/utf16-ucs4.h: New file, from GNU gettext.
113038         * lib/ucs4-utf8.h: New file, from GNU gettext.
113039         * lib/ucs4-utf16.h: New file, from GNU gettext.
113041 2003-04-02  Bruno Haible  <bruno@clisp.org>
113043         * modules/binary-io: New file.
113044         * MODULES.html.sh (func_all_modules): Add it.
113046 2003-04-02  Bruno Haible  <bruno@clisp.org>
113048         * lib/binary-io.h: New file, from GNU gettext.
113050 2003-04-01  Bruno Haible  <bruno@clisp.org>
113052         * modules/pathname: New file.
113053         * MODULES.html.sh (func_all_modules): Add it.
113055 2003-04-01  Bruno Haible  <bruno@clisp.org>
113057         * lib/pathname.h: New file, from GNU gettext.
113058         * lib/concatpath.c: New file, from GNU gettext.
113060 2003-03-30  Bruno Haible  <bruno@clisp.org>
113062         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
113064 2003-03-30  Bruno Haible  <bruno@clisp.org>
113066         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
113067         function chown() doesn't exist.
113069 2003-03-28  Bruno Haible  <bruno@clisp.org>
113071         * modules/copy-file: New file.
113072         * MODULES.html.sh (func_all_modules): Add it.
113074 2003-03-28  Bruno Haible  <bruno@clisp.org>
113076         * m4/copy-file.m4: New file.
113078 2003-03-28  Bruno Haible  <bruno@clisp.org>
113080         * lib/copy-file.h: New file, from GNU gettext.
113081         * lib/copy-file.c: New file, from GNU gettext.
113083 2003-03-18  Jim Meyering  <jim@meyering.net>
113085         * lib/quote.c (quote_n): Fix typo in comment.
113087 2003-03-18  Bruno Haible  <bruno@clisp.org>
113089         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
113090         checking.
113091         * m4/onceonly_2_57.m4: Likewise.
113093 2003-03-17  Bruno Haible  <bruno@clisp.org>
113095         * m4/onceonly.m4: Require autoconf 2.54 or newer.
113096         (m4_quote): Remove macro.
113097         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
113099 2003-03-14  Jim Meyering  <jim@meyering.net>
113101         Merge changes from Coreutils.
113102         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
113103         to be const, in order to avoid warnings.
113104         (obstack_room): Likewise.
113105         (obstack_empty_p): Likewise.
113107 2003-03-14  Bruno Haible  <bruno@clisp.org>
113109         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113110         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113112 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113114         Merge changes from Bison.
113115         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113116         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113117         when compiling Bison 1.875's `bitset bset = obstack_alloc
113118         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113119         * lib/hash.c: Include <stdbool.h> unconditionally.
113121 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113123         * m4/onceonly.m4 (m4_quote): New macro.
113124         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113125         Quote AC_FOREACH variable-expansions properly.
113127 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113129         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113131 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113133         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113134         Reported by Bruce Becker; see:
113135         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113137 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113138             Bruno Haible  <bruno@clisp.org>
113140         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113141         Reported by John Hughes, see
113142         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113144 2003-02-20  Bruno Haible  <bruno@clisp.org>
113146         * MODULES.html.sh (func_all_modules): Add poll.
113148 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113150         * modules/poll: New file.
113152 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113154         * lib/poll_.h: New file.
113155         * lib/poll.c: New file.
113157 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113159         * m4/poll.m4: New file.
113161 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113163         * modules/mathl: New file.
113165 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113167         * lib/mathl.h: New file.
113168         * lib/acosl.c: New file.
113169         * lib/asinl.c: New file.
113170         * lib/atanl.c: New file.
113171         * lib/ceill.c: New file.
113172         * lib/cosl.c: New file.
113173         * lib/expl.c: New file.
113174         * lib/floorl.c: New file.
113175         * lib/frexpl.c: New file.
113176         * lib/ldexpl.c: New file.
113177         * lib/logl.c: New file.
113178         * lib/sincosl.c: New file.
113179         * lib/sinl.c: New file.
113180         * lib/sqrtl.c: New file.
113181         * lib/tanl.c: New file.
113182         * lib/trigl.c: New file.
113183         * lib/trigl.h: New file.
113185 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113187         * m4/mathl.m4: New file.
113189 2003-02-18  Bruno Haible  <bruno@clisp.org>
113191         * MODULES.html.sh (func_all_modules): Add mathl.
113193 2003-02-17  Bruno Haible  <bruno@clisp.org>
113195         * modules/mkdtemp: New module.
113196         * MODULES.html.sh (func_all_modules): Add it.
113198 2003-02-17  Bruno Haible  <bruno@clisp.org>
113200         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113202 2003-02-17  Bruno Haible  <bruno@clisp.org>
113204         * lib/mkdtemp.h: New file, from GNU gettext.
113205         * lib/mkdtemp.c: New file, from GNU gettext.
113207 2003-02-02  Jim Meyering  <jim@meyering.net>
113209         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113210         e.g. glibc-2.2.93.
113212 2003-01-31  Bruno Haible  <bruno@clisp.org>
113214         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113215         'rpl_rename'.
113216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113217         'rpl_strnlen'.
113218         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113219         'rpl_strtod'.
113220         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113221         'rpl_utime'.
113223 2003-01-31  Bruno Haible  <bruno@clisp.org>
113225         * lib/rename.c: #undef rename before defining rpl_rename.
113226         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113228 2003-01-30  Bruno Haible  <bruno@clisp.org>
113230         * modules/vasnprintf, modules/vasprintf: New modules.
113231         * MODULES.html.sh (func_all_modules): Add them.
113233 2003-01-30  Bruno Haible  <bruno@clisp.org>
113235         * m4/signed.m4: New file, from GNU gettext.
113236         * m4/longdouble.m4: New file, from GNU gettext.
113237         * m4/wchar_t.m4: New file, from GNU gettext.
113238         * m4/wint_t.m4: New file, from GNU gettext.
113239         * m4/vasnprintf.m4: New file.
113240         * m4/vasprintf.m4: New file.
113242 2003-01-30  Bruno Haible  <bruno@clisp.org>
113244         * lib/printf-args.h: New file, from GNU gettext.
113245         * lib/printf-args.c: New file, from GNU gettext.
113246         * lib/printf-parse.h: New file, from GNU gettext.
113247         * lib/printf-parse.c: New file, from GNU gettext.
113248         * lib/vasnprintf.h: New file, from GNU gettext.
113249         * lib/vasnprintf.c: New file, from GNU gettext.
113250         * lib/asnprintf.c: New file, from GNU gettext.
113251         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113252         * lib/vasprintf.c: New file, from GNU gettext.
113253         * lib/asprintf.c: New file, from GNU gettext.
113255 2003-01-29  Bruno Haible  <bruno@clisp.org>
113257         * modules/stpncpy: New module.
113258         * MODULES.html.sh (func_all_modules): Add it.
113260 2003-01-29  Bruno Haible  <bruno@clisp.org>
113262         * m4/stpncpy.m4: New file.
113264 2003-01-29  Bruno Haible  <bruno@clisp.org>
113266         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113267         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113269 2003-01-28  Bruno Haible  <bruno@clisp.org>
113271         * modules/c-ctype: New module.
113272         * MODULES.html.sh (func_all_modules): Add it.
113274 2003-01-28  Bruno Haible  <bruno@clisp.org>
113276         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113277         Paul Eggert.
113278         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113279         Paul Eggert.
113281 2003-01-27  Bruno Haible  <bruno@clisp.org>
113283         * modules/xsetenv: New module.
113284         * MODULES.html.sh (func_all_modules): Add it.
113286 2003-01-27  Bruno Haible  <bruno@clisp.org>
113288         * lib/xsetenv.h: New file, from GNU gettext.
113289         * lib/xsetenv.c: New file, from GNU gettext.
113291 2003-01-23  Jim Meyering  <jim@meyering.net>
113293         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113294         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113296 2003-01-23  Bruno Haible  <bruno@clisp.org>
113298         * modules/minmax: New module.
113299         * MODULES.html.sh (func_all_modules): Add it.
113301 2003-01-23  Bruno Haible  <bruno@clisp.org>
113303         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113304         Eggert.
113306 2003-01-22  Bruno Haible  <bruno@clisp.org>
113308         * modules/exit: New module.
113309         * MODULES.html.sh (func_all_modules): Add it.
113311 2003-01-22  Bruno Haible  <bruno@clisp.org>
113313         * lib/exit.h: New file, from GNU gettext.
113315 2003-01-19  Bruno Haible  <bruno@clisp.org>
113317         * gnulib-tool: Recognize option --extract-maintainer.
113318         (func_get_maintainer): New function.
113319         * modules/*: Add Maintainer entry.
113321 2003-01-16  Jim Meyering  <jim@meyering.net>
113323         * m4/regex.m4: The `regex' struct is both input and output.
113324         Initialize it before each use.  Patch by Tim Waugh.
113326 2003-01-16  Bruno Haible  <bruno@clisp.org>
113328         * MODULES.html.sh: Add a table of contents. Add the module name as
113329         leftmost column. Add hyperlinks.
113331 2003-01-15  Bruno Haible  <bruno@clisp.org>
113333         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113335 2003-01-15  Bruno Haible  <bruno@clisp.org>
113337         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113339         suffix.
113341 2003-01-15  Bruno Haible  <bruno@clisp.org>
113343         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113345 2003-01-15  Bruno Haible  <bruno@clisp.org>
113347         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113348         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113350 2003-01-14  Jim Meyering  <jim@meyering.net>
113352         * lib/same.c (same_name): Tweak a comment.
113354 2003-01-14  Bruno Haible  <bruno@clisp.org>
113356         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113357         when a string comparison is sufficient.
113359 2003-01-14  Bruno Haible  <bruno@clisp.org>
113361         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113362         'unsigned int'.
113364 2003-01-14  Bruno Haible  <bruno@clisp.org>
113366         * lib/hash-pjw.c: Add comment about low quality of this function.
113368 2003-01-13  Bruno Haible  <bruno@clisp.org>
113370         * modules/stpcpy: Distribute lib/stpcpy.h.
113371         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113373 2003-01-13  Bruno Haible  <bruno@clisp.org>
113375         * modules/*: Add a description.
113376         * modules/strpbrk: Fix Makefile.am snippet.
113377         * modules/strtoimax: Fix dependencies.
113378         * modules/strtoumax: Likewise.
113380 2003-01-13  Bruno Haible  <bruno@clisp.org>
113382         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113383         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113384         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113386 2003-01-13  Bruno Haible  <bruno@clisp.org>
113388         * gnulib-tool (func_create_testdir): Store config/* files in the main
113389         directory.
113390         * config.rpath: Move to ...
113391         * config/config.rpath: ... here.
113392         * modules/gettext: Contains config/config.rpath, not config.rpath.
113393         * modules/iconv: Likewise.
113395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113398         to avoid collisions with libcurses and libreadline.
113400         * m4/getstr.m4: Remove.
113401         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113403 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113405         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113406         to avoid collisions with libcurses and libreadline.
113408         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113409         * lib/getstr.h, getstr.c: Remove.
113410         * lib/getline.c: Include "getline.h", to check interface.
113411         Move body of old getstr.c here: this defines MIN_CHUNK and
113412         declares getdelim2, which is renamed from getstr.
113413         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113415         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113416         All uses changed.
113417         * lib/linebuffer.h: Likewise.
113418         (readline): Remove backward-compatibility macro.
113420 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113422         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113423         to avoid collisions with libcurses and libreadline.
113424         * getstr: Remove.
113425         * MODULES.html.sh: Remove getstr.
113426         * modules/getline: Depend on unlocked-io, not getstr.
113428 2003-01-12  Jim Meyering  <jim@meyering.net>
113430         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113432 2003-01-10  Bruno Haible  <bruno@clisp.org>
113434         * modules/alloca: Change Makefile.am requirements. Simplify Include
113435         requirements. Add lib/alloca_.h to file list.
113437 2003-01-10  Bruno Haible  <bruno@clisp.org>
113439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113441 2003-01-10  Bruno Haible  <bruno@clisp.org>
113443         * lib/alloca_.h: New file.
113444         * lib/getdate.y: Unconditionally include alloca.h.
113445         * lib/makepath.c: Likewise.
113446         * lib/setenv.c: Likewise.
113447         * lib/userspec.c: Likewise.
113449 2003-01-09  Karl Berry  <karl@gnu.org>
113451         * MODULES.html.sh: include `dirname $0` in PATH, to find
113452         gnulib-tool.
113454 2003-01-09  Bruno Haible  <bruno@clisp.org>
113456         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113457         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113459 2003-01-09  Bruno Haible  <bruno@clisp.org>
113461         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113463 2003-01-09  Bruno Haible  <bruno@clisp.org>
113465         * lib/stdbool.h.in: New file.
113467 2003-01-09  Bruno Haible  <bruno@clisp.org>
113469         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113470         * MODULES.html.sh: Likewise.
113472 2003-01-08  Jim Meyering  <jim@meyering.net>
113474         * lib/full-write.c: Undefine and define-away `const' after inclusion
113475         of errno.h, not before.  Suggestion from Bruno Haible.
113477 2003-01-08  Bruno Haible  <bruno@clisp.org>
113479         * modules/full-read: Depend on full-write.
113481 2003-01-08  Bruno Haible  <bruno@clisp.org>
113483         * lib/safe-read.c: Include specification header first, to ensure its
113484         selfcontainedness.
113485         * lib/full-write.c: Likewise.
113487 2003-01-07  Jim Meyering  <jim@meyering.net>
113489         * lib/full-write.c: Rework so that it may serve to define full_read,
113490         too.
113491         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113493 2003-01-07  Bruno Haible  <bruno@clisp.org>
113495         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113496         <inttypes.h>.
113497         * lib/xstrtol.h: Likewise.
113498         * lib/xstrtoimax.c: Likewise.
113499         * lib/xstrtoumax.c: Likewise.
113500         * lib/human.h: Likewise.
113502         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113503         on systems that have <inttypes.h> but not <stdint.h>.
113505 2003-01-07  Bruno Haible  <bruno@clisp.org>
113507         * MODULES.html.sh: Add copyright notice.
113508         (missed_files): Omit CVS directory entries.
113509         (func_module): Make it work with sed-3.02.
113510         * MODULES.txt: Remove file.
113512 2003-01-06  Jim Meyering  <jim@meyering.net>
113514         * lib/version-etc.c: Update year in translatable copyright string.
113516 2003-01-03  Karl Berry  <karl@gnu.org>
113518         * config/config.{guess,sub}: update from prep.
113520 2003-01-02  Karl Berry  <karl@gnu.org>
113522         * doc/COPYING.DOC: belatedly updated to 1.2.
113524 2003-01-01  Karl Berry  <karl@gnu.org>
113526         * gnulib-tool (func_verify_module): report module name $module in
113527         error message, not $1.
113528         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113529         be created, only if it doesn't exist.
113530         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113532 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113534         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113536 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113538         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113539         memcmp if strcoll doesn't work.
113541 2002-12-31  Bruno Haible  <bruno@clisp.org>
113543         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113544         nonempty.
113546 2002-12-31  Bruno Haible  <bruno@clisp.org>
113548         * lib/memcoll.c (STRCOLL): New macro.
113549         (memcoll): Use it.
113551 2002-12-31  Bruno Haible  <bruno@clisp.org>
113553         * lib/localcharset.h: New file.
113554         * lib/localcharset.c: Include it.
113555         * lib/unicodeio.c: Likewise.
113557 2002-12-31  Bruno Haible  <bruno@clisp.org>
113559         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113560         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113562 2002-12-31  Bruno Haible  <bruno@clisp.org>
113564         * lib/getline.h: Include <stddef.h>, for size_t.
113566         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113567         * lib/unicodeio.c: Don't include <stddef.h>.
113569 2002-12-31  Bruno Haible  <bruno@clisp.org>
113571         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113572         HAVE_TM_ZONE.
113574 2002-12-24  Karl Berry  <karl@gnu.org>
113576         * config/config.guess: update from prep.
113578 2002-12-24  Bruno Haible  <bruno@clisp.org>
113580         General infrasructure.
113581         * m4/README: Rewritten.
113582         * m4/onceonly.m4: New file.
113583         * m4/onceonly_2_57.m4: New file.
113585         Module atexit.
113586         * m4/atexit.m4: New file.
113588         Module strtod.
113589         * m4/strtod.m4: New file.
113591         Module strtol.
113592         * m4/strtol.m4: New file.
113594         Module strtoul.
113595         * m4/strtoul.m4: New file.
113597         Module memchr.
113598         * m4/memchr.m4: New file.
113600         Module memcmp.
113601         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113602         (jm_FUNC_MEMCMP): Invoke it.
113604         Module memcpy.
113605         * m4/memcpy.m4: New file.
113607         Module memmove.
113608         * m4/memmove.m4: New file.
113610         Module memset.
113611         * m4/memset.m4: New file.
113613         Module strcspn.
113614         * m4/strcspn.m4: New file.
113616         Module strpbrk.
113617         * m4/strpbrk.m4: New file.
113619         Module strstr.
113620         * m4/strstr.m4: New file.
113622         Module strerror.
113623         * m4/strerror.m4: New file.
113625         Module mktime.
113626         * m4/mktime.m4: Renamed from jm-mktime.m4.
113627         (gl_PREREQ_MKTIME): New macro.
113628         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113630         Module malloc.
113631         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113632         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113633         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113635         Module realloc.
113636         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113637         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113638         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113640         Module strftime.
113641         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113642         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113643         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113644         gl_TM_GMTOFF.
113645         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113647         Module xalloc.
113648         * m4/xalloc.m4: New file.
113650         Module alloca.
113651         * m4/alloca.m4: New file.
113653         Module putenv.
113654         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113655         (jm_FUNC_PUTENV): Invoke it.
113657         Module setenv.
113658         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113659         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113660         when invoked twice.
113661         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113662         gt_FUNC_SETENV.
113664         Module memrchr.
113665         * m4/memrchr.m4: New file.
113667         Module stpcpy.
113668         * m4/stpcpy.m4: New file.
113670         Module strcase.
113671         * m4/strcase.m4: New file.
113673         Module strdup.
113674         * m4/strdup.m4: New file.
113676         Module strnlen.
113677         * m4/strnlen.m4: New file.
113679         Module strndup.
113680         * m4/strndup.m4: New file.
113682         Module xstrtod.
113683         * m4/xstrtod.m4: New file.
113685         Module xstrtol.
113686         * m4/xstrtol.m4: New file.
113688         Module getdate.
113689         * m4/getdate.m4: New file.
113691         Module unlocked-io.
113692         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113693         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113694         * m4/jm-glibc-io.m4n: Remove file.
113696         Module long-options.
113697         * m4/long-options.m4: New file.
113699         Module md5.
113700         * m4/md5.m4: New file.
113702         Module sha.
113703         * m4/sha.m4: New file.
113705         Module getstr.
113706         * m4/getstr.m4: New file.
113708         Module getline.
113709         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113710         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113711         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113712         simply getline. Infoke gl_PREREQ_GETLINE.
113714         Module obstack.
113715         * m4/obstack.m4: New file.
113717         Module hash.
113718         * m4/hash.m4: New file.
113720         Module readtokens.
113721         * m4/readtokens.m4: New file.
113723         Module strverscmp.
113724         * m4/strverscmp.m4: New file.
113726         Module stdbool.
113727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113728         OSF/1.
113730         Module strtoll.
113731         * m4/strtoll.m4: New file.
113733         Module strtoull.
113734         * m4/strtoull.m4: New file.
113736         Module strtoimax.
113737         * m4/strtoimax.m4: New file.
113739         Module strtoumax.
113740         * m4/strtoumax.m4: New file.
113742         Module xstrtoimax.
113743         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113744         jm_AC_PREREQ_XSTRTOIMAX.
113745         Moved the strtol prerequisites to strtol.m4.
113746         Moved the strtoll prerequisites to strtoll.m4.
113747         Moved the strtoimax prerequisites to strtoimax.m4.
113749         Module xstrtoumax.
113750         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113751         jm_AC_PREREQ_XSTRTOUMAX.
113752         Moved the strtoul prerequisites to strtoul.m4.
113753         Moved the strtoull prerequisites to strtoull.m4.
113754         Moved the strtoumax prerequisites to strtoumax.m4.
113756         Module chown.
113757         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113758         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113760         Module dup2.
113761         * m4/dup2.m4: New file.
113763         Module ftruncate.
113764         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113765         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113767         Module getgroups.
113768         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113769         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113771         Module gettimeofday.
113772         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113773         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113774         gl_PREREQ_GETTIMEOFDAY.
113776         Module mkdir.
113777         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113778         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113780         Module mkstemp.
113781         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113782         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113783         jm_AC_TYPE_UINTMAX_T.
113784         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113786         Module stat.
113787         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113788         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113790         Module lstat.
113791         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113792         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113794         Module timespec.
113795         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113796         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113797         * m4/st_mtim.m4: Indentation.
113799         Module nanosleep.
113800         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113801         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113802         gl_PREREQ_NANOSLEEP.
113804         Module regex.
113805         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113806         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113807         (gl_REGEX): New macro.
113809         Module rename.
113810         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113811         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113813         Module rmdir.
113814         * m4/rmdir.m4: New file.
113816         Module utime.
113817         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113818         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113819         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113821         Module dirname.
113822         * m4/dirname.m4: New file.
113824         Module getopt.
113825         * m4/getopt.m4: New file.
113827         Module unistd-safer.
113828         * m4/unistd-safer.m4: New file.
113830         Module fnmatch.
113831         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113832         declaration.
113833         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113834         (gl_FUNC_FNMATCH_POSIX): New macro.
113835         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113836         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113837         simply fnmatch.
113839         Module exclude.
113840         * m4/exclude.m4: New file.
113842         Module human.
113843         * m4/human.m4: New file.
113845         Module acl.
113846         * m4/acl.m4: Nop.
113848         Module backupfile.
113849         * m4/backupfile.m4: New file.
113850         * m4/d-ino.m4: Indentation.
113852         Module fsusage.
113853         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113854         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113855         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113857         Module dirfd.
113858         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113859         requirements.
113861         Module euidaccess.
113862         * m4/euidaccess.m4: New file.
113864         Module file-type.
113865         * m4/file-type.m4: New file.
113867         Module fileblocks.
113868         * m4/fileblocks.m4: New file.
113870         Module filemode.
113871         * m4/filemode.m4: New file.
113873         Module isdir.
113874         * m4/isdir.m4: New file.
113876         Module lchown.
113877         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113878         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113880         Module makepath.
113881         * m4/makepath.m4: New file.
113883         Module modechange.
113884         * m4/modechange.m4: New file.
113886         Module mountlist.
113887         * m4/mountlist.m4: New file.
113888         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113889         Indentation.
113891         Module path-concat.
113892         * m4/path-concat.m4: New file.
113894         Module pathmax.
113895         * m4/pathmax.m4: New file.
113897         Module same.
113898         * m4/same.m4: New file.
113900         Module save-cwd.
113901         * m4/save-cwd.m4: New file.
113903         Module savedir.
113904         * m4/savedir.m4: New file.
113906         Module xgetcwd.
113907         * m4/xgetcwd.m4: New file.
113908         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113910         Module xreadlink.
113911         * m4/xreadlink.m4: New file.
113913         Module safe-read.
113914         * m4/safe-read.m4: New file.
113916         Module safe-write.
113917         * m4/safe-write.m4: New file.
113919         Module closeout.
113920         * m4/closeout.m4: New file.
113922         Module stdio-safer.
113923         * m4/stdio-safer.m4: New file.
113925         Module getpass.
113926         * m4/getpass.m4: New file.
113928         Module getugroups.
113929         * m4/getugroups.m4: New file.
113931         Module group-member.
113932         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113933         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113935         Module idcache.
113936         * m4/idcache.m4: New file.
113938         Module userspec.
113939         * m4/userspec.m4: New file.
113941         Module gettime.
113942         * m4/clock_time.m4: New file.
113943         * m4/gettime.m4: New file.
113945         Module settime.
113946         * m4/settime.m4: New file.
113948         Module posixtm.
113949         * m4/posixtm.m4: New file.
113951         Module gethostname.
113952         * m4/gethostname.m4: New file.
113954         Module canon-host.
113955         * m4/canon-host.m4: New file.
113957         Module gettext.
113958         * m4/codeset.m4: New file, from gettext-0.11.5.
113959         * m4/gettext.m4: New file, from gettext-0.11.5.
113960         * m4/glibc21.m4: New file, from gettext-0.11.5.
113961         * m4/iconv.m4: New file, from gettext-0.11.5.
113962         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113963         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113964         * m4/inttypes.m4: New file, from gettext-0.11.5.
113965         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113966         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113967         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113968         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113969         * m4/lib-link.m4: New file, from gettext-0.11.5.
113970         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113971         * m4/progtest.m4: New file, from gettext-0.11.5.
113972         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113973         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113974         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113976         Module localcharset.
113977         * m4/localcharset.m4: New file.
113979         Module hard-locale.
113980         * m4/hard-locale.m4: New file.
113982         Module mbswidth.
113983         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113984         onceonly macros.
113985         * m4/mbrtowc.m4: Add comment.
113987         Module memcasecmp.
113988         * m4/memcasecmp.m4: New file.
113990         Module memcoll.
113991         * m4/memcoll.m4: New file.
113993         Module unicodeio.
113994         * m4/unicodeio.m4: New file.
113996         Module rpmatch.
113997         * m4/rpmatch.m4: New file.
113999         Module yesno.
114000         * m4/yesno.m4: New file.
114002         Module exitfail.
114003         * m4/exitfail.m4: New file.
114005         Module c-stack.
114006         * m4/c-stack.m4 (gl_C_STACK): New macro.
114007         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
114009         Module error.
114010         * m4/error.m4 (gl_ERROR): New macro.
114011         (jm_PREREQ_ERROR): Use onceonly macros.
114013         Module fatal.
114014         * m4/fatal.m4: New file.
114016         Module getloadavg.
114017         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
114018         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
114020         Module getpagesize.
114021         * m4/getpagesize.m4: New file.
114023         Module getusershell.
114024         * m4/getusershell.m4: New file.
114026         Module physmem.
114027         * m4/physmem.m4: New file.
114029         Module posixver.
114030         * m4/posixver.m4: New file.
114032         Module quotearg.
114033         * m4/quotearg.m4: New file.
114035         Module quote.
114036         * m4/quote.m4: New file.
114038         Module readutmp.
114039         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
114041         Module sig2str.
114042         * m4/sig2str.m4: New file.
114044         Other.
114045         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
114046         ulonglong.m4.
114047         * m4/intmax_t.m4: New file.
114048         * m4/d-type.m4: Indentation.
114049         * m4/jm-macros.m4: Update.
114050         * m4/prereq.m4 (jm_PREREQ): Update.
114051         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
114052         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
114053         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
114054         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
114055         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
114056         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
114057         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
114058         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
114059         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
114060         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
114061         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
114062         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
114063         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
114064         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
114065         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
114066         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
114067         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
114068         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
114069         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
114071 2002-12-24  Bruno Haible  <bruno@clisp.org>
114073         * MODULES.txt: Update according to m4/ changes.
114075         Module gettext.
114076         * config.rpath: New file, from gettext-0.11.5.
114078         * modules/*: New module descriptions.
114079         * gnulib-tool: New file.
114080         * MODULES.html.sh: New file.
114082 2002-12-21  Karl Berry  <karl@gnu.org>
114084         * doc/fdl.texi: update to version 1.2.
114086 2002-12-19  Karl Berry  <karl@gnu.org>
114088         * config/config.guess: update from prep.
114090 2002-12-18  Bruno Haible  <bruno@clisp.org>
114092         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
114093         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
114095 2002-12-17  Bruno Haible  <bruno@clisp.org>
114097         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
114098         stdlib.h, string.h.
114100 2002-12-17  Bruno Haible  <bruno@clisp.org>
114102         * lib/canon-host.c (strdup): Remove unused declaration.
114104         * lib/fsusage.c: Include full_read.h.
114105         (get_fs_usage): Use full_read instead of safe_read.
114107         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114109 2002-12-12  Karl Berry  <karl@gnu.org>
114111         * config/config.guess: update from prep.
114113 2002-12-11  Bruno Haible  <bruno@clisp.org>
114115         * m4/setenv.m4: New file, from gettext-0.11.5.
114117 2002-12-11  Bruno Haible  <bruno@clisp.org>
114119         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114120         not unsetenv().
114121         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114122         modifications:
114124         2002-12-11  Bruno Haible  <bruno@clisp.org>
114126                 * setenv.c (alloca): Fall back to malloc.
114127                 (freea): New macro.
114128                 (setenv): Use freea() to free memory allocated with alloca().
114130         2002-11-13  Bruno Haible  <bruno@clisp.org>
114132                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114133                 function declarations.
114134                 * unsetenv.c (unsetenv): Likewise.
114136         2002-03-04  Bruno Haible  <bruno@clisp.org>
114138                 Portability to AIX 4.3.3.
114139                 * unsetenv.c: New file, extracted from setenv.c.
114140                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114142         2001-12-20  Bruno Haible  <bruno@clisp.org>
114144                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114145                 use malloc instead. For SunOS 4.
114147         2001-12-11  Bruno Haible  <bruno@clisp.org>
114149                 * setenv.c: Declare alloca.
114150                 (compar_fn_t): New typedef.
114151                 (KNOWN_VALUE, STORE_VALUE): Use it.
114153         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114154         setenv.h.
114156 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114158         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114159         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114160         Choose values that are less likely to collide with system fnmatch
114161         options.
114162         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114163         defined (e.g., a pure POSIX system).
114164         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114165         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114167 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114169         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114170         a pain in practice to deal with generated m4 files.  This change
114171         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114173         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114174         and jm-glibc-io.m4, as they are no longer a special case.
114175         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114176         kludge and the auto-generation stuff.  Check only whether the
114177         functions are declared, not whether they exist, since older hosts
114178         that don't declare the functions can't use the optimization anyway.
114180 2002-12-06  Jim Meyering  <jim@meyering.net>
114182         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114184         Merge in changes from libc's misc/error.c, in preparation
114185         for the merge of gnulib's changes back into libc.
114187         * lib/error.c (_): Define only if not already defined.
114188         Move definition to follow all #include directives.
114189         Include unlocked-io.h only if !_LIBC.
114190         [_LIBC]: Include <libio/libioP.h>.
114191         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114192         (fflush): Tweak definition to use INTUSE.
114193         (putc): Define.
114195 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114197         * lib/alloca.c [defined emacs]: Include "lisp.h".
114198         (xalloc_die) [defined emacs]: New macro.
114199         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114200         [! defined emacs]: Include <xalloc.h>.
114201         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114202         (pointer): Typedef to POINTER_TYPE *.
114203         (malloc): Remove decl; we now always use xmalloc.
114204         (alloca): Use old-style definition, since Emacs needs this.
114205         Check for arithmetic overflow when computing combined size.
114207 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114209         Do not generate unlocked-io.h automatically, since it's easier to
114210         maintain it by hand.
114212         * lib/unlocked-io.h: New file, from GNU diffutils,
114213         but with proper copyright notice and attribution.
114214         * lib/gen-uio: Remove.
114215         * lib/Makefile.am: Add copyright notice.
114216         (libfetish_a_SOURCES): Add unlocked-io.h.
114217         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114218         (DISTCLEANFILES, io_functions): Remove macros.
114219         (EXTRA_DIST): Remove gen_uio.
114220         (unlocked-io.h): Remove rule.
114222 2002-12-04  Jim Meyering  <jim@meyering.net>
114224         Reflect the fact that stat.c and lstat.c are no longer generated.
114225         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114226         (DISTCLEANFILES): Likewise.
114227         (EXTRA_DIST): Likewise.
114228         (all_local): Don't depend on stat.c or lstat.c.
114229         (stat.c, lstat.c): Remove rules.
114230         (EXTRA_DIST): Remove xstat.in.
114232         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114233         * lib/stat.c: New file.  Contents mostly from xstat.in.
114234         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114235         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114237         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114238         too.
114239         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114241 2002-12-03  Jim Meyering  <jim@meyering.net>
114243         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114244         but not semantics, to minimize the differences between these two files.
114245         (safe_read): Change comment to mention SAFE_READ_ERROR.
114247         * lib/safe-read.c (IS_EINTR): Define.
114248         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114250 2002-12-02  Jim Meyering  <jim@meyering.net>
114252         * lib/safe-read.c (EINTR): Define.
114253         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114254         (INT_MAX): Provide fallback.
114255         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114257         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114259 2002-12-02  Bruno Haible  <bruno@clisp.org>
114261         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114262         Define, taken from safe-read.c.
114263         (INT_MAX): Provide fallback.
114264         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114265         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114267         * lib/safe-read.c (EINTR): Remove definition.
114268         (safe_read): Don't use EINTR if it is absent.
114270 2002-12-01  Jim Meyering  <jim@meyering.net>
114272         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114273         zero.
114274         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114276 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114278         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114279         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114280         with `if (! (value < limit)) abort ();', for readability.
114282 2002-11-26  Karl Berry  <karl@gnu.org>
114284         * lib/strdup.c: copy from libc again, with jim's ok.
114285         * lib/.cppi-disable: re-add strdup.c
114287 2002-11-25  Karl Berry  <karl@gnu.org>
114289         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114290         instead of "strtol.c".
114292 2002-11-25  Karl Berry  <karl@gnu.org>
114294         * config/install-sh: update from automake for variable quoting, $0 in
114295         error msgs, etc.
114297         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114298         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114299         entry.
114301 2002-11-25  Jim Meyering  <jim@meyering.net>
114303         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114305 2002-11-24  Karl Berry  <karl@gnu.org>
114307         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114308         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114310 2002-11-24  Jim Meyering  <jim@meyering.net>
114312         Update from coreutils:
114314         * lib/mktime.c: Merge in changes from libc.
114316         Avoid a link-time failure on some Linux systems.
114317         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114318         (otherwise).
114319         (__mon_yday): Declare with the STATIC attribute.
114320         (__mktime_internal): Likewise.
114321         Based on a report from Greg Schafer.
114323 2002-11-23  Jim Meyering  <jim@meyering.net>
114325         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114326         Use `unsigned', not `int', as type of index.
114328         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114330         * lib/fsusage.c: Remove unneeded parentheses around operands of
114331         `defined'.
114333 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114335         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114336         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114337         so that we can be included first.
114338         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114339         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114340         No need to include stddef.h or sys/types.h any more.
114341         Surround local include files with "", not "<>".
114342         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114343         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114344         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114345         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114346         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114347         (ISPRINT): Remove; no longer needed now that we assume C89.
114349         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114350         Preserve errno.
114352         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114353         quotearg_char): Use SIZE_MAX rather than
114354         (size_t) -1 when we are talking about "infinity".
114356         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114358 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114360         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114361         hint that one should use `if (! x) abort ();' rather than `assert
114362         (x);', and anyway it's one less thing to worry about configuring.
114363         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114364         hash_rehash, hash_insert): Use abort rather than assert.
114366 2002-11-22  Bruno Haible  <bruno@clisp.org>
114368         * lib/safe-read.h: Assume C89. Add comments.
114369         (safe_read): Change return type to size_t.
114370         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114371         byte counts > SSIZE_MAX correctly.
114372         * lib/safe-write.h: New file.
114373         * lib/safe-write.c: New file.
114374         * lib/full-read.h: New file.
114375         * lib/full-read.c: New file.
114376         * lib/full-write.h: Assume C89. Add comments.
114377         * lib/full-write.c: Include safe-write.h.
114378         (full_write): Rewritten to use safe_write.
114379         Suggested by Jim Meyering and Paul Eggert.
114381 2002-11-21  Jim Meyering  <jim@meyering.net>
114383         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114385         Merge in changes from the coreutils.
114387         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114388         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114389         <stdint.h>.
114390         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114391         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114392         int.  Work more efficiently if X is the same width as uintmax_t.
114393         Do not compare X to -1, to avoid bogus compiler warning.
114394         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114395         Don't assume that f_frsize and f_bsize are the same type.
114397         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114398         warning on FreeBSD.
114400         * lib/makepath.c (make_path): Restore umask *before* creating the final
114401         component.
114402         (make_path): Minor reformatting.
114404         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114405         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114406         HAVE_MALLOC/HAVE_REALLOC.
114408         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114409         dummy ones.  At least on GNU/Linux systems, `auto' means something
114410         else.
114411         From Michael Stone.
114413 2002-11-21  Bruno Haible  <bruno@clisp.org>
114415         Remove case insensitive option matching.
114416         * lib/argmatch.h (argcasematch): Remove declaration.
114417         (ARGCASEMATCH): Remove macro.
114418         (__xargmatch_internal): Remove case_sensitive argument.
114419         (XARGMATCH): Update.
114420         (XARGCASEMATCH): Remove macro.
114421         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114422         case_sensitive argument.
114423         (argcasematch): Remove function.
114424         (__xargmatch_internal): Remove case_sensitive argument.
114425         (main): Use XARGMATCH instead of XARGCASEMATCH.
114427         * lib/xmalloc.c: Change compile-time error message. Add comment about
114428         required autoconf version.
114430 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114432         Merge argmatch cleanups from Bison.  Assume C89.
114434         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114435         Include stdlib.h, for EXIT_FAILURE.
114436         Always include <string.h>, since we assume C89.
114437         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114438         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114439         Include <stddef.h> instead, since it's all we need for size_t.
114440         (PARAMS): Remove.  All uses removed.
114441         (ARRAY_CARDINALITY): Do not bother to #undef.
114442         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114443         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114444         Remove unnecessary parentheses.
114445         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114446         Insert necessary parentheses.
114447         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114448         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114450 2002-11-19  Bruno Haible  <bruno@clisp.org>
114452         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114453         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114455         * lib/mbswidth.h (PARAMS): Remove macro.
114456         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114457         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114459         * lib/gcd.h (PARAMS): Remove macro.
114460         (gcd): Use ANSI C function declarations.
114461         * lib/gcd.c (gcd): Likewise.
114463 2002-11-15  Bruno Haible  <bruno@clisp.org>
114465         * lib/strcspn.c: Include <stddef.h>.
114466         (strcspn): Use ANSI C function declaration. Change return type to
114467         size_t. Use NULL.
114468         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114469         (strpbrk): Use NULL.
114470         * lib/strpbrk.h (PARAMS): Remove macro.
114471         (strpbrk): Use ANSI C function declaration.
114472         * lib/strstr.c: Don't include <sys/types.h>.
114473         * lib/strstr.h (PARAMS): Remove macro.
114474         (strstr): Use ANSI C function declarations.
114476 2002-11-14  Karl Berry  <karl@gnu.org>
114478         * config/mkinstalldirs: `do' on separate line, instead of
114479         `for var; do'.
114481 2002-11-06  Bruno Haible  <bruno@clisp.org>
114483         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114484         * lib/gcd.c (gcd): Likewise.
114486 2002-11-05  Bruno Haible  <bruno@clisp.org>
114488         * lib/gcd.h: New file, from gettext-0.11.5.
114489         * lib/gcd.c: New file, from gettext-0.11.5.
114491 2002-11-05  Bruno Haible  <bruno@clisp.org>
114493         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114494         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114495         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114496         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114498         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114499         <libintl.h>.
114500         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114501         <libintl.h>.
114503         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114504         * lib/human.c: Include gettext.h instead of <libintl.h>.
114505         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114506         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114507         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114508         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114509         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114510         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114511         (textdomain): Remove definition.
114512         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114514         * lib/long-options.c: Remove include of <libintl.h> and definition of
114515         _.
114516         * lib/same.c: Remove include of <libintl.h> and definition of _.
114518 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114520         * lib/config.charset: A few additions for Solaris.
114522 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114524         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114525         * lib/localcharset.c (locale_charset): Declare as extern "C".
114527 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114529         * lib/config.charset: msdos in uk_UA uses CP1125.
114531 2002-11-04  Bruno Haible  <bruno@clisp.org>
114533         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114534         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114535         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114536         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114537         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114539 2002-11-04  Bruno Haible  <bruno@clisp.org>
114541         * lib/localcharset.c (locale_charset): Don't return an empty string.
114543 2002-11-04  Bruno Haible  <bruno@clisp.org>
114545         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114546         aliases.
114548 2002-11-04  Bruno Haible  <bruno@clisp.org>
114550         * lib/config.charset: Update for newest glibc. Add canonical names
114551         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114553 2002-11-04  Bruno Haible  <bruno@clisp.org>
114555         * lib/config.charset: Add support for NetBSD.
114557 2002-11-04  Bruno Haible  <bruno@clisp.org>
114559         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114561 2002-11-01  Bruno Haible  <bruno@clisp.org>
114563         * configure.in: Add AC_CONFIG_AUX_DIR call.
114564         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114565         test/Makefile.
114566         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114568 2002-09-28  Karl Berry  <karl@gnu.org>
114570         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114571         installed automake until the next release, since changes have been
114572         made.
114574 2002-09-25  Karl Berry  <karl@gnu.org>
114576         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114577         * lib/getopt*: copy from libc/posix.
114578         * lib/gettext.h: copy from gettext.
114579         * lib/.cppi-disable: add strdup.c, gettext.h.
114581 2002-09-25  Karl Berry  <karl@gnu.org>
114583         * config/srclist.txt: enable gettext.h check.
114584         * config/config.{guess,sub}: update from prep.
114585         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114586                 from automake 1.6.3.
114587         See srclist*.
114589 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114591         * regex.c (PATFETCH): Remove the translating fetch.
114592         (PATFETCH_RAW): Rename to PATFETCH.
114593         (set_image_of_range): New fun.
114594         (SET_RANGE_TABLE_WORK_AREA): Use it.
114595         (regex_compile): Don't translate the pattern chars so eagerly.
114596         Only do it when inserting an `exactn' bytecode or when handling
114597         a char-range.
114598         (mutually_exclusive_p): Avoid empty statement.
114600 2002-07-06  Jim Meyering  <meyering@lucent.com>
114602         * m4/README: Don't mention Makefile.am.in.
114603         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114605 2002-07-01  Jim Meyering  <meyering@lucent.com>
114607         * lib/c-stack.c: Include sys/time.h.
114608         From Volker Borchert.
114610 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114614 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114616         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114617         New macro.  Use it uniformly instead of
114618         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114619         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114620         reported by Vin Shelton.
114622 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114624         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114625         Do not assume SA_SIGINFO behavior.
114626         Bug reported by Jim Meyering on NetBSD 1.5.2.
114628 2002-06-22  Jim Meyering  <meyering@lucent.com>
114630         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114633         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114634         now that configure.ac uses AC_GNU_SOURCE.
114635         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114636         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114638         Update to latest tools.  Suggestions from Paul Eggert.
114639         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114640         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114641         * m4/fnmatch.m4: Likewise.
114642         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114643         to AC_HEADER_STDBOOL
114645 2002-06-22  Jim Meyering  <meyering@lucent.com>
114647         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114648         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114650 2002-06-22  Jim Meyering  <meyering@lucent.com>
114652         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114654         * lib/exitfail.c, exitfail.h: Likewise.
114655         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114657         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114658         of fnmatch.h.
114659         (EXTRA_DIST): Add fnmatch_loop.c.
114660         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114662         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114663         * lib/fnmatch.c: Update from diffutils-2.8.2.
114664         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114665         * lib/fnmatch.h: Remove file.
114667 2002-06-21  Jim Meyering  <meyering@lucent.com>
114669         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114670         * m4/mbrtowc.m4: Likewise.
114672         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114673         * m4/mbswidth.m4: Reflect name change:
114674         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114675         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114677         * m4/lib-link.m4: Update from gettext-0.11.2.
114678         * m4/gettext.m4: Likewise.
114680         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114681         From Alfred M. Szmidt.
114683 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114685         * lib/file-type.h: Report an error if neither S_ISREG nor
114686         S_IFREG is defined, instead of using a test specific to glibc
114687         2.2.  This should be safe, since POSIX requires S_ISREG and
114688         Unix Version 7 had S_IFREG.  We don't need to check for
114689         <sys/types.h> since we don't use any symbols that it defines.
114691 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114693         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114694         $@-t, so that each temporary file name is unique and valid in the first
114695         8 characters, for operation under DOS.
114697 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114701 2002-06-15  Jim Meyering  <meyering@lucent.com>
114703         Work even with DJGPP 2.03, which lacks support for symlinks.
114704         From Richard Dawe.
114705         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114706         is defined.
114707         * lib/lchown.c (S_ISLNK): Likewise.
114709 2002-06-15  Jim Meyering  <meyering@lucent.com>
114711         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114712         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114713         have been included before this file.
114715 2002-06-14  Jim Meyering  <meyering@lucent.com>
114717         * lib/file-type.h: Use the version from diffutils-2.8.2.
114718         * lib/file-type.c: Likewise.
114720 2002-06-07  Jim Meyering  <meyering@lucent.com>
114722         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114723         They're needed at least for NetBSD 1.5.2.
114724         ($statxfs_includes): Include those same headers.
114725         ($statxfs_includes): Include sys/vfs.h if available.
114726         ($statxfs_includes): Likewise for sys/statvfs.h.
114727         Check for the following members in both structs statfs and statvfs:
114728         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114730 2002-06-01  Jim Meyering  <meyering@lucent.com>
114732         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114733         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114735 2002-05-28  Jim Meyering  <meyering@lucent.com>
114737         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114738         Reported by Volker Borchert.
114740 2002-05-27  Jim Meyering  <meyering@lucent.com>
114742         Fix a problem seen only on nonconforming systems whereby ls.c's
114743         use of localtime, and then of gettimeofday would cause trouble:
114744         the localtime call used to initialize rpl_gettimeofday's save
114745         mechanism would clobber ls's current local time information so
114746         that in any long listing the first file would always be listed
114747         with date 1970-01-01.  Analysis by Volker Borchert.
114749         * lib/gettimeofday.c (localtime): Undefine.
114750         (rpl_localtime): New function.
114752 2002-05-27  Jim Meyering  <meyering@lucent.com>
114754         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114755         localtime.
114757         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114758         use the replacement function; it wouldn't resolve at link time.
114759         Reported by Volker Borchert.
114761 2002-05-22  Jim Meyering  <meyering@lucent.com>
114763         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114764         file-type.h.
114765         * lib/file-type.h: New file.
114766         * lib/file-type.c (file_type): New file/function.  Extracted from
114767         diffutils.
114769 2002-04-30  Jim Meyering  <meyering@lucent.com>
114771         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114773 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114775         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114777 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114779         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114780         Do not check for alloca.h (no longer used) or stdbool.h (was never
114781         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114783 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114785         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114787 2002-04-29  Jim Meyering  <meyering@lucent.com>
114789         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114790         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114791         Use AC_FUNC_STRNLEN here instead.
114793         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114794         With autoconf-2.53a, it's part of AC_PROG_CC.
114796 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114798         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114801 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114803         * lib/sig2str.h, lib/sig2str.c: New files.
114804         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114806 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114808         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114809         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114810         of 127, since 64 is the largest conceivable number for ancient
114811         nonstandard hosts.
114812         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114814 2002-04-28  Jim Meyering  <meyering@lucent.com>
114816         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114818 2002-04-24  Jim Meyering  <meyering@lucent.com>
114820         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114821         (jm_PREREQ): Use it.
114823         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114824         mach/mach.h fcntl.h.
114825         Check for this function: setlocale.
114827 2002-04-24  Jim Meyering  <meyering@lucent.com>
114829         * lib/gettext.h: New file, from Gettext.
114830         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114831         (libfetish_a_SOURCES): Add gettext.h.
114833 2002-04-16  Jim Meyering  <meyering@lucent.com>
114835         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114836         ut_pid, ut_id, ut_exit.
114838 2002-04-16  Jim Meyering  <meyering@lucent.com>
114840         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114841         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114842         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114844 2002-04-12  Jim Meyering  <meyering@lucent.com>
114846         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114847         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114848         existence of the getmntinfo function.  Needed for Darwin 5.3.
114850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114851         This is necessary at least on Darwin 5.3.
114853         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114854         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114855         strnlen.o in the library, and that makes some versions of ranlib
114856         object.
114858 2002-04-12  Jim Meyering  <meyering@lucent.com>
114860         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114862 2002-04-09  Jim Meyering  <meyering@lucent.com>
114864         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114865         to be more precise.  Rather than saying we're checking whether the
114866         function `works', say what we're testing.
114867         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114868         Reported by Bruno Haible.
114870 2002-03-10  Jim Meyering  <meyering@lucent.com>
114872         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114873         Suggestion from Santiago Vila.
114875 2002-03-08  Jim Meyering  <meyering@lucent.com>
114877         * lib/rename.c: Mention that this wrapper is needed also on
114878         mips-dec-ultrix4.4 systems.
114880 2002-03-02  Jim Meyering  <meyering@lucent.com>
114882         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114883         not HAVE_CLOCK_SETTIME.
114885 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114887         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114888         Check for clock_settime.
114890 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114892         * lib/nanosleep.h: Rename to....
114893         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114895         * lib/gettime.c: New file.
114896         * lib/settime.c: New file.
114897         * lib/stime.c: Remove.
114899         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114900         timespec.h.  Remove nanosleep.h.
114902 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114904         * m4/acl.m4: New file.
114905         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114906         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114908 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114910         * lib/acl.c, lib/acl.h: New files.
114911         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114913 2002-02-24  Jim Meyering  <meyering@lucent.com>
114915         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114916         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114917         cause trouble.  Reported by Nelson Beebe.
114919 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114921         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114922         compilers that don't know that xalloc_die never returns.
114924 2002-02-20  Jim Meyering  <meyering@lucent.com>
114926         * lib/getdate.c: Regenerate using bison-1.33.
114928 2002-02-17  Jim Meyering  <meyering@lucent.com>
114930         * config/config.guess (main): Don't use `head -1'; it's no longer
114931         portable. Use `sed 1q' instead.
114933 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114935         * m4/codeset.m4: Upgrade to gettext-0.11.
114936         * m4/gettext.m4: Upgrade to gettext-0.11.
114937         * m4/glibc21.m4: Upgrade to gettext-0.11.
114938         * m4/iconv.m4: Upgrade to gettext-0.11.
114939         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114940         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114941         * m4/lib-ld.m4: New file, from gettext-0.11.
114942         * m4/lib-link.m4: New file, from gettext-0.11.
114943         * m4/lib-prefix.m4: New file, from gettext-0.11.
114944         * m4/progtest.m4: Upgrade to gettext-0.11.
114946 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114948         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114949         (jm_PREREQ): Use it.
114951 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114953         * lib/posixver.c, lib/posixver.h: New files.
114954         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114956 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114957             Bruno Haible  <bruno@clisp.org>
114959         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114960         (fwrite_success_callback): New declaration.
114961         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114962         print_unicode_char. Call failure callback instead of error.
114963         (fwrite_success_callback): New function.
114964         (exit_failure_callback): New function.
114965         (fallback_failure_callback): New function.
114966         (print_unicode_char): Call unicode_to_mb.
114968 2002-01-26  Jim Meyering  <meyering@lucent.com>
114970         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114971         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114973 2002-01-26  Jim Meyering  <meyering@lucent.com>
114975         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114977 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114979         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114981 2002-01-22  Jim Meyering  <meyering@lucent.com>
114983         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114984         Otherwise, some versions of automake would omit the rule that makes
114985         Makefile from Makefile.in.
114987 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114989         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114990         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114991         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114992         (memcoll): Set errno to zero if there is no error.
114994         * lib/quotearg.c (quotearg_buffer_restyled):
114995         Fix bug with quoting buffers containing NUL when backslashing escapes.
114996         This bug was exposed by the other changes in this patch.
114997         (quotearg_n_options): New arg ARGSIZE.
114998         All callers changed.
114999         (quoting_options_from_style): New function.
115000         (quotearg_n_style): Use it.
115001         (quotearg_n_style_mem): New function.
115003         * lib/quotearg.h (quotearg_n_style_mem): New function.
115005 2002-01-19  Jim Meyering  <meyering@lucent.com>
115007         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
115008         Remove useless quotes: DF_PROG="df".
115009         * m4/strnlen.m4: New file.
115011 2002-01-16  Paul Eggert  <eggert@twinsun.com>
115013         * lib/backupfile.c (ISDIGIT): Comment fix.
115014         * lib/getdate.y (ISDIGIT): Likewise.
115015         * lib/posixtm.c (ISDIGIT, year): Likewise.
115016         * lib/strverscmp.c (ISDIGIT): Likewise.
115017         * lib/userspec.c (ISDIGIT): Likewise.
115019 2002-01-16  Jim Meyering  <meyering@lucent.com>
115021         * lib/getdate.y: Add three semicolons, each just before a closing
115022         brace. Bison (as of version 1.31) no longer papers over that mistake.
115024 2002-01-05  Jim Meyering  <meyering@lucent.com>
115026         * lib/version-etc.c (version_etc_copyright): Update copyright year.
115028 2001-12-19  Paul Eggert  <eggert@twinsun.com>
115030         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
115031         not silently exit merely because the output buffer happens to
115032         have nothing pending.
115034 2001-12-18  Paul Eggert  <eggert@twinsun.com>
115036         See the big note in ../ChangeLog.
115037         * lib/human.c (suffixes): Prefer K to k for 1024.
115038         (generate_suffix_backwards): New function.
115039         (human_readable_inexact): Use it.
115040         * lib/xstrtol.c (__xstrtol): If there is no number but there
115041         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
115042         Accept 'K' as well as 'k'.
115044 2001-12-15  Jim Meyering  <meyering@lucent.com>
115046         * lib/regex.h (__restrict_arr): Update from libc.
115048         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
115049         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
115050         (STREQ): Define.
115052 2001-12-14  Jim Meyering  <meyering@lucent.com>
115054         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
115055         Suggestion from Bruno Haible.
115057 2001-12-10  Jim Meyering  <meyering@lucent.com>
115059         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
115060         xrealloc, Instead, include "xalloc.h".
115061         (initbuffer): Don't cast xmalloc return value to char*.
115062         (readline): Reword comment.
115063         Don't cast xrealloc return value to char*
115064         Return NULL, not 0.
115066 2001-12-09  Jim Meyering  <meyering@lucent.com>
115068         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
115069         about `signed and unsigned type in conditional expression'.
115070         * lib/posixtm.c (posix_time_parse): Likewise.
115072         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
115074         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
115075         to avoid a pedantic warning.
115077         * lib/getstr.c: Don't include assert.h.
115078         (getstr): Remove warning-evoking assertions.
115079         Return -1 if offset parameter is out of bounds.
115080         Change the type of a local from int to size_t.
115082         * lib/strftime.c (my_strftime_localtime_r): Include this function
115083         definition in the `#if ! HAVE_TM_GMTOFF' block.
115085         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
115086         Include xalloc.h instead.
115088 2001-12-02  Jim Meyering  <meyering@lucent.com>
115090         * lib/tempname.c: Don't declare getenv, thus reverting the change of
115091         2001-11-18.  It's no longer necessary, now that stdlib.h is always
115092         included.
115094         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
115095         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
115097 2001-11-30  Akim Demaille  <akim@epita.fr>
115099         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
115100         before being defined.
115102 2001-11-27  Paul Eggert  <eggert@twinsun.com>
115104         * lib/quotearg.h (quotearg_n, quotearg_n_style):
115105         First arg is int, not unsigned.
115106         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115107         (SIZE_MAX, UINT_MAX): New macros.
115108         (quotearg_n_options): Abort if N is negative.
115109         Avoid overflow check on hosts where size_t is 64 bits and int
115110         is 32 bits, as overflow is impossible there.
115111         Fix off-by-one typo that caused unnecessary reallocation.
115113 2001-11-27  Jim Meyering  <meyering@lucent.com>
115115         * lib/tempname.c: Merge with version from libc.
115116         * lib/regex.c: Likewise.
115118         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115119         systems for which STDC_HEADERS is 0, it was not included, resulting in
115120         a warning about an integer-to-pointer conversion problem with getenv.
115121         Reported by Volker Borchert.
115123 2001-11-26  Jim Meyering  <meyering@lucent.com>
115125         * lib/gtod.h: Remove file.
115126         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115127         * lib/gettimeofday.c: Don't include gtod.h.
115128         (GTOD_init): Remove function.
115129         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115130         Suggestion from Volker Borchert.
115132 2001-11-23  Jim Meyering  <meyering@lucent.com>
115134         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115135         it.
115136         * lib/hash.c (struct hash_table): Define it here instead.
115138 2001-11-22  Jim Meyering  <meyering@lucent.com>
115140         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115142 2001-11-20  Jim Meyering  <meyering@lucent.com>
115144         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115145         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115147 2001-11-19  Jim Meyering  <meyering@lucent.com>
115149         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115150         directory.  Use "conftestXXXXXX" as the template.
115151         Suggestion from Paul Eggert.
115153         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115154         immediately, so the test doesn't mistakenly hit the max-open-files
115155         limit.
115157 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115159         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115160         (TEMPORARIES): New macro.
115161         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115162         removes an artificial limitation (e.g. HP-UX 10.20, where
115163         TMP_MAX is 17576).
115165 2001-11-18  Jim Meyering  <meyering@lucent.com>
115167         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115169 2001-11-18  Jim Meyering  <meyering@lucent.com>
115171         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115172         on SunOS 4.
115174         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115175         files will be created before anything else.
115177 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115179         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115180         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115182 2001-11-17  Jim Meyering  <meyering@lucent.com>
115184         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115185         Prompted by a report from Bob Proulx.
115187         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115188         Instead, require UTILS_FUNC_MKSTEMP.
115190 2001-11-17  Jim Meyering  <meyering@lucent.com>
115192         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115193         Now, that's done as part of AC_FUNC_STRTOD.
115195 2001-11-17  Jim Meyering  <meyering@lucent.com>
115197         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115198         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115199         rather than group writable.  Patch by Juan F. Codagnone.
115201         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115202         xrealloc, Instead, include "xalloc.h".
115204         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115205         Remove explicit declarations of xmalloc, xrealloc,
115206         and xstrdup.  Instead, include "xalloc.h".
115208         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115209         unlocked-io.h.
115210         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115211         Likewise.
115212         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115214         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115215         Reported by Padraig Brady.
115217         * lib/mkstemp.c: #undef mkstemp.
115218         Include config.h.
115219         (rpl_mkstemp): Rename from mkstemp.
115220         Protoize.
115222 2001-11-16  Jim Meyering  <meyering@lucent.com>
115224         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115225         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115226         determine the amount of total physical memory, use pstat_getstatic.
115227         HPUX-11 doesn't define _SC_PHYS_PAGES.
115228         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115229         If sysconf couldn't be used to determine the amount of available
115230         physical memory, use both pstat_getstatic and pstat_getdynamic.
115231         Based on a patch from Bob Proulx.
115233 2001-11-10  Jim Meyering  <meyering@lucent.com>
115235         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115236         (jm_PREREQ): Use it.
115238 2001-11-09  Jim Meyering  <meyering@lucent.com>
115240         * m4/jm-macros.m4: Require autoconf-2.52f.
115241         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115242         Use these AC_-prefixed names, not the AM_-prefixed ones.
115244         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115246 2001-11-05  Jim Meyering  <meyering@lucent.com>
115248         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115250 2001-11-04  Jim Meyering  <meyering@lucent.com>
115252         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115253         $DEFS.
115255 2001-11-03  Jim Meyering  <meyering@lucent.com>
115257         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115258         of AC_DEFUN.
115260         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115261         know the name of the variable in the macro definition.
115263 2001-11-03  Jim Meyering  <meyering@lucent.com>
115265         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115266         in argmatch_to_argument call.
115268         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115269         argument.
115271         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115272         e.g., a fault due to an attempt to free a NULL pointer.
115274 2001-11-01  Jim Meyering  <meyering@lucent.com>
115276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115277         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115279 2001-11-01  Jim Meyering  <meyering@lucent.com>
115281         * lib/dirfd.c, lib/dirfd.h: New files.
115282         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115284         * lib/hash.c (hash_print) [TESTING]: Clean up.
115286 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115288         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115289         to avoid a warning if -Wall.
115291 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115293         * README: New file
115294         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115295         (per RMS's instructions, this is now the canonical source)
115296         * lgpl/, gpl/: New directories.
115298 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115300         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115302 2001-10-21  Jim Meyering  <meyering@lucent.com>
115304         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115305         this code would end up calling gettext even in packages built
115306         with --disable-nls.
115307         * lib/getopt.c (_): Likewise.
115308         * lib/regex.c (_): Likewise.
115310 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115312         * m4/error.m4 (jm_PREREQ_ERROR):
115313         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115314         AC_FUNC_STRERROR_R does that.
115315         Check for strerror declaration.
115317         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115318         are supposed to have them these days.
115319         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115320         Merge changes from latest Autoconf CVS.
115321         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115322         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115323         POSIX decided to standardize on the int flavor of strerror_r.
115325 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115327         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115328         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115329         Use strerror_r that is only a macro, even if it is not a function.
115330         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115331         (private_strerror): Use prototypes, not old-style function definition.
115332         (print_errno_message): New function.
115333         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115334         char*-flavored one.
115335         (error_tail, error, error_at_line): Use it.
115337 2001-10-11  Jim Meyering  <meyering@lucent.com>
115339         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115340         and quote_n (1, ... to avoid clobbering a buffer.
115342 2001-10-05  Jim Meyering  <meyering@lucent.com>
115344         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115345         hash-pjw.h.
115346         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115347         * lib/hash-pjw.h: New file.
115349 2001-09-30  Jim Meyering  <meyering@lucent.com>
115351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115352         `struct fsstat' has the `f_fstypename' member.
115353         Use that to define FS_TYPE, which is now used to make
115354         the getfsstat link test tighter.
115356 2001-09-30  Jim Meyering  <meyering@lucent.com>
115358         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115359         Include <sys/ucred.h>, for Apple Darwin.
115360         Include sys/mount.h and sys/fs_types.h only if available.
115361         (FS_TYPE): Define.
115362         (read_filesystem_list): Use FS_TYPE.
115364 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115366         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115367         a boolean context.
115369 2001-09-29  Jim Meyering  <meyering@lucent.com>
115371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115372         [one-argument getmntent function]): Include stdio.h before mntent.h.
115373         SunOS 4.1.x needs it for the declaration of `FILE'.
115374         Patch by Volker Borchert.
115376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115377         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115378         sys/fs_types.h, and make the link-test for getfsstat guard #include
115379         directives with appropriate #if HAVE_*_H tests so that we can
115380         detect getfsstat on Apple Darwin1.3.7 systems.
115381         Reported by Nelson Beebe.
115382         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115384 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115386         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115387         #defines strtoimax.  Also treat the other strto* functions
115388         like strtoimax.
115390         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115391         Check for strtoul and strtoumax,
115392         as those declarations are made even in the signed case.
115393         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115394         Likewise, for strtol and strtoimax.
115396 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115398         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115399         #defines strtoimax.  Also treat the other strto* functions
115400         like strtoimax.
115402         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115403         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115404         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115406 2001-09-26  Jim Meyering  <meyering@lucent.com>
115408         Most macros in unlocked-io.h had the wrong number of arguments.
115409         * lib/gen-uio: New script.
115410         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115411         * lib/unlocked-io.hin: Remove file.
115412         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115413         rather than trying to embed it here.
115414         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115415         Reported by Padraig Brady.
115417 2001-09-25  Volker Borchert  <bt@teknon.de>
115419         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115420         `result'.
115422 2001-09-24  Jim Meyering  <meyering@lucent.com>
115424         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115426 2001-09-23  Jim Meyering  <meyering@lucent.com>
115428         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115429         instead of the mere test for existence of mntent.h.  The latter
115430         would get a false-positive on AIX 3.4 systems.
115431         In the outer getmntent if-block, don't die if neither of the getmntent
115432         tests succeeds.  Instead, just fall through and continue with the
115433         remaining tests.
115435 2001-09-23  Jim Meyering  <meyering@lucent.com>
115437         * lib/mountlist.c: Remove useless parentheses in #if directives.
115438         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115439         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115441 2001-09-22  Jim Meyering  <meyering@lucent.com>
115443         * m4/gettext.m4: New file.  From gettext.
115444         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115445         * m4/progtest.m4: Likewise
115446         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115447         * m4/glibc21.m4: Likewise.
115449         * m4/libintl.m4: Remove.  No longer used.
115451 2001-09-22  Jim Meyering  <meyering@lucent.com>
115453         * lib/localcharset.c: Update from latest gettext.
115454         * lib/config.charset: Likewise.
115456 2001-09-20  Jim Meyering  <meyering@lucent.com>
115458         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115459         strtoimax.
115460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115461         strtoumax.
115463 2001-09-20  Jim Meyering  <meyering@lucent.com>
115465         * lib/xstrtol.c (strtoimax): Guard declaration with
115466         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115467         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115468         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115469         (strtoumax): Likewise, for completeness (it wasn't necessary).
115471 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115473         * lib/strtoimax.c (HAVE_LONG_LONG):
115474         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115475         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115476         to work around bug in IBM C compiler.
115478 2001-09-17  Jim Meyering  <meyering@lucent.com>
115480         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115481         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115482         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115483         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115484         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115485         whenever the right hand side need not be expanded by the shell.
115487 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115489         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115490         library.  It's not correct, as some older glibcs are buggy.
115491         fnmatch wasn't fixed until glibc 2.2.
115493         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115494         special shell magic here.
115496 2001-09-16  Jim Meyering  <meyering@lucent.com>
115498         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115499         * m4/jm-macros.m4: Require it.
115501 2001-09-16  Jim Meyering  <meyering@lucent.com>
115503         * lib/mkdir.c: New file.
115505 2001-09-15  Jim Meyering  <meyering@lucent.com>
115507         * m4/jm-macros.m4: Check for help2man.
115509 2001-09-11  Jim Meyering  <meyering@lucent.com>
115511         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115512         The body, by Paul Eggert, was moved here from configure.in.
115513         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115515 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115517         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115518         (jm_PREREQ): Use it.
115520 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115522         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115523         Use ssize_t, not int, to store result of readlink.
115524         Check for ssize_t overflow as well as size_t overflow,
115525         as POSIX says the result of readlink is implementation-defined
115526         when ssize_t overflows.
115527         Remove unnecessary cast to char*.
115528         Use free+malloc instead of realloc, as the storage doesn't need
115529         to be preserved and it's clearer and can be more efficient that way.
115530         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115531         * lib/xreadlink.h (xreadlink): Update prototype.
115533 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115535         * lib/xgetcwd.c: Revert some of the previous change; intead,
115536         fix the HAVE_GETCWD_NULL code to behave more like the
115537         !HAVE_GETCWD_NULL code used to.
115539         Include "xalloc.h".
115540         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115541         invoke xalloc_die.
115543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115545         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115546         sys/param.h, as pathmax.h includes them.
115548 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115551         (jm_PREREQ_XGETCWD): New macro.
115553         * m4/getcwd.m4: New file.
115555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115557         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115558         like the HAVE_GETCWD_NULL code.
115559         Include pathmax.h if not HAVE_GETCWD.
115560         Do not include xalloc.h.
115561         (INITIAL_BUFFER_SIZE): New symbol.
115562         Do not use xmalloc / xrealloc, since the caller is responsible for
115563         handling errors.  Preserve errno around `free' during failure.
115564         Do not overrun buffer when using getwd.
115566 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115568         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115569         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115570         getcwd (NULL, 0).
115572 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115574         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115575         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115576         spotted by Jim Meyering.
115578 2001-09-03  Jim Meyering  <meyering@lucent.com>
115580         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115581         failure.
115583 2001-09-02  Jim Meyering  <meyering@lucent.com>
115585         * lib/error.c: Update from GNU libc.
115587 2001-09-01  Jim Meyering  <meyering@lucent.com>
115589         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115590         Used by df.
115592 2001-09-01  Jim Meyering  <meyering@lucent.com>
115594         * lib/xreadlink.c: New file.
115595         * lib/xreadlink.h: New file.
115596         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115597         xreadlink.h.
115599         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115600         doesn't conflict with sparc Solaris 7's definition in
115601         /usr/include/sys/int_types.h.
115603         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115604         files.
115605         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115606         and strncasecmp as r-values.  Unixware didn't have declarations.
115608 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115610         * lib/xstrtol.h: Add copyright notice.
115611         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115612         LONGINT_INVALID_SUFFIX_CHAR.
115614 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115616         * lib/xstrtol.c (strtoimax): New decl.
115618 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115620         * lib/xgetcwd.c: Don't include pathmax.h.
115621         Include stdlib.h and unistd.h if available.
115622         Include xalloc.h.
115623         (xmalloc, xstrdup, free): Remove decls.
115624         (xgetcwd): Don't assume sizes fit in unsigned.
115625         Check for overflow when computing sizes.
115626         Simplify reallocation code.
115628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115630         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115631         a directory's st_size can have an arbitrary value, so the old
115632         usage could waste an arbitrary amount of memory.  All uses
115633         changed.
115634         * lib/savedir.h: Update prototype.
115636 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115638         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115640         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115641         old strtoimax.c.
115643         Also, make the following further changes to make this file's
115644         configuration more similar to that of strtol.c:
115645         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115646         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115647         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115648         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115649         changed to signed values.
115651         And make the following changes as well:
115652         Fix copyright notice, as 1999 was missing.
115653         (verify): New macro.
115654         (strtoimax): Check sizes at compile-time, not run-time.
115655         Prefer strtol to strtoll if both work.
115656         (main): Remove; it was not that useful and was a pain to maintain.
115658         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115660 2001-08-31  Jim Meyering  <meyering@lucent.com>
115662         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115663         Use an initial, malloc'd, buffer of length 128 rather than
115664         a statically allocated one of length 1024.
115666 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115668         Simplify code, partly by assuming autoconf 2.52 semantics.
115670         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115672         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115673         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115674         All uses removed.
115675         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115676         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115677         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115678         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115679         jm_AC_HEADER_INTTYPES_H.
115680         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115682         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115684         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115685         Quote first arg of AC_DEFUN.
115686         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115687         since they are needed to parse the include file even if we need
115688         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115690         but with opposite signedness.
115692 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115694         Merge 'exclude' changes from tar 1.13.22.
115695         This fixes one or two unlikely storage allocation overflow bugs,
115696         but doesn't change user-visible behavior otherwise.
115698 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115701         (jm_PREREQ_EXCLUDE): New macro.
115703 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115705         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115706         tm to be declared.
115708 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115710         * lib/hash.c: Remove '2001' from copyright notice.
115712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115714         * lib/full-write.h: New file.
115715         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115716         * lib/full-write.c: Correct credits, as cccp.c no longer
115717         exists and anyway it was so heavily changed from the old cccp
115718         code as to be unrecognizable.  Include full-write.h.
115719         (full_write): Return size_t, with short writes meaning failure.
115720         All callers changed.  This fixes a bug with large buffers
115721         on 64-bit hosts.
115722         * lib/utime.c: Include full-write.h.
115724 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115726         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115727         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115728         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115729         Include if available.
115730         (<xalloc.h>): Include
115731         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115732         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115733         collide with FNM macros.
115734         (struct patopts): New struct.
115735         (struct exclude): Use it, as exclude patterns now come with options.
115736         (new_exclude): Support above changes.
115737         (new_exclude, add_exclude_file):
115738         Initial size must now be a power of two to simplify overflow checking.
115739         (free_exclude, fnmatch_no_wildcards): New function.
115740         (excluded_filename): No longer requires options arg, as the options
115741         are determined by add_exclude.  Now returns bool, not int.
115742         (excluded_filename, add_exclude):
115743         Add support for the fancy new exclusion options.
115744         (add_exclude, add_exclude_file): Now takes int options arg.
115745         Check for arithmetic overflow when computing sizes.
115746         (add_exclude_file): xrealloc might modify errno, so don't
115747         realloc until after errno might be used.
115749         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115750         New macros.
115751         (free_exclude): New decl.
115752         (add_exclude, add_exclude_file): Now takes int options arg.
115753         (excluded_filename): No longer requires options arg, as the options
115754         are determined by add_exclude.  Now returns bool, not int.
115756 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115758         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115760 2001-08-27  Jim Meyering  <meyering@lucent.com>
115762         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115764         * lib/version-etc.c (N_): Remove definition.
115765         Revert most of last change.
115766         Instead, simply don't mark the `Copyright...' string for translation.
115767         Based on advice from Paul Eggert.
115769         * lib/strtoxmax.c: Tweak comment.
115771 2001-08-26  Jim Meyering  <meyering@lucent.com>
115773         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115775         * m4/xstrtoimax.m4: New file.
115776         * m4/xstrtoumax.m4: Add comments explaining why we
115777         AC_REPLACE_FUNCS(strtol).
115779 2001-08-26  Jim Meyering  <meyering@lucent.com>
115781         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115782         of copyright with `%s' so translators don't get an untranslated
115783         message in 2002.
115784         (COPYRIGHT_YEAR): Define.
115785         (version_etc): Use fprintf rather than fputs.
115786         Suggestion from Ulrich Drepper.
115788         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115790         * lib/strtoll.c: New file, from GNU libc.
115791         * lib/xstrtoimax.c: New file.
115793         * lib/xstrtol.h: Add xstrtoimax.
115794         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115795         * lib/strtoimax.c: New file.  Likewise, but first define
115796         STRTOUXMAX_SIGNED.
115798         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115799         ...
115800         * lib/strtoxmax.c: ... then renamed to this.
115802 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115804         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115805         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115806         (jm_AC_TYPE_INTMAX_T): New macro.
115807         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115809         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115811         * m4/longlong.m4: Renamed from ulonglong.m4.
115812         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115813         * m4/uintmax_t.m4: Removed.
115815 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115817         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115818         Port to Solaris 8, where 'sed' requires a space after the 'r'
115819         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115820         Redirect output to $tmp just once.
115822 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115824         * lib/addext.c (<errno.h>): Include.
115825         (errno): Declare if not defined.
115826         (addext): Work correctly when pathconf returns -1 and leaves
115827         errno alone because there is no limit.  Also, work even if
115828         pathconf returns a value greater than SIZE_MAX.
115830 2001-08-12  Jim Meyering  <meyering@lucent.com>
115832         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115833         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115834         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115835         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115836         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115837         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115838         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115839         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115840         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115841         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115842         utime.m4, utimes.m4, xstrtoumax.m4:
115843         Quote the first argument in each use of AC_DEFUN.
115845 2001-08-12  Jim Meyering  <meyering@lucent.com>
115847         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115848         Simply `return getcwd (NULL, 0);'.
115849         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115850         Use 1300 as initial value for length, not PATH_MAX.
115852         * lib/pathmax.h: Clean up cpp syntax.
115854 2001-08-12  Jim Meyering  <meyering@lucent.com>
115856         * lib/gettimeofday.c: New file.
115857         * lib/gtod.h: New file.
115858         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115860 2001-08-05  Jim Meyering  <meyering@lucent.com>
115862         * m4/jm-macros.m4: Require autoconf-2.52.
115864 2001-08-04  Jim Meyering  <meyering@lucent.com>
115866         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115867         stmt, to get in sync with glibc.
115869 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115871         The following changes are from gettext 0.10.39 as maintained by
115872         Bruno Haible.
115874         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115875         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115876         with inverted sense.  All uses changed.
115878         * lib/mbswidth.c: Don't include <limits.h>.
115879         Include <stdlib.h> and <string.h> unconditionally.
115880         (iswcntrl, mbsinit, ISCNTRL): New macros.
115881         (mbsnwidth): Use K&R style function declarations.
115882         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115883         can optimize it when MB_CUR_MAX == 1.
115884         The width of control characters is zero, not 1.
115886 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115888         The following changes are from gettext 0.10.39 as maintained by
115889         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115891         * m4/codeset.m4: Upgrade to serial AM1.
115892         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115893         all uses changed.  Quote first arg of AC_DEFUN.
115894         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115896         * m4/iconv.m4: Upgrade to serial AM2.
115897         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115898         Add --with-libconv-prefix.
115899         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115900         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115901         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115902         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115903         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115905         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115906         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115907         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115908         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115909         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115910         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115911         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115912         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115913         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115915         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115916         string.h any more.
115918         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115919         not the default value.
115921         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115922         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115923         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115924         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115925         Also check for iswcntrl, used for wcwidth fallback.
115926         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115927         to Autoconf 2.13.
115929 2001-08-03  Jim Meyering  <meyering@lucent.com>
115931         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115932         as it was in the original.  Reported by Paul Eggert.
115934 2001-07-16  Jim Meyering  <meyering@lucent.com>
115936         * m4/gettimeofday.m4: New file.
115937         Prompted by a report from Bernhard Baehr.
115939 2001-07-15  Jim Meyering  <meyering@lucent.com>
115941         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115942         stuff. Now it's in ../Makefile.cfg.
115944 2001-07-15  Jim Meyering  <meyering@lucent.com>
115946         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115947         (BUILT_SOURCES): Add unlocked-io.h.
115948         (io_functions): Define.
115949         (unlocked-io.h): New rule.
115950         (DISTCLEANFILES): Add unlocked-io.h.
115951         (all-local): Depend on unlocked-io.h, to ensure it is created.
115953         * lib/unlocked-io.hin: New file
115955         * lib/regex.c: Update from glibc.
115957 2001-07-05  Jim Meyering  <meyering@lucent.com>
115959         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115960         recommendation.
115961         (libfetish_a_SOURCES): Put all .h files here instead.
115962         Remove a thus-exposed (better checks in automake) duplicate and
115963         two unnecessary .h files.
115965 2001-07-04  Jim Meyering  <meyering@lucent.com>
115967         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115968         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115969         distcheck failure.
115971 2001-07-02  Jim Meyering  <meyering@lucent.com>
115973         The following changes were prompted by suggestions from Bruno Haible.
115975         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115976         is now generated.
115977         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115978         definition of EXTRA_DIST.
115979         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115980         ensure that the generated file is created/updated whenever the list
115981         of $(unlocked_functions) is changed.
115982         (jm-glibc-io.m4): New rule.
115983         (unlocked-io.h): New rule -- currently unused.
115985 2001-06-24  Jim Meyering  <meyering@lucent.com>
115987         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115988         unmatched right bracket, rather than kludging it with an extra,
115989         falsely-matching quote in a comment.  Patch by Akim Demaille.
115991 2001-06-11  Jim Meyering  <meyering@lucent.com>
115993         * lib/regex.c: Update from GNU libc.
115995 2001-05-27  Jim Meyering  <meyering@lucent.com>
115997         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115998         Check for ut_type in struct utmp.
116000 2001-05-27  Jim Meyering  <meyering@lucent.com>
116002         * lib/readutmp.h (UT_TYPE): Define.
116004 2001-05-24  Jim Meyering  <meyering@lucent.com>
116006         * lib/argmatch.c: Include "quote.h".
116007         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
116008         quote function.  Reported by Göran Uddeborg.
116010 2001-05-22  Jim Meyering  <meyering@lucent.com>
116012         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
116013         now that we use the package-supplied version unconditionally.
116014         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
116016 2001-05-21  Jim Meyering  <meyering@lucent.com>
116018         * m4/regex.m4: Change a couple backticks to single quotes to avoid
116019         shell syntax errors.
116021 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116023         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
116025 2001-05-20  Paul Eggert  <eggert@twinsun.com>
116027         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
116028         Don't bother to check library strftime, since
116029         we'll be using our own my_strftime function anyway.
116030         Define my_strftime instead of strftime.
116032 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
116034         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
116035         which is not yet declared.
116037 2001-05-15  Jim Meyering  <meyering@lucent.com>
116039         * m4/regex.m4: Use proper quoting so brackets appear in the test
116040         program.
116041         Reported by, and with help from, Bruno Haible.
116043 2001-05-13  Jim Meyering  <meyering@lucent.com>
116045         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
116046         undefined.
116048 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116050         dirname code cleanup.  base_name now behaves more compatibly
116051         with POSIX basename when given file names that have trailing
116052         slashes, and similarly for dir_name.  Add new primitives
116053         base_len and dir_len.  Put the directory-name-related decls
116054         into dirname.h.
116056         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
116057         * lib/backupfile.c (base_name): Likewise.
116058         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
116059         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
116060         * lib/makepath.c (strip_trailing_slashes): Likewise.
116061         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
116062         ISSLASH): Likewise.
116063         * lib/rename.c (strip_trailing_slashes): Likewise.
116064         * lib/same.c (base_name): Likewise.
116065         * lib/stripslash.c (ISSLASH): Likewise.
116067         * lib/addext.c: Include <dirname.h> after size_t is defined.
116068         * lib/backupfile.c: Likewise.
116070         * lib/addext.c (addext): Use base_len to trim redundant
116071         trailing slashes instead of doing it ourselves.
116072         But do not trim the last slash if it is not redundant.
116074         * lib/backupfile.c (find_backup_file_name,
116075         max_backup_version): Use base_len instead of rolling it ourselves.
116076         Handle the case of "" and (on DOS) "C:" correctly.
116078         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
116079         needed. Include <string.h>, <dirname.h>.
116080         (base_name): Allow file names ending in slashes, other than names
116081         that are all slashes.  In this case, return the basename followed
116082         by the slashes.  This is more general, and can be used in places
116083         where the original base_name purposely had an assertion failure.
116084         (base_len): New function.
116086         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
116087         Do not include <assert.h>; no longer needed.
116088         Include xalloc.h.
116089         (memrchr): Remove decl.
116090         (dir_name_r): Remove.
116091         (dir_len): Renamed from dirlen.  All callers changed.
116092         Rewrite in terms of base_name, for simplicity and consistency.
116093         (dir_name): Never return NULL.  All callers changed.
116094         Do not include <stdlib.h> in test program; no longer needed.
116095         return 0; is fine for test program.
116097         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
116098         New macros.
116099         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
116101         * lib/path-concat.c (path_concat): Use base_len to compute
116102         base length, not strlen; this means we cannot rely on memcpy
116103         to null-terminate.
116105         * lib/same.c (STREQ): Remove.
116106         (same_name): Handle the case where the basename ends in trailing '/'.
116108         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116109         a slash was stripped.  Do not strip the last slash after a
116110         file system prefix.
116112 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116114         * lib/Makefile.am (libfetish_a_SOURCES):
116115         Add strftime.c, since we now compile it on all hosts.
116117         * lib/strftime.c (my_strftime):
116118         Define to nstrftime if emacs, but only if my_strftime is not defined.
116119         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116120         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116121         Add one more extra argument: a nanoseconds value.
116122         All uses changed.
116123         (ns): New macro.
116124         (my_strftime function): Add %N format.
116125         (emacs_strftimeu): Renamed from emacs_strftime,
116126         with extra ut argument.
116128 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116130         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116132 2001-04-21  Jim Meyering  <meyering@lucent.com>
116134         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116135         doesn't interfere.
116137 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116139         * m4/ftruncate.m4: Check for chsize.
116140         Link with ftruncate.o unconditionally if ftruncate is missing.
116141         This was required when cross-compiling to i586-mingw32msvc.
116143 2001-04-08  Jim Meyering  <meyering@lucent.com>
116145         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116146         recomputed; that's necessary when the offset spans a DST transition.
116147         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116149 2001-04-02  Jim Meyering  <meyering@lucent.com>
116151         * lib/regex.h, regex.c: Update from GNU libc.
116153 2001-03-24  Jim Meyering  <meyering@lucent.com>
116155         * m4/jm-macros.m4: Require autoconf-2.49d.
116157 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116159         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116161 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116163         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116165 2001-03-17  Jim Meyering  <meyering@lucent.com>
116167         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116168         now that the version in autoconf is equivalent.
116169         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116171         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116172         Suggestion from Akim Demaille.
116174         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116175         (jm_PREREQ_TEMPNAME): New function.
116177 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116179         * lib/tempname.c (uint64_t): Define to uintmax_t if
116180         not defined, and if UINT64_MAX is not defined.
116181         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116182         Reported by John David Anglin.
116184 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116186         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116187         resolve alias if codeset is empty.
116188         * lib/config.charset (BeOS): Use wildcard syntax.
116190 2001-03-13  Jim Meyering  <meyering@lucent.com>
116192         * lib/path-concat.c (path_concat)
116193         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116194         concatenating e.g., `C:' and `foo'.
116195         From Bruno Haible.
116197 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116199         * lib/localcharset.c (locale_charset): Don't use
116200         setlocale(LC_CTYPE,NULL). Don't return NULL.
116201         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116203 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116205         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116206         support for DOS/DJGPP.
116208 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116210         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116211         lacks mkstemp.  Compile our own tempname.c if we compile our own
116212         mkstemp.c, as mkstemp relies on tempname.
116214 2001-03-01  Jim Meyering  <meyering@lucent.com>
116216         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116217         AH_VERBATIM really does output its argument verbatim.
116219 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116221         * lib/Makefile.am (libfetish_a_SOURCES):
116222         Add dup-safer.c, fopen-safer.c.
116223         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116225         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116226         * lib/unistd-safer.h: New files.
116228 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116230         The mkstemp replacement is taken from glibc 2.2.2, with some
116231         portability fixes for use outside glibc, as follows:
116233         * lib/tempname.c (struct_stat64): New macro.
116234         (direxists, __gen_tempname): Use it.
116235         This avoids a portability problem with Solaris 8.
116237         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116238         (<stddef.h>, <stdint.h>, <string.h>):
116239         Include only if STDC_HEADERS || _LIBC.
116240         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116241         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116242         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116243         (__set_errno): Define this macro if <errno.h> doesn't.
116244         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116245         Define these macros if <stdio.h> doesn't.
116246         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116247         Define these macros if <sys/stat.h>
116248         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116249         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116250         __xstat64): Define if not _LIBC.
116251         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116252         (__gen_tempname): Invoke gettimeofday only if
116253         HAVE_GETTIMEOFDAY || _LIBC;
116254         otherwise, fall back on plain "time".
116255         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116257         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116259         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116261 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116263         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116265 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116267         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116269         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116270         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116272 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116274         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116275         Remove workaround macros for hosts that have mbrtowc but not
116276         mbstate_t, as we now insist on proper declarations for both
116277         before using mbrtowc.
116279 2001-02-17  Jim Meyering  <meyering@lucent.com>
116281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116282         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116283         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116284         UnixWare 7.1.1.
116286         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116287         rather than AC_CACHE_VAL.
116289 2001-02-17  Jim Meyering  <meyering@lucent.com>
116291         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116292         around included file name.
116294         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116296         * lib/strftime.c: Update from GNU libc (the only changes were to
116297         comments).
116299 2001-02-17  Jim Meyering  <meyering@lucent.com>
116301         * lib/regex.c: Update from libc.
116303 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116305         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116306         clash.
116308 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116310         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116311         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116312         Reported by Mark Hounschell via Paul Eggert.
116314 2001-02-07  Jim Meyering  <meyering@lucent.com>
116316         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116318 2001-02-05  Jim Meyering  <meyering@lucent.com>
116320         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116321         it includes the patch required for `large file' support with at least
116322         HP-UX's 10.20 /bin/cc.
116324 2001-02-03  Jim Meyering  <meyering@lucent.com>
116326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116327         AS_IF, now that it works once again (mysteriously).
116328         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116330 2001-01-30  Jim Meyering  <meyering@lucent.com>
116332         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116333         * m4/chown.m4: Rename conftestchown to conftest.chown.
116334         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116335         s/conftestdir2/conftest.d2/.
116336         * m4/utimes.m4: s/conftestdata/conftest.data/
116337         Inspired by Pavel Roskin's change in autoconf.
116339 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116341         * lib/config.charset: Update for FreeBSD 4.2.
116343 2001-01-27  Jim Meyering  <meyering@lucent.com>
116345         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116346         a use of AS_IF.
116347         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116349 2001-01-26  Jim Meyering  <meyering@lucent.com>
116351         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116352         quotearg.c includes it.
116354 2001-01-26  Jim Meyering  <meyering@lucent.com>
116356         * lib/quotearg.c: Include stddef.h.
116357         * lib/quote.c: Include stddef.h.
116358         Reported by Axel Kittenberger.
116360         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116361         line in double quotes so that it evokes a better diagnostic.
116362         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116363         Reported by Axel Kittenberger.
116365 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116367         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116368         as if it was a `charset'.
116370 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116372         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116373         has const.
116375 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116377         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116378         to avoid a warning.  Add back 'const' to inptr.
116380 2001-01-20  Jim Meyering  <meyering@lucent.com>
116382         Be sure that headers are checked before used in code compiled
116383         for the type checks.
116384         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116385         In place of that, invoke jm_CHECK_ALL_TYPES.
116386         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116387         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116388         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116389         The check for ssize_t was mistakenly run before the test for unistd.h.
116391         The configure-time check for stdbool.h was missing.
116392         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116393         (jm_PREREQ_HASH): New function.
116395 2001-01-17  Jim Meyering  <meyering@lucent.com>
116397         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116398         for autoconf-2.49c.
116399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116401 2001-01-16  Jim Meyering  <meyering@lucent.com>
116403         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116404         From Bruno Haible.
116406 2001-01-14  Jim Meyering  <meyering@lucent.com>
116408         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116409         foo and bar.  Create conftestdir/ in the script, not in the C code.
116410         Remove directories in the script, not in the C code.
116411         Remove conftestdir{,2} before trying to create the directory.
116412         Make the entire configure script fail if the mkdir fails.
116414 2001-01-14  Jim Meyering  <meyering@lucent.com>
116416         * lib/rename.c: New file.  From Volker Borchert.
116417         Include stdlib.h, string.h or strings.h, and xalloc.h.
116418         Use strip_trailing_slashes rather than open-coding it.
116420 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116422         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116424 2001-01-03  Jim Meyering  <meyering@lucent.com>
116426         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116427         of local `inptr' to avoid warning with some system declarations of
116428         iconv.
116430 2001-01-02  Volker Borchert  <bt@teknon.de>
116432         * m4/rename.m4: New file.
116433         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116435 2001-01-01  Jim Meyering  <meyering@lucent.com>
116437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116438         even on systems with utmpx.h.  It's necessary for the declaration of
116439         utmp's ut_user member.  Reported by Andreas Jaeger.
116441         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116442         available. They are required for the declarations of getgrgid and
116443         getpwuid resp.
116444         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116445         Reported by Andreas Jaeger.
116447 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116449         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116450         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116451         so `make install' also works in VPATH builds.
116453 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116455         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116456         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116457         can be used in subdirectories.
116459 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116461         * lib/modechange.c: Do not assume that mode_t uses the
116462         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116463         the other-execute bit of FOO even if S_IXOTH != 1.
116465         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116466         WOTH, XOTH, ALLM): New macros.
116467         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116468          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116469         Use them.
116470         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116471         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116472         (mode_compile):
116473         No need to use uintmax_t; unsigned long is long enough.
116474         Don't bother to get suffix since we don't use it.
116476 2000-12-26  Jim Meyering  <meyering@lucent.com>
116478         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116479         better with autoheader.
116481 2000-12-24  Jim Meyering  <meyering@lucent.com>
116483         * lib/hash.c (is_prime): Return explicit boolean values.
116484         (hash_get_first): Return NULL to appease Irix5.6's 89.
116485         Reported by Nelson Beebe.
116487 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116489         * lib/localcharset.c (locale_charset): Add support for Win32.
116491 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116493         * lib/physmem.h, lib/physmem.c: New files.
116495         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116496         (noinst_HEADERS): Add physmem.h.
116498         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116499         't' for compatibility with Solaris 8 sort.
116501 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116503         * lib/config.charset: Add support for BeOS.
116505 2000-12-17  Jim Meyering  <meyering@lucent.com>
116507         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116508         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116510 2000-12-16  Jim Meyering  <meyering@lucent.com>
116512         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116513         N and M) would have treated it like `chown N:N FILE'.
116515         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116517 2000-12-16  Jim Meyering  <meyering@lucent.com>
116519         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116520         SHELLS_FILE to a file name that's useful on djgpp systems.
116521         Include stdlib.h.
116522         (ADDITIONAL_DEFAULT_SHELLS): Define.
116523         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116524         Based mostly on a patch from Prashant TR.
116526 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116528         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116529         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116530         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116532 2000-12-08  Andreas Schwab  <schwab@suse.de>
116534         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116535         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116537 2000-12-07  Jim Meyering  <meyering@lucent.com>
116539         * lib/stripslash.c (ISSLASH): Define.
116540         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116541         `/'.
116542         From Prashant TR.
116544         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116545         (dir_name_r): Declare this function as static.
116546         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116547         manifest itself on a name containing a mix of slashes and
116548         backslashes.
116549         Make this function work with names starting with a DOS-style
116550         drive letter and colon prefix.
116551         (dir_name): Append `.' if necessary.
116552         Based mostly on patches from Prashant TR and Eli Zaretskii.
116554         * lib/dirname.h (dir_name_r): Remove prototype.
116556 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116558         * m4/off_t-format.m4: Remove this file.
116559         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116561 2000-12-06  Jim Meyering  <meyering@lucent.com>
116563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116564         replacement strtoull, we may well need the replacement strtoul, too.
116565         Check for declarations of strtoul and strtoull.
116566         Check for strtol.  Mainly as a cue to cause automake to include
116567         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116568         Check for limits.h -- strtol.c needs it.
116570 2000-12-05  Jim Meyering  <meyering@lucent.com>
116572         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116574 2000-12-04  Jim Meyering  <meyering@lucent.com>
116576         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116577         Also include memory.h, stdlib.h, unistd.h if appropriate.
116578         Reported by Andreas Jaeger (conflicting declaration of malloc).
116580 2000-12-02  Jim Meyering  <meyering@lucent.com>
116582         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116583         * m4/jm-macros.m4 (jm_MACROS): require it.
116585 2000-12-02  Jim Meyering  <meyering@lucent.com>
116587         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116589 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116591         * lib/memrchr.c: Include <config.h> before any system include file.
116593 2000-11-30  Jim Meyering  <meyering@lucent.com>
116595         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116597 2000-11-30  Jim Meyering  <meyering@lucent.com>
116599         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116601 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116603         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116605 2000-11-26  Jim Meyering  <meyering@lucent.com>
116607         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116609 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116611         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116612         size of (size_t) -1; it's not portable.
116614 2000-11-17  Jim Meyering  <meyering@lucent.com>
116616         * lib/strstr.c: Update from GNU libc.
116618 2000-11-17  Akim Demaille  <akim@epita.fr>
116620         * lib/obstack.h: Formatting changes.
116621         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116622         prevent type checking.
116623         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116624         cast the value to (void *): assigning a `foo *' to a `void *'
116625         variable is valid.
116626         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116628 2000-11-16  Jim Meyering  <meyering@lucent.com>
116630         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116632 2000-11-11  Jim Meyering  <meyering@lucent.com>
116634         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116636 2000-11-10  Jim Meyering  <meyering@lucent.com>
116638         * lib/obstack.h: Update from GNU libc.
116639         * lib/obstack.c: Likewise.
116641 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116643         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116645 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116647         * lib/getusershell.c (setusershell): Use rewind rather than
116648         fseek/fseeko, to avoid configuration hassles with fseeko.
116649         Don't bother opening SHELLS_FILE if shellstream is NULL;
116650         it's not necessary.
116652 2000-11-05  Jim Meyering  <meyering@lucent.com>
116654         * lib/makepath.h (make_dir): Declare.
116655         * lib/makepath.c (make_dir): Remove `static' attribute.
116656         Tweak a comment.
116658 2000-11-04  Jim Meyering  <meyering@lucent.com>
116660         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116662 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116664         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116665         last one in a bucket, advance to the next bucket.
116667 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116669         * lib/fnmatch.c: Do not comment out all the code if we are using
116670         the GNU C library, because in some cases we are replacing buggy
116671         code in the GNU C library itself.
116673 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116675         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116676         (regex_compile): Catch bogus \(\1\).
116678 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116680         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116681         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116682         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116684 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116686         * lib/error.h, getline.h, modechange.h:
116687         Remove "2000" from Copyright line, as the file hasn't been
116688         changed this year other than in the copyright notice.
116690         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116691         was changed this year.
116693 2000-10-29  Jim Meyering  <meyering@lucent.com>
116695         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116696         renaming.
116697         * m4/ls-mntd-fs.m4: Likewise
116699 2000-10-29  Jim Meyering  <meyering@lucent.com>
116701         * lib/xstat.in: Fix grammar in comment.
116703 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116705         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116706         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116707         doesn't define __restrict_arr.
116709 2000-10-28  Jim Meyering  <meyering@lucent.com>
116711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116712         (jm_PREREQ_MEMCHR): New function.
116714 2000-10-28  Jim Meyering  <meyering@lucent.com>
116716         * lib/memchr.c: Update from libc.
116717         Adjust for portability:
116718         [HAVE_STDLIB_H]: Include stdlib.h.
116719         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116720         Undef __memchr, too.
116721         [!weak_alias]: Define __memchr to memchr.
116723         * lib/regex.c: Update from libc.
116724         * lib/regex.h: Likewise.
116725         * lib/getopt1.c: Likewise.
116726         * lib/memcmp.c: Likewise.
116728         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116729         Avoid using fseek, when possible -- it's broken by design.
116730         Patch by Ulrich Drepper.
116732 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116734         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116735         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116736         Giving in to popular pressure to shut up the compiler with casts.
116738 2000-10-26  Jim Meyering  <meyering@lucent.com>
116740         * lib/strftime.c: Update from libc.
116742 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116744         * regex.c: More `unsigned char' -> `re_char' changes.
116745         Also change several `int' into `re_wchar_t'.
116746         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116747         (PUSH_FAILURE_POINTER): Don't cast any more.
116748         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116749         We want GCC to complain, since this piece of code makes
116750         re_match non-reentrant, which *should* be fixed.
116751         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116752         (EXTEND_BUFFER): Use RETALLOC.
116753         (SET_LIST_BIT): Don't cast.
116754         (re_wchar_t): New type.
116755         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116756         that those two functions will always properly return.
116757         (IMMEDIATE_QUIT_CHECK): Cast to void.
116758         (analyse_first): Use recursion rather than an explicit stack.
116759         (re_compile_fastmap): Can't fail anymore.
116760         (re_search_2): Don't check re_compile_fastmap for failure.
116761         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116762         Now also sets the new value (passed in a new argument).
116763         (re_match_2_internal): Use it.
116764         Also, use a new var `reg' of type size_t when looping through regs
116765         rather than reuse the inappropriate `mcnt'.
116767 2000-10-25  Jim Meyering  <meyering@lucent.com>
116769         * lib/obstack.c: Update from libc.
116771 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116773         * regex.c (regex_compile): Change the way of handling a range from
116774         a char less than 256 to a char not less than 256.
116776 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116778         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116779         NT-Emacs only.
116780         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116781         so that re_search functions only quit when callers expect them to.
116783 2000-10-23  Jim Meyering  <meyering@lucent.com>
116785         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116786         wrong.  That set_locale call must not have any side effects.
116787         From Paul Eggert.
116789 2000-10-22  Jim Meyering  <meyering@lucent.com>
116791         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116792         [CYCLIC]: Remove now-unused definition.
116794         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116795         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116796         Suggestion from Ulrich Drepper.
116798 2000-10-21  Jim Meyering  <meyering@lucent.com>
116800         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116801         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116802         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116804 2000-10-21  Jim Meyering  <meyering@lucent.com>
116806         * lib/dirname.c (memrchr): Declare if necessary.
116807         (dir_name): Remove the restriction that there be no
116808         trailing slashes.  Now, this code skips past them, effectively
116809         ignoring them.
116810         [TEST_DIRNAME] (main): New unit tests.
116812         * lib/memrchr.c: New file from GNU libc.
116813         Undef __memrchr, too.
116814         [!weak_alias]: Define __memrchr to memrchr.
116815         Guard weak_alias use with `#ifdef weak_alias'.
116817 2000-10-21  Jim Meyering  <meyering@lucent.com>
116819         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116820         (dir_name): Use dir_name_r.
116821         * lib/dirname.h (dir_name_r): Declare it.
116823 2000-10-17  Jim Meyering  <meyering@lucent.com>
116825         * lib/quote.h (PARAMS): Define and use.
116826         Reported by Akim Demaille.
116828         * lib/getopt.c: Update from libc.
116830 2000-10-16  Jim Meyering  <meyering@lucent.com>
116832         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116833         setlocale.
116834         From Jan Fedak.
116836 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116838         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116840 2000-09-25  Jim Meyering  <meyering@lucent.com>
116842         * lib/md5.h (rol): Define (from GnuPG).
116844         * lib/sha.c: Give credit (GnuPG) where due.
116845         (M): Use rol rather than open-coding it.
116846         Add a FIXME comment.
116848 2000-09-21  Jim Meyering  <meyering@lucent.com>
116850         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116851         Reported by Michael Stone.
116853 2000-09-20  Jim Meyering  <meyering@lucent.com>
116855         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116856         (noinst_HEADERS): Add sha.h.
116857         Based on code from Scott G. Miller and from GnuPG.
116859 2000-09-18  Jim Meyering  <meyering@lucent.com>
116861         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116862         LIBS. Otherwise, everyone ends up linking with -lelf for some
116863         configurations.
116864         Reported by Mike Stone.
116866 2000-09-15  Jim Meyering  <meyering@lucent.com>
116868         * lib/regex.c: Update from libc.
116870 2000-09-10  Jim Meyering  <meyering@lucent.com>
116872         * lib/getopt.c (_getopt_internal): Update from glibc.
116874 2000-09-09  Jim Meyering  <meyering@lucent.com>
116876         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116877         think it should be used as a general replacement for isascii.
116878         * lib/fnmatch.c: Likewise.
116879         * lib/mbswidth.c: Likewise
116880         * lib/regex.c: Likewise.
116882         Don't use atoi.
116883         * lib/userspec.c: Include sys/param.h and limits.h.
116884         Include xstrtol.h.
116885         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116886         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116887         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116888         UID, GID.  Check range.
116890 2000-09-06  Jim Meyering  <meyering@lucent.com>
116892         * lib/getopt.c (_getopt_internal): Update from glibc.
116894 2000-08-30  Jim Meyering  <meyering@lucent.com>
116896         * lib/strftime.c: Merge in changes from GNU libc.
116898 2000-08-26  Jim Meyering  <meyering@lucent.com>
116900         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116901         * m4/fpending.m4: New file.
116903 2000-08-26  Jim Meyering  <meyering@lucent.com>
116905         * lib/closeout.c: Include "__fpending.h".
116906         (close_stdout_status): Return right away if there's nothing to flush.
116908         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116909         * lib/__fpending.c: New file.
116910         * lib/__fpending.h: New file.
116912 2000-08-20  Jim Meyering  <meyering@lucent.com>
116914         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116915         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116916         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116918 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116920         Improve fileutils installation on systems where running
116921         programs (like install) can't be unlinked.
116922         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116923         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116925 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116927         Standardize on "memory exhausted" instead of "Memory exhausted"
116928         or "virtual memory exhausted".
116929         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116930         "virtual memory exhausted".
116931         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116932         our own message.
116933         * lib/userspec.c (parse_user_spec): Likewise.
116934         * lib/bumpalloc.h: comment fix
116935         * lib/same.c, userspec.c: Include xalloc.h.
116937         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116938         not char *const and pointing to a constant array.
116939         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116940         (xrealloc): Comment fix.
116942         * lib/userspec.c (parse_user_spec):
116943         Don't translate a message until just before returning,
116944         to avoid unnecessary translation.
116946 2000-08-07  Jim Meyering  <meyering@lucent.com>
116948         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116949         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116950         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116951         getgroups.c, gethostname.c, getopt.h, group-member.c,
116952         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116953         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116954         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116955         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116956         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116957         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116958         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116959         yesno.c: Back out Copyright date changes for each file with no change
116960         this year.  This eases coordination with other programs using the same
116961         source code modules.  From Paul Eggert.
116963 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116965         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116966         not char, for compatibility with glibc 2.1.3 strftime.c.
116968 2000-08-03  Greg McGary  <greg@mcgary.org>
116970         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116971         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116972         (EXTEND_BUFFER): Use them.
116974 2000-08-01  Jim Meyering  <meyering@lucent.com>
116976         * lib/dirname.c (ISSLASH): Define.
116977         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116978         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116979         both `\' and `/' may be use as path separators.
116980         Based on a patch from Prashant TR.
116982 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116984         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116985         slot vector a constant, since it might get modified.
116987 2000-07-31  Jim Meyering  <meyering@lucent.com>
116989         * lib/xmalloc.c: Use `virtual memory exhausted', not
116990         `Memory exhausted'.
116991         * lib/obstack.c (print_and_abort): Likewise.
116993 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116995         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116996         buffer, so that the caller can always quote one small
116997         component of a "memory exhausted" message in slot 0.
116998         From a suggestion by Jim Meyering.
117000 2000-07-30  Jim Meyering  <meyering@lucent.com>
117002         * lib/makepath.c (make_path): Quote the other instance, too.
117004         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
117005         (STATIC_BUF_SIZE): Define.
117006         (quotearg_n_options): Use only statically allocated storage when
117007         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
117008         than STATIC_BUF_SIZE.
117010 2000-07-29  Jim Meyering  <meyering@lucent.com>
117012         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
117013         * lib/dirname.c (dir_name): Likewise.
117015         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
117016         `/'.
117018         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
117019         (dir_name): Assert that there are no trailing slashes.
117021 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
117023         * lib/mbswidth.h (mbswidth): Add a flags argument.
117024         (mbswidth): New declaration.
117025         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
117026         * lib/mbswidth.c (mbswidth): Add a flags argument.
117027         (mbsnwidth): New function.
117029 2000-07-24  Jim Meyering  <meyering@lucent.com>
117031         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
117033 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117035         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
117037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117039         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
117040         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
117041         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
117042         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
117043         invoke multibyte primitives.
117045 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117047         * lib/quotearg.c:
117048         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
117049         so that mbstate_t is always defined.
117051         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
117052         be 1 in at least one GCC installation, and this configuration
117053         error is likely to be common.  Ignoring MB_LEN_MAX hurts
117054         performance on hosts that have mbrtowc but have only unibyte
117055         locales, but I assume these hosts are rare.
117057 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117059         * lib/mbswidth.c (_XOPEN_SOURCE):
117060         Don't define; this causes problems on Solaris 7.
117061         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
117063 2000-07-23  Jim Meyering  <meyering@lucent.com>
117065         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
117066         too: getgrgid, getpwuid, getuid.
117068 2000-07-23  Jim Meyering  <meyering@lucent.com>
117070         * lib/basename.c (base_name): Add an assertion.
117072 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
117074         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
117075         shadow its mbsinit function.
117077 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117079         * lib/mbswidth.h: New file.
117080         * lib/mbswidth.c: New file.
117081         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
117082         (noinst_HEADERS): Add mbswidth.h.
117084 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117086         * lib/config.charset: Add support for FreeBSD. Improve support for
117087         HP-UX and IRIX 6.
117089 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
117091         * m4/mbswidth.m4: New file.
117092         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
117094 2000-07-15  Jim Meyering  <meyering@lucent.com>
117096         * lib/makepath.c: Include quote.h.
117097         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
117098         corresponding argument in a `quote (...)' call.
117099         Give better diagnostics.
117101         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
117102         (noinst_HEADERS): Add quote.h.
117104         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
117105         from tar's src/misc.c.
117106         * lib/quote.h: New file.  Prototypes for same.
117108 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117110         From a suggestion by Bruno Haible.
117111         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117112         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117113         to decide whether to define the BeOS workaround macro;
117114         this adjusts to the change to AC_MBSTATE_T.
117116 2000-07-14  Jim Meyering  <meyering@lucent.com>
117118         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117119         jm_AC_TYPE_UINTMAX_T.
117121 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117123         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117125         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117126         quotearg_buffer_restyled): Add support for
117127         clocale_quoting_style.  Undo previous change to
117128         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117129         and "{RIGHT QUOTATION MARK}" msgids.
117131 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117133         From a suggestion by Bruno Haible.
117134         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117135         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117136         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117137         and mbstate_t, to a single-part test that simply defines mbstate_t.
117138         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117139         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117141 2000-07-10  Jim Meyering  <meyering@lucent.com>
117143         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117145         * m4/gnu-source.m4: Output to confdefs.h directly.
117146         Suggestion from Akim Demaille.
117148 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117150         The old behavior of quoting `like this' doesn't look good with
117151         newer, ISO-style fonts.  See:
117152         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117154         Instead, quote "like this" by default.  Let the translator
117155         tailor the locale-specific quoting behavior by providing
117156         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117158         * lib/quotearg.c (N_): New macro.
117159         (gettext_default): New function.
117160         (quotearg_buffer_restyled): Use
117161         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117162         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117164 2000-07-09  Jim Meyering  <meyering@lucent.com>
117166         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117167         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117169         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117172 2000-07-09  Jim Meyering  <meyering@lucent.com>
117174         * lib/Most files: Update copyright dates to include 2000.
117176 2000-07-08  Jim Meyering  <meyering@lucent.com>
117178         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117179         if not defined.
117180         (xgethostname): Remove now-unnecessary #ifdef.
117181         Move declaration of `err' into loop where it's used.
117183 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117184         and Bruno Haible  <haible@clisp.cons.org>
117186         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117187         only if the test for an object-type mbstate_t fails.  This
117188         prevents us from mistakenly reporting that mbstate_t is a
117189         system object type after we "#define mbstate_t int" to work
117190         around its lack.
117192 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117193         and Bruno Haible  <haible@clisp.cons.org>
117195         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117197 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117199         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117200         to strerror_r.
117201         Include <ctype.h> for use of isalpha.
117203 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117205         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117206         by allocating a larger buffer. Test the gethostname return value for
117207         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117208         returns an error and ENAMETOOLONG isn't defined.
117210 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117212         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117213         dimension.
117215 2000-07-04  Jim Meyering  <meyering@lucent.com>
117217         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117218         of the deprecated AC_CHECKING.
117220 2000-07-04  Jim Meyering  <meyering@lucent.com>
117222         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117223         Reported by Bruno Haible.
117225 2000-07-04  Jim Meyering  <meyering@lucent.com>
117227         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117228         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117229         lacks mbrtowc.
117231 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117233         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117234         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117236 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117237         and Bruno Haible  <haible@clisp.cons.org>
117239         * lib/quotearg.c (mbrtowc):
117240         Assign to *pwc, and return 1 only if result is nonzero.
117241         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117243 2000-07-03  Jim Meyering  <meyering@lucent.com>
117245         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117247 2000-07-03  Jim Meyering  <meyering@lucent.com>
117249         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117250         This is necessary to get a definition of e.g., UTMP_FILE on
117251         HP-UX 10.20.
117252         From Bob Proulx.
117254 2000-07-02  Jim Meyering  <meyering@lucent.com>
117256         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117258         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117259         AC_LIBOBJ(function_name).
117260         * m4/chown.m4: Likewise.
117261         * m4/fnmatch.m4: Likewise.
117262         * m4/ftruncate.m4: Likewise.
117263         * m4/getgroups.m4: Likewise.
117264         * m4/getline.m4: Likewise.
117265         * m4/group-member.m4: Likewise.
117266         * m4/jm-macros.m4: Likewise.
117267         * m4/lstat.m4: Likewise.
117268         * m4/malloc.m4: Likewise.
117269         * m4/memcmp.m4: Likewise.
117270         * m4/nanosleep.m4: Likewise.
117271         * m4/putenv.m4: Likewise.
117272         * m4/realloc.m4: Likewise.
117273         * m4/regex.m4: Likewise.
117274         * m4/stat.m4: Likewise.
117275         * m4/strftime.m4: Likewise.
117277 2000-07-02  Jim Meyering  <meyering@lucent.com>
117279         * lib/quotearg.c (mbstate_t): Don't define here.
117281 2000-07-02  Jim Meyering  <meyering@lucent.com>
117283         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117285 2000-07-01  Jim Meyering  <meyering@lucent.com>
117287         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117289 2000-07-01  Jim Meyering  <meyering@lucent.com>
117291         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117292         problem.
117294 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117297         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117299 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117301         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117302         per change in ../m4/ls-mntd-fs.m4.
117303         (read_filesystem_list): Ignore symbolic links.
117305 2000-06-29  Jim Meyering  <meyering@lucent.com>
117307         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117308         for declaration of strcmp.
117310         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117312         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117313         Avoid warning by casting result to `char *' to remove `const'.
117315 2000-06-28  Jim Meyering  <meyering@lucent.com>
117317         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117318         included by quotearg.c, for which we perform this test.  From
117319         Bruno Haible.
117321 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117323         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117324         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117325         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117327 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117329         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117331 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117333         savedir now sets errno on failure and invokes xmalloc to get memory.
117334         Fix a couple of other minor bugs while we're at it.
117336         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117337         (NAMLEN): Remove macro.
117338         (malloc, realloc): Remove decls.
117339         (stpcpy): Likewise.
117340         ("xalloc.h"): Include.
117341         (NAME_SIZE_DEFAULT): New macro.
117342         (savedir): Use xmalloc / xrealloc to allocate memory.
117343         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117344         Skip "" directory entries.
117345         Use strlen to calculate directory entry length, since the old method
117346         is rarely used these days and isn't worth supporting.
117347         Don't use a pointer after freeing it.
117348         Check for integer overflow when calculating allocation size.
117349         Use memcpy to copy entries, instead of stpcpy.
117350         Set errno properly when returning NULL.
117351         Check for readdir error.
117353 2000-06-26  Jim Meyering  <meyering@lucent.com>
117355         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117357 2000-06-25  Jim Meyering  <meyering@lucent.com>
117359         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117360         Linux header bug when _XOPEN_SOURCE is defined to 500.
117362 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117364         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117365         deficiency.
117367 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117369         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117370         Include xalloc.h.
117371         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117373 2000-06-24  Jim Meyering  <meyering@lucent.com>
117375         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117376         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117377         for which strerror does return char*, but which lacks a conveniently
117378         accessible declaration of the function.  If the compile-test says
117379         strerror_r doesn't work, then resort to a `run'-test that works on
117380         BeOS and segfaults on DEC Unix.
117382 2000-06-24  Jim Meyering  <meyering@lucent.com>
117384         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117386 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117388         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117389         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117391 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117393         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117394         (mbrtowc, mbstate_t): Define substitutes if
117395         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117396         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117397         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117399 2000-06-23  Jim Meyering  <meyering@lucent.com>
117401         * m4/afs.m4: Add missing AC_MSG_RESULT.
117402         Reported by Bruno Haible.
117404         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117405         Suggestion from Bruno Haible.
117407 2000-06-23  Jim Meyering  <meyering@lucent.com>
117409         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117411 2000-06-21  Jim Meyering  <meyering@lucent.com>
117413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117415 2000-06-21  Jim Meyering  <meyering@lucent.com>
117417         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117418         (noinst_HEADERS): Add getstr.h.
117420         * lib/getline.c (getstr): Move into a separate file.
117421         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117422         the following changes: new parameter, delim2; both delim[12]
117423         parameters have type `int', not `char'.  The latter would lose
117424         with 8-bit delimiters.
117425         * lib/getstr.h: New file.
117427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117429         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117430         than 1024, return a memory chunk of least possible size, instead
117431         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117432         Use free/xmalloc instead of xrealloc to avoid copying for very long
117433         paths.
117435 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117437         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117438         the empty string.
117440 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117442         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117443         address, not strdup.  Include <stdlib.h> and don't declare free().
117445 2000-06-19  Jim Meyering  <meyering@lucent.com>
117447         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117449 2000-06-18  Jim Meyering  <meyering@lucent.com>
117451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117453         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117454         `checking whether...' message to be consistent with that of the
117455         lstat test.
117457 2000-06-18  Jim Meyering  <meyering@lucent.com>
117459         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117460         Besides, these days every porting target provides a mkdir function.
117462         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117463         needed. (this snippet comes from src/system.h).
117465 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117467         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117469 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117471         * lib/human.c (adjust_value): New function.
117472         (human_readable_inexact): Apply rounding style even when
117473         printing approximate values.
117475 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117477         * lib/human.c (human_readable_inexact): Allow an input block
117478         size that is not a multiple of the output block size, and vice versa.
117479         Reported by Piergiorgio Sartor.
117481 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117483         * lib/getdate.y (get_date): Apply relative times after time
117484         zone indicator, not before.  Reported by Todd A. Jacobs.
117486 2000-06-13  Jim Meyering  <meyering@lucent.com>
117488         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117490         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117492 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117494         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117496 2000-06-12  Jim Meyering  <meyering@lucent.com>
117498         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117499         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117500         optional argument.
117501         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117502         the optional argument, `lib'.
117504 2000-06-08  Jim Meyering  <meyering@lucent.com>
117506         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117508 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117510         Rewrite largefile configuration so that we don't need to run
117511         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117512         AC_CANONICAL_HOST in configure.in -- jmm]
117514         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117515         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117516         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117517         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117518         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117519         All uses changed.
117520         Instead of inspecting the output of getconf, try to compile the
117521         test program without and with the macro definition.
117522         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117523         for getconf.  Instead, check for the needed flags by compiling
117524         test programs.
117526 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117528         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117530 2000-06-04  Jim Meyering  <meyering@lucent.com>
117532         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117533         SunOS 4.1.4 for which gid_t is an unsigned type.
117535 2000-06-03  Jim Meyering  <meyering@lucent.com>
117537         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117538         now that autoconf requires that.
117540         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117541         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117542         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117544 2000-06-03  Jim Meyering  <meyering@lucent.com>
117546         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117548 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117550         * m4/glibc21.m4: New file.
117551         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117553 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117555         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117556         newer, don't install charset.alias.
117557         * lib/config.charset: Change the Linux/glibc rules so they become empty
117558         on glibc-2.1 or newer.
117560 2000-06-02  Jim Meyering  <meyering@lucent.com>
117562         * lib/mountlist.c: Back out last change.  Instead, do this...
117563         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117564         me_dummy member using the same `ignore'-testing code.
117565         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117566         fs_type strings.
117567         From Mark D. Roth.
117569 2000-05-29  Jim Meyering  <meyering@lucent.com>
117571         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117572         mounts with the `ignore' attribute.  Based on a patch from
117573         Mark D. Roth.
117575 2000-05-28  Jim Meyering  <meyering@lucent.com>
117577         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117578         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117579         * m4/stat.m4: Likewise.
117580         * m4/lstat.m4: Likewise.
117581         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117583         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117584         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117586 2000-05-26  Jim Meyering  <meyering@lucent.com>
117588         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117590 2000-05-24  Jim Meyering  <meyering@lucent.com>
117592         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117593         autoconf requires that.
117594         * m4/lib-check.m4: Likewise.
117595         * m4/jm-macros.m4: Likewise.
117596         * m4/strftime.m4: Likewise.
117598         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117599         AC_CHECK_DECLS, now that autoconf requires that.
117601 2000-05-22  Jim Meyering  <meyering@lucent.com>
117603         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117604         * m4/lstat.m4: Likewise.
117606 2000-05-22  Jim Meyering  <meyering@lucent.com>
117608         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117610 2000-05-20  Jim Meyering  <meyering@lucent.com>
117612         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117613         (jm_PREREQ): Use it.
117615 2000-05-18  Jim Meyering  <meyering@lucent.com>
117617         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117618         back, too, since it may have been modified by allocate_entry.
117619         (hash_delete): Rewrite to use neither the assignment operator
117620         nor the comma operator in an if-expression.
117622 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117624         * lib/closeout.c:
117625         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117626         Remove; no longer needed.
117627         "quotearg.h": Add include.
117628         (file_name): Do not bother to explicitly initialize to NULL; it's less
117629         efficient on some hosts.
117630         (close_stdout_status): Remove test as to whether stdout was already
117631         closed; it breaks for the case "echo x | sort >&-".
117632         Quote file name colons.
117633         Do not assume that _("write error") lacks format strings.
117635 2000-05-15  Jim Meyering  <meyering@lucent.com>
117637         * lib/version-etc.c (version_etc_copyright): Update the copyright
117638         string used in all --version output.
117640 2000-05-14  Jim Meyering  <meyering@lucent.com>
117642         * lib/closeout.c (close_stdout_set_file_name): New function.
117643         (close_stdout_status): Use new file-scoped global.
117644         Return right away if fstat says the stdout file descriptor is invalid.
117645         * lib/closeout.h (close_stdout_set_file_name): Declare.
117647 2000-05-10  Jim Meyering  <meyering@lucent.com>
117649         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117650         (close_stdout_set_status): New function.
117651         * lib/closeout.h (close_stdout_set_status): Declare.
117653 2000-05-09  Jim Meyering  <meyering@lucent.com>
117655         * m4/gettext.m4: Rename this...
117656         * m4/libintl.m4: ...to this.
117658 2000-05-08  Jim Meyering  <meyering@lucent.com>
117660         * lib/long-options.c: Don't include closeout.h.
117661         (parse_long_options): Don't call close_stdout for --version.
117663 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117665         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117666         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117667         2.1.3 bug.  This avoids a clash when files like regex.c define
117668         _GNU_SOURCE.
117670 2000-05-06  Jim Meyering  <meyering@lucent.com>
117672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117673         (AC_REPLACE_FUNCS): Add strnlen.
117675         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117676         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117678         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117679         AC_SEARCH_LIBS call for nanosleep.
117680         (LIB_NANOSLEEP): Set and AC_SUBST.
117682 2000-05-06  Jim Meyering  <meyering@lucent.com>
117684         * lib/strnlen.c: Undefine __strnlen and strnlen.
117685         [!weak_alias]: Define __strnlen to strnlen.
117687         * lib/atexit.c: New file, from libiberty.
117689 2000-05-06  Jim Meyering  <meyering@lucent.com>
117691         * lib/closeout.c (close_stdout_status): Also check for errors on the
117692         stderr stream.
117694 2000-05-05  Jim Meyering  <meyering@lucent.com>
117696         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117697         AC_SEARCH_LIBS call for clock_gettime.
117698         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117700         * m4/search-libs.m4: Update from autoconf.
117702         su doesn't work on Solaris 2.6.
117703         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117704         <shadow.h>.  Reported by Dragos Harabor.
117706 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117708         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117709         memcpy instead of xmalloc, xrealloc, path_concat.
117710         (locale_charset): Treat empty environment variables as absent.
117711         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117713 2000-05-04  Jim Meyering  <meyering@lucent.com>
117715         * lib/getopt.c: Update from glibc.
117716         * lib/obstack.c: Likewise.
117717         * lib/obstack.h: Likewise.
117718         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117719         file
117721         * lib/regex.h: Likewise.
117722         * lib/strndup.c: Likewise.
117723         * lib/strnlen.c: New file, from glibc.
117725 2000-05-03  Jim Meyering  <meyering@lucent.com>
117727         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117729 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117731         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117732         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117733         compile-time test, rather than inspecting host and OS, to
117734         decide whether to define _LARGEFILE_SOURCE.
117736 2000-05-01  Jim Meyering  <meyering@lucent.com>
117738         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117741         Based on a patch from Bruno Haible.
117743 2000-05-01  Jim Meyering  <meyering@lucent.com>
117745         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117747 2000-04-29  Jim Meyering  <meyering@lucent.com>
117749         * lib/path-concat.c: Declare strdup only if it's not defined.
117750         * lib/canon-host.c: Likewise.
117752 2000-04-28  Jim Meyering  <meyering@lucent.com>
117754         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117755         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117756         is included first, then limits.h is included by locale.h by libintl.h.
117757         From John David Anglin.
117759 2000-04-25  Jim Meyering  <meyering@lucent.com>
117761         * lib/makepath.c (S_IRWXUGO): Define.
117762         (make_path): Always perform explicit chmod if MODE specifies any
117763         of the `special' permission bits.  Prompted by a bug report against
117764         install from Mate Wierdl and Joost van Baal.
117766 2000-04-18  Jim Meyering  <meyering@lucent.com>
117768         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117769         (jm_PREREQ): Use it.
117771 2000-04-18  Jim Meyering  <meyering@lucent.com>
117773         * lib/README: New file.
117775         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117776         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117778 2000-04-17  Jim Meyering  <meyering@lucent.com>
117780         Get it right :-)
117781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117782         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117783         Suggestion from Akim Demaille.
117785 2000-04-17  Jim Meyering  <meyering@lucent.com>
117787         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117788         the definition of it to rpl_strftime also defined-away the system's
117789         declaration.
117791 2000-04-15  Jim Meyering  <meyering@lucent.com>
117793         Use `C' to denote so-called `contiguous' files, the same way
117794         that tar does.
117795         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117796         (ftypelet): Use S_ISCTG.
117797         From Michael Deutschmann.
117799 2000-04-14  Jim Meyering  <meyering@lucent.com>
117801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117802         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117803         clobbered.
117805 2000-04-14  Jim Meyering  <meyering@lucent.com>
117807         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117809 2000-04-13  Jim Meyering  <meyering@lucent.com>
117811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117812         AH_VERBATIM to insert required #ifndef into config.h.in.
117813         Suggestion from Akim Demaille.
117815 2000-04-12  Jim Meyering  <meyering@lucent.com>
117817         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117818         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117819         Christian Krackowizer.
117821         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117822         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117823         (AC_SYS_LARGEFILE): Require.
117824         (AM_C_PROTOTYPES): Require.
117826 2000-04-08  Jim Meyering  <meyering@lucent.com>
117828         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117829         names don't conflict.  Reported by Eli Zaretskii.
117831 2000-04-07  Jim Meyering  <meyering@lucent.com>
117833         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117834         sys/types.h, to work around system header problems on AIX 3.2.5.
117835         From Bruno Haible.
117837 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117839         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117840         bug.  Deal with the different error behavior of Irix iconv.
117842 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117844         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117845         IRIX if the installer said otherwise.
117847 2000-04-05  Jim Meyering  <meyering@lucent.com>
117849         Portability tweaks required for ultrix4.3.
117850         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117851         (jm_CHECK_DECLS): Add getutent to the list of functions.
117852         (_jm_DECL_HEADERS): Add utmpx.h.
117853         From John David Anglin.
117855         * m4/strftime.m4: Back out the 2000-04-02 change.
117856         Instead of that change, simply undefine putenv in the test program.
117858 2000-04-05  Jim Meyering  <meyering@lucent.com>
117860         Portability tweaks required for ultrix4.3.
117861         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117862         getutent.
117863         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117864         * lib/canon-host.c: Declare strdup.
117865         * lib/path-concat.c: Likewise.
117866         From John David Anglin.
117868 2000-04-04  Jim Meyering  <meyering@lucent.com>
117870         Be more DOS 8.3-friendly.
117871         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117872         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117873         * lib/Makefile.am: Reflect renaming.
117874         Reported by Eli Zaretskii.
117876         Use a temporary file name that won't clash with `charset.alias'
117877         in the DOS 8.3 name space.
117878         * lib/Makefile.am (charset_tmp): Define.
117879         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117880         (uninstall-local): Likewise.
117881         Reported by Eli Zaretskii.
117883 2000-04-03  Jim Meyering  <meyering@lucent.com>
117885         * m4/gettext.m4: Fix typo in comment.
117887         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117888         textutils/configure.in).  Suggestion from Paul Eggert.
117889         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117891 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117893         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117894         variable in the shell rather than using putenv, which isn't
117895         portable.  This avoids the configure-time inter-test dependency
117896         on the potentially-renamed putenv function.
117898 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117901         before checking struct stat.st_blksize, so that
117902         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117904 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117906         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117907         since strftime.c uses HAVE_STRFTIME to decide whether to use
117908         the underlying strftime.
117910 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117912         * lib/time/strftime.c (my_strftime): Make sure we call the system
117913         strftime, not ourselves, when invoking the underlying strftime.
117915 2000-03-24  Jim Meyering  <meyering@lucent.com>
117917         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117918         (charset_alias): Define.
117919         (install-exec-local): Factor out common code.
117920         (uninstall-local): Split lines longer than 80.
117921         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117922         (SUFFIXES): Define.
117923         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117924         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117926 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117928         * lib/config.charset: Output a line containing "Packages using this
117929         file".
117930         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117931         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117932         ref-del.sed): New rules.
117934 2000-03-17  Jim Meyering  <meyering@lucent.com>
117936         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117937         Otherwise, include <strings.h>
117939 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117941         * lib/unicodeio.c (utf8_wctomb): New function.
117942         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117943         format instead of in UCS-4 with platform dependent endianness.
117945 2000-03-10  Jim Meyering  <meyering@lucent.com>
117947         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117948         From Marco Franzen.
117950 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117952         * lib/savedir.c (savedir): Work even if directory size is
117953         negative; this can happen with some screwy NFS configurations.
117955 2000-03-06  Jim Meyering  <meyering@lucent.com>
117957         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117958         if it's NULL (because we ran out of memory).  From Bruno Haible.
117960 2000-03-05  Jim Meyering  <meyering@lucent.com>
117962         * lib/localcharset.c ("path-concat.h"): Include.
117963         (get_charset_aliases): Use path_concat instead of ANSI string
117964         concatenation.
117966         * lib/unicodeio.h (PARAMS): Define.
117967         Use it to guard prototype.
117969 2000-03-04  Jim Meyering  <meyering@lucent.com>
117971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117972         for lib/localcharset.c.
117974 2000-03-04  Jim Meyering  <meyering@lucent.com>
117976         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117977         installing into it.
117978         (uninstall-local): Uncomment this rule so `make distcheck' works
117979         once again.
117981         * lib/unicodeio.c (<errno.h>): Include it.
117982         (errno): Declare if not defined.
117984         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117986         * lib/config.charset: New version, incorporating remarks from a linux
117987         i18n mailing list.  From Bruno Haible.
117989 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117991         * m4/codeset.m4: New file.
117992         * m4/iconv.m4: New file.
117993         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117995 2000-03-03  Jim Meyering  <meyering@lucent.com>
117997         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117999 2000-03-02  Jim Meyering  <meyering@lucent.com>
118001         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
118002         the messages come out on separate lines.
118004         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
118005         rather than jm_CHECK_DECLARATIONS.
118006         * m4/decl.m4: Remove now-unused file.
118008         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
118009         geteuid.
118011 2000-03-02  Jim Meyering  <meyering@lucent.com>
118013         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
118015 2000-03-01  Jim Meyering  <meyering@lucent.com>
118017         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
118018         * lib/unicodeio.c: Likewise.
118020 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
118022         * lib/config.charset: New file.
118023         * lib/localcharset.c: New file.
118024         * lib/unicodeio.h, lib/unicodeio.c: New files.
118025         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
118026         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
118027         (noinst_HEADERS): Add unicodeio.h.
118028         (all-local, install-exec-local, charset.alias): New targets.
118030 2000-02-28  Paul Eggert  <eggert@twinsun.com>
118032         * lib/quotearg.c (ALERT_CHAR): New macro.
118033         (quotearg_buffer_restyled): Use it.
118035 2000-02-27  Jim Meyering  <meyering@lucent.com>
118037         * m4/check-decl.m4: Add getenv to the list.
118039 2000-02-27  Jim Meyering  <meyering@lucent.com>
118041         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
118042         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
118044         * lib/backupfile.c: Guard inclusion of stdlib.h with
118045         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
118046         Declare malloc if needed.
118048         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
118049         `#ifndef HAVE_DECL..'
118050         now that autoconf always defines the HAVE_DECL_ symbols.
118051         * lib/human.c: Likewise.
118052         * lib/same.c: Likewise.
118053         * lib/strtoumax.c: Likewise.
118055         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
118056         declaration check was not run.
118057         * lib/hash.c: Likewise.
118058         * lib/human.c: Likewise.
118059         * lib/same.c: Likewise.
118060         * lib/strtoumax.c: Likewise.
118062         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
118063         `.', then first look up the entire `.'-containing string as a login
118064         name.
118066 2000-02-23  Jim Meyering  <meyering@lucent.com>
118068         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
118069         in place of my hack.
118071 2000-02-18  Paul Eggert  <eggert@twinsun.com>
118073         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
118074         (textint): New typedef.
118075         (parser_control): Member year changed from int to textint.
118076         All uses changed.
118077         (YYSTYPE): Removed; replaced by %union with int and textint members.
118078         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
118079         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
118080         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
118081         (tSNUMBER, tUNUMBER): Now of type <textintval>.
118082         (date, number, to_year): Use width of number in digits, not its value,
118083         to determine whether it's a 2-digit year, or a 2-digit time.
118084         (yylex): Store number of digits of numeric tokens.
118085         Reported by John Kendall.
118087         (parser_control): Changed from struct parser_control to typedef (for
118088         consistency).  All uses changed.
118090         (tID): Removed; not used.
118091         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
118093 2000-02-14  Paul Eggert  <eggert@twinsun.com>
118095         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
118096         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
118098 2000-02-12  Jim Meyering  <meyering@lucent.com>
118100         * lib/userspec.c (ISDIGIT): Define it.
118101         (isdigit): Remove definition.
118102         (is_number): Use ISDIGIT, not isdigit.
118103         <libintl.h>: Include.
118104         (_ and N_): Define.
118105         (parse_user_spec): Mark translatable strings.
118107 2000-02-10  Jim Meyering  <meyering@lucent.com>
118109         With these changes, nanosleep.[ch] are finally enough like the other
118110         lib/* replacement files to compile on a few more losing systems.
118112         * lib/nanosleep.h: Don't include config.h.
118113         Remove prototype from declaration of nanosleep.
118114         (PARAMS): Remove now-unneeded definition.
118115         * lib/nanosleep.c: #undef nanosleep.
118116         (rpl_nanosleep): Rename from nanosleep.
118118 2000-02-10  Jim Meyering  <meyering@lucent.com>
118120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118121         gnu_nanosleep to rpl_nanosleep.
118123 2000-02-09  Jim Meyering  <meyering@lucent.com>
118125         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118126         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118128 2000-02-08  Akim Demaille  <akim@epita.fr>
118130         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118131         `[' and `]' and remove uses of `changequote'.
118132         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118133         (AC_SYS_LARGEFILE): Likewise.
118134         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118135         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118136         of changequote.
118137         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118138         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118139         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118140         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118142 2000-02-05  Jim Meyering  <meyering@lucent.com>
118144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118145         Remove explicit use of AC_HEADER_TIME.  It is required by
118146         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118147         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118148         in autoconf whereby the expansion of the latter ended up preceding
118149         the expansion of its prerequisite, AC_HEADER_TIME.
118150         Reported by Volker Borchert.
118152 2000-02-03  Jim Meyering  <meyering@lucent.com>
118154         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118156 2000-02-03  Jim Meyering  <meyering@lucent.com>
118158         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118159         rather than with `#if HAVE_UTMPNAME'.
118161 2000-02-02  Jim Meyering  <meyering@lucent.com>
118163         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118164         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118165         Reported by Eli Zaretskii.
118167 2000-02-01  Jim Meyering  <meyering@lucent.com>
118169         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118171 2000-01-31  Jim Meyering  <meyering@lucent.com>
118173         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118174         functions.  Add the time.h and sys/time.h headers along with the
118175         AC_REQUIRE'ment of AC_HEADER_TIME.
118177 2000-01-31  Jim Meyering  <meyering@lucent.com>
118179         * lib/nanosleep.h (nanosleep): Guard declaration with
118180         `#if ! HAVE_DECL_NANOSLEEP'.
118181         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118182         the declaration in that vendor's sys/timers.h.
118183         Reported by Christian Krackowizer.
118185         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118186         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118187         (ISPRINT): Likewise.
118188         Reported by Tom Tromey.
118190 2000-01-30  Jim Meyering  <meyering@lucent.com>
118192         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118194         * m4/prereq.m4 (utmp_includes): Define.
118195         Check for ut_user and ut_name members in both struct utmpx
118196         and struct utmp.
118198 2000-01-30  Jim Meyering  <meyering@lucent.com>
118200         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118201         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118202         header files where only utmpx.ut_user is declared.
118204         * lib/readutmp.h (UT_USER): Define.
118206 2000-01-29  Jim Meyering  <meyering@lucent.com>
118208         * m4/lib-check.m4: New file containing library-related checks from
118209         fileutils and sh-utils (textutils had none).
118211 2000-01-28  Jim Meyering  <meyering@lucent.com>
118213         * m4/perl.m4: Change format of warning message to look more like that
118214         from the missing script.  Suggestion from François Pinard.
118216 2000-01-25  Jim Meyering  <meyering@lucent.com>
118218         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118219         well as time.h in the compile check.
118220         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118221         Fix typo in cross-compiling case: s/yes/no/.
118223 2000-01-23  Jim Meyering  <meyering@lucent.com>
118225         * m4/jm-macros.m4: Move df-related tests here from
118226         fileutils/configure.in
118228         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118229         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118231         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118232         s/space/ac_fsusage_space/.
118233         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118235         * m4/ftruncate.m4: New file (derived from part of
118236         fileutils/configure.in).
118237         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118238         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118240         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118241         AC_SUBST these here, rather than just in sh-util/configure.in, so
118242         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118243         all the same.
118244         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118245         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118246         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118247         (AC_SUBST(POW_LIBM)): Likewise.
118248         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118250 2000-01-23  Jim Meyering  <meyering@lucent.com>
118252         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118253         obstack.c.
118255 2000-01-22  Jim Meyering  <meyering@lucent.com>
118257         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118261         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118262         configure.in
118263         (AC_CHECK_HEADERS): Likewise for sh-utils.
118264         (AC_CHECK_HEADERS): Likewise for textutils.
118265         Merge the three lists of headers.
118267         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118268         from fileutils' configure.in.
118270         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118271         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118272         check-decl.m4.
118274         * m4/check-decl.m4: Use #if rather than #ifdef.
118275         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118276         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118277         (_jm_DECL_HEADERS): Define new function.
118278         (jm_CHECK_DECLARATIONS): Require it.
118280 2000-01-22  Jim Meyering  <meyering@lucent.com>
118282         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118283         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118284         Required for some AIX systems.  Reported by Christian Krackowizer.
118285         [TESTING] (main): New function.
118287         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118288         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118289         letters.
118291         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118292         iswprint.
118294         * lib/strverscmp.c (ISDIGIT): Define.
118295         (strverscmp): Use ISDIGIT, not isdigit.
118297 2000-01-19  Jim Meyering  <meyering@lucent.com>
118299         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118300         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118301         defines `struct timespec' in <sys/time.h>
118303         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118304         Thanks to Akim for explaining.
118306 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118308         * lib/nanosleep.c (nanosleep):
118309         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118310         POSIX.1 doesn't require SA_INTERRUPT and some systems
118311         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118312         it's been part of POSIX.1 since day 1 (in 1988).
118314 2000-01-17  Jim Meyering  <meyering@lucent.com>
118316         * lib/interlock: Remove unused file.  Reported by François Pinard.
118318 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118320         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118321         alert, backslash, formfeed, and vertical tab unnecessarily in
118322         shell quoting style.
118324 2000-01-16  Jim Meyering  <meyering@lucent.com>
118326         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118327         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118328         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118329         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118331 2000-01-16  Jim Meyering  <meyering@lucent.com>
118333         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118334         because the latter didn't work.
118336 2000-01-15  Jim Meyering  <meyering@lucent.com>
118338         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118339         (AC_REPLACE_FUNCS): Add memcpy and memset.
118340         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118341         Add strpbrk.
118342         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118344 2000-01-12  Jim Meyering  <meyering@lucent.com>
118346         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118347         (jm_PREREQ): Use it.
118348         (jm_PREREQ_READUTMP): New macro.
118349         (jm_PREREQ): Use it.
118351 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118353         Quote multibyte characters correctly.
118354         * m4/c-bs-a.m4: New file.
118355         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118356         (jm_PREREQ): Use it.
118358 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118360         * m4/uintmax_t.m4: Port to autoconf 2.13.
118362 2000-01-08  Jim Meyering  <meyering@ascend.com>
118364         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118365         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118367 2000-01-04  Jim Meyering  <meyering@ascend.com>
118369         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118370         jm_STRUCT_DIRENT_D_TYPE.
118371         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118372         jm_STRUCT_DIRENT_D_INO.
118373         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118374         jm_STRUCT_UTIMBUF.
118375         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118376         renamings.
118377         * m4/utime.m4: Likewise.
118379         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118380         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118382 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118384         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118385         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118387 2000-01-02  Jim Meyering  <meyering@ascend.com>
118389         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118390         remember if this is necessary.
118392 1999-12-26  Jim Meyering  <meyering@ascend.com>
118394         * m4/jm-macros.m4: Use it here.
118395         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118397 1999-12-23  Jim Meyering  <meyering@ascend.com>
118399         * m4/jm-macros.m4: Check for clock_gettime (moved from
118400         fileutils/configure.in)
118401         Check for gettimeofday.
118403 1999-12-20  Jim Meyering  <meyering@ascend.com>
118405         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118406         autoconf-2.14a-1999-12-20.
118408 1999-12-19  Jim Meyering  <meyering@ascend.com>
118410         * m4/lstat-slash.m4: New file.
118411         * m4/jm-macros.m4: Use the new macro:
118412         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118414 1999-12-07  Jim Meyering  <meyering@ascend.com>
118416         * m4/perl.m4: Require that File::Compare be available, too.
118417         Too many systems seem to lack it.
118419         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118420         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118422 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118424         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118425         problem with the QNX 4.25 shell, which doesn't propagate exit
118426         status of failed commands inside shell assignments.
118428 1999-11-17  Jim Meyering  <meyering@ascend.com>
118430         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118432 1999-11-07  Jim Meyering  <meyering@ascend.com>
118434         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118436 1999-11-06  Jim Meyering  <meyering@ascend.com>
118438         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118439         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118441 1999-11-05  Jim Meyering  <meyering@ascend.com>
118443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118444         configure.in of textutils, fileutils, and sh-utils into this one
118445         (shared between those packages) file.
118446         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118447         AC_STRUCT_ST_BLKSIZE.
118449 1999-11-03  Jim Meyering  <meyering@ascend.com>
118451         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118452         of AC_CHECK_TYPE checks includes unistd.h.
118453         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118454         Suggestion from Akim Demaille.
118456 1999-10-30  Jim Meyering  <meyering@ascend.com>
118458         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118459         m4-quoted string.
118460         * m4/ls-mntd-fs.m4: Likewise.
118461         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118462         * m4/jm-winsz1.m4: Likewise.
118464         * m4/const.m4: Remove file, since the fix made it into the experimental
118465         version of autoconf.
118466         * m4/mktime.m4: Likewise.
118468         * m4/check-type.m4: Remove file, now that the latest version of
118469         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118471         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118472         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118473         AC_CHECK_TYPE.
118475 1999-10-04  Jim Meyering  <meyering@ascend.com>
118477         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118479 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118481         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118482         2.95.1 bug with HP-UX 10.20.
118484 1999-09-17  Jim Meyering  <meyering@ascend.com>
118486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118487         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118488         due to missing strdup (against sh-utils-2.0).
118490 1999-08-29  Jim Meyering  <meyering@ascend.com>
118492         * m4/jm-macros.m4: Require jm_BISON.
118493         * m4/bison.m4: New file.
118495 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118497         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118498         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118500 1999-08-05  Jim Meyering  <meyering@ascend.com>
118502         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118503         to avoid conflicts with `conftest' on 8+3 filesystems.
118504         Suggestion from Eli Zaretskii.
118506 1999-08-04  Jim Meyering  <meyering@ascend.com>
118508         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118509         fileutils and sh-utils (textutils's getline test was inadequate).
118510         (AM_FUNC_GETLINE): Run this test.
118511         (AC_CHECK_FUNCS): Check for getdelim.
118512         Reported by Bob Proulx.
118514 1999-08-02  Jim Meyering  <meyering@ascend.com>
118516         * m4/jm-macros.m4: Add a comment.
118518 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118520         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118521         <inttypes.h> defines strtoumax as a macro (and not as a
118522         function).
118524 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118526         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118527         that we can shift, multiply and divide unsigned long long
118528         values; Ultrix cc can't do it.
118530 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118532         * m4/mktime.m4: New file, which is a preview of what should appear
118533         in the next public autoconf release.
118535 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118537         * m4/lfs.m4: Remove this file.
118538         * m4/largefile.m4: New file.  It contains the old contents of
118539         lfs.m4, except that all names with prefix AC_LFS have been
118540         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118541         compatible with future autoconf versions.  Also, some minor m4
118542         quoting problems have been fixed.
118544 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118546         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118547         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118548         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118549         and simplify the shell code.
118551 1999-08-01  Jim Meyering  <meyering@ascend.com>
118553         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118554         m4.
118556 1999-07-20  Jim Meyering  <meyering@ascend.com>
118558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118560 1999-07-15  Jim Meyering  <meyering@ascend.com>
118562         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118564 1999-05-22  Jim Meyering  <meyering@ascend.com>
118566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118568 1999-05-20  Jim Meyering  <meyering@ascend.com>
118570         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118571         Add a colon after each `then' in case $4 is empty.
118573 1999-05-16  Jim Meyering  <meyering@ascend.com>
118575         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118577 1999-05-10  Jim Meyering  <meyering@ascend.com>
118579         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118581         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118582         AC_FUNC_MKTIME.
118584 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118586         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118588 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118590         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118591         not CPPFLAGS, so that linking works correctly in IRIX.
118593 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118595         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118597 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118599         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118600         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118602         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118603         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118605         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118607 1999-04-20  Jim Meyering  <meyering@ascend.com>
118609         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118610         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118611         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118613 1999-04-18  Jim Meyering  <meyering@ascend.com>
118615         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118616         * m4/jm-macros.m4: Use it.
118618 1999-04-06  Jim Meyering  <meyering@ascend.com>
118620         * m4/strftime.m4: Remove test for %f.
118622 1999-03-29  Jim Meyering  <meyering@ascend.com>
118624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118625         superset of the AC_TYPE_* checks in the textutils, fileutils,
118626         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118627         AC_TYPE_PID_T.
118629 1999-03-28  Jim Meyering  <meyering@ascend.com>
118631         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118632         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118633         replaced e.g., in the *.sh files of the sh-utils.
118635 1999-03-20  Jim Meyering  <meyering@ascend.com>
118637         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118638         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118639         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118641 1999-03-19  Jim Meyering  <meyering@ascend.com>
118643         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118645 1999-03-12  Jim Meyering  <meyering@ascend.com>
118647         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118649 1999-03-07  Jim Meyering  <meyering@ascend.com>
118651         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118652         declared.
118654 1999-02-17  Jim Meyering  <meyering@ascend.com>
118656         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118657         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118659 1999-02-07  Jim Meyering  <meyering@ascend.com>
118661         * m4/group-member.m4: New file -- extracted from sh-utils'
118662         configure.in.
118664         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118665         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118667 1999-02-06  Jim Meyering  <meyering@ascend.com>
118669         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118670         * m4/fnmatch.m4: Likewise.
118671         * m4/getgroups.m4: Likewise.
118672         * m4/lstat.m4: Likewise.
118673         * m4/malloc.m4: Likewise.
118674         * m4/putenv.m4: Likewise.
118675         * m4/realloc.m4: Likewise.
118676         * m4/regex.m4: Likewise.
118677         * m4/stat.m4: Likewise.
118678         * m4/strftime.m4: Likewise.
118679         Suggestion from Alain Magloire.
118681         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118682         * m4/fnmatch.m4: Likewise.
118683         * m4/getgroups.m4: Likewise.
118684         * m4/getline.m4: Likewise.
118685         * m4/lstat.m4: Likewise.
118686         * m4/malloc.m4: Likewise.
118687         * m4/memcmp.m4: Likewise.
118688         * m4/putenv.m4: Likewise.
118689         * m4/realloc.m4: Likewise.
118690         * m4/regex.m4: Likewise.
118691         * m4/stat.m4: Likewise.
118692         * m4/strftime.m4: Likewise.
118693         Suggestion from Alain Magloire.
118695         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118696         an argument.
118698         * m4/regex.m4: Add a run-time Test for proper operation of
118699         re_compile_pattern.
118701 1999-01-31  Jim Meyering  <meyering@ascend.com>
118703         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118705 1999-01-30  Jim Meyering  <meyering@ascend.com>
118707         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118709         * m4/jm-mktime.m4: Make this a wrapper around the official
118710         AM_FUNC_MKTIME rather than my private copy, now that the official one
118711         is up to date.
118712         * m4/mktime.m4: Remove file.
118714         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118715         * m4/uptime.m4: Likewise.
118716         * m4/uintmax_t.m4: Likewise.
118718 1999-01-28  Jim Meyering  <meyering@ascend.com>
118720         * m4/jm-macros.m4: Use jm_AFS.
118721         * m4/afs.m4: New file (from fileutils' configure.in).
118723         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118724         * m4/chown.m4: Likewise.
118725         * m4/d-ino.m4: Likewise.
118726         * m4/d-type.m4: Likewise.
118727         * m4/fnmatch.m4: Likewise.
118728         * m4/getgroups.m4: Likewise.
118729         * m4/gettext.m4: Likewise.
118730         * m4/jm-mktime.m4: Likewise.
118731         * m4/jm-winsz2.m4: Likewise.
118732         * m4/lcmessage.m4: Likewise.
118733         * m4/ls-mntd-fs.m4: Likewise.
118734         * m4/malloc.m4: Likewise.
118735         * m4/memcmp.m4: Likewise.
118736         * m4/putenv.m4: Likewise.
118737         * m4/realloc.m4: Likewise.
118738         * m4/st_mtim.m4: Likewise.
118739         * m4/strftime.m4: Likewise.
118741 1999-01-16  Jim Meyering  <meyering@ascend.com>
118743         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118744         (ARGMATCH_DIE_DECL): Define.
118746 1999-01-12  Jim Meyering  <meyering@ascend.com>
118748         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118749         Reported by Lars Hecking.
118751 1999-01-10  Jim Meyering  <meyering@ascend.com>
118753         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118754         gross kludge.
118755         * m4/inttypes_h.m4: Likewise.
118756         * m4/lstat.m4: Likewise.
118757         * m4/malloc.m4: Likewise.
118758         * m4/readdir.m4: Likewise.
118759         * m4/realloc.m4: Likewise.
118760         * m4/st_dm_mode.m4: Likewise.
118761         * m4/stat.m4: Likewise.
118762         * m4/utimbuf.m4: Likewise.
118763         * m4/utimes.m4: Likewise.
118765         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118766         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118767         comments in config.h.in are meaningful.
118769         * m4/jm-macros.m4: Require autoconf-2.13 here.
118771         * m4/regex.m4: By default, don't use the included regex.c on systems
118772         with glibc 2.  Suggestion from Uli Drepper.
118774 1999-01-02  Jim Meyering  <meyering@ascend.com>
118776         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118778 1998-12-18  Jim Meyering  <meyering@ascend.com>
118780         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118781         Based on a suggestion from Lars Hecking.
118783 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118785         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118787 1998-11-16  Jim Meyering  <meyering@ascend.com>
118789         * m4/lfs.m4: Double-quote the `uname...` expression.
118791 1998-11-14  Jim Meyering  <meyering@ascend.com>
118793         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118794         * m4/stat.m4: Likewise.
118796 1998-11-03  Jim Meyering  <meyering@ascend.com>
118798         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118799         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118801 1998-10-18  Jim Meyering  <meyering@ascend.com>
118803         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118805 1998-10-17  Jim Meyering  <meyering@ascend.com>
118807         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118808         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118809         calls for those previously hard-coded headers.  Instead, take a new
118810         parameter.
118811         (jm_CHECK_DECLARATIONS): Reflect interface change.
118812         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118813         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118815         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118817 1998-10-14  Jim Meyering  <meyering@ascend.com>
118819         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118820         instead of "TZ=America/Vancouver".  From Paul Eggert.
118822 1998-10-11  Jim Meyering  <meyering@ascend.com>
118824         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118825         This adds a test for a recently added compatibility fix for mktime.c.
118826         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118828 1998-09-27  Jim Meyering  <meyering@ascend.com>
118830         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118832         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118833         ../configure.in, including a change from Gordon Matzigkeit to allow
118834         cross-compiling for the Hurd.
118836         * m4/glibc.m4: New file/macro to test for the GNU C Library
118837         versions 1 and 2.  From Gordon Matzigkeit.
118838         Indent.
118840 1998-09-21  Jim Meyering  <meyering@ascend.com>
118842         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118844 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118846         Port nanosecond-resolution times to UnixWare 2.1.2 and
118847         pedantic Solaris 2.6.
118849         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118850         AC_STRUCT_ST_MTIM.
118851         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118852         Generate name of ns member, instead of just 1 or undef.
118853         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118855 1998-08-15  Jim Meyering  <meyering@ascend.com>
118857         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118858         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118859         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118860         instead of jm_TYPE_SSIZE_T.
118862 1998-08-12  Jim Meyering  <meyering@ascend.com>
118864         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118866 1998-08-02  Jim Meyering  <meyering@ascend.com>
118868         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118869         in acconfig.h manually.
118871 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118873         * m4/st_mtim.m4: New file.
118875 1998-07-28  Jim Meyering  <meyering@ascend.com>
118877         * m4/utimes.m4: Undef stat.
118879 1998-07-25  Jim Meyering  <meyering@ascend.com>
118881         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118882         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118884 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118886         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118887         uid and gid actually remain unchanged.
118889 1998-07-07  Jim Meyering  <meyering@ascend.com>
118891         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118893 1998-07-04  Jim Meyering  <meyering@ascend.com>
118895         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118896         to prove that this macro can be used in packages without regex.c.
118898 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118900         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118901         is to be used.
118903 1998-07-03  Jim Meyering  <meyering@ascend.com>
118905         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118907         * m4/gettext.m4: New file -- from gettext-0.10.35.
118908         * m4/lcmessage.m4: Likewise.
118909         * m4/progtest.m4: Likewise.
118911         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118912         * m4/jm-macros.m4: Require the new macro.
118914 1998-06-29  Jim Meyering  <meyering@ascend.com>
118916         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118917         for the definition of NGROUPS (used in a system header included
118918         by sys/mount.h).
118920 1998-06-28  Jim Meyering  <meyering@ascend.com>
118922         * m4/ls-mntd-fs.m4: New file.
118923         * m4/fstypename.m4: New file.
118925         * m4/jm-macros.m4: Require the new macro.
118926         * m4/jm-glibc-io.m4: New file.
118928 1998-05-19  Jim Meyering  <meyering@ascend.com>
118930         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118931         * m4/lchown.m4: New file.
118933         * m4/Makefile.am.in: New file.
118934         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118936 1998-05-14  Jim Meyering  <meyering@ascend.com>
118938         * m4/Makefile.am (EXTRA_DIST): Add them.
118939         * m4/jm-macros.m4: New file.
118940         * m4/utimbuf.m4: New file.
118942 1998-05-12  Jim Meyering  <meyering@ascend.com>
118944         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118946 1998-05-11  Jim Meyering  <meyering@ascend.com>
118948         * m4/isc-posix.m4: New file.
118950 1998-05-10  Jim Meyering  <meyering@ascend.com>
118952         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118954 1998-05-09  Jim Meyering  <meyering@ascend.com>
118956         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118957         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118958         with automake.
118960         * m4/ssize_t.m4: New file.
118961         * m4/mktime.m4: Remove file -- the new automake has this now.
118963 1998-04-26  Jim Meyering  <meyering@ascend.com>
118965         * m4/assert.m4: New file.
118966         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118968 1998-04-05  Jim Meyering  <meyering@ascend.com>
118970         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118971         (jm_PREREQ): Use it here.
118973 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118975         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118976         in acconfig.h.
118978 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118980         * m4/prereq.m4: New file.
118981         * m4/error.m4: New file.
118982         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118984 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118986         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118987         cache-check for the same variable -- that defeated the purpose of
118988         the test; the test program was never run.  This was a problem only
118989         on systems with losing getline functions -- HP-UX 10.20 is one.
118990         Reported by Bjorn Helgaas.
118992 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118994         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118996 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118998         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
119000         * m4/const.m4: New file.  Use an initializer in this declaration
119001         typedef int charset[2]; const charset x;
119002         Reported by Bob Glickstein.
119004 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
119006         * m4/chown.m4: Fix reversed types on -1 args to chown.
119007         From Kaveh Ghazi.
119009 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
119011         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
119012         Add lseek and memchr.
119014         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
119015         T.E.Dickey <dickey@clark.net> said that some older preprocessors
119016         have a 20-character limit on names.
119018 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
119020         * m4/inttypes_h.m4: New file.
119021         * m4/uintmax_t.m4: New file.
119022         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
119025         -----
119027         Local Variables:
119028         coding: utf-8
119029         End:
119031         Copyright (C) 1997-2019 Free Software Foundation, Inc.
119033         Copying and distribution of this file, with or without
119034         modification, are permitted provided the copyright notice
119035         and this notice are preserved.